summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorXiaojie Yuan <xiaojie.yuan@amd.com>2020-07-14 10:47:31 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-07-22 10:33:17 +0300
commit64a17e1da02ae459cb30c2ea58ee7ce0730a8d4f (patch)
tree46058c497d3eb10d1bc1024dd0a80c0d4d495dc9 /scripts/gdb/linux/utils.py
parent9f8d3d2f79ba189ecc122d214d32396e5737963b (diff)
downloadlinux-64a17e1da02ae459cb30c2ea58ee7ce0730a8d4f.tar.xz
drm/amdgpu/sdma5: fix wptr overwritten in ->get_wptr()
commit 05051496b2622e4d12e2036b35165969aa502f89 upstream. "u64 *wptr" points to the the wptr value in write back buffer and "*wptr = (*wptr) >> 2;" results in the value being overwritten each time when ->get_wptr() is called. umr uses /sys/kernel/debug/dri/0/amdgpu_ring_sdma0 to get rptr/wptr and decode ring content and it is affected by this issue. fix and simplify the logic similar as sdma_v4_0_ring_get_wptr(). v2: fix for sdma5.2 as well v3: drop sdma 5.2 changes for 5.8 and stable Suggested-by: Le Ma <le.ma@amd.com> Signed-off-by: Xiaojie Yuan <xiaojie.yuan@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions