diff options
author | Jammy Zhou <Jammy.Zhou@amd.com> | 2015-07-30 04:44:05 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-08-17 16:50:42 -0400 |
commit | 4afcb30383bef8bf972c6aae47995ef314e5f8a1 (patch) | |
tree | e903b75b92873341efa915b59af3c011d2040b72 /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | |
parent | 1333f723fb6f1356a54135586f1ede44dcaa9652 (diff) |
drm/amdgpu: add amdgpu.sched_hw_submission option
This option can be used to specify the max number of submissions in the
active HW queue. The default value is 2 now.
Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@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 319de441e907..8bb5610c2d25 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | |||
@@ -77,6 +77,7 @@ int amdgpu_vm_block_size = -1; | |||
77 | int amdgpu_exp_hw_support = 0; | 77 | int amdgpu_exp_hw_support = 0; |
78 | int amdgpu_enable_scheduler = 0; | 78 | int amdgpu_enable_scheduler = 0; |
79 | int amdgpu_sched_jobs = 16; | 79 | int amdgpu_sched_jobs = 16; |
80 | int amdgpu_sched_hw_submission = 2; | ||
80 | 81 | ||
81 | MODULE_PARM_DESC(vramlimit, "Restrict VRAM for testing, in megabytes"); | 82 | MODULE_PARM_DESC(vramlimit, "Restrict VRAM for testing, in megabytes"); |
82 | module_param_named(vramlimit, amdgpu_vram_limit, int, 0600); | 83 | module_param_named(vramlimit, amdgpu_vram_limit, int, 0600); |
@@ -147,6 +148,9 @@ module_param_named(enable_scheduler, amdgpu_enable_scheduler, int, 0444); | |||
147 | MODULE_PARM_DESC(sched_jobs, "the max number of jobs supported in the sw queue (default 16)"); | 148 | MODULE_PARM_DESC(sched_jobs, "the max number of jobs supported in the sw queue (default 16)"); |
148 | module_param_named(sched_jobs, amdgpu_sched_jobs, int, 0444); | 149 | module_param_named(sched_jobs, amdgpu_sched_jobs, int, 0444); |
149 | 150 | ||
151 | MODULE_PARM_DESC(sched_hw_submission, "the max number of HW submissions (default 2)"); | ||
152 | module_param_named(sched_hw_submission, amdgpu_sched_hw_submission, int, 0444); | ||
153 | |||
150 | static struct pci_device_id pciidlist[] = { | 154 | static struct pci_device_id pciidlist[] = { |
151 | #ifdef CONFIG_DRM_AMDGPU_CIK | 155 | #ifdef CONFIG_DRM_AMDGPU_CIK |
152 | /* Kaveri */ | 156 | /* Kaveri */ |