]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/amdgpu: Mask rptr as well in ring debugfs
authorTom St Denis <tom.stdenis@amd.com>
Thu, 1 Mar 2018 14:39:57 +0000 (09:39 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 1 Mar 2018 17:04:17 +0000 (12:04 -0500)
commitbda303399df61600d9e2ed76fe01419f2fb8175a
tree11dba6d0c3fca2c45d4bb8ed9ba4b724084ea069
parent163e7eddff5235423c6f3004485088733665b073
drm/amd/amdgpu: Mask rptr as well in ring debugfs

The read/write pointers on sdma4 devices increment
beyond the ring size and should be masked.  Tested
on my Ryzen 2400G.

Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c