aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
diff options
context:
space:
mode:
authorHawking Zhang <Hawking.Zhang@amd.com>2017-05-26 02:40:36 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-05-31 14:16:35 -0400
commite8835e0e43ecf0eba2e2810bee04ff39dabb8996 (patch)
tree5d28298d55bd5e54fd0d52e7058cf2549a5d8770 /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
parentba7bb6658e638d2235ce5abf8a24a08c7a1eff60 (diff)
drm/amdgpu: enable lbpw on raven
Signed-off-by: Hawking Zhang <Hawking.Zhang@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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
index 39432b0802f7..89867782acf0 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
@@ -113,6 +113,7 @@ int amdgpu_pos_buf_per_se = 0;
113int amdgpu_cntl_sb_buf_per_se = 0; 113int amdgpu_cntl_sb_buf_per_se = 0;
114int amdgpu_param_buf_per_se = 0; 114int amdgpu_param_buf_per_se = 0;
115int amdgpu_job_hang_limit = 0; 115int amdgpu_job_hang_limit = 0;
116int amdgpu_lbpw = -1;
116 117
117MODULE_PARM_DESC(vramlimit, "Restrict VRAM for testing, in megabytes"); 118MODULE_PARM_DESC(vramlimit, "Restrict VRAM for testing, in megabytes");
118module_param_named(vramlimit, amdgpu_vram_limit, int, 0600); 119module_param_named(vramlimit, amdgpu_vram_limit, int, 0600);
@@ -238,6 +239,8 @@ module_param_named(param_buf_per_se, amdgpu_param_buf_per_se, int, 0444);
238MODULE_PARM_DESC(job_hang_limit, "how much time allow a job hang and not drop it (default 0)"); 239MODULE_PARM_DESC(job_hang_limit, "how much time allow a job hang and not drop it (default 0)");
239module_param_named(job_hang_limit, amdgpu_job_hang_limit, int ,0444); 240module_param_named(job_hang_limit, amdgpu_job_hang_limit, int ,0444);
240 241
242MODULE_PARM_DESC(lbpw, "Load Balancing Per Watt (LBPW) support (1 = enable, 0 = disable, -1 = auto)");
243module_param_named(lbpw, amdgpu_lbpw, int, 0444);
241 244
242static const struct pci_device_id pciidlist[] = { 245static const struct pci_device_id pciidlist[] = {
243#ifdef CONFIG_DRM_AMDGPU_SI 246#ifdef CONFIG_DRM_AMDGPU_SI