[PATCH 14/14] drm/amdgpu/si: enable SI DPM by default
Huang Rui
ray.huang at amd.com
Tue Aug 30 11:50:11 UTC 2016
SI DPM issue is fixed, so enable it by default.
Change-Id: Ib12a81018a5fc43e9ac2920b8d4051dbe463f9df
Signed-off-by: Huang Rui <ray.huang at amd.com>
---
drivers/gpu/drm/amd/amdgpu/si_dpm.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/si_dpm.c b/drivers/gpu/drm/amd/amdgpu/si_dpm.c
index 9b7d4bf..9064e98 100644
--- a/drivers/gpu/drm/amd/amdgpu/si_dpm.c
+++ b/drivers/gpu/drm/amd/amdgpu/si_dpm.c
@@ -7649,7 +7649,7 @@ static int si_dpm_late_init(void *handle)
int ret;
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
- if (amdgpu_dpm <= 0)
+ if (!amdgpu_dpm)
return 0;
/* init the sysfs and debugfs files late */
@@ -7776,7 +7776,7 @@ static int si_dpm_sw_init(void *handle)
adev->pm.current_mclk = adev->clock.default_mclk;
adev->pm.int_thermal_type = THERMAL_TYPE_NONE;
- if (amdgpu_dpm <= 0)
+ if (!amdgpu_dpm)
return 0;
ret = si_dpm_init_microcode(adev);
@@ -7821,7 +7821,7 @@ static int si_dpm_hw_init(void *handle)
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
- if (amdgpu_dpm <= 0)
+ if (!amdgpu_dpm)
return 0;
mutex_lock(&adev->pm.mutex);
--
2.7.4
More information about the amd-gfx
mailing list