All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH]  ACPI: Check _PSS invalidation when BIOS report _PSS with all 0x80000000
@ 2008-11-21  3:08 ` youquan_song
  0 siblings, 0 replies; 7+ messages in thread
From: youquan_song @ 2008-11-21  3:08 UTC (permalink / raw)
  To: linux-acpi; +Cc: venkatesh.pallipadi, len.brown, linux-kernel

Subject: Check _PSS invalidation when BIOS report _PSS with 0x80000000

When cpu frequencey scaling disable,some BIOS report _PSS with all
0x80000000.
If kernel treat this case as valid, the kernel will boot crash when load
cpufreq govenors.

So in order to cover more buggy BIOSs, the patch just check _PSS core
frequencey invalidtion.

Signed-off-by: Youquan, Song <youquan.song@intel.com>
Signed-off-by: Pallipadi, Venkatesh <venkatesh.pallipadi@intel.com>
---

--- linux-2.6-tip-orignal/drivers/acpi/processor_perflib.c	2008-11-20
12:25:05.000000000 -0500
+++ linux-2.6-tip/drivers/acpi/processor_perflib.c	2008-11-20
12:23:57.000000000 -0500
@@ -50,6 +50,7 @@
 #define ACPI_PROCESSOR_CLASS		"processor"
 #define ACPI_PROCESSOR_FILE_PERFORMANCE	"performance"
 #define _COMPONENT		ACPI_PROCESSOR_COMPONENT
+#define ACPI_PROCESSOR_PSS_INVALID	0x80000000
 ACPI_MODULE_NAME("processor_perflib");

 static DEFINE_MUTEX(performance_mutex);
@@ -324,6 +325,14 @@
 			kfree(pr->performance->states);
 			goto end;
 		}
+
+		if (px->core_frequency == ACPI_PROCESSOR_PSS_INVALID) {
+			printk(KERN_ERR PREFIX
+				    "P-states disabled in the BIOS\n");
+			result = -EFAULT;
+			kfree(pr->performance->states);
+			goto end;
+		}
 	}

       end:

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-03-13  2:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-21  3:08 [PATCH] ACPI: Check _PSS invalidation when BIOS report _PSS with all 0x80000000 youquan_song
2008-11-21  3:08 ` youquan_song
2008-11-21 23:08 ` Andrew Morton
2008-11-24 23:02   ` Youquan,Song
2008-12-12  5:36     ` Len Brown
2009-03-12 13:22       ` Woody Suwalski
2009-03-13  2:16         ` Zhang Rui

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.