linux_dsm_epyc7002/drivers/gpu/drm/amd
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
..
acp drm: amd/acp: fix broken menu structure 2020-03-13 11:52:35 -04:00
amdgpu drm/amdgpu/sdma5: fix wptr overwritten in ->get_wptr() 2020-07-14 14:38:48 -04:00
amdkfd drm/amdkfd: Remove redundant kfd2kgd interface lookup 2020-07-08 09:02:54 -04:00
display drm/amd/display: Allow for vblank enabled with no active planes 2020-07-14 14:38:26 -04:00
include drm/amdgpu/atomfirmware: update to latest integratedinfotable 2020-07-02 12:02:57 -04:00
powerplay drm/amdgpu/powerplay: Modify SMC message name for setting power profile mode 2020-07-14 14:38:33 -04:00