public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* ACPI "_PDC" - acpi_processor_set_pdc()- execution regression - Linux-3.x
@ 2011-12-07 22:38 wallak
  2011-12-08  5:01 ` Bjorn Helgaas
       [not found] ` <CAF1ivSZX37HRyxJX_rdkZ4pVrxjCZeM39mAs4ZKcqWCYShxaxQ@mail.gmail.com>
  0 siblings, 2 replies; 5+ messages in thread
From: wallak @ 2011-12-07 22:38 UTC (permalink / raw)
  To: linux-kernel

We have a regression on the ACPI stack of the last linux kernel line 3.x (3.1.4,
3.2-rc4...). The ACPI "_PDC" chunk is not executed on some computers (e.g. Dell
X300; the function acpi_processor_set_pdc() is not called). This issue yield to
an uninitialized state of some ACPI variables.

A patch is available below. This patch come back to the previous linux behavior,
and works fine.

Best Regards,
Wallak.

--- linux-3.1.4-mdf/drivers/acpi/processor_core.c.orig  2011-12-07
23:12:57.000000000 +0100
+++ linux-3.1.4-mdf/drivers/acpi/processor_core.c       2011-12-07
23:13:39.000000000 +0100
@@ -223,8 +223,8 @@
        type = (acpi_type == ACPI_TYPE_DEVICE) ? 1 : 0;
        cpuid = acpi_get_cpuid(handle, type, acpi_id);

-       if (cpuid == -1)
-               return false;
+       if ((cpuid == -1) && (num_possible_cpus() > 1))
+               return false;

        return true;
 }

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

end of thread, other threads:[~2011-12-12 22:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-07 22:38 ACPI "_PDC" - acpi_processor_set_pdc()- execution regression - Linux-3.x wallak
2011-12-08  5:01 ` Bjorn Helgaas
2011-12-08  7:40   ` Lin Ming
     [not found] ` <CAF1ivSZX37HRyxJX_rdkZ4pVrxjCZeM39mAs4ZKcqWCYShxaxQ@mail.gmail.com>
2011-12-12  2:38   ` Lin Ming
2011-12-12 21:59     ` Wallak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox