[PATCH v2 15/15] drm/amdgpu/si: enable SI DPM by default
Huang Rui
ray.huang at amd.com
Wed Aug 31 05:23:27 UTC 2016
SI DPM issue is fixed, so enable it by default.
Acked-by: Christian König <christian.koenig at amd.com>
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
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 b63dd39..0c3bc22 100644
--- a/drivers/gpu/drm/amd/amdgpu/si_dpm.c
+++ b/drivers/gpu/drm/amd/amdgpu/si_dpm.c
@@ -7633,7 +7633,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 */
@@ -7760,7 +7760,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);
@@ -7805,7 +7805,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