drm/amd/amdgpu: Put in rest of wave fields
Subsystems (2)
PATCH 1/1 drm/amd/amdgpu: Put in rest of wave fields
Add the rest of the basic SQ WAVE fields to
finish off the implementation. Eventually,
a separate interface will be needed for GPRs.
Signed-off-by Tom St Denis <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c | 6 ++++++ drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 6 ++++++ 2 files changed, 12 insertions(+)
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c +6 -0
@@ -4373,6 +4373,12 @@ static void gfx_v7_0_read_wave_data(struct amdgpu_device *adev, uint32_t simd, u dst[(*no_fields)++] =wave_read_ind (adev, simd, wave, ixSQ_WAVE_LDS_ALLOC); dst[(*no_fields)++] =wave_read_ind (adev, simd, wave, ixSQ_WAVE_TRAPSTS); dst[(*no_fields)++] =wave_read_ind (adev, simd, wave, ixSQ_WAVE_IB_STS); + dst[(*no_fields)++] =wave_read_ind (adev, simd, wave, ixSQ_WAVE_TBA_LO); + dst[(*no_fields)++] =wave_read_ind (adev, simd, wave, ixSQ_WAVE_TBA_HI); + dst[(*no_fields)++] =wave_read_ind (adev, simd, wave, ixSQ_WAVE_TMA_LO); + 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); }static const struct amdgpu_gfx_funcs gfx_v7_0_gfx_funcs = {
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c +6 -0
@@ -5474,6 +5474,12 @@ 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_LDS_ALLOC); dst[(*no_fields)++] =wave_read_ind (adev, simd, wave, ixSQ_WAVE_TRAPSTS); dst[(*no_fields)++] =wave_read_ind (adev, simd, wave, ixSQ_WAVE_IB_STS); + dst[(*no_fields)++] =wave_read_ind (adev, simd, wave, ixSQ_WAVE_TBA_LO); + dst[(*no_fields)++] =wave_read_ind (adev, simd, wave, ixSQ_WAVE_TBA_HI); + dst[(*no_fields)++] =wave_read_ind (adev, simd, wave, ixSQ_WAVE_TMA_LO); + 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); }
Signature · 6 lines
2.10.0 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): [email protected]
Alex Deucher
Reviewed-byQuoted 5 lines · Tom St Denis
Add the rest of the basic SQ WAVE fields to
finish off the implementation. Eventually,
a separate interface will be needed for GPRs.Signed-off-by Tom St Denis <[email protected]>
Reviewed-by Alex Deucher <[email protected]>
Quoted 42 lines
--- drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c | 6 ++++++ drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 6 ++++++ 2 files changed, 12 insertions(+)drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c +6
-0@@ -4373,6 +4373,12 @@ static void gfx_v7_0_read_wave_data(struct amdgpu_device *adev, uint32_t simd, u dst[(*no_fields)++] =wave_read_ind (adev, simd, wave, ixSQ_WAVE_LDS_ALLOC); dst[(*no_fields)++] =wave_read_ind (adev, simd, wave, ixSQ_WAVE_TRAPSTS); dst[(*no_fields)++] =wave_read_ind (adev, simd, wave, ixSQ_WAVE_IB_STS); + dst[(*no_fields)++] =wave_read_ind (adev, simd, wave, ixSQ_WAVE_TBA_LO); + dst[(*no_fields)++] =wave_read_ind (adev, simd, wave, ixSQ_WAVE_TBA_HI); + dst[(*no_fields)++] =wave_read_ind (adev, simd, wave, ixSQ_WAVE_TMA_LO); + 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); }static const struct amdgpu_gfx_funcs gfx_v7_0_gfx_funcs = {drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c +6
-1@@ -5474,6 +5474,12 @@ 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_LDS_ALLOC); dst[(*no_fields)++] =wave_read_ind (adev, simd, wave, ixSQ_WAVE_TRAPSTS); dst[(*no_fields)++] =wave_read_ind (adev, simd, wave, ixSQ_WAVE_IB_STS); + dst[(*no_fields)++] =wave_read_ind (adev, simd, wave, ixSQ_WAVE_TBA_LO); + dst[(*no_fields)++] =wave_read_ind (adev, simd, wave, ixSQ_WAVE_TBA_HI); + dst[(*no_fields)++] =wave_read_ind (adev, simd, wave, ixSQ_WAVE_TMA_LO); + 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); } --2.10.0
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx