]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/panthor: Support 64-bit endpoint_req register for Mali-G1
authorKarunika Choo <karunika.choo@arm.com>
Tue, 25 Nov 2025 12:55:47 +0000 (12:55 +0000)
committerBoris Brezillon <boris.brezillon@collabora.com>
Wed, 26 Nov 2025 09:56:19 +0000 (10:56 +0100)
commit2008f49a633eee412b33f01b51b3ebc91105ccd8
treed92a0eb1a0f5dcfe97b260f3eb4cd48969124442
parent51407254986501b19681d55531963f1ea58e89cd
drm/panthor: Support 64-bit endpoint_req register for Mali-G1

Add support for the 64-bit endpoint_req register introduced in CSF v4.0+
GPUs. Unlike a simple register widening, the 64-bit variant occupies the
next 64 bits after the original 32-bit field, requiring
version-dependent access.

This change introduces helper functions to read, write, and update the
endpoint_req register, ensuring correct handling on both pre-v4.0 and
v4.0+ firmwares.

Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Karunika Choo <karunika.choo@arm.com>
Link: https://patch.msgid.link/20251125125548.3282320-8-karunika.choo@arm.com
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
drivers/gpu/drm/panthor/panthor_fw.c
drivers/gpu/drm/panthor/panthor_fw.h
drivers/gpu/drm/panthor/panthor_sched.c