]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdgpu: add support for MMHUB IP version 3.3.2
authorTim Huang <tim.huang@amd.com>
Fri, 20 Dec 2024 09:35:21 +0000 (17:35 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Feb 2025 02:02:55 +0000 (21:02 -0500)
This initializes MMHUB IP version 3.3.2.

Signed-off-by: Tim Huang <tim.huang@amd.com>
Reviewed-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 5047b80ab60c2faffa72d312869a9678f9b55ddb..e48b0439f6df1baaa71fdbd31231e89f3c6aa72b 100644 (file)
@@ -579,6 +579,7 @@ static void gmc_v11_0_set_mmhub_funcs(struct amdgpu_device *adev)
                break;
        case IP_VERSION(3, 3, 0):
        case IP_VERSION(3, 3, 1):
+       case IP_VERSION(3, 3, 2):
                adev->mmhub.funcs = &mmhub_v3_3_funcs;
                break;
        default:
index b4ce3375d3fd7f0af2aeef3ec858aeae5ddc470c..bc3d6c2fc87a4259003d02b93faeaeb74da9ed56 100644 (file)
@@ -103,6 +103,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):
+       case IP_VERSION(3, 3, 2):
                mmhub_cid = cid < ARRAY_SIZE(mmhub_client_ids_v3_3) ?
                            mmhub_client_ids_v3_3[cid][rw] :
                            cid == 0x140 ? "UMSCH" : NULL;