]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/msm/a7xx: Call CP_RESET_CONTEXT_STATE
authorConnor Abbott <cwabbott0@gmail.com>
Tue, 20 May 2025 22:28:06 +0000 (18:28 -0400)
committerRob Clark <robin.clark@oss.qualcomm.com>
Mon, 9 Jun 2025 19:48:55 +0000 (12:48 -0700)
commit2b520c6104f34e3a548525173c38ebca4402cac3
treefd7d4a74112fefed97c972d611509be60364301c
parentb1c9e797ad37d188675505b66a3a4bbeea5d9560
drm/msm/a7xx: Call CP_RESET_CONTEXT_STATE

Calling this packet is necessary when we switch contexts because there
are various pieces of state used by userspace to synchronize between BR
and BV that are persistent across submits and we need to make sure that
they are in a "safe" state when switching contexts. Otherwise a
userspace submission in one context could cause another context to
function incorrectly and hang, effectively a denial of service (although
without leaking data). This was missed during initial a7xx bringup.

Fixes: af66706accdf ("drm/msm/a6xx: Add skeleton A7xx support")
Signed-off-by: Connor Abbott <cwabbott0@gmail.com>
Patchwork: https://patchwork.freedesktop.org/patch/654924/
Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com>
drivers/gpu/drm/msm/adreno/a6xx_gpu.c