patch: Asus CUSL2-C/processor/2.4.22
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);
A message that is not in the archive (sent off-list or not yet received): 3F4A8662.nail8S178UX7-UTEXKpdpFrK0ugseAHOM+TeJuz7u0hKX@public.gmane.org
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