RE: One-line patch for systems with ACPI enabled but incomplete tree

From: Magenheimer, Dan (HP Labs Fort Collins) <>
Date: 2005-09-01 06:28:25
> >--- 1.6/drivers/acpi/motherboard.c	Wed Nov 10 15:57:35 2004
> >+++ 1.7/drivers/acpi/motherboard.c	Fri Apr 22 16:47:41 2005
> >@@ -120,6 +120,7 @@
> > static void __init
> > acpi_reserve_resources (void)
> > {
> >+	if (!acpi_gbl_FADT) return;
> Is this the same simulator that runs arch/ia64/configs/sim_defconfig,
> but for your kernel ACPI is now enabled?
> Why is ACPI now enabled in the simulation?
> Why can't the simulator provide an FADT?
> Modifying (everybodies) Linux to work-around simulator bugs
> doesn't sound like a good idea for a number of reasons.

I have been working on a patch that allows real kernels to
run on this simulator... that is the same bits that work
on real hardware will run on the simulator.  This will make
debugging ia64 kernels easier for some situations.  Real kernels
of course have ACPI on and this is the only remaining (non-ia64)
code that fails when running a real kernel on the simulator.

The same ACPI setup code used by this simulator is
currently used for Xen/ia64 so the same problem
occurs there.

> From: Moore, Robert [] 
> Subject: RE: [ACPI] RE: One-line patch for systems with ACPI 
> enabled but incomplete tree
> I agree with Len's sentiments, assuming we are understanding 
> the problem
> correctly.
> The ACPI CA subsystem operates under the assumption that at least the
> following absolute minimum table set is available:
> It is quite simple for a simulator to provide these tables; see the
> AcpiExec "simulator" source code (provided with ACPI CA) for a good
> example of this.

If FADT is absolutely required for every ACPI tree, I see why
there is no check in the kernel code.  However, it still seems
like a bug to me as everything else works if the FADT pointer
is zero (with the above one line patch).

Thanks for the pointer... I will go find it and see if I can
leverage the code.

To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to
More majordomo info at
Received on Thu Sep 01 06:29:57 2005

This archive was generated by hypermail 2.1.8 : 2005-09-01 06:30:12 EST