drm/msm: Fix order of selector programming in cluster snapshot
authorRob Clark <robin.clark@oss.qualcomm.com>
Fri, 1 Aug 2025 18:00:00 +0000 (11:00 -0700)
committerRob Clark <robin.clark@oss.qualcomm.com>
Thu, 7 Aug 2025 16:22:28 +0000 (09:22 -0700)
commita506578d8909e7e6f0d545af9850ccd4318bf6cf
tree72a0e1387385176d2a2fa74e292df625448f5ba8
parent9466b45c19f6646787d6249116e52a9c4382e6ad
drm/msm: Fix order of selector programming in cluster snapshot

Program the selector _after_ selecting the aperture.  This aligns with
the downstream driver, and fixes a case where we were failing to capture
ctx0 regs (and presumably what we thought were ctx1 regs were actually
ctx0).

Suggested-by: Akhil P Oommen <akhilpo@oss.qualcomm.com>
Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com>
Patchwork: https://patchwork.freedesktop.org/patch/666655/
drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c