Files
linux/drivers/gpu/drm/amd/amdgpu
Xiaojie Yuan 05051496b2 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
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
2020-07-14 15:42:17 -04:00
..
2020-05-22 13:41:53 -04:00
2020-05-08 14:44:11 -04:00
2019-09-16 09:59:21 -05:00
2019-06-20 11:36:22 -05:00
2020-05-22 13:41:53 -04:00
2020-05-22 13:41:53 -04:00
2020-04-09 10:43:33 -04:00
2019-06-10 23:00:01 +02:00
2020-05-22 13:41:53 -04:00
2020-05-22 13:41:53 -04:00
2020-05-22 13:41:53 -04:00
2020-05-22 13:41:53 -04:00
2020-05-21 18:00:01 -04:00
2020-05-22 13:41:53 -04:00
2020-05-22 13:41:53 -04:00
2020-05-22 13:41:53 -04:00
2020-03-16 16:17:55 -04:00