drm/amd/amdgpu: Add SQ_WAVE_TTMP registers for gfx8 debugfs
Subsystems (2)
PATCH 1/1 drm/amd/amdgpu: Add SQ_WAVE_TTMP registers for gfx8 debugfs
Signed-off-by Tom St Denis <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c +6 -2
@@ -5411,8 +5411,10 @@ static void wave_read_regs(struct amdgpu_device *adev, uint32_t simd,static void gfx_v8_0_read_wave_data (struct amdgpu_device *adev,uint32_t simd,uint32_t wave,uint32_t *dst,int *no_fields) { -/* type 0 wave data */ - dst[(*no_fields)++] =0 ; +unsigned x; +/* type 0 wave data was the original gfx8 data */ +/* type 4 is the new gfx8 data with TTMP registers */ + dst[(*no_fields)++] =4 ; dst[(*no_fields)++] =wave_read_ind (adev, simd, wave, ixSQ_WAVE_STATUS); dst[(*no_fields)++] =wave_read_ind (adev, simd, wave, ixSQ_WAVE_PC_LO); dst[(*no_fields)++] =wave_read_ind (adev, simd, wave, ixSQ_WAVE_PC_HI);
@@ -5431,6 +5433,8 @@ static void gfx_v8_0_read_wave_data(struct amdgpu_device *adev, uint32_t simd, u dst[(*no_fields)++] =wave_read_ind (adev, simd, wave, ixSQ_WAVE_TMA_HI); dst[(*no_fields)++] =wave_read_ind (adev, simd, wave, ixSQ_WAVE_IB_DBG0); dst[(*no_fields)++] =wave_read_ind (adev, simd, wave, ixSQ_WAVE_M0); +for (x =0 ; x <12 ; x++) + dst[(*no_fields)++] =wave_read_ind (adev, simd, wave, ixSQ_WAVE_TTMP0 + x); } static void gfx_v8_0_read_wave_sgprs(struct amdgpu_device *adev, uint32_t simd,
Signature · 6 lines
2.14.3 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx