All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch 5/6] Altix: reinitialize acpi tables
@ 2007-03-06 10:29 akpm
  2007-03-07  7:34 ` Len Brown
  0 siblings, 1 reply; 2+ messages in thread
From: akpm @ 2007-03-06 10:29 UTC (permalink / raw)
  To: lenb; +Cc: linux-acpi, akpm, jpk

From: John Keller <jpk@sgi.com>

To provide compatibilty with SN kernels that do and do not have ACPI IO
support, the SN PROM must build different versions of some ACPI tables
based on which kernel is booting.  As such, the tables may have to change
at kernel boot time.  By default, prior to kernel boot, the PROM builds an
empty DSDT (header only) and no SSDTs.  If an ACPI capable kernel boots,
the kernel will notify the PROM, at platform setup time, and the PROM will
build full DSDT and SSDT tables.

With the latest changes to acpi_table_init(), the table lengths are saved,
and when our PROM changes them, the changes are not seen, and the kernel
will crash on boot.  Because of issues with kexec support, we are not able
to create the tables prior to acpi_table_init().  As a result, we are
making a second call to acpi_table_init() to process the rebuilt DSDT and
SSDTs.

Signed-off-by: John Keller <jpk@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 arch/ia64/sn/kernel/setup.c |    2 ++
 1 file changed, 2 insertions(+)

diff -puN arch/ia64/sn/kernel/setup.c~altix-reinitialize-acpi-tables arch/ia64/sn/kernel/setup.c
--- a/arch/ia64/sn/kernel/setup.c~altix-reinitialize-acpi-tables
+++ a/arch/ia64/sn/kernel/setup.c
@@ -54,6 +54,8 @@
 #include "xtalk/hubdev.h"
 #include <asm/sn/klconfig.h>
 
+	/* Load the new DSDT and SSDT tables into the global table list. */
+ 	acpi_table_init();
 
 DEFINE_PER_CPU(struct pda_s, pda_percpu);
 
_

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

end of thread, other threads:[~2007-03-07  7:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-06 10:29 [patch 5/6] Altix: reinitialize acpi tables akpm
2007-03-07  7:34 ` Len Brown

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.