Skip to contentSkip to conversation

drm/msm/gpu: Move gpu devcore's to gpu device

PATCH In review Rob Clark 3 participants 3 messages Nov 15, 2023 – Nov 16, 2023

Subsystems (4)
lore
Share & tools
lore

Rob Clark

author
#0 lore raw

PATCH 1/1 drm/msm/gpu: Move gpu devcore's to gpu device

From: Rob Clark <[email protected]>

The dpu devcore's are already associated with the dpu device. So we should associate the gpu devcore's with the gpu device, for easier classification.

---
 drivers/gpu/drm/msm/msm_gpu.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/msm/msm_gpu.c +1 -2
index cfcb4317afdb..3fad5d58262f 100644
@@ -292,8 +292,7 @@ static void msm_gpu_crashstate_capture(struct msm_gpu *gpu,
 	/* Set the active crash state to be dumped on failure */
 	gpu->crashstate = state;
 
-	/* FIXME: Release the crashstate if this errors out? */
-	dev_coredumpm(gpu->dev->dev, THIS_MODULE, gpu, 0, GFP_KERNEL,
+	dev_coredumpm(&gpu->pdev->dev, THIS_MODULE, gpu, 0, GFP_KERNEL,
 		msm_gpu_devcoredump_read, msm_gpu_devcoredump_free);
 }
 #else
Signature · 1 line
2.41.0
Reviewed-by
#2 lore raw
Quoted 6 lines · Abhinav Kumar
Quoted 2 lines · Rob Clark

From: Rob Clark <[email protected]>

Quoted 7 lines
Quoted 5 lines

The dpu devcore's are already associated with the dpu device. So we should associate the gpu devcore's with the gpu device, for easier classification.

Signature · 2 lines
With best wishes
Dmitry