Commit 97437f47 authored by Prike Liang's avatar Prike Liang Committed by Alex Deucher

drm/amdgpu/gmc10: add support for GC 10.3.7

Set gfxhub function and configure VM for GC block.
Signed-off-by: default avatarPrike Liang <Prike.Liang@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 35c27d95
...@@ -1219,6 +1219,7 @@ static int amdgpu_discovery_set_gmc_ip_blocks(struct amdgpu_device *adev) ...@@ -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, 3):
case IP_VERSION(10, 3, 4): case IP_VERSION(10, 3, 4):
case IP_VERSION(10, 3, 5): case IP_VERSION(10, 3, 5):
case IP_VERSION(10, 3, 7):
amdgpu_device_ip_block_add(adev, &gmc_v10_0_ip_block); amdgpu_device_ip_block_add(adev, &gmc_v10_0_ip_block);
break; break;
default: default:
......
...@@ -714,6 +714,7 @@ static void gmc_v10_0_set_gfxhub_funcs(struct amdgpu_device *adev) ...@@ -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, 4):
case IP_VERSION(10, 3, 5): case IP_VERSION(10, 3, 5):
case IP_VERSION(10, 3, 3): case IP_VERSION(10, 3, 3):
case IP_VERSION(10, 3, 7):
adev->gfxhub.funcs = &gfxhub_v2_1_funcs; adev->gfxhub.funcs = &gfxhub_v2_1_funcs;
break; break;
default: default:
...@@ -894,6 +895,7 @@ static int gmc_v10_0_sw_init(void *handle) ...@@ -894,6 +895,7 @@ static int gmc_v10_0_sw_init(void *handle)
case IP_VERSION(10, 3, 4): case IP_VERSION(10, 3, 4):
case IP_VERSION(10, 3, 5): case IP_VERSION(10, 3, 5):
case IP_VERSION(10, 3, 3): case IP_VERSION(10, 3, 3):
case IP_VERSION(10, 3, 7):
adev->num_vmhubs = 2; adev->num_vmhubs = 2;
/* /*
* To fulfill 4-level page support, * To fulfill 4-level page support,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment