public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* ACPI disappears silently if !CONFIG_X86_LOCAL_APIC
@ 2003-08-15 15:34 Dominik Brodowski
  0 siblings, 0 replies; 4+ messages in thread
From: Dominik Brodowski @ 2003-08-15 15:34 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
	andrew.grover-ral2JQCrhuEAvxtiuMwx3w

On some systems where ACPI used to work fine, APIC support is not really 
needed in the kernel because the mobile chipset/processor doesn't support
it. Nonetheless, in 2.6.0-test3-bk-current, CONFIG_ACPI depends on
CONFIG_X86_LOCAL_APIC. As it's only a requirement for ACPI_HT, this patch
should be fine [it compiles and it works on my notebook].

	Dominik

--- linux-2.6.0-test3+2/drivers/acpi/Kconfig.original	2003-08-15 16:48:16.000000000 +0200
+++ linux-2.6.0-test3+2/drivers/acpi/Kconfig	2003-08-15 16:53:56.000000000 +0200
@@ -30,7 +30,7 @@
 	bool "Full ACPI Support"
 	depends on !X86_VISWS
 	depends on !IA64_HP_SIM
-	depends on IA64 || (X86 && ACPI_HT)
+	depends on IA64 || (X86 && ACPI_HT) || (X86 && !X86_LOCAL_APIC)
 	default y
 	---help---
 	  Advanced Configuration and Power Interface (ACPI) support for 


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01

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

* RE: ACPI disappears silently if !CONFIG_X86_LOCAL_APIC
@ 2003-08-15 17:40 Brown, Len
       [not found] ` <BF1FE1855350A0479097B3A0D2A80EE009FC5B-N2PTB0HCzHJF3Yvz3xaN/VDQ4js95KgL@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Brown, Len @ 2003-08-15 17:40 UTC (permalink / raw)
  To: Dominik Brodowski, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
	Grover, Andrew

Dominik,
I think your patch is correct, and I'll include it in my next update.

CONFIG_ACPI_HT, as you can see, is really just an alias for
CONFIG_ACPI_BOOT.  It is necessary, but not suficient to enable HT.
CONFIG_SMP is also needed to enable > 1 processor, and it will bring
with it CONFIG_X86_LOCAL_APIC -- so CONFIG_ACPI_HT doesn't need to
depend on it -- and it should be possible to exclude LAPIC code and
still run ACPI.

Thanks for the catch.

-Len

Ps.
Does your laptop really have no LAPIC, or you just prefer to not use
LAPIC?
Note that even if the system has no IOAPIC, the LAPIC is used for timer
interrupts.  On a laptop w/o IOAPIC, you'd see this in the boot
messages:

Found and enabled local APIC!
...
Using local APIC timer interrupts.
calibrating APIC timer ...

> -----Original Message-----
> From: Dominik Brodowski [mailto:linux-JhLEnvuH02M@public.gmane.org] 
> Sent: Friday, August 15, 2003 11:34 AM
> To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org; Grover, Andrew
> Subject: [ACPI] ACPI disappears silently if !CONFIG_X86_LOCAL_APIC
> 
> 
> On some systems where ACPI used to work fine, APIC support is 
> not really 
> needed in the kernel because the mobile chipset/processor 
> doesn't support
> it. Nonetheless, in 2.6.0-test3-bk-current, CONFIG_ACPI depends on
> CONFIG_X86_LOCAL_APIC. As it's only a requirement for 
> ACPI_HT, this patch
> should be fine [it compiles and it works on my notebook].
> 
> 	Dominik
> 
> --- linux-2.6.0-test3+2/drivers/acpi/Kconfig.original	
> 2003-08-15 16:48:16.000000000 +0200
> +++ linux-2.6.0-test3+2/drivers/acpi/Kconfig	2003-08-15 
> 16:53:56.000000000 +0200
> @@ -30,7 +30,7 @@
>  	bool "Full ACPI Support"
>  	depends on !X86_VISWS
>  	depends on !IA64_HP_SIM
> -	depends on IA64 || (X86 && ACPI_HT)
> +	depends on IA64 || (X86 && ACPI_HT) || (X86 && !X86_LOCAL_APIC)
>  	default y
>  	---help---
>  	  Advanced Configuration and Power Interface (ACPI) support for 
> 
> 
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet
> _072303_01/01
> _______________________________________________
> Acpi-devel mailing list
> Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/acpi-devel
> 


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01

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

* RE: ACPI disappears silently if !CONFIG_X86_LOCAL_APIC
@ 2003-08-15 17:49 Brown, Len
  0 siblings, 0 replies; 4+ messages in thread
From: Brown, Len @ 2003-08-15 17:49 UTC (permalink / raw)
  To: Brown, Len, Dominik Brodowski,
	acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, Grover, Andrew


> I think your patch is correct

I should note that I applied slightly different syntax -- removed
X86_LOCAL_APIC from acpi/Kconfig althgether.

Cheers,
-Len


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01

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

* Re: ACPI disappears silently if !CONFIG_X86_LOCAL_APIC
       [not found] ` <BF1FE1855350A0479097B3A0D2A80EE009FC5B-N2PTB0HCzHJF3Yvz3xaN/VDQ4js95KgL@public.gmane.org>
@ 2003-08-18 10:02   ` Bas Mevissen
  0 siblings, 0 replies; 4+ messages in thread
From: Bas Mevissen @ 2003-08-18 10:02 UTC (permalink / raw)
  To: Brown, Len; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Brown, Len wrote:

> Ps.
> Does your laptop really have no LAPIC, or you just prefer to not use
> LAPIC?
> Note that even if the system has no IOAPIC, the LAPIC is used for timer
> interrupts.  On a laptop w/o IOAPIC, you'd see this in the boot
> messages:
> 

Is it a problem to have the local APIC support not compiled into the kernel?

What if the kernel refuses to enable local APIC because of a a broken 
BIOS report (or something like that, forgot the exact message). It that 
fixable with the DSDT or something else?

Regards,

Bas.





-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01

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

end of thread, other threads:[~2003-08-18 10:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-15 17:40 ACPI disappears silently if !CONFIG_X86_LOCAL_APIC Brown, Len
     [not found] ` <BF1FE1855350A0479097B3A0D2A80EE009FC5B-N2PTB0HCzHJF3Yvz3xaN/VDQ4js95KgL@public.gmane.org>
2003-08-18 10:02   ` Bas Mevissen
  -- strict thread matches above, loose matches on Subject: below --
2003-08-15 17:49 Brown, Len
2003-08-15 15:34 Dominik Brodowski

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