drm/amdgpu: Enable SDMA LS for Vangogh
Subsystems (2)
PATCH 1/1 drm/amdgpu: Enable SDMA LS for Vangogh
Add flags AMD_CG_SUPPORT_SDMA_LS for Vangogh.
Start to open sdma ls from firmware version 70.
Signed-off-by Jinzhou Su <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/nv.c | 1 + drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c | 4 ++++ 2 files changed, 5 insertions(+)
drivers/gpu/drm/amd/amdgpu/nv.c +1 -0
@@ -1121,6 +1121,7 @@ static int nv_common_early_init(void *handle)AMD_CG_SUPPORT_GFX_FGCG |AMD_CG_SUPPORT_VCN_MGCG |AMD_CG_SUPPORT_SDMA_MGCG | +AMD_CG_SUPPORT_SDMA_LS |AMD_CG_SUPPORT_JPEG_MGCG ; adev->pg_flags =AMD_PG_SUPPORT_GFX_PG | AMD_PG_SUPPORT_VCN |
drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c +4 -0
@@ -1593,6 +1593,10 @@ static void sdma_v5_2_update_medium_grain_light_sleep(struct amdgpu_device *adevint i;for (i =0 ; i < adev->sdma.num_instances; i++) { + +if (adev->sdma.instance[i].fw_version <70 && adev->asic_type ==CHIP_VANGOGH ) + adev->cg_flags &= ~AMD_CG_SUPPORT_SDMA_LS ; +if (enable && (adev->cg_flags &AMD_CG_SUPPORT_SDMA_LS )) {/* Enable sdma mem light sleep */ def = data =RREG32 (sdma_v5_2_get_reg_offset (adev, i, mmSDMA0_POWER_CNTL));
Signature · 6 lines
2.27.0 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quoted 4 lines · Jinzhou (Joe)
Add flags
AMD_CG_SUPPORT_SDMA_LSfor Vangogh.
Start to open sdma ls from firmware version 70.Signed-off-by Jinzhou Su <[email protected]>
Reviewed-by Huang Rui <[email protected]>
Quoted 35 lines
--- drivers/gpu/drm/amd/amdgpu/nv.c | 1 + drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c | 4 ++++ 2 files changed, 5 insertions(+)drivers/gpu/drm/amd/amdgpu/nv.c +1
-0@@ -1121,6 +1121,7 @@ static int nv_common_early_init(void *handle)AMD_CG_SUPPORT_GFX_FGCG |AMD_CG_SUPPORT_VCN_MGCG |AMD_CG_SUPPORT_SDMA_MGCG | +AMD_CG_SUPPORT_SDMA_LS |AMD_CG_SUPPORT_JPEG_MGCG ; adev->pg_flags =AMD_PG_SUPPORT_GFX_PG | AMD_PG_SUPPORT_VCN |drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c +4
-0@@ -1593,6 +1593,10 @@ static void sdma_v5_2_update_medium_grain_light_sleep(struct amdgpu_device *adevint i;for (i =0 ; i < adev->sdma.num_instances; i++) { + +if (adev->sdma.instance[i].fw_version <70 && adev->asic_type ==CHIP_VANGOGH ) + adev->cg_flags &= ~AMD_CG_SUPPORT_SDMA_LS ; +if (enable && (adev->cg_flags &AMD_CG_SUPPORT_SDMA_LS )) {/* Enable sdma mem light sleep */ def = data =RREG32 (sdma_v5_2_get_reg_offset (adev, i, mmSDMA0_POWER_CNTL));Signature · 1 line
2.27.0
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx