drm/amd/amdgpu: Correct ring wptr address in debugfs (v2)
authorTom St Denis <tom.stdenis@amd.com>
Wed, 29 Mar 2017 17:01:30 +0000 (13:01 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Mar 2017 03:55:53 +0000 (23:55 -0400)
commitec63982e90a8793a838dfba9037bde597bb565e1
treec984d69c0a50d7747c2bec0d7d3fab667b9d9830
parent1866bac8970522f2fb66bc2c2ed4b6e71c0830d3
drm/amd/amdgpu: Correct ring wptr address in debugfs (v2)

On gfx9 hardware the value is not wrapped and is a 64-bit value.  So
we reduce it modulo the ring size.

Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
(v2) use buf_mask instead of computing on the fly

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c