Skip to contentSkip to conversation

drm/amd/powerplay: add smu if version for navi12

PATCH In review Yuan, Xiaojie 2 participants 2 messages Aug 14, 2019 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amd/powerplay: add smu if version for navi12

---
 drivers/gpu/drm/amd/powerplay/inc/smu_v11_0.h | 1 +
 drivers/gpu/drm/amd/powerplay/smu_v11_0.c     | 3 +++
 2 files changed, 4 insertions(+)
drivers/gpu/drm/amd/powerplay/inc/smu_v11_0.h +1 -0
index 97605e963c2b..eb04d06757d3 100644
@@ -28,6 +28,7 @@
 #define SMU11_DRIVER_IF_VERSION_INV 0xFFFFFFFF
 #define SMU11_DRIVER_IF_VERSION_VG20 0x13
 #define SMU11_DRIVER_IF_VERSION_NV10 0x33
+#define SMU11_DRIVER_IF_VERSION_NV12 0x33
 #define SMU11_DRIVER_IF_VERSION_NV14 0x33
 
 /* MP Apertures */
drivers/gpu/drm/amd/powerplay/smu_v11_0.c +3 -0
index 91dfae1a2b16..1e766a8a8447 100644
@@ -278,6 +278,9 @@ static 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;
Signature · 6 lines
2.20.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): [email protected]

Reviewed-by Hawking Zhang
#2 lore raw

Regards,
Hawking
-----Original Message-----
From: Yuan, Xiaojie <[email protected]>
Sent: 2019年8月14日 19:30
To: [email protected]
Cc: Zhang, Hawking <[email protected]>; Xiao, Jack <[email protected]>; Yin, Tianci (Rico) <[email protected]>; Wang, Kevin(Yang) <[email protected]>; Yuan, Xiaojie <[email protected]>
Subject: [PATCH] drm/amd/powerplay: add smu if version for navi12

---
 drivers/gpu/drm/amd/powerplay/inc/smu_v11_0.h | 1 +
 drivers/gpu/drm/amd/powerplay/smu_v11_0.c     | 3 +++
 2 files changed, 4 insertions(+)
drivers/gpu/drm/amd/powerplay/inc/smu_v11_0.h +1 -0
index 97605e963c2b..eb04d06757d3 100644
@@ -28,6 +28,7 @@
 #define SMU11_DRIVER_IF_VERSION_INV 0xFFFFFFFF  #define SMU11_DRIVER_IF_VERSION_VG20 0x13  #define SMU11_DRIVER_IF_VERSION_NV10 0x33
+#define SMU11_DRIVER_IF_VERSION_NV12 0x33
 #define SMU11_DRIVER_IF_VERSION_NV14 0x33
 
 /* MP Apertures */
drivers/gpu/drm/amd/powerplay/smu_v11_0.c +3 -0
index 91dfae1a2b16..1e766a8a8447 100644
@@ -278,6 +278,9 @@ static 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;

--
2.20.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx