drm/amdgpu: Enable SDMA utilization for Arcturus
Subsystems (2)
PATCH v2 1/1 drm/amdgpu: Enable SDMA utilization for Arcturus
SDMA utilization calculations are enabled/disabled by writing to SDMAx_PUB_DUMMY_REG2 register. Currently, enable this only for Arcturus.
Signed-off-by Mukul Joshi <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 9 +++++++++ 1 file changed, 9 insertions(+)
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +9 -0
@@ -1063,6 +1063,15 @@ static void sdma_v4_0_ctx_switch_enable(struct amdgpu_device *adev, bool enable)WREG32_SDMA (i, mmSDMA0_PHASE2_QUANTUM, phase_quantum); }WREG32_SDMA (i, mmSDMA0_CNTL, f32_cntl); + +/* +* Enable SDMA utilization. Its only supported on +* Arcturus for the moment and firmware version 14 +* and above. +*/ +if (adev->asic_type ==CHIP_ARCTURUS && + adev->sdma.instance[i].fw_version >=14 ) +WREG32_SDMA (i, mmSDMA0_PUB_DUMMY_REG2, enable); } }
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Am 2020-09-11 um 5:33 p.m. schrieb Mukul Joshi:
Quoted 5 lines
SDMA utilization calculations are enabled/disabled by writing to
SDMAx_PUB_DUMMY_REG2register. Currently, enable this only for Arcturus.Signed-off-by Mukul Joshi <[email protected]>
Reviewed-by Felix Kuehling <[email protected]>
Quoted 14 lines
--- drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 9 +++++++++ 1 file changed, 9 insertions(+)drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +2
-0@@ -1063,6 +1063,15 @@ static void sdma_v4_0_ctx_switch_enable(struct amdgpu_device *adev, bool enable)WREG32_SDMA (i, mmSDMA0_PHASE2_QUANTUM, phase_quantum); }WREG32_SDMA (i, mmSDMA0_CNTL, f32_cntl); + +/*
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c static void sdma_v4_0_ctx_switch_enable(struct amdgpu_device *adev, bool enable) · line 1077
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +7
-0+* Enable SDMA utilization. Its only supported on +* Arcturus for the moment and firmware version 14 +* and above. +*/ +if (adev->asic_type ==CHIP_ARCTURUS && + adev->sdma.instance[i].fw_version >=14 ) +WREG32_SDMA (i, mmSDMA0_PUB_DUMMY_REG2, enable); } }
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx