diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 21 | 
1 files changed, 19 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index 0b19482b36b8..b0bf2f24da48 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c  | |||
| @@ -75,9 +75,10 @@ | |||
| 75 | * - 3.23.0 - Add query for VRAM lost counter | 75 | * - 3.23.0 - Add query for VRAM lost counter | 
| 76 | * - 3.24.0 - Add high priority compute support for gfx9 | 76 | * - 3.24.0 - Add high priority compute support for gfx9 | 
| 77 | * - 3.25.0 - Add support for sensor query info (stable pstate sclk/mclk). | 77 | * - 3.25.0 - Add support for sensor query info (stable pstate sclk/mclk). | 
| 78 | * - 3.26.0 - GFX9: Process AMDGPU_IB_FLAG_TC_WB_NOT_INVALIDATE. | ||
| 78 | */ | 79 | */ | 
| 79 | #define KMS_DRIVER_MAJOR 3 | 80 | #define KMS_DRIVER_MAJOR 3 | 
| 80 | #define KMS_DRIVER_MINOR 25 | 81 | #define KMS_DRIVER_MINOR 26 | 
| 81 | #define KMS_DRIVER_PATCHLEVEL 0 | 82 | #define KMS_DRIVER_PATCHLEVEL 0 | 
| 82 | 83 | ||
| 83 | int amdgpu_vram_limit = 0; | 84 | int amdgpu_vram_limit = 0; | 
| @@ -121,7 +122,7 @@ uint amdgpu_pg_mask = 0xffffffff; | |||
| 121 | uint amdgpu_sdma_phase_quantum = 32; | 122 | uint amdgpu_sdma_phase_quantum = 32; | 
| 122 | char *amdgpu_disable_cu = NULL; | 123 | char *amdgpu_disable_cu = NULL; | 
| 123 | char *amdgpu_virtual_display = NULL; | 124 | char *amdgpu_virtual_display = NULL; | 
| 124 | uint amdgpu_pp_feature_mask = 0xffffbfff; | 125 | uint amdgpu_pp_feature_mask = 0xffff3fff; /* gfxoff (bit 15) disabled by default */ | 
| 125 | int amdgpu_ngg = 0; | 126 | int amdgpu_ngg = 0; | 
| 126 | int amdgpu_prim_buf_per_se = 0; | 127 | int amdgpu_prim_buf_per_se = 0; | 
| 127 | int amdgpu_pos_buf_per_se = 0; | 128 | int amdgpu_pos_buf_per_se = 0; | 
| @@ -132,6 +133,7 @@ int amdgpu_lbpw = -1; | |||
| 132 | int amdgpu_compute_multipipe = -1; | 133 | int amdgpu_compute_multipipe = -1; | 
| 133 | int amdgpu_gpu_recovery = -1; /* auto */ | 134 | int amdgpu_gpu_recovery = -1; /* auto */ | 
| 134 | int amdgpu_emu_mode = 0; | 135 | int amdgpu_emu_mode = 0; | 
| 136 | uint amdgpu_smu_memory_pool_size = 0; | ||
| 135 | 137 | ||
| 136 | MODULE_PARM_DESC(vramlimit, "Restrict VRAM for testing, in megabytes"); | 138 | MODULE_PARM_DESC(vramlimit, "Restrict VRAM for testing, in megabytes"); | 
| 137 | module_param_named(vramlimit, amdgpu_vram_limit, int, 0600); | 139 | module_param_named(vramlimit, amdgpu_vram_limit, int, 0600); | 
| @@ -316,6 +318,11 @@ MODULE_PARM_DESC(cik_support, "CIK support (1 = enabled (default), 0 = disabled) | |||
| 316 | module_param_named(cik_support, amdgpu_cik_support, int, 0444); | 318 | module_param_named(cik_support, amdgpu_cik_support, int, 0444); | 
| 317 | #endif | 319 | #endif | 
| 318 | 320 | ||
| 321 | MODULE_PARM_DESC(smu_memory_pool_size, | ||
| 322 | "reserve gtt for smu debug usage, 0 = disable," | ||
| 323 | "0x1 = 256Mbyte, 0x2 = 512Mbyte, 0x4 = 1 Gbyte, 0x8 = 2GByte"); | ||
| 324 | module_param_named(smu_memory_pool_size, amdgpu_smu_memory_pool_size, uint, 0444); | ||
| 325 | |||
| 319 | static const struct pci_device_id pciidlist[] = { | 326 | static const struct pci_device_id pciidlist[] = { | 
| 320 | #ifdef CONFIG_DRM_AMDGPU_SI | 327 | #ifdef CONFIG_DRM_AMDGPU_SI | 
| 321 | {0x1002, 0x6780, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TAHITI}, | 328 | {0x1002, 0x6780, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TAHITI}, | 
| @@ -534,6 +541,9 @@ static const struct pci_device_id pciidlist[] = { | |||
| 534 | {0x1002, 0x6995, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS12}, | 541 | {0x1002, 0x6995, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS12}, | 
| 535 | {0x1002, 0x6997, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS12}, | 542 | {0x1002, 0x6997, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS12}, | 
| 536 | {0x1002, 0x699F, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS12}, | 543 | {0x1002, 0x699F, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS12}, | 
| 544 | /* VEGAM */ | ||
| 545 | {0x1002, 0x694C, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGAM}, | ||
| 546 | {0x1002, 0x694E, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGAM}, | ||
| 537 | /* Vega 10 */ | 547 | /* Vega 10 */ | 
| 538 | {0x1002, 0x6860, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA10}, | 548 | {0x1002, 0x6860, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA10}, | 
| 539 | {0x1002, 0x6861, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA10}, | 549 | {0x1002, 0x6861, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA10}, | 
| @@ -550,6 +560,13 @@ static const struct pci_device_id pciidlist[] = { | |||
| 550 | {0x1002, 0x69A2, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA12}, | 560 | {0x1002, 0x69A2, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA12}, | 
| 551 | {0x1002, 0x69A3, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA12}, | 561 | {0x1002, 0x69A3, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA12}, | 
| 552 | {0x1002, 0x69AF, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA12}, | 562 | {0x1002, 0x69AF, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA12}, | 
| 563 | /* Vega 20 */ | ||
| 564 | {0x1002, 0x66A0, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA20|AMD_EXP_HW_SUPPORT}, | ||
| 565 | {0x1002, 0x66A1, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA20|AMD_EXP_HW_SUPPORT}, | ||
| 566 | {0x1002, 0x66A2, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA20|AMD_EXP_HW_SUPPORT}, | ||
| 567 | {0x1002, 0x66A3, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA20|AMD_EXP_HW_SUPPORT}, | ||
| 568 | {0x1002, 0x66A7, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA20|AMD_EXP_HW_SUPPORT}, | ||
| 569 | {0x1002, 0x66AF, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA20|AMD_EXP_HW_SUPPORT}, | ||
| 553 | /* Raven */ | 570 | /* Raven */ | 
| 554 | {0x1002, 0x15dd, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RAVEN|AMD_IS_APU}, | 571 | {0x1002, 0x15dd, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RAVEN|AMD_IS_APU}, | 
| 555 | 572 | ||
