diff options
author | 2023-10-18 10:15:06 +0800 | |
---|---|---|
committer | 2023-10-26 18:41:22 -0400 | |
commit | 9ee819285c2c13fb9283c4cf8b1b9b69fbba986f (patch) | |
tree | 54cb18754fd01a96fd213600e08d881e12441e65 /drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | |
parent | drm/amdkfd: Address 'remap_list' not described in 'svm_range_add' (diff) | |
download | linux-9ee819285c2c13fb9283c4cf8b1b9b69fbba986f.tar.gz linux-9ee819285c2c13fb9283c4cf8b1b9b69fbba986f.tar.bz2 linux-9ee819285c2c13fb9283c4cf8b1b9b69fbba986f.zip |
drm/amdgpu remove restriction of sriov max_pfn on Vega10
Remove restriction of sriov max_pfn so that TBA and TMA can move to high
47 bits address.
Regression test: change range alloc flag of libdrm as
AMDGPU_VA_RANGE_HIGH and there is no flr occur when testing amdgpu_test
of drm.
Signed-off-by: Lin.Cao <lincao12@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c index 5fed01e34928..fee3141bb607 100644 --- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c @@ -2018,11 +2018,8 @@ static int gmc_v9_0_sw_init(void *handle) * vm size is 256TB (48bit), maximum size of Vega10, * block size 512 (9bit) */ - /* sriov restrict max_pfn below AMDGPU_GMC_HOLE */ - if (amdgpu_sriov_vf(adev)) - amdgpu_vm_adjust_size(adev, 256 * 1024, 9, 3, 47); - else - amdgpu_vm_adjust_size(adev, 256 * 1024, 9, 3, 48); + + amdgpu_vm_adjust_size(adev, 256 * 1024, 9, 3, 48); if (amdgpu_ip_version(adev, GC_HWIP, 0) == IP_VERSION(9, 4, 2)) adev->gmc.translate_further = adev->vm_manager.num_level > 1; break; |