diff options
author | Dave Airlie <airlied@redhat.com> | 2016-10-27 20:35:59 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2016-10-27 20:35:59 -0400 |
commit | a1873c62710b23e9afbd2faeed5f28649cbe4739 (patch) | |
tree | fd07fb6b1dc0c61a15ba563cad3ef2e46687f45c /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | |
parent | 5481e27f6fd06b7cb902072e81d6b083db8155eb (diff) | |
parent | 3495a103579380288a130dc1862488cd8a4293f5 (diff) |
Merge branch 'drm-next-4.10' of git://people.freedesktop.org/~agd5f/linux into drm-next
First new feature pull for 4.10. Highlights:
- Support for multple virtual displays in the virtual dce component
- New VM mgr to support non-contiguous vram buffers
- Support for UVD powergating on additional asics
- Power management improvements
- lots of code cleanup and bug fixes
* 'drm-next-4.10' of git://people.freedesktop.org/~agd5f/linux: (107 commits)
drm/amdgpu: turn on/off uvd clock when dpm enable/disable on CI
drm/amdgpu: disable dpm before turn off clock when vce idle.
drm/amdgpu: enable uvd bypass mode for CI/VI.
drm/amdgpu: just not load smc firmware if smu is already running
drm/amdgpu: when suspend, set boot state instand of disable dpm.
drm/amdgpu: use failed label to handle context init failure
drm/amdgpu: add amdgpu_ttm_bo_eviction_valuable callback
drm/ttm: make eviction decision a driver callback v2
drm/ttm: fix coding style in ttm_bo_driver.h
drm/radeon/pm: autoswitch power state when in balanced mode
drm/amd/powerplay: fix spelling mistake and add KERN_WARNING to printks
drm/amdgpu:new ids flag for preempt
drm/amdgpu: mark symbols static where possible
drm/amdgpu: change function declarations and add missing header dependencies
drm/amdgpu: s/amdgpuCrtc/amdgpu_crtc/ in pageflip code
drm/amdgpu/atom: remove a bunch of unused functions
drm/amdgpu: consolidate atom scratch reg handling for hangs
drm/amdgpu: use amdgpu_bo_[create|free]_kernel for wb
drm/amdgpu: add VCE VM session tracking
drm/amdgpu: improve parse_cs handling a bit
...
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}, |