Skip to contentSkip to conversation

drm/amd/swsmu: relocate the smu v14_0_0 driver if version define

PATCH New Li Ma 1 participant 1 message Dec 14, 2023

Subsystems (3)
lore
Share & tools
lore

Li Ma

author
#0 lore raw

PATCH 1/1 drm/amd/swsmu: relocate the smu v14_0_0 driver if version define

There is a repeated define of smu v14_0_0 driver if version, so delete one and relocate the other define.

---
 .../gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu14_driver_if_v14_0_0.h  | 2 +-
 drivers/gpu/drm/amd/pm/swsmu/inc/smu_v14_0.h                    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu14_driver_if_v14_0_0.h +1 -1
index 8f42771e1f0a..42bdb06d4e86 100644
@@ -27,7 +27,7 @@
 // *** IMPORTANT ***
 // SMU TEAM: Always increment the interface version if
 // any structure is changed in this file
-#define PMFW_DRIVER_IF_VERSION 7
+#define SMU14_DRIVER_IF_VERSION_SMU_V14_0_0 7
 
 typedef struct {
   int32_t value;
drivers/gpu/drm/amd/pm/swsmu/inc/smu_v14_0.h +1 -1
index a5b569976f19..bfb731a980cf 100644
@@ -24,10 +24,10 @@
 #define __SMU_V14_0_H__
 
 #include "amdgpu_smu.h"
+#include "smu14_driver_if_v14_0_0.h"
 
 #define SMU14_DRIVER_IF_VERSION_INV 0xFFFFFFFF
 #define SMU14_DRIVER_IF_VERSION_SMU_V14_0_2 0x1
-#define SMU14_DRIVER_IF_VERSION_SMU_V14_0_0 0x6
 
 #define FEATURE_MASK(feature) (1ULL << feature)
 
Signature · 1 line
2.25.1