Skip to contentSkip to conversation

patch: Asus CUSL2-C/processor/2.4.22

PATCH Gunnar Ritter 2 participants 2 messages Aug 25, 2003 – Sep 3, 2003 1 message not in the archive ACPI

lore
Share & tools
lore
#0 lore raw

Hi,

when I installed 2.4.22 this day on my Asus CUSL2-C mainboard (ASUS CUSL2-C ACPI BIOS Revision 1009, 08/03/2001-I815EP-CUSL2-C), processor management did not work and produced the message

acpi_processor-2116 [26] acpi_processor_get_inf: Invalid PBLK length [5]

Since there were no problems with 2.4.21 and before, I made a small change to the code (see the attachment). Processor power management and throttling seem to work perfectly with this patch.

While looking around, I noticed the string '"COMAPQ", "EAGLES"' in line 74 of blacklist.c, looks like a typo.

Gunnar

processor.c renamed from processor.c.orig +4 -3
@@ -2112,7 +2112,7 @@
 
 	if (!object.processor.pblk_address)
 		ACPI_DEBUG_PRINT((ACPI_DB_INFO, "No PBLK (NULL address)\n"));
-	else if (object.processor.pblk_length != 6)
+	else if (object.processor.pblk_length < 5)
 		ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Invalid PBLK length [%d]\n",
 			object.processor.pblk_length));
 	else {
@@ -2121,8 +2121,9 @@
 		pr->throttling.duty_width = acpi_fadt.duty_width;
 		pr->power.states[ACPI_STATE_C2].address =
 			object.processor.pblk_address + 4;
-		pr->power.states[ACPI_STATE_C3].address =
-			object.processor.pblk_address + 5;
+		if (object.processor.pblk_length >= 6)
+			pr->power.states[ACPI_STATE_C3].address =
+				object.processor.pblk_address + 5;
 	}
 
 	acpi_processor_get_power_info(pr);
#2 lore raw
In reply to a message not in the archive

Hi!

Quoted 3 lines

Since there were no problems with 2.4.21 and before, I made a small change to the code (see the attachment). Processor power management and throttling seem to work perfectly with this patch.

Bad idea for mainline. Anyway blacklist entry saying "pblk length < 5 but C? still works might be okay.

Signature · 9 lines
				Pavel
Written on sharp zaurus, because my Velo1 broke. If you have Velo you don't need...



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf