Files
linux/drivers/gpu/drm/amd/amdgpu
Xiaojie Yuan 87d6883b32 drm/amdgpu/sdma5: fix wptr overwritten in ->get_wptr()
"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

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>
2020-07-14 14:38:48 -04:00
..
2019-09-16 09:59:21 -05:00
2019-06-20 11:36:22 -05:00
2020-07-01 01:59:24 -04:00
2020-04-09 10:43:33 -04:00
2019-06-10 23:00:01 +02:00
2020-07-01 01:59:22 -04:00
2020-07-01 01:59:24 -04:00
2020-05-22 13:41:53 -04:00
2020-07-02 12:02:50 -04:00
2020-07-01 01:59:24 -04:00
2020-07-01 01:59:24 -04:00
2020-07-01 01:59:24 -04:00
2020-07-01 01:59:24 -04:00
2020-07-01 01:59:24 -04:00
2020-07-02 12:02:50 -04:00