All of lore.kernel.org
 help / color / mirror / Atom feed
* Followup on 2.6.13-rc3 ACPI processor C-state regression
@ 2005-07-13 22:05 Kevin Radloff
       [not found] ` <3b0ffc1f050713150527c7c649-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  2005-07-29 18:33 ` Jose Luis Domingo Lopez
  0 siblings, 2 replies; 7+ messages in thread
From: Kevin Radloff @ 2005-07-13 22:05 UTC (permalink / raw)
  To: linux-kernel

Previously, I had said that in 2.6.13-rc3, C2/C3 capabilities were not
detected on my Fujitsu Lifebook P7010D. I found that in the merge at:

http://kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blobdiff;h=893b074e3d1a48a4390cf84b4c1a10ef6be2460c;hp=c9d671cf7857dbc7101e99d469fa24eed711ac60;hb=5028770a42e7bc4d15791a44c28f0ad539323807;f=drivers/acpi/processor_idle.c

.. in the section at (please forgive my destruction of the formatting) ...

@@ -787,10 +843,7 @@ static int acpi_processor_get_power_info
         if ((result) || (acpi_processor_power_verify(pr) < 2)) {
             result = acpi_processor_get_power_info_fadt(pr);
             if (result)
-                return_VALUE(result);
-
-            if (acpi_processor_power_verify(pr) < 2)
-                return_VALUE(-ENODEV);
+               result = acpi_processor_get_power_info_default_c1(pr);
         }

.. a call to acpi_processor_power_verify() is removed, which breaks
detection of C2/C3 capabilities if the above
acpi_processor_get_power_info_cst() failed. It it had succeeded (and
returned 0), then acpi_processor_power_verify() is called in the
conditional statement, which will set the valid flags for C2/C3. But
if it fails, like on my laptop, then the valid flags will never be
set, despite the fact that the acpi_processor_get_power_info_fadt()
function finds the necessary info for a subsequent
acpi_processor_power_verify() call to succeed.

I don't know what exactly the proper fix here is (with the
introduction of the acpi_processor_get_power_info_default_c1()
function, that is), but simply reversing this part of the patch fixes
detection of C2/C3 on my laptop.

Please CC me with any followups, as I'm not on the list.

-- 
Kevin 'radsaq' Radloff
radsaq@gmail.com
http://saqataq.us/

^ permalink raw reply	[flat|nested] 7+ messages in thread
* RE: Followup on 2.6.13-rc3 ACPI processor C-state regression
@ 2005-07-29 19:11 ` Brown, Len
  0 siblings, 0 replies; 7+ messages in thread
From: Brown, Len @ 2005-07-29 19:11 UTC (permalink / raw)
  To: Andrew Morton, Kevin Radloff
  Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

>Len, Kevin confirms that the below patch fixes the above regression for
>him.  Should we merge it now?

Yes.
It is in my to-linus git tree.

thanks,
-Len


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id\x16492&op=click

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

end of thread, other threads:[~2005-07-29 19:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-13 22:05 Followup on 2.6.13-rc3 ACPI processor C-state regression Kevin Radloff
     [not found] ` <3b0ffc1f050713150527c7c649-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2005-07-29 17:59   ` Andrew Morton
2005-07-29 17:59     ` Andrew Morton
2005-07-29 18:33 ` Jose Luis Domingo Lopez
2005-07-29 18:55   ` Jose Luis Domingo Lopez
  -- strict thread matches above, loose matches on Subject: below --
2005-07-29 19:11 Brown, Len
2005-07-29 19:11 ` Brown, Len

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.