]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
gpu: host1x: Handle CDMA wraparound when debug printing
authorMikko Perttunen <mperttunen@nvidia.com>
Thu, 25 Apr 2024 05:02:34 +0000 (08:02 +0300)
committerThierry Reding <treding@nvidia.com>
Thu, 29 Aug 2024 18:14:29 +0000 (20:14 +0200)
commite436a40830f0fda1a1e5e51d3102644f3e0645fa
tree47838d93c709c95942fe0ed63d055e64807aa2f4
parent955df44b5d861039354ac8aebb5b25bd39eb440f
gpu: host1x: Handle CDMA wraparound when debug printing

During channel debug information dump, when printing CDMA
opcodes, the circular nature of the CDMA pushbuffer wasn't being
taken into account, sometimes accessing past the end. Change
the printing to take this into account.

Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240425050238.2943404-2-cyndis@kapsi.fi
drivers/gpu/host1x/hw/debug_hw.c