drm/amd/powerplay: add smu if version for navi12
authorXiaojie Yuan <xiaojie.yuan@amd.com>
Wed, 14 Aug 2019 07:28:02 +0000 (15:28 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 9 Mar 2020 17:51:08 +0000 (13:51 -0400)
Fix version for navi12.

Signed-off-by: Xiaojie Yuan <xiaojie.yuan@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/inc/smu_v11_0.h
drivers/gpu/drm/amd/powerplay/smu_v11_0.c

index 3dc25a14ccc35872b2dfa0bdb7b16736c6cbcdde..1c88219fe403267ff2e5b89aca06f1ecf4bf28af 100644 (file)
@@ -29,6 +29,7 @@
 #define SMU11_DRIVER_IF_VERSION_VG20 0x13
 #define SMU11_DRIVER_IF_VERSION_ARCT 0x12
 #define SMU11_DRIVER_IF_VERSION_NV10 0x35
+#define SMU11_DRIVER_IF_VERSION_NV12 0x33
 #define SMU11_DRIVER_IF_VERSION_NV14 0x36
 
 /* MP Apertures */
index b12d9ec10639058385d71bf2f60ae31b3d493176..3a5d00573d2c8bed94d54e3b90e2fac07df33172 100644 (file)
@@ -275,6 +275,9 @@ int smu_v11_0_check_fw_version(struct smu_context *smu)
        case CHIP_NAVI10:
                smu->smc_if_version = SMU11_DRIVER_IF_VERSION_NV10;
                break;
+       case CHIP_NAVI12:
+               smu->smc_if_version = SMU11_DRIVER_IF_VERSION_NV12;
+               break;
        case CHIP_NAVI14:
                smu->smc_if_version = SMU11_DRIVER_IF_VERSION_NV14;
                break;