diff options
author | Christian König <christian.koenig@amd.com> | 2017-07-07 07:17:45 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-07-14 11:06:31 -0400 |
commit | 36d3837266c53a92a909f22f6bbf0846c0e6464f (patch) | |
tree | 5b5f9bca8890ebccc39f88ba8af33da70161dbd3 /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | |
parent | bb84284e10ec3447b4bb74cfa493d5c384a0b798 (diff) |
drm/amdgpu: add new gttsize module parameter v2
This allows setting the gtt size independent of the gart size.
v2: fix copy and paste typo
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index d90dc426ee5b..b83e87fef6a8 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | |||
@@ -75,6 +75,7 @@ | |||
75 | 75 | ||
76 | int amdgpu_vram_limit = 0; | 76 | int amdgpu_vram_limit = 0; |
77 | int amdgpu_gart_size = -1; /* auto */ | 77 | int amdgpu_gart_size = -1; /* auto */ |
78 | int amdgpu_gtt_size = -1; /* auto */ | ||
78 | int amdgpu_moverate = -1; /* auto */ | 79 | int amdgpu_moverate = -1; /* auto */ |
79 | int amdgpu_benchmarking = 0; | 80 | int amdgpu_benchmarking = 0; |
80 | int amdgpu_testing = 0; | 81 | int amdgpu_testing = 0; |
@@ -123,6 +124,9 @@ module_param_named(vramlimit, amdgpu_vram_limit, int, 0600); | |||
123 | MODULE_PARM_DESC(gartsize, "Size of PCIE/IGP gart to setup in megabytes (32, 64, etc., -1 = auto)"); | 124 | MODULE_PARM_DESC(gartsize, "Size of PCIE/IGP gart to setup in megabytes (32, 64, etc., -1 = auto)"); |
124 | module_param_named(gartsize, amdgpu_gart_size, int, 0600); | 125 | module_param_named(gartsize, amdgpu_gart_size, int, 0600); |
125 | 126 | ||
127 | MODULE_PARM_DESC(gttsize, "Size of the GTT domain in megabytes (-1 = auto)"); | ||
128 | module_param_named(gttsize, amdgpu_gtt_size, int, 0600); | ||
129 | |||
126 | MODULE_PARM_DESC(moverate, "Maximum buffer migration rate in MB/s. (32, 64, etc., -1=auto, 0=1=disabled)"); | 130 | MODULE_PARM_DESC(moverate, "Maximum buffer migration rate in MB/s. (32, 64, etc., -1=auto, 0=1=disabled)"); |
127 | module_param_named(moverate, amdgpu_moverate, int, 0600); | 131 | module_param_named(moverate, amdgpu_moverate, int, 0600); |
128 | 132 | ||