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)
commit3a74265c54f883c847ed8554129baefb3e04f135
treeb47ae634bd3a01494eb0034527077c0c1ec93b5d
parent77f47d239545810a899bd0531ae81712f3a85092
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