]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
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 6c68135cac9f021f522089345043474882b00d1c..998daa702b447fb4fcb5b5d6d0f28f310ae79dc5 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 dc4812ecc98d6040623919ccb87eff7495843efa..b3961968c10c4cf84ac76090431b2e9f712e586c 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: