]> git.baikalelectronics.ru Git - kernel.git/commit
drm/panfrost: Ensure GPU quirks are always initialised
authorSteven Price <steven.price@arm.com>
Wed, 9 Sep 2020 12:29:57 +0000 (13:29 +0100)
committerSteven Price <steven.price@arm.com>
Thu, 10 Sep 2020 13:12:33 +0000 (14:12 +0100)
commit5c59b32b30c5a977bd0e405b7aea96ea92bdebd0
treeea7b752873c8e01f397b446609ced0b81a60c3e3
parenta07d0cd5b4a27715adb7f3a3b47b0b3cea78689e
drm/panfrost: Ensure GPU quirks are always initialised

The GPU 'CONFIG' registers used to work around hardware issues are
cleared on reset so need to be programmed every time the GPU is reset.
However panfrost_device_reset() failed to do this.

To avoid this in future instead move the call to
panfrost_gpu_init_quirks() to panfrost_gpu_power_on() so that the
regsiters are always programmed just before the cores are powered.

Fixes: 7e59668a6fb5 ("drm/panfrost: Add initial panfrost driver")
Signed-off-by: Steven Price <steven.price@arm.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200909122957.51667-1-steven.price@arm.com
drivers/gpu/drm/panfrost/panfrost_gpu.c