On Fri, 25 Sep 2026 19:45:29 +0100, Adrián Larumbe 
<[email protected]> wrote:
> diff --git a/drivers/gpu/drm/panfrost/panfrost_device.c 
> b/drivers/gpu/drm/panfrost/panfrost_device.c
> index 9f2b1967a398..b8094c0d1252 100644
> --- a/drivers/gpu/drm/panfrost/panfrost_device.c
> +++ b/drivers/gpu/drm/panfrost/panfrost_device.c
> @@ -311,11 +343,22 @@ int panfrost_device_init(struct panfrost_device *pfdev)
>       panfrost_reset_fini(pfdev);
>  out_pm_domain:
>       panfrost_pm_domain_fini(pfdev);
> +
> +     if (pm_runtime_active(pfdev->base.dev)) {
> +             pm_runtime_set_suspended(pfdev->base.dev);
> +             pm_runtime_put_noidle(pfdev->base.dev);
> +     }
> +

Sashiko showed this won't work, because it'll return true when 
dev->power.disable_depth != 0.
However, before we enable runtime PM, its value would be -1 as set by 
pm_runtime_init(), so
I think I'll just create an 'initialised' bool that is set before the PM calls 
and check
it here instead.

-- 
Adrián Larumbe <[email protected]>

Reply via email to