]> git.baikalelectronics.ru Git - kernel.git/commit
drm/panfrost: Make sure GPU is powered on when reading GPU_LATEST_FLUSH_ID
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Thu, 11 Jun 2020 08:58:43 +0000 (10:58 +0200)
committerRob Herring <robh@kernel.org>
Fri, 7 Aug 2020 16:11:11 +0000 (10:11 -0600)
commita908ea89e722d6aa040e4176bbd627673c01e8d6
treeb47ae634bd3a01494eb0034527077c0c1ec93b5d
parentaa14b3e81fc4ca74628d9be4fd2fb5ca31ab4e81
drm/panfrost: Make sure GPU is powered on when reading GPU_LATEST_FLUSH_ID

Bifrost devices do support the flush reduction feature, so on first job
submit we were trying to read the register while still powered off.

If the GPU is powered off, the feature doesn't bring any benefit, so
don't try to read.

Tested-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200611085900.49740-1-tomeu.vizoso@collabora.com
drivers/gpu/drm/panfrost/panfrost_gpu.c