aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c
diff options
context:
space:
mode:
authorHuang Rui <[email protected]>2016-05-24 05:47:05 +0000
committerAlex Deucher <[email protected]>2016-07-07 18:50:55 +0000
commit6bb6b2972d0affe1f86881d64c787627b916c17e (patch)
treedfb761229f1df73b8746b4db5f416b483cdb2fa7 /drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c
parentdrm/amdgpu: fix and cleanup job destruction (diff)
downloadkernel-6bb6b2972d0affe1f86881d64c787627b916c17e.tar.gz
kernel-6bb6b2972d0affe1f86881d64c787627b916c17e.zip
drm/amdgpu: add powercontainment module parameter
This patch makes powercontainment feature configurable. Currently, the powercontainment is not very stable, so add a module parameter to enable/disable it via user mode. Signed-off-by: Huang Rui <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c
index 82256558e0f5..c5738a22b690 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c
@@ -52,6 +52,7 @@ static int amdgpu_powerplay_init(struct amdgpu_device *adev)
pp_init->chip_family = adev->family;
pp_init->chip_id = adev->asic_type;
pp_init->device = amdgpu_cgs_create_device(adev);
+ pp_init->powercontainment_enabled = amdgpu_powercontainment;
ret = amd_powerplay_init(pp_init, amd_pp);
kfree(pp_init);