Skip to contentSkip to conversation

drm/amdgpu/discovery: parse hw_id_name for SDMA instance 2 and 3

PATCH In review Guchun Chen 2 participants 2 messages Oct 18, 2021

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

PATCH 1/1 drm/amdgpu/discovery: parse hw_id_name for SDMA instance 2 and 3

Otherwise, hw_id_name string is NULL for SDMA 2 and 3 when dumping ip version from VBIOS.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +2 -0
index 9645b95b9c42..dfb92f229748 100644
@@ -108,6 +108,8 @@ static const char *hw_id_names[HW_ID_MAX] = {
 	[HDP_HWID]		= "HDP",
 	[SDMA0_HWID]		= "SDMA0",
 	[SDMA1_HWID]		= "SDMA1",
+	[SDMA2_HWID]		= "SDMA2",
+	[SDMA3_HWID]		= "SDMA3",
 	[ISP_HWID]		= "ISP",
 	[DBGU_IO_HWID]		= "DBGU_IO",
 	[DF_HWID]		= "DF",
Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Guchun Chen

Otherwise, hw_id_name string is NULL for SDMA 2 and 3 when dumping ip version from VBIOS.

Quoted 20 lines
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +2 -1
index 9645b95b9c42..dfb92f229748 100644
@@ -108,6 +108,8 @@ static const char *hw_id_names[HW_ID_MAX] = {
        [HDP_HWID]              = "HDP",
        [SDMA0_HWID]            = "SDMA0",
        [SDMA1_HWID]            = "SDMA1",
+       [SDMA2_HWID]            = "SDMA2",
+       [SDMA3_HWID]            = "SDMA3",
        [ISP_HWID]              = "ISP",
        [DBGU_IO_HWID]          = "DBGU_IO",
        [DF_HWID]               = "DF",
--

2.17.1