diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index 71ed27eb3dde..6bb4d9e9afe4 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | |||
@@ -58,9 +58,10 @@ | |||
58 | * - 3.6.0 - kmd involves use CONTEXT_CONTROL in ring buffer. | 58 | * - 3.6.0 - kmd involves use CONTEXT_CONTROL in ring buffer. |
59 | * - 3.7.0 - Add support for VCE clock list packet | 59 | * - 3.7.0 - Add support for VCE clock list packet |
60 | * - 3.8.0 - Add support raster config init in the kernel | 60 | * - 3.8.0 - Add support raster config init in the kernel |
61 | * - 3.9.0 - Add support for memory query info about VRAM and GTT. | ||
61 | */ | 62 | */ |
62 | #define KMS_DRIVER_MAJOR 3 | 63 | #define KMS_DRIVER_MAJOR 3 |
63 | #define KMS_DRIVER_MINOR 8 | 64 | #define KMS_DRIVER_MINOR 9 |
64 | #define KMS_DRIVER_PATCHLEVEL 0 | 65 | #define KMS_DRIVER_PATCHLEVEL 0 |
65 | 66 | ||
66 | int amdgpu_vram_limit = 0; | 67 | int amdgpu_vram_limit = 0; |
@@ -85,6 +86,7 @@ int amdgpu_vm_size = 64; | |||
85 | int amdgpu_vm_block_size = -1; | 86 | int amdgpu_vm_block_size = -1; |
86 | int amdgpu_vm_fault_stop = 0; | 87 | int amdgpu_vm_fault_stop = 0; |
87 | int amdgpu_vm_debug = 0; | 88 | int amdgpu_vm_debug = 0; |
89 | int amdgpu_vram_page_split = 1024; | ||
88 | int amdgpu_exp_hw_support = 0; | 90 | int amdgpu_exp_hw_support = 0; |
89 | int amdgpu_sched_jobs = 32; | 91 | int amdgpu_sched_jobs = 32; |
90 | int amdgpu_sched_hw_submission = 2; | 92 | int amdgpu_sched_hw_submission = 2; |
@@ -165,6 +167,9 @@ module_param_named(vm_fault_stop, amdgpu_vm_fault_stop, int, 0444); | |||
165 | MODULE_PARM_DESC(vm_debug, "Debug VM handling (0 = disabled (default), 1 = enabled)"); | 167 | MODULE_PARM_DESC(vm_debug, "Debug VM handling (0 = disabled (default), 1 = enabled)"); |
166 | module_param_named(vm_debug, amdgpu_vm_debug, int, 0644); | 168 | module_param_named(vm_debug, amdgpu_vm_debug, int, 0644); |
167 | 169 | ||
170 | MODULE_PARM_DESC(vram_page_split, "Number of pages after we split VRAM allocations (default 1024, -1 = disable)"); | ||
171 | module_param_named(vram_page_split, amdgpu_vram_page_split, int, 0444); | ||
172 | |||
168 | MODULE_PARM_DESC(exp_hw_support, "experimental hw support (1 = enable, 0 = disable (default))"); | 173 | MODULE_PARM_DESC(exp_hw_support, "experimental hw support (1 = enable, 0 = disable (default))"); |
169 | module_param_named(exp_hw_support, amdgpu_exp_hw_support, int, 0444); | 174 | module_param_named(exp_hw_support, amdgpu_exp_hw_support, int, 0444); |
170 | 175 | ||
@@ -201,7 +206,8 @@ module_param_named(pg_mask, amdgpu_pg_mask, uint, 0444); | |||
201 | MODULE_PARM_DESC(disable_cu, "Disable CUs (se.sh.cu,...)"); | 206 | MODULE_PARM_DESC(disable_cu, "Disable CUs (se.sh.cu,...)"); |
202 | module_param_named(disable_cu, amdgpu_disable_cu, charp, 0444); | 207 | module_param_named(disable_cu, amdgpu_disable_cu, charp, 0444); |
203 | 208 | ||
204 | MODULE_PARM_DESC(virtual_display, "Enable virtual display feature (the virtual_display will be set like xxxx:xx:xx.x;xxxx:xx:xx.x)"); | 209 | MODULE_PARM_DESC(virtual_display, |
210 | "Enable virtual display feature (the virtual_display will be set like xxxx:xx:xx.x,x;xxxx:xx:xx.x,x)"); | ||
205 | module_param_named(virtual_display, amdgpu_virtual_display, charp, 0444); | 211 | module_param_named(virtual_display, amdgpu_virtual_display, charp, 0444); |
206 | 212 | ||
207 | static const struct pci_device_id pciidlist[] = { | 213 | static const struct pci_device_id pciidlist[] = { |
@@ -381,6 +387,7 @@ static const struct pci_device_id pciidlist[] = { | |||
381 | {0x1002, 0x6939, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TONGA}, | 387 | {0x1002, 0x6939, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TONGA}, |
382 | /* fiji */ | 388 | /* fiji */ |
383 | {0x1002, 0x7300, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_FIJI}, | 389 | {0x1002, 0x7300, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_FIJI}, |
390 | {0x1002, 0x730F, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_FIJI}, | ||
384 | /* carrizo */ | 391 | /* carrizo */ |
385 | {0x1002, 0x9870, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CARRIZO|AMD_IS_APU}, | 392 | {0x1002, 0x9870, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CARRIZO|AMD_IS_APU}, |
386 | {0x1002, 0x9874, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CARRIZO|AMD_IS_APU}, | 393 | {0x1002, 0x9874, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CARRIZO|AMD_IS_APU}, |