]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdgpu/gmc10: add support for GC 10.3.7
authorPrike Liang <Prike.Liang@amd.com>
Tue, 26 Oct 2021 09:17:32 +0000 (17:17 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 16 Feb 2022 22:30:03 +0000 (17:30 -0500)
Set gfxhub function and configure VM for GC block.

Signed-off-by: Prike Liang <Prike.Liang@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
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c

index 156464672f3894631fec58f32e8dd2272f4e7d2c..5a7ee33a30eb8307b91063d59ffdc7306b2df7e3 100644 (file)
@@ -1219,6 +1219,7 @@ static int amdgpu_discovery_set_gmc_ip_blocks(struct amdgpu_device *adev)
        case IP_VERSION(10, 3, 3):
        case IP_VERSION(10, 3, 4):
        case IP_VERSION(10, 3, 5):
+       case IP_VERSION(10, 3, 7):
                amdgpu_device_ip_block_add(adev, &gmc_v10_0_ip_block);
                break;
        default:
index 2fc8761ede1a09d2305415b69f1f63928148ecfe..436374fc1f988ffa80e6da27658797842ea0b4e9 100644 (file)
@@ -714,6 +714,7 @@ static void gmc_v10_0_set_gfxhub_funcs(struct amdgpu_device *adev)
        case IP_VERSION(10, 3, 4):
        case IP_VERSION(10, 3, 5):
        case IP_VERSION(10, 3, 3):
+       case IP_VERSION(10, 3, 7):
                adev->gfxhub.funcs = &gfxhub_v2_1_funcs;
                break;
        default:
@@ -894,6 +895,7 @@ static int gmc_v10_0_sw_init(void *handle)
        case IP_VERSION(10, 3, 4):
        case IP_VERSION(10, 3, 5):
        case IP_VERSION(10, 3, 3):
+       case IP_VERSION(10, 3, 7):
                adev->num_vmhubs = 2;
                /*
                 * To fulfill 4-level page support,