drm/amdgpu: Put MODE register in wave debug info
Subsystems (2)
PATCH 1/1 drm/amdgpu: Put MODE register in wave debug info
Add the MODE register into the per-wave debug information. This register holds state such as FP rounding and denorm modes, which exceptions are enabled, and active clamping modes.
--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 1 + drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c | 1 + drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c | 1 + drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 1 + drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 1 + 5 files changed, 5 insertions(+)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +1 -0
@@ -4517,6 +4517,7 @@ static void gfx_v10_0_read_wave_data(struct amdgpu_device *adev, uint32_t simd, dst[(*no_fields)++] =wave_read_ind (adev, wave, ixSQ_WAVE_IB_STS2); dst[(*no_fields)++] =wave_read_ind (adev, wave, ixSQ_WAVE_IB_DBG1); dst[(*no_fields)++] =wave_read_ind (adev, wave, ixSQ_WAVE_M0); + dst[(*no_fields)++] =wave_read_ind (adev, wave, ixSQ_WAVE_MODE); } static void gfx_v10_0_read_wave_sgprs(struct amdgpu_device *adev, uint32_t simd,
drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c +1 -0
@@ -3027,6 +3027,7 @@ static void gfx_v6_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); + dst[(*no_fields)++] =wave_read_ind (adev, simd, wave, ixSQ_WAVE_MODE); } static void gfx_v6_0_read_wave_sgprs(struct amdgpu_device *adev, uint32_t simd,
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c +1 -0
@@ -4198,6 +4198,7 @@ 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_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); + dst[(*no_fields)++] =wave_read_ind (adev, simd, wave, ixSQ_WAVE_MODE); } static void gfx_v7_0_read_wave_sgprs(struct amdgpu_device *adev, uint32_t simd,
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c +1 -0
@@ -5279,6 +5279,7 @@ 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); + dst[(*no_fields)++] =wave_read_ind (adev, simd, wave, ixSQ_WAVE_MODE); } static void gfx_v8_0_read_wave_sgprs(struct amdgpu_device *adev, uint32_t simd,
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +1 -0
@@ -2080,6 +2080,7 @@ static void gfx_v9_0_read_wave_data(struct amdgpu_device *adev, uint32_t simd, u dst[(*no_fields)++] =wave_read_ind (adev, simd, wave, ixSQ_WAVE_IB_STS); 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); + dst[(*no_fields)++] =wave_read_ind (adev, simd, wave, ixSQ_WAVE_MODE); } static void gfx_v9_0_read_wave_sgprs(struct amdgpu_device *adev, uint32_t simd,
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
[Public]
As far as I know, umr is the only user of this and it shouldn't cause any problems there.
________________________________
From: amd-gfx <[email protected]> on behalf of Joseph Greathouse <[email protected]>
Sent: Tuesday, June 29, 2021 11:47 PM
To: [email protected] <[email protected]>
Cc: StDenis, Tom <[email protected]>; Greathouse, Joseph <[email protected]>
Subject: [PATCH] drm/amdgpu: Put MODE register in wave debug info
Add the MODE register into the per-wave debug information. This register holds state such as FP rounding and denorm modes, which exceptions are enabled, and active clamping modes.
--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 1 + drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c | 1 + drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c | 1 + drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 1 + drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 1 + 5 files changed, 5 insertions(+)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +1 -0
@@ -4517,6 +4517,7 @@ static void gfx_v10_0_read_wave_data(struct amdgpu_device *adev, uint32_t simd, dst[(*no_fields)++] =wave_read_ind (adev, wave, ixSQ_WAVE_IB_STS2); dst[(*no_fields)++] =wave_read_ind (adev, wave, ixSQ_WAVE_IB_DBG1); dst[(*no_fields)++] =wave_read_ind (adev, wave, ixSQ_WAVE_M0); + dst[(*no_fields)++] =wave_read_ind (adev, wave, ixSQ_WAVE_MODE); } static void gfx_v10_0_read_wave_sgprs(struct amdgpu_device *adev, uint32_t simd,
drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c +1 -0
@@ -3027,6 +3027,7 @@ static void gfx_v6_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); + dst[(*no_fields)++] =wave_read_ind (adev, simd, wave, ixSQ_WAVE_MODE); } static void gfx_v6_0_read_wave_sgprs(struct amdgpu_device *adev, uint32_t simd,
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c +1 -0
@@ -4198,6 +4198,7 @@ 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_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); + dst[(*no_fields)++] =wave_read_ind (adev, simd, wave, ixSQ_WAVE_MODE); } static void gfx_v7_0_read_wave_sgprs(struct amdgpu_device *adev, uint32_t simd,
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c +1 -0
@@ -5279,6 +5279,7 @@ 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); + dst[(*no_fields)++] =wave_read_ind (adev, simd, wave, ixSQ_WAVE_MODE); } static void gfx_v8_0_read_wave_sgprs(struct amdgpu_device *adev, uint32_t simd,
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +1 -0
@@ -2080,6 +2080,7 @@ static void gfx_v9_0_read_wave_data(struct amdgpu_device *adev, uint32_t simd, u dst[(*no_fields)++] =wave_read_ind (adev, simd, wave, ixSQ_WAVE_IB_STS); 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); + dst[(*no_fields)++] =wave_read_ind (adev, simd, wave, ixSQ_WAVE_MODE); } static void gfx_v9_0_read_wave_sgprs(struct amdgpu_device *adev, uint32_t simd,
--
2.20.1
_______________________________________________
amd-gfx mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&data=04%7C01%7Calexander.deucher%40amd.com%7C759ce25bce8547f9527008d93b79c854%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637606216512835302%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=hE2DN4im0BGjDhOCb86o7DBKpNZx%2Bf3T51GrSe5YNWY%3D&reserved=0
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx