Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fda83724 authored by Alex Deucher's avatar Alex Deucher
Browse files

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: default avatarAlex Deucher <alexander.deucher@amd.com>
parent e1accbf0
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -2659,8 +2659,7 @@ int btc_dpm_init(struct radeon_device *rdev)


	pi->dynamic_pcie_gen2 = true;
	pi->dynamic_pcie_gen2 = true;


	if (pi->gfx_clock_gating &&
	if (rdev->pm.int_thermal_type != THERMAL_TYPE_NONE)
	    (rdev->pm.int_thermal_type != THERMAL_TYPE_NONE))
		pi->thermal_protection = true;
		pi->thermal_protection = true;
	else
	else
		pi->thermal_protection = false;
		pi->thermal_protection = false;
+1 −2
Original line number Original line Diff line number Diff line
@@ -2122,8 +2122,7 @@ int cypress_dpm_init(struct radeon_device *rdev)


	pi->dynamic_pcie_gen2 = true;
	pi->dynamic_pcie_gen2 = true;


	if (pi->gfx_clock_gating &&
	if (rdev->pm.int_thermal_type != THERMAL_TYPE_NONE)
	    (rdev->pm.int_thermal_type != THERMAL_TYPE_NONE))
		pi->thermal_protection = true;
		pi->thermal_protection = true;
	else
	else
		pi->thermal_protection = false;
		pi->thermal_protection = false;
+1 −2
Original line number Original line Diff line number Diff line
@@ -4188,8 +4188,7 @@ int ni_dpm_init(struct radeon_device *rdev)


	pi->dynamic_pcie_gen2 = true;
	pi->dynamic_pcie_gen2 = true;


	if (pi->gfx_clock_gating &&
	if (rdev->pm.int_thermal_type != THERMAL_TYPE_NONE)
	    (rdev->pm.int_thermal_type != THERMAL_TYPE_NONE))
		pi->thermal_protection = true;
		pi->thermal_protection = true;
	else
	else
		pi->thermal_protection = false;
		pi->thermal_protection = false;
+1 −2
Original line number Original line Diff line number Diff line
@@ -2393,8 +2393,7 @@ int rv770_dpm_init(struct radeon_device *rdev)


	pi->dynamic_pcie_gen2 = true;
	pi->dynamic_pcie_gen2 = true;


	if (pi->gfx_clock_gating &&
	if (rdev->pm.int_thermal_type != THERMAL_TYPE_NONE)
	    (rdev->pm.int_thermal_type != THERMAL_TYPE_NONE))
		pi->thermal_protection = true;
		pi->thermal_protection = true;
	else
	else
		pi->thermal_protection = false;
		pi->thermal_protection = false;
+1 −2
Original line number Original line Diff line number Diff line
@@ -6366,8 +6366,7 @@ int si_dpm_init(struct radeon_device *rdev)
	eg_pi->sclk_deep_sleep = true;
	eg_pi->sclk_deep_sleep = true;
	si_pi->sclk_deep_sleep_above_low = false;
	si_pi->sclk_deep_sleep_above_low = false;


	if (pi->gfx_clock_gating &&
	if (rdev->pm.int_thermal_type != THERMAL_TYPE_NONE)
	    (rdev->pm.int_thermal_type != THERMAL_TYPE_NONE))
		pi->thermal_protection = true;
		pi->thermal_protection = true;
	else
	else
		pi->thermal_protection = false;
		pi->thermal_protection = false;