Skip to content

Commit 5d40d1a

Browse files
jbarnes993CakesTwix
authored andcommitted
IPS driver: add GPU busy and turbo checking
Be sure to enable GPU turbo by default at load time and check GPU busy and MCP exceeded status correctly. Also fix up CPU power comparison and work around buggy MCH temp reporting. Signed-off-by: Jesse Barnes <[email protected]> Signed-off-by: Matthew Garrett <[email protected]>
1 parent a19f1c3 commit 5d40d1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/platform/x86/intel_ips.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ static void ips_disable_cpu_turbo(struct ips_driver *ips)
525525
*/
526526
static bool ips_gpu_busy(struct ips_driver *ips)
527527
{
528-
if (!ips_gpu_turbo_enabled(ips))
528+
if (!ips->gpu_turbo_enabled)
529529
return false;
530530

531531
return ips->gpu_busy();
@@ -1587,7 +1587,7 @@ static int ips_probe(struct pci_dev *dev, const struct pci_device_id *id)
15871587
ips->poll_turbo_status = true;
15881588

15891589
if (!ips_get_i915_syms(ips)) {
1590-
dev_info(&dev->dev, "failed to get i915 symbols, graphics turbo disabled until i915 loads\n");
1590+
dev_err(&dev->dev, "failed to get i915 symbols, graphics turbo disabled\n");
15911591
ips->gpu_turbo_enabled = false;
15921592
} else {
15931593
dev_dbg(&dev->dev, "graphics turbo enabled\n");

0 commit comments

Comments
 (0)