]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/msm/snapshot: fix dumping of the unaligned regions
authorDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Sat, 16 May 2026 11:53:45 +0000 (14:53 +0300)
committerRob Clark <robin.clark@oss.qualcomm.com>
Sat, 16 May 2026 14:20:04 +0000 (07:20 -0700)
commit76824d2467feb1828b745d6add2541918d7be3da
tree6797523e2a434ba8552c4ff158fe83174ea586b1
parent3392291fc509d8ad6e4ad90f15b0a193f721cbc9
drm/msm/snapshot: fix dumping of the unaligned regions

The snapshotting code internally aligns data segment to 16 bytes. This
works fine for DPU code (where most of the regions are aligned), but
fails for snapshotting of the DSI data (because DSI data region is
shifted by 4 bytes). Fix the code by removing length alignment and by
accurately printing last registers in the region. While reworking the
code also fix the 16x memory overallocation in
msm_disp_state_dump_regs().

Fixes: 98659487b845 ("drm/msm: add support to take dpu snapshot")
Reported-by: Salendarsingh Gaud <sgaud@qti.qualcomm.com>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Patchwork: https://patchwork.freedesktop.org/patch/725449/
Message-ID: <20260516-msm-fix-dsi-dump-2-v2-1-9e49fb2d240e@oss.qualcomm.com>
Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com>
drivers/gpu/drm/msm/disp/msm_disp_snapshot_util.c