]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/panthor: Call panthor_gpu_coherency_init() after PM resume()
authorBoris Brezillon <boris.brezillon@collabora.com>
Fri, 4 Apr 2025 08:09:30 +0000 (10:09 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Thu, 10 Apr 2025 13:00:11 +0000 (15:00 +0200)
commit7d5a3b22f5b58ef89ab8770d7a44c24eecde8d66
tree0b66d112553c0d93d782e0935990a21edd39f7bb
parentd1df2907fb69df56aad8e4a0734dac0778c234a7
drm/panthor: Call panthor_gpu_coherency_init() after PM resume()

When the device is coherent, panthor_gpu_coherency_init() will read
GPU_COHERENCY_FEATURES to make sure the GPU supports the ACE-Lite
coherency protocol, which will fail if the clocks/power-domains are
not enabled when the read is done. Move the
panthor_gpu_coherency_init() call after the device has been resumed
to prevent that.

Changes in v2:
- Add Liviu's R-b

Changes in v3:
- Add Steve's R-b

Fixes: dd7db8d911a1 ("drm/panthor: Explicitly set the coherency mode")
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Link: https://lore.kernel.org/r/20250404080933.2912674-3-boris.brezillon@collabora.com
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
drivers/gpu/drm/panthor/panthor_device.c