]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/v3d: Allocate all resources before enabling the clock
authorMaíra Canal <mcanal@igalia.com>
Tue, 31 Mar 2026 12:35:52 +0000 (09:35 -0300)
committerMaíra Canal <mcanal@igalia.com>
Sat, 4 Apr 2026 10:41:08 +0000 (07:41 -0300)
commitffd7371ed4179827dcf401543b37b69e5781f924
tree4a648f7cb61cdba42ad69991a87ea5cf6670f8d4
parentde1e32ef1d625ee4d717bcf10c23df2722324f62
drm/v3d: Allocate all resources before enabling the clock

Move all resource allocation operations before actually enabling the
clock, as those operations don't require the GPU to be powered on.

This is a preparation for runtime PM support. The next commit will
move all code related to powering on and initiating the GPU into the
runtime PM resume callback and all resource allocation will happen
before resume().

Reviewed-by: Melissa Wen <mwen@igalia.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://patch.msgid.link/20260331-v3d-power-management-v9-2-f52ff87bfd36@igalia.com
Signed-off-by: Maíra Canal <mcanal@igalia.com>
drivers/gpu/drm/v3d/v3d_drv.c
drivers/gpu/drm/v3d/v3d_drv.h
drivers/gpu/drm/v3d/v3d_gem.c
drivers/gpu/drm/v3d/v3d_irq.c