]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/msm/a6xx: Fix GMU firmware parser
authorAkhil P Oommen <akhilpo@oss.qualcomm.com>
Wed, 10 Sep 2025 20:44:05 +0000 (02:14 +0530)
committerRob Clark <robin.clark@oss.qualcomm.com>
Thu, 16 Oct 2025 14:45:29 +0000 (07:45 -0700)
commitb4789aac9d3441d9f830f0a4022d8dc122d6cab3
tree0e2749eea341b15b8398d8c409ed354a49fb6b76
parent830d68f2cb8ab6fb798bb9555016709a9e012af0
drm/msm/a6xx: Fix GMU firmware parser

Current parser logic for GMU firmware assumes a dword aligned payload
size for every block. This is not true for all GMU firmwares. So, fix
this by using correct 'size' value in the calculation for the offset
for the next block's header.

Fixes: c6ed04f856a4 ("drm/msm/a6xx: A640/A650 GMU firmware path")
Signed-off-by: Akhil P Oommen <akhilpo@oss.qualcomm.com>
Acked-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Patchwork: https://patchwork.freedesktop.org/patch/674040/
Message-ID: <20250911-assorted-sept-1-v2-2-a8bf1ee20792@oss.qualcomm.com>
Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com>
drivers/gpu/drm/msm/adreno/a6xx_gmu.c