drm/amd/pm: Add smu_v13_0_12 support
Subsystems (3)
Alex Deucher
maintainerPATCH 1/3 drm/amd/pm: Add smu_v13_0_12 support
From: Asad Kamal <[email protected]>
Add support for new smu 13_0_12 version
v2: Updated subject & moved skipping p2s init to a separate patch
Signed-off-by Asad Kamal <[email protected]>
Reviewed-by Lijo Lazar <[email protected]>
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c +1 -0
@@ -727,6 +727,7 @@ static int smu_set_funcs(struct amdgpu_device *adev)break ;case IP_VERSION (13 ,0 ,6 ):case IP_VERSION (13 ,0 ,14 ): +case IP_VERSION (13 ,0 ,12 ):smu_v13_0_6_set_ppt_funcs (smu);/* Enable pp_od_clk_voltage node */ smu->od_enabled = true;
Signature · 1 line
2.47.0
Alex Deucher
maintainerPATCH 2/3 drm/amd/pm: Add mode2 support for SMU v13.0.12
From: Asad Kamal <[email protected]>
Add mode2 reset support for smu version 13.0.12
Signed-off-by Asad Kamal <[email protected]>
Reviewed-by Lijo Lazar <[email protected]>
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c | 2 ++ drivers/gpu/drm/amd/amdgpu/soc15.c | 1 + 2 files changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c +2 -0
@@ -183,6 +183,7 @@ int amdgpu_reset_init(struct amdgpu_device *adev)switch (amdgpu_ip_version (adev,MP1_HWIP ,0 )) {case IP_VERSION (13 ,0 ,2 ):case IP_VERSION (13 ,0 ,6 ): +case IP_VERSION (13 ,0 ,12 ):case IP_VERSION (13 ,0 ,14 ): ret =aldebaran_reset_init (adev);break ;
@@ -206,6 +207,7 @@ int amdgpu_reset_fini(struct amdgpu_device *adev)switch (amdgpu_ip_version (adev,MP1_HWIP ,0 )) {case IP_VERSION (13 ,0 ,2 ):case IP_VERSION (13 ,0 ,6 ): +case IP_VERSION (13 ,0 ,12 ):case IP_VERSION (13 ,0 ,14 ): ret =aldebaran_reset_fini (adev);break ;
drivers/gpu/drm/amd/amdgpu/soc15.c +1 -0
@@ -556,6 +556,7 @@ soc15_asic_reset_method(struct amdgpu_device *adev)break ;case IP_VERSION (13 ,0 ,6 ):case IP_VERSION (13 ,0 ,14 ): +case IP_VERSION (13 ,0 ,12 ):/* Use gpu_recovery param to target a reset method. * Enable triggering of GPU reset only if specified * by module parameter.
Signature · 1 line
2.47.0
Alex Deucher
maintainerPATCH 3/3 drm/amdgpu: Fetch refclock for SMU v13.0.12
In reply to Alex DeucherFrom: Asad Kamal <[email protected]>
Add support to fetch refclock value for SMU v13.0.12
Signed-off-by Asad Kamal <[email protected]>
Reviewed-by Lijo Lazar <[email protected]>
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/soc15.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/soc15.c +1 -0
@@ -327,6 +327,7 @@ static u32 soc15_get_xclk(struct amdgpu_device *adev)if (amdgpu_ip_version (adev,MP1_HWIP ,0 ) ==IP_VERSION (12 ,0 ,0 ) ||amdgpu_ip_version (adev,MP1_HWIP ,0 ) ==IP_VERSION (12 ,0 ,1 ) ||amdgpu_ip_version (adev,MP1_HWIP ,0 ) ==IP_VERSION (13 ,0 ,6 ) || +amdgpu_ip_version (adev,MP1_HWIP ,0 ) ==IP_VERSION (13 ,0 ,12 ) ||amdgpu_ip_version (adev,MP1_HWIP ,0 ) ==IP_VERSION (13 ,0 ,14 ))return 10000 ; if (amdgpu_ip_version(adev, MP1_HWIP, 0) == IP_VERSION(10, 0, 0) ||
Signature · 1 line
2.47.0