We need the GPU to stay awake for this.

Tested-by: Alexander Koskovich <[email protected]> # Milos (Nothing Phone 3a)
Reviewed-by: Konrad Dybcio <[email protected]>
Reviewed-by: Anna Maniscalco <[email protected]>
Signed-off-by: Rob Clark <[email protected]>
---
 drivers/gpu/drm/msm/msm_debugfs.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/msm/msm_debugfs.c 
b/drivers/gpu/drm/msm/msm_debugfs.c
index 136029025b80..b993a556a816 100644
--- a/drivers/gpu/drm/msm/msm_debugfs.c
+++ b/drivers/gpu/drm/msm/msm_debugfs.c
@@ -83,6 +83,7 @@ static int msm_gpu_open(struct inode *inode, struct file 
*file)
        scoped_cond_guard (mutex_intr, return -EINTR, &gpu->lock) {
                scoped_guard (pm_runtime_active, &gpu->pdev->dev) {
                        msm_gpu_hw_init(gpu);
+                       guard(ifpc_disable)(gpu);
                        show_priv->state = gpu->funcs->gpu_state_get(gpu);
                }
        }
-- 
2.56.0

Reply via email to