mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-22 01:29:13 +07:00
drm/amd/powerplay: correct Arcturus OD support
OD is not supported on Arcturus. Thus the pp_od_clk_voltage sysfs interface is also not supported. Signed-off-by: Evan Quan <evan.quan@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Kenneth Feng <kenneth.feng@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
eebc7f4d7f
commit
875dc7c4ff
@ -714,6 +714,9 @@ static int smu_set_funcs(struct amdgpu_device *adev)
|
|||||||
{
|
{
|
||||||
struct smu_context *smu = &adev->smu;
|
struct smu_context *smu = &adev->smu;
|
||||||
|
|
||||||
|
if (adev->pm.pp_feature & PP_OVERDRIVE_MASK)
|
||||||
|
smu->od_enabled = true;
|
||||||
|
|
||||||
switch (adev->asic_type) {
|
switch (adev->asic_type) {
|
||||||
case CHIP_VEGA20:
|
case CHIP_VEGA20:
|
||||||
vega20_set_ppt_funcs(smu);
|
vega20_set_ppt_funcs(smu);
|
||||||
@ -725,6 +728,8 @@ static int smu_set_funcs(struct amdgpu_device *adev)
|
|||||||
break;
|
break;
|
||||||
case CHIP_ARCTURUS:
|
case CHIP_ARCTURUS:
|
||||||
arcturus_set_ppt_funcs(smu);
|
arcturus_set_ppt_funcs(smu);
|
||||||
|
/* OD is not supported on Arcturus */
|
||||||
|
smu->od_enabled =false;
|
||||||
break;
|
break;
|
||||||
case CHIP_RENOIR:
|
case CHIP_RENOIR:
|
||||||
renoir_set_ppt_funcs(smu);
|
renoir_set_ppt_funcs(smu);
|
||||||
@ -733,9 +738,6 @@ static int smu_set_funcs(struct amdgpu_device *adev)
|
|||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (adev->pm.pp_feature & PP_OVERDRIVE_MASK)
|
|
||||||
smu->od_enabled = true;
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user