diff options
author | Nicolai Hähnle <Nicolai.Haehnle@amd.com> | 2016-06-02 06:32:07 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-07-07 14:51:16 -0400 |
commit | 395d1fb948d98e613ba58a90a28a3049404ec7d4 (patch) | |
tree | 9181e4108ed189a782623e696c429076d193b5b0 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
parent | f4b373f41cfc96c162c87de2c027dd42d25f9cb4 (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_device.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index df0953d3b1ab..83c7aba1a99f 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |||
@@ -1213,6 +1213,9 @@ static int amdgpu_early_init(struct amdgpu_device *adev) | |||
1213 | } | 1213 | } |
1214 | } | 1214 | } |
1215 | 1215 | ||
1216 | adev->cg_flags &= amdgpu_cg_mask; | ||
1217 | adev->pg_flags &= amdgpu_pg_mask; | ||
1218 | |||
1216 | return 0; | 1219 | return 0; |
1217 | } | 1220 | } |
1218 | 1221 | ||