aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2013-07-31 12:41:35 -0400
committerAlex Deucher <alexander.deucher@amd.com>2013-08-07 17:37:09 -0400
commitfda837241f3680e5dc554c26e178c2deec7a039c (patch)
treefea4895f83a15b287e16aa3c003693407c4ca821 /drivers/gpu
parente1accbf0543eecfdb161131208c3dfefee22d61f (diff)
drm/radeon/dpm: adjust thermal protection requirements
On rv770 and newer, clock gating is not required for thermal protection. The only requirement is that the design utilizes a thermal sensor. Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/radeon/btc_dpm.c3
-rw-r--r--drivers/gpu/drm/radeon/cypress_dpm.c3
-rw-r--r--drivers/gpu/drm/radeon/ni_dpm.c3
-rw-r--r--drivers/gpu/drm/radeon/rv770_dpm.c3
-rw-r--r--drivers/gpu/drm/radeon/si_dpm.c3
5 files changed, 5 insertions, 10 deletions
diff --git a/drivers/gpu/drm/radeon/btc_dpm.c b/drivers/gpu/drm/radeon/btc_dpm.c
index 0bfd55e08820..e7c128b48112 100644
--- a/drivers/gpu/drm/radeon/btc_dpm.c
+++ b/drivers/gpu/drm/radeon/btc_dpm.c
@@ -2659,8 +2659,7 @@ int btc_dpm_init(struct radeon_device *rdev)
2659 2659
2660 pi->dynamic_pcie_gen2 = true; 2660 pi->dynamic_pcie_gen2 = true;
2661 2661
2662 if (pi->gfx_clock_gating && 2662 if (rdev->pm.int_thermal_type != THERMAL_TYPE_NONE)
2663 (rdev->pm.int_thermal_type != THERMAL_TYPE_NONE))
2664 pi->thermal_protection = true; 2663 pi->thermal_protection = true;
2665 else 2664 else
2666 pi->thermal_protection = false; 2665 pi->thermal_protection = false;
diff --git a/drivers/gpu/drm/radeon/cypress_dpm.c b/drivers/gpu/drm/radeon/cypress_dpm.c
index 9bcdd174780f..c840e079be5b 100644
--- a/drivers/gpu/drm/radeon/cypress_dpm.c
+++ b/drivers/gpu/drm/radeon/cypress_dpm.c
@@ -2122,8 +2122,7 @@ int cypress_dpm_init(struct radeon_device *rdev)
2122 2122
2123 pi->dynamic_pcie_gen2 = true; 2123 pi->dynamic_pcie_gen2 = true;
2124 2124
2125 if (pi->gfx_clock_gating && 2125 if (rdev->pm.int_thermal_type != THERMAL_TYPE_NONE)
2126 (rdev->pm.int_thermal_type != THERMAL_TYPE_NONE))
2127 pi->thermal_protection = true; 2126 pi->thermal_protection = true;
2128 else 2127 else
2129 pi->thermal_protection = false; 2128 pi->thermal_protection = false;
diff --git a/drivers/gpu/drm/radeon/ni_dpm.c b/drivers/gpu/drm/radeon/ni_dpm.c
index 4f9b9bc20daa..c560318d3f19 100644
--- a/drivers/gpu/drm/radeon/ni_dpm.c
+++ b/drivers/gpu/drm/radeon/ni_dpm.c
@@ -4188,8 +4188,7 @@ int ni_dpm_init(struct radeon_device *rdev)
4188 4188
4189 pi->dynamic_pcie_gen2 = true; 4189 pi->dynamic_pcie_gen2 = true;
4190 4190
4191 if (pi->gfx_clock_gating && 4191 if (rdev->pm.int_thermal_type != THERMAL_TYPE_NONE)
4192 (rdev->pm.int_thermal_type != THERMAL_TYPE_NONE))
4193 pi->thermal_protection = true; 4192 pi->thermal_protection = true;
4194 else 4193 else
4195 pi->thermal_protection = false; 4194 pi->thermal_protection = false;
diff --git a/drivers/gpu/drm/radeon/rv770_dpm.c b/drivers/gpu/drm/radeon/rv770_dpm.c
index 2d347925f77d..2ae54bba14d4 100644
--- a/drivers/gpu/drm/radeon/rv770_dpm.c
+++ b/drivers/gpu/drm/radeon/rv770_dpm.c
@@ -2393,8 +2393,7 @@ int rv770_dpm_init(struct radeon_device *rdev)
2393 2393
2394 pi->dynamic_pcie_gen2 = true; 2394 pi->dynamic_pcie_gen2 = true;
2395 2395
2396 if (pi->gfx_clock_gating && 2396 if (rdev->pm.int_thermal_type != THERMAL_TYPE_NONE)
2397 (rdev->pm.int_thermal_type != THERMAL_TYPE_NONE))
2398 pi->thermal_protection = true; 2397 pi->thermal_protection = true;
2399 else 2398 else
2400 pi->thermal_protection = false; 2399 pi->thermal_protection = false;
diff --git a/drivers/gpu/drm/radeon/si_dpm.c b/drivers/gpu/drm/radeon/si_dpm.c
index 41825575b403..dc06e433048a 100644
--- a/drivers/gpu/drm/radeon/si_dpm.c
+++ b/drivers/gpu/drm/radeon/si_dpm.c
@@ -6366,8 +6366,7 @@ int si_dpm_init(struct radeon_device *rdev)
6366 eg_pi->sclk_deep_sleep = true; 6366 eg_pi->sclk_deep_sleep = true;
6367 si_pi->sclk_deep_sleep_above_low = false; 6367 si_pi->sclk_deep_sleep_above_low = false;
6368 6368
6369 if (pi->gfx_clock_gating && 6369 if (rdev->pm.int_thermal_type != THERMAL_TYPE_NONE)
6370 (rdev->pm.int_thermal_type != THERMAL_TYPE_NONE))
6371 pi->thermal_protection = true; 6370 pi->thermal_protection = true;
6372 else 6371 else
6373 pi->thermal_protection = false; 6372 pi->thermal_protection = false;