drm/amdgpu/discovery: fix DCE_HWIP mapping error in hw_id_map array
authortiancyin <tianci.yin@amd.com>
Thu, 11 Jul 2019 06:09:50 +0000 (14:09 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 11 Jul 2019 19:37:24 +0000 (14:37 -0500)
ID of DCE_HWIP from vbios is DMU_HWID,
mismatch cause null pointer crash in navi10 modprobe.

Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
Reviewed-by: Xiaojie Yuan <xiaojie.yuan@amd.com>
Signed-off-by: tiancyin <tianci.yin@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c

index e049ae6a76fbdb8ad46eda79977e6eb29df95169..1481899f86c166ed25c0639c80031ec2b9fdea90 100644 (file)
@@ -123,7 +123,7 @@ static int hw_id_map[MAX_HWIP] = {
        [UVD_HWIP]      = UVD_HWID,
        [VCE_HWIP]      = VCE_HWID,
        [DF_HWIP]       = DF_HWID,
-       [DCE_HWIP]      = DCEAZ_HWID,
+       [DCE_HWIP]      = DMU_HWID,
        [OSSSYS_HWIP]   = OSSSYS_HWID,
        [SMUIO_HWIP]    = SMUIO_HWID,
        [PWR_HWIP]      = PWR_HWID,