]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/panthor: Introduce panthor_pwr API and power control framework
authorKarunika Choo <karunika.choo@arm.com>
Tue, 25 Nov 2025 12:55:43 +0000 (12:55 +0000)
committerBoris Brezillon <boris.brezillon@collabora.com>
Wed, 26 Nov 2025 09:56:18 +0000 (10:56 +0100)
commitc27787f2b77f88b8e2f7b72856dbde601ba17412
tree03be9fef4d45adff414c2a1306790d0b5464d87d
parent7d334f5c0b720cda7b517961689997c5f72003a5
drm/panthor: Introduce panthor_pwr API and power control framework

Add the new panthor_pwr module, which provides basic power control
management for Mali-G1 GPUs. The initial implementation includes
infrastructure for initializing the PWR_CONTROL block, requesting and
handling its IRQ, and checking for PWR_CONTROL support based on GPU
architecture.

The patch also integrates panthor_pwr with the device lifecycle (init,
suspend, resume, and unplug) through the new API functions. It also
registers the IRQ handler under the 'gpu' IRQ as the PWR_CONTROL block
is located within the GPU_CONTROL block.

Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Karunika Choo <karunika.choo@arm.com>
Link: https://patch.msgid.link/20251125125548.3282320-4-karunika.choo@arm.com
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
drivers/gpu/drm/panthor/Makefile
drivers/gpu/drm/panthor/panthor_device.c
drivers/gpu/drm/panthor/panthor_device.h
drivers/gpu/drm/panthor/panthor_hw.h
drivers/gpu/drm/panthor/panthor_pwr.c [new file with mode: 0644]
drivers/gpu/drm/panthor/panthor_pwr.h [new file with mode: 0644]
drivers/gpu/drm/panthor/panthor_regs.h