]> git.itanic.dy.fi Git - linux-stable/commitdiff
drm/amdgpu/discovery: parse hw_id_name for SDMA instance 2 and 3
authorGuchun Chen <guchun.chen@amd.com>
Mon, 18 Oct 2021 14:26:01 +0000 (22:26 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Oct 2021 21:32:52 +0000 (17:32 -0400)
Otherwise, hw_id_name string is NULL for SDMA 2 and 3 when dumping
ip version from VBIOS.

Signed-off-by: Guchun Chen <guchun.chen@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c

index 9645b95b9c42b2a0d5a460c8274bd267e635ba4f..dfb92f229748a6f4edbf1b0ed560986bd3e8fea3 100644 (file)
@@ -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",