drm/amd/pm: add smu fw version check for ECC table support
Subsystems (3)
PATCH 1/1 drm/amd/pm: add smu fw version check for ECC table support
the smu firmware has been remove ECC TABLE support from 68.46.0.
Signed-off-by Yang Wang <[email protected]>
--- drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h | 2 ++ drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c | 8 +------- 2 files changed, 3 insertions(+), 7 deletions(-)
drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h +2 -0
@@ -79,6 +79,8 @@#define SMU_THROTTLER_PPM_BIT 56#define SMU_THROTTLER_FIT_BIT 57 +#define SMU_FW_VERSION (maj, min, rev) ((maj & 0xffff) << 16 | (min & 0xff) << 8 | (rev & 0xff)) +struct smu_hw_power_state {unsigned int magic; };
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c +1 -7
@@ -78,12 +78,6 @@#define smnPCIE_ESM_CTRL 0x111003D0 -/* -* SMU support ECCTABLE since version 68.42.0, -* use this to check ECCTALE feature whether support -*/ -#define SUPPORT_ECCTABLE_SMU_VERSION 0x00442a00 -static const struct smu_temperature_range smu13_thermal_policy[] = { {-273150 ,99000 ,99000 ,-273150 ,99000 ,99000 ,-273150 ,99000 ,99000 },
@@ -1780,7 +1774,7 @@ static int aldebaran_check_ecc_table_support(struct smu_context *smu) ret = -EOPNOTSUPP ; } -if (smu_version <SUPPORT_ECCTABLE_SMU_VERSION ) +if (smu_version <SMU_FW_VERSION (68 ,42 ,0 ) || smu_version >=SMU_FW_VERSION (68 ,46 ,0 )) ret = -EOPNOTSUPP ;return ret;
Signature · 1 line
2.25.1
Quoted 4 lines · Yang Wang
the smu firmware has been remove ECC TABLE support from 68.46.0.
Signed-off-by Yang Wang <[email protected]>
Reviewed-by Alex Deucher <[email protected]>
Quoted 47 lines
--- drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h | 2 ++ drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c | 8 +------- 2 files changed, 3 insertions(+), 7 deletions(-)drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h +2
-0@@ -79,6 +79,8 @@#define SMU_THROTTLER_PPM_BIT 56#define SMU_THROTTLER_FIT_BIT 57 +#define SMU_FW_VERSION (maj, min, rev) ((maj & 0xffff) << 16 | (min & 0xff) << 8 | (rev & 0xff)) +struct smu_hw_power_state {unsigned int magic; };drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c +1
-8@@ -78,12 +78,6 @@#define smnPCIE_ESM_CTRL 0x111003D0 -/* -* SMU support ECCTABLE since version 68.42.0, -* use this to check ECCTALE feature whether support -*/ -#define SUPPORT_ECCTABLE_SMU_VERSION 0x00442a00 -static const struct smu_temperature_range smu13_thermal_policy[] = { {-273150 ,99000 ,99000 ,-273150 ,99000 ,99000 ,-273150 ,99000 ,99000 },@@ -1780,7 +1774,7 @@ static int aldebaran_check_ecc_table_support(struct smu_context *smu) ret = -EOPNOTSUPP ; } -if (smu_version <SUPPORT_ECCTABLE_SMU_VERSION ) +if (smu_version <SMU_FW_VERSION (68 ,42 ,0 ) || smu_version >=SMU_FW_VERSION (68 ,46 ,0 )) ret = -EOPNOTSUPP ;return ret; --2.25.1