]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/panthor: Implement L2 power on/off via PWR_CONTROL
authorKarunika Choo <karunika.choo@arm.com>
Tue, 25 Nov 2025 12:55:44 +0000 (12:55 +0000)
committerBoris Brezillon <boris.brezillon@collabora.com>
Wed, 26 Nov 2025 09:56:18 +0000 (10:56 +0100)
commitee4f9af07933648f2f9337d7b24da5562a594399
tree5c8b723b7749837f5d64903991bdf3b8eae111ab
parentc27787f2b77f88b8e2f7b72856dbde601ba17412
drm/panthor: Implement L2 power on/off via PWR_CONTROL

This patch adds common helpers to issue power commands, poll
transitions, and validate domain state, then wires them into the L2
on/off paths.

The L2 power-on sequence now delegates control of the SHADER and TILER
domains to the MCU when allowed, while the L2 itself is never delegated.
On power-off, dependent domains beneath the L2 are checked, and if
necessary, retracted and powered down to maintain proper domain
ordering.

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