@@ -1731,10 +1731,10 @@ static int default_attr_update(struct amdgpu_device *adev, struct amdgpu_device_
1731
1731
#define DEVICE_ATTR_IS (_name ) (!strcmp(attr_name, #_name))
1732
1732
1733
1733
if (DEVICE_ATTR_IS (pp_dpm_socclk )) {
1734
- if (asic_type <= CHIP_VEGA10 )
1734
+ if (asic_type < CHIP_VEGA10 )
1735
1735
attr -> states = ATTR_STATE_UNSUPPORTED ;
1736
1736
} else if (DEVICE_ATTR_IS (pp_dpm_dcefclk )) {
1737
- if (asic_type <= CHIP_VEGA10 || asic_type == CHIP_ARCTURUS )
1737
+ if (asic_type < CHIP_VEGA10 || asic_type == CHIP_ARCTURUS )
1738
1738
attr -> states = ATTR_STATE_UNSUPPORTED ;
1739
1739
} else if (DEVICE_ATTR_IS (pp_dpm_fclk )) {
1740
1740
if (asic_type < CHIP_VEGA20 )
@@ -1746,7 +1746,7 @@ static int default_attr_update(struct amdgpu_device *adev, struct amdgpu_device_
1746
1746
attr -> states = ATTR_STATE_UNSUPPORTED ;
1747
1747
if ((is_support_sw_smu (adev ) && adev -> smu .od_enabled ) ||
1748
1748
(!is_support_sw_smu (adev ) && hwmgr -> od_enabled ))
1749
- attr -> states = ATTR_STATE_UNSUPPORTED ;
1749
+ attr -> states = ATTR_STATE_SUPPORTED ;
1750
1750
} else if (DEVICE_ATTR_IS (mem_busy_percent )) {
1751
1751
if (adev -> flags & AMD_IS_APU || asic_type == CHIP_VEGA10 )
1752
1752
attr -> states = ATTR_STATE_UNSUPPORTED ;
@@ -1758,7 +1758,7 @@ static int default_attr_update(struct amdgpu_device *adev, struct amdgpu_device_
1758
1758
if (!adev -> unique_id )
1759
1759
attr -> states = ATTR_STATE_UNSUPPORTED ;
1760
1760
} else if (DEVICE_ATTR_IS (pp_features )) {
1761
- if (adev -> flags & AMD_IS_APU || asic_type <= CHIP_VEGA10 )
1761
+ if (adev -> flags & AMD_IS_APU || asic_type < CHIP_VEGA10 )
1762
1762
attr -> states = ATTR_STATE_UNSUPPORTED ;
1763
1763
}
1764
1764
0 commit comments