[Freedreno] [PATCH 4/4] drm/msm/a6xx: Update ROQ size in coredump

2022-12-03 Thread Akhil P Oommen
Since RoQ size differs between generations, calculate dynamically the RoQ size while capturing coredump. Signed-off-by: Akhil P Oommen --- drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c | 11 ++- drivers/gpu/drm/msm/adreno/a6xx_gpu_state.h | 17 ++--- 2 files changed, 20 insert

[Freedreno] [PATCH 3/4] drm/msm/a6xx: Update a6xx gpu coredump

2022-12-03 Thread Akhil P Oommen
Update gpu coredump for a660/a650 family of gpus with the extra information available. Signed-off-by: Akhil P Oommen --- drivers/gpu/drm/msm/adreno/a6xx.xml.h | 18 +++ drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c | 50 - drivers/gpu/drm/msm/adreno/a6xx_

[Freedreno] [PATCH 2/4] drm/msm: Fix failure paths in msm_drm_init()

2022-12-03 Thread Akhil P Oommen
Ensure that we do drm_dev_put() when there is an early return in msm_drm_init(). Signed-off-by: Akhil P Oommen --- drivers/gpu/drm/msm/disp/msm_disp_snapshot.c | 3 +++ drivers/gpu/drm/msm/msm_drv.c| 11 +++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git

[Freedreno] [PATCH 1/4] drm/msm/adreno: Fix null ptr access in adreno_gpu_cleanup()

2022-12-03 Thread Akhil P Oommen
Fix the below kernel panic due to null pointer access: [ 18.504431] Unable to handle kernel NULL pointer dereference at virtual address 0048 [ 18.513464] Mem abort info: [ 18.516346] ESR = 0x9605 [ 18.520204] EC = 0x25: DABT (current EL), IL = 32 bits [ 18.525