forked from Minki/linux
drm/amdgpu: use 2MB fragment size for GFX6,7 and 8
Use 2MB fragment size by default for older hardware generations as well. Signed-off-by: Christian König <christian.koenig@amd.com> Acked-by: John Bridgman <john.bridgman@amd.com> Reviewed-by: Roger He <Hongbo.He@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
fd4495e57c
commit
a8ffeac96d
@ -831,7 +831,7 @@ static int gmc_v6_0_sw_init(void *handle)
|
|||||||
if (r)
|
if (r)
|
||||||
return r;
|
return r;
|
||||||
|
|
||||||
amdgpu_vm_adjust_size(adev, 64, 4);
|
amdgpu_vm_adjust_size(adev, 64, 9);
|
||||||
adev->vm_manager.max_pfn = adev->vm_manager.vm_size << 18;
|
adev->vm_manager.max_pfn = adev->vm_manager.vm_size << 18;
|
||||||
|
|
||||||
adev->mc.mc_mask = 0xffffffffffULL;
|
adev->mc.mc_mask = 0xffffffffffULL;
|
||||||
|
@ -970,7 +970,7 @@ static int gmc_v7_0_sw_init(void *handle)
|
|||||||
* Currently set to 4GB ((1 << 20) 4k pages).
|
* Currently set to 4GB ((1 << 20) 4k pages).
|
||||||
* Max GPUVM size for cayman and SI is 40 bits.
|
* Max GPUVM size for cayman and SI is 40 bits.
|
||||||
*/
|
*/
|
||||||
amdgpu_vm_adjust_size(adev, 64, 4);
|
amdgpu_vm_adjust_size(adev, 64, 9);
|
||||||
adev->vm_manager.max_pfn = adev->vm_manager.vm_size << 18;
|
adev->vm_manager.max_pfn = adev->vm_manager.vm_size << 18;
|
||||||
|
|
||||||
/* Set the internal MC address mask
|
/* Set the internal MC address mask
|
||||||
|
@ -1067,7 +1067,7 @@ static int gmc_v8_0_sw_init(void *handle)
|
|||||||
* Currently set to 4GB ((1 << 20) 4k pages).
|
* Currently set to 4GB ((1 << 20) 4k pages).
|
||||||
* Max GPUVM size for cayman and SI is 40 bits.
|
* Max GPUVM size for cayman and SI is 40 bits.
|
||||||
*/
|
*/
|
||||||
amdgpu_vm_adjust_size(adev, 64, 4);
|
amdgpu_vm_adjust_size(adev, 64, 9);
|
||||||
adev->vm_manager.max_pfn = adev->vm_manager.vm_size << 18;
|
adev->vm_manager.max_pfn = adev->vm_manager.vm_size << 18;
|
||||||
|
|
||||||
/* Set the internal MC address mask
|
/* Set the internal MC address mask
|
||||||
|
Loading…
Reference in New Issue
Block a user