Skip to contentSkip to conversation

accel/amdxdna: Fix major version check on NPU1 platform

PATCH In review Lizhi Hou 2 participants 3 messages Mar 4

Subsystems (2)
lore
Share & tools
lore

Lizhi Hou

author maintainer
#0 lore raw

PATCH 1/1 accel/amdxdna: Fix major version check on NPU1 platform

Add the missing major number in npu1_fw_feature_table.

Without the major version specified, the firmware feature check fails, preventing new firmware commands from being enabled on the NPU1 platform.

With the correct major version populated, the driver properly detects firmware support and enables the new command.

Fixes f1eac46fe5f7 ("accel/amdxdna: Update firmware version check for latest firmware")
---
 drivers/accel/amdxdna/npu1_regs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/accel/amdxdna/npu1_regs.c +1 -1
index 6e3d3ca69c04..1320e924e548 100644
@@ -67,7 +67,7 @@ const struct dpm_clk_freq npu1_dpm_clk_table[] = {
 
 static const struct aie2_fw_feature_tbl npu1_fw_feature_table[] = {
 	{ .major = 5, .min_minor = 7 },
-	{ .features = BIT_U64(AIE2_NPU_COMMAND), .min_minor = 8 },
+	{ .features = BIT_U64(AIE2_NPU_COMMAND), .major = 5, .min_minor = 8 },
 	{ 0 }
 };
 
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Lizhi Hou

Add the missing major number in npu1_fw_feature_table.

Without the major version specified, the firmware feature check fails, preventing new firmware commands from being enabled on the NPU1 platform.

With the correct major version populated, the driver properly detects firmware support and enables the new command.

Fixes f1eac46fe5f7 ("accel/amdxdna: Update firmware version check for latest firmware")
Quoted 17 lines
---
  drivers/accel/amdxdna/npu1_regs.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/accel/amdxdna/npu1_regs.c +1 -1
index 6e3d3ca69c04..1320e924e548 100644
@@ -67,7 +67,7 @@ const struct dpm_clk_freq npu1_dpm_clk_table[] = {
 
  static const struct aie2_fw_feature_tbl npu1_fw_feature_table[] = {
  	{ .major = 5, .min_minor = 7 },
-	{ .features = BIT_U64(AIE2_NPU_COMMAND), .min_minor = 8 },
+	{ .features = BIT_U64(AIE2_NPU_COMMAND), .major = 5, .min_minor = 8 },
  	{ 0 }
  };
 
author maintainer Applied
#2 lore raw

Applied to drm-misc-fixes

Quoted 30 lines · Mario Limonciello
Quoted 11 lines · Lizhi Hou

Add the missing major number in npu1_fw_feature_table.

Without the major version specified, the firmware feature check fails, preventing new firmware commands from being enabled on the NPU1 platform.

With the correct major version populated, the driver properly detects firmware support and enables the new command.

Fixes f1eac46fe5f7 ("accel/amdxdna: Update firmware version check for latest firmware")
Quoted 16 lines

---
  drivers/accel/amdxdna/npu1_regs.c | 2 +-

  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/accel/amdxdna/npu1_regs.c +1 -1
index 6e3d3ca69c04..1320e924e548 100644
@@ -67,7 +67,7 @@ const struct dpm_clk_freq npu1_dpm_clk_table[] = {
     static const struct aie2_fw_feature_tbl npu1_fw_feature_table[] = {
       { .major = 5, .min_minor = 7 },
-    { .features = BIT_U64(AIE2_NPU_COMMAND), .min_minor = 8 },
+    { .features = BIT_U64(AIE2_NPU_COMMAND), .major = 5, .min_minor 
 = 8 },
       { 0 }
   };