Skip to contentSkip to conversation

Altix: reinitialize acpi tables

PATCH Applied [email protected] 2 participants 2 messages Mar 6, 2007 – Mar 7, 2007 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 5/6 Altix: reinitialize acpi tables

From: John Keller <[email protected]>

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.

---

 arch/ia64/sn/kernel/setup.c |    2 ++
 1 file changed, 2 insertions(+)
arch/ia64/sn/kernel/setup.c renamed from arch/ia64/sn/kernel/setup.c~altix-reinitialize-acpi-tables +2 -0
diff -puN arch/ia64/sn/kernel/setup.c~altix-reinitialize-acpi-tables 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);
 

_

reviewer
#1 lore raw

Andrew,
This patch is munged -- please remove it from mm.

The correct patch is already present in git-acpi.patch, which perhaps is why patch munged it on entry into mm.

thanks,
-Len

Quoted 42 lines · On Tuesday 06 March 2007 05:29, [email protected] wrote:

From: John Keller <[email protected]>

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.

---

 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

arch/ia64/sn/kernel/setup.c renamed from arch/ia64/sn/kernel/setup.c~altix-reinitialize-acpi-tables +2 -0
@@ -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);
 

_
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html