Skip to contentSkip to conversation

drm/amdgpu/powerplay: update Arcturus smu version in new place

PATCH In review Le Ma 2 participants 2 messages Aug 9, 2019 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

Le Ma

author
#0 lore raw

PATCH 1/1 drm/amdgpu/powerplay: update Arcturus smu version in new place

Follow patch below:
drm/amd/powerplay: re-define smu interface version for smu v11

Change-Id Id78651209adc7a094f4c19ba965dcded37dd3ba7
---
 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c                 | 1 -
 drivers/gpu/drm/amd/powerplay/inc/smu11_driver_if_arcturus.h | 2 +-
 drivers/gpu/drm/amd/powerplay/inc/smu_v11_0.h                | 1 +
 drivers/gpu/drm/amd/powerplay/smu_v11_0.c                    | 3 +++
 4 files changed, 5 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/powerplay/arcturus_ppt.c +0 -1
index cff3777..e6fcbdf 100644
@@ -1918,6 +1918,5 @@ void arcturus_set_ppt_funcs(struct smu_context *smu)
 	struct smu_table_context *smu_table = &smu->smu_table;
 
 	smu->ppt_funcs = &arcturus_ppt_funcs;
-	smu->smc_if_version = SMU11_DRIVER_IF_VERSION;
 	smu_table->table_count = TABLE_COUNT;
 }
drivers/gpu/drm/amd/powerplay/inc/smu11_driver_if_arcturus.h +1 -1
index c7a7953..b99e98c 100644
@@ -27,7 +27,7 @@
 // *** IMPORTANT ***
 // SMU TEAM: Always increment the interface version if
 // any structure is changed in this file
-#define SMU11_DRIVER_IF_VERSION 0x08
+//#define SMU11_DRIVER_IF_VERSION 0x08
 
 #define PPTABLE_ARCTURUS_SMU_VERSION 4
 
drivers/gpu/drm/amd/powerplay/inc/smu_v11_0.h +1 -0
index ee8542d..acbb83d 100644
@@ -27,6 +27,7 @@
 
 #define SMU11_DRIVER_IF_VERSION_INV 0xFFFFFFFF
 #define SMU11_DRIVER_IF_VERSION_VG20 0x13
+#define SMU11_DRIVER_IF_VERSION_ARCT 0x08
 #define SMU11_DRIVER_IF_VERSION_NV10 0x33
 #define SMU11_DRIVER_IF_VERSION_NV14 0x34
 
drivers/gpu/drm/amd/powerplay/smu_v11_0.c +3 -0
index 91dfae1..3b8e58e 100644
@@ -275,6 +275,9 @@ static int smu_v11_0_check_fw_version(struct smu_context *smu)
 	case CHIP_VEGA20:
 		smu->smc_if_version = SMU11_DRIVER_IF_VERSION_VG20;
 		break;
+	case CHIP_ARCTURUS:
+		smu->smc_if_version = SMU11_DRIVER_IF_VERSION_ARCT;
+		break;
 	case CHIP_NAVI10:
 		smu->smc_if_version = SMU11_DRIVER_IF_VERSION_NV10;
 		break;
Signature · 6 lines
2.7.4

_______________________________________________
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): 1565350043-7146-1-git-send-email-le.ma-5C7GfCeVMHo@public.gmane.org

Reviewed-by
#2 lore raw

Best Regards,
Kevin
________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of Le Ma <[email protected]>
Sent: Friday, August 9, 2019 7:27 PM
To: [email protected] <[email protected]>
Cc: Ma, Le <[email protected]>
Subject: [PATCH 1/1] drm/amdgpu/powerplay: update Arcturus smu version in new place

Follow patch below:
drm/amd/powerplay: re-define smu interface version for smu v11

Change-Id Id78651209adc7a094f4c19ba965dcded37dd3ba7
---
 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c                 | 1 -
 drivers/gpu/drm/amd/powerplay/inc/smu11_driver_if_arcturus.h | 2 +-
 drivers/gpu/drm/amd/powerplay/inc/smu_v11_0.h                | 1 +
 drivers/gpu/drm/amd/powerplay/smu_v11_0.c                    | 3 +++
 4 files changed, 5 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/powerplay/arcturus_ppt.c +0 -1
index cff3777..e6fcbdf 100644
@@ -1918,6 +1918,5 @@ void arcturus_set_ppt_funcs(struct smu_context *smu)
         struct smu_table_context *smu_table = &smu->smu_table;
 
         smu->ppt_funcs = &arcturus_ppt_funcs;
-       smu->smc_if_version = SMU11_DRIVER_IF_VERSION;
         smu_table->table_count = TABLE_COUNT;
 }
drivers/gpu/drm/amd/powerplay/inc/smu11_driver_if_arcturus.h +1 -1
index c7a7953..b99e98c 100644
@@ -27,7 +27,7 @@
 // *** IMPORTANT ***
 // SMU TEAM: Always increment the interface version if
 // any structure is changed in this file
-#define SMU11_DRIVER_IF_VERSION 0x08
+//#define SMU11_DRIVER_IF_VERSION 0x08
 
 #define PPTABLE_ARCTURUS_SMU_VERSION 4
 
drivers/gpu/drm/amd/powerplay/inc/smu_v11_0.h +1 -0
index ee8542d..acbb83d 100644
@@ -27,6 +27,7 @@
 
 #define SMU11_DRIVER_IF_VERSION_INV 0xFFFFFFFF
 #define SMU11_DRIVER_IF_VERSION_VG20 0x13
+#define SMU11_DRIVER_IF_VERSION_ARCT 0x08
 #define SMU11_DRIVER_IF_VERSION_NV10 0x33
 #define SMU11_DRIVER_IF_VERSION_NV14 0x34
 
drivers/gpu/drm/amd/powerplay/smu_v11_0.c +3 -0
index 91dfae1..3b8e58e 100644
@@ -275,6 +275,9 @@ static int smu_v11_0_check_fw_version(struct smu_context *smu)
         case CHIP_VEGA20:
                 smu->smc_if_version = SMU11_DRIVER_IF_VERSION_VG20;
                 break;
+       case CHIP_ARCTURUS:
+               smu->smc_if_version = SMU11_DRIVER_IF_VERSION_ARCT;
+               break;
         case CHIP_NAVI10:
                 smu->smc_if_version = SMU11_DRIVER_IF_VERSION_NV10;
                 break;

--
2.7.4

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

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