]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/panthor: Implement reading shader_present from nvmem
authorNicolas Frattaroli <nicolas.frattaroli@collabora.com>
Sat, 20 Dec 2025 18:49:54 +0000 (19:49 +0100)
committerBoris Brezillon <boris.brezillon@collabora.com>
Tue, 13 Jan 2026 16:06:15 +0000 (17:06 +0100)
commitc40b50c3cfbe274f054c6a2d2fa62cd7c4650460
treebe9d234ea9e75eee4dfbbff11326438adc2005f4
parent2568b8b0860eede10b39109aaa3e51900737b5d6
drm/panthor: Implement reading shader_present from nvmem

On some platforms, notably MediaTek MT8196, the shader_present bitmask
in the Mali GPU register for it has cores enabled that may be faulty.
The true shader_present bitmask is found in an efuse instead.

Implement reading shader_present from an nvmem cell if one is present,
falling back to the Mali register if it's absent. The error codes are
trickled up through to the probe function so that probe deferral works.

Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Link: https://patch.msgid.link/20251220-mt8196-shader-present-v2-3-45b1ff1dfab0@collabora.com
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
drivers/gpu/drm/panthor/panthor_hw.c