diff options
| author | Roger He <Hongbo.He@amd.com> | 2017-08-15 16:05:59 +0800 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2017-08-17 16:47:43 -0400 |
| commit | d07f14be4d11cf323977672342fb0fc6017052f6 (patch) | |
| tree | 4361547a6d52ef30c2294189e9b2d5379fce94f7 /drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | |
| parent | e618d306ded38dc9d37c04dc37e24bf9d62e9c7b (diff) | |
| download | blackbird-op-linux-d07f14be4d11cf323977672342fb0fc6017052f6.tar.gz blackbird-op-linux-d07f14be4d11cf323977672342fb0fc6017052f6.zip | |
drm/amd/amdgpu: expose fragment size as module parameter (v2)
Allow overrides on the command line.
v2: agd: sqaush in spelling fix and bogus default value warning
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Roger He <Hongbo.He@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c index a13f6617de79..7ca2dae8237a 100644 --- a/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c @@ -1048,8 +1048,7 @@ static int gmc_v8_0_sw_init(void *handle) * Currently set to 4GB ((1 << 20) 4k pages). * Max GPUVM size for cayman and SI is 40 bits. */ - amdgpu_vm_adjust_size(adev, 64); - adev->vm_manager.fragment_size = 4; + amdgpu_vm_adjust_size(adev, 64, 4); adev->vm_manager.max_pfn = adev->vm_manager.vm_size << 18; /* Set the internal MC address mask |

