drm/amdgpu: add MMHUB 3.3.1 support
authorYifan Zhang <yifan1.zhang@amd.com>
Thu, 4 Jan 2024 02:39:48 +0000 (10:39 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2024 19:50:46 +0000 (14:50 -0500)
This patch to add MMHUB 3.3.1 support.

v2: squash in fault info fix (Alex)

Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c
drivers/gpu/drm/amd/amdgpu/mmhub_v3_3.c

index 6c68135..998daa7 100644 (file)
@@ -571,6 +571,7 @@ static void gmc_v11_0_set_mmhub_funcs(struct amdgpu_device *adev)
                adev->mmhub.funcs = &mmhub_v3_0_2_funcs;
                break;
        case IP_VERSION(3, 3, 0):
+       case IP_VERSION(3, 3, 1):
                adev->mmhub.funcs = &mmhub_v3_3_funcs;
                break;
        default:
index dc4812e..b396196 100644 (file)
@@ -98,6 +98,7 @@ mmhub_v3_3_print_l2_protection_fault_status(struct amdgpu_device *adev,
 
        switch (amdgpu_ip_version(adev, MMHUB_HWIP, 0)) {
        case IP_VERSION(3, 3, 0):
+       case IP_VERSION(3, 3, 1):
                mmhub_cid = mmhub_client_ids_v3_3[cid][rw];
                break;
        default: