Skip to content

Draft: drm/msm: drm-msm-fixes-2022-11-03 for v6.1-rc4

Abhinav Kumar requested to merge abhinavk/msm:msm-fixes-abhinav into msm-fixes

Hi Rob

Just one fix for this -fixes cycle as we agreed to take the other cleanups through the -next route.

Here is the description of the change:

  • the driver code expects the platform drvdata to be struct msm_drm_private instance but mdp5 driver overrrides it to mdp5_kms. this causes kernel panic from below stack

Unable to handle kernel write to read-only memory at virtual address ffff800008ed5810 ... snip ... mutex_lock+0x1c/0x50 msm_drv_shutdown+0x28/0x40 platform_shutdown+0x28/0x40 device_shutdown+0x14c/0x240 __do_sys_reboot+0x180/0x274 __arm64_sys_reboot+0x28/0x3c invoke_syscall+0x54/0x124 el0_svc_common.constprop.0+0x44/0xec do_el0_svc+0x90/0xe0 el0_svc+0x50/0xa4 el0t_64_sync_handler+0x11c/0x150 el0t_64_sync+0x190/0x194 Code: f9800011 c85ffc03 ca010064 b5000064 (c8047c02)

To fix this, we need to stop overriding the platform drvdata in mdp5 driver.

Thanks

Abhinav

Merge request reports