drm/panfrost: Add PM runtime flag
authorPhilippe Simons <simons.philippe@gmail.com>
Thu, 3 Apr 2025 05:52:08 +0000 (07:52 +0200)
committerSteven Price <steven.price@arm.com>
Mon, 28 Apr 2025 09:23:48 +0000 (10:23 +0100)
commitd76ebdf4aa829cd05a6bc8610efbbe17d4ecc8e8
tree9b8473b1e5b32159224e00514953a54facac9a91
parenta22e0051f9eb2281b181218d97f77cebc299310d
drm/panfrost: Add PM runtime flag

When the GPU is the only device attached to a single power domain,
core genpd disable and enable it when gpu enter and leave runtime suspend.

Some power-domain requires a sequence before disabled,
and the reverse when enabled.

Add GPU_PM_RT flag, and implement in
panfrost_device_runtime_suspend/resume.

Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Philippe Simons <simons.philippe@gmail.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Link: https://lore.kernel.org/r/20250403055210.54486-2-simons.philippe@gmail.com
drivers/gpu/drm/panfrost/panfrost_device.c
drivers/gpu/drm/panfrost/panfrost_device.h