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 aa59b28a3392..45df35d3cf90 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_guard (pm_runtime_active, &gpu->pdev->dev) {
scoped_cond_guard (mutex_intr, return -EINTR, &gpu->lock) {
msm_gpu_hw_init(gpu);
+ guard(ifpc_disable)(gpu);
show_priv->state = gpu->funcs->gpu_state_get(gpu);
}
}
--
2.56.0