]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3e2e0541747bf03ae547b53347a60030e053987c
treec984d69c0a50d7747c2bec0d7d3fab667b9d9830
parentae8d7b5b8bf64c0ef58a798cf77dcd1275d53cec
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