diff options
| author | Christian König <[email protected]> | 2016-01-21 11:56:52 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2016-01-22 19:44:08 +0000 |
| commit | 41f2d9905646b1cd4be5852b273c06b6a6d23a80 (patch) | |
| tree | c248f24ddc4cdc9fa66ec685c3e563b158a9d82b /drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | |
| parent | drm/radeon: properly byte swap vce firmware setup (diff) | |
| download | kernel-41f2d9905646b1cd4be5852b273c06b6a6d23a80.tar.gz kernel-41f2d9905646b1cd4be5852b273c06b6a6d23a80.zip | |
drm/amdgpu: fix next_rptr handling for debugfs
That somehow got lost.
Signed-off-by: Christian König <[email protected]>
Reviewed-by: Chunming Zhou <[email protected]>
Acked-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c index 78e9b0f14661..d1f234dd2126 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c @@ -487,7 +487,7 @@ static int amdgpu_debugfs_ring_info(struct seq_file *m, void *data) seq_printf(m, "rptr: 0x%08x [%5d]\n", rptr, rptr); - rptr_next = ~0; + rptr_next = le32_to_cpu(*ring->next_rptr_cpu_addr); seq_printf(m, "driver's copy of the wptr: 0x%08x [%5d]\n", ring->wptr, ring->wptr); |
