aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
diff options
context:
space:
mode:
authorNicolai Hähnle <Nicolai.Haehnle@amd.com>2016-06-02 06:32:07 -0400
committerAlex Deucher <alexander.deucher@amd.com>2016-07-07 14:51:16 -0400
commit395d1fb948d98e613ba58a90a28a3049404ec7d4 (patch)
tree9181e4108ed189a782623e696c429076d193b5b0 /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
parentf4b373f41cfc96c162c87de2c027dd42d25f9cb4 (diff)
drm/amdgpu: add amdgpu.cg_mask and amdgpu.pg_mask parameters
They allow disabling clock and power gating from the kernel command line, which hopefully helps with diagnosing problems in the field. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Nicolai Hähnle <Nicolai.Haehnle@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.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
index e2bf4ef6b2f7..17bf19b063b0 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
@@ -85,6 +85,8 @@ int amdgpu_powerplay = -1;
85int amdgpu_powercontainment = 1; 85int amdgpu_powercontainment = 1;
86unsigned amdgpu_pcie_gen_cap = 0; 86unsigned amdgpu_pcie_gen_cap = 0;
87unsigned amdgpu_pcie_lane_cap = 0; 87unsigned amdgpu_pcie_lane_cap = 0;
88unsigned amdgpu_cg_mask = 0xffffffff;
89unsigned amdgpu_pg_mask = 0xffffffff;
88 90
89MODULE_PARM_DESC(vramlimit, "Restrict VRAM for testing, in megabytes"); 91MODULE_PARM_DESC(vramlimit, "Restrict VRAM for testing, in megabytes");
90module_param_named(vramlimit, amdgpu_vram_limit, int, 0600); 92module_param_named(vramlimit, amdgpu_vram_limit, int, 0600);
@@ -172,6 +174,12 @@ module_param_named(pcie_gen_cap, amdgpu_pcie_gen_cap, uint, 0444);
172MODULE_PARM_DESC(pcie_lane_cap, "PCIE Lane Caps (0: autodetect (default))"); 174MODULE_PARM_DESC(pcie_lane_cap, "PCIE Lane Caps (0: autodetect (default))");
173module_param_named(pcie_lane_cap, amdgpu_pcie_lane_cap, uint, 0444); 175module_param_named(pcie_lane_cap, amdgpu_pcie_lane_cap, uint, 0444);
174 176
177MODULE_PARM_DESC(cg_mask, "Clockgating flags mask (0 = disable clock gating)");
178module_param_named(cg_mask, amdgpu_cg_mask, uint, 0444);
179
180MODULE_PARM_DESC(pg_mask, "Powergating flags mask (0 = disable power gating)");
181module_param_named(pg_mask, amdgpu_pg_mask, uint, 0444);
182
175static const struct pci_device_id pciidlist[] = { 183static const struct pci_device_id pciidlist[] = {
176#ifdef CONFIG_DRM_AMDGPU_CIK 184#ifdef CONFIG_DRM_AMDGPU_CIK
177 /* Kaveri */ 185 /* Kaveri */