Skip to contentSkip to conversation

drm/amd/pm: add smu_v13_0_10 support

PATCH New Alex Deucher 1 participant 4 messages Aug 26, 2022

Subsystems (3)
lore
Share & tools
lore

Alex Deucher

author maintainer
#0 lore raw

PATCH 1/4 drm/amd/pm: add smu_v13_0_10 support

From: Yang Wang <[email protected]>

add smu_v13_0_10 support.

---
 drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c      | 1 +
 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c | 1 +
 2 files changed, 2 insertions(+)
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c +1 -0
index 55b7910b4385..13c5c7f1ecb9 100644
@@ -605,6 +605,7 @@ static int smu_set_funcs(struct amdgpu_device *adev)
 		smu->od_enabled = true;
 		break;
 	case IP_VERSION(13, 0, 0):
+	case IP_VERSION(13, 0, 10):
 		smu_v13_0_0_set_ppt_funcs(smu);
 		break;
 	case IP_VERSION(13, 0, 7):
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c +1 -0
index 3651f6f75068..fa3e5d1d1d2e 100644
@@ -59,6 +59,7 @@
 MODULE_FIRMWARE("amdgpu/aldebaran_smc.bin");
 MODULE_FIRMWARE("amdgpu/smu_13_0_0.bin");
 MODULE_FIRMWARE("amdgpu/smu_13_0_7.bin");
+MODULE_FIRMWARE("amdgpu/smu_13_0_10.bin");
 
 #define mmMP1_SMN_C2PMSG_66                                                                            0x0282
 #define mmMP1_SMN_C2PMSG_66_BASE_IDX                                                                   0
Signature · 1 line
2.37.1
author maintainer
#1 lore raw

PATCH 2/4 drm/amd/pm: add smu_v13_0_10 driver if version

From: Yang Wang <[email protected]>

add smu_v13_0_10 driver if version

---
 drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0.h   | 1 +
 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c | 3 +++
 2 files changed, 4 insertions(+)
drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0.h +1 -0
index ac308e72241a..950fb7c7d28d 100644
@@ -32,6 +32,7 @@
 #define SMU13_DRIVER_IF_VERSION_SMU_V13_0_5 0x04
 #define SMU13_DRIVER_IF_VERSION_SMU_V13_0_0 0x2E
 #define SMU13_DRIVER_IF_VERSION_SMU_V13_0_7 0x2C
+#define SMU13_DRIVER_IF_VERSION_SMU_V13_0_10 0x1D
 
 #define SMU13_MODE1_RESET_WAIT_TIME_IN_MS 500  //500ms
 
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c +3 -0
index fa3e5d1d1d2e..8e17bd5b52ab 100644
@@ -331,6 +331,9 @@ int smu_v13_0_check_fw_version(struct smu_context *smu)
 	case IP_VERSION(13, 0, 5):
 		smu->smc_driver_if_version = SMU13_DRIVER_IF_VERSION_SMU_V13_0_5;
 		break;
+	case IP_VERSION(13, 0, 10):
+		smu->smc_driver_if_version = SMU13_DRIVER_IF_VERSION_SMU_V13_0_10;
+		break;
 	default:
 		dev_err(adev->dev, "smu unsupported IP version: 0x%x.\n",
 			adev->ip_versions[MP1_HWIP][0]);
Signature · 1 line
2.37.1
author maintainer
#2 lore raw

PATCH 3/4 drm/amdgpu: added supported smu 13.0.10 sw pptable

In reply to Alex Deucher

From: John Clements <[email protected]>

added sw pptable id 6666 for smu 13.0.10

---
 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c +2 -0
index 8e17bd5b52ab..94a2826236eb 100644
@@ -500,6 +500,8 @@ int smu_v13_0_setup_pptable(struct smu_context *smu)
 				return -EINVAL;
 			}
 		}
+		else if (adev->ip_versions[MP1_HWIP][0] == IP_VERSION(13, 0, 10))
+			pptable_id = 6666;
 	}
 
 	/* force using vbios pptable in sriov mode */
Signature · 1 line
2.37.1
author maintainer
#3 lore raw

PATCH 4/4 drm/amdgpu: enable smu block for smu 13.0.10

In reply to Alex Deucher

From: John Clements <[email protected]>

Force to enable smu block for SMU v13.0.10

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +1 -0
index 533e40dea5c5..27b0f7facb8d 100644
@@ -1684,6 +1684,7 @@ static int amdgpu_discovery_set_smu_ip_blocks(struct amdgpu_device *adev)
 	case IP_VERSION(13, 0, 5):
 	case IP_VERSION(13, 0, 7):
 	case IP_VERSION(13, 0, 8):
+	case IP_VERSION(13, 0, 10):
 		amdgpu_device_ip_block_add(adev, &smu_v13_0_ip_block);
 		break;
 	default:
Signature · 1 line
2.37.1