linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: [PATCH] 'noapic' already handled elsewhere
@ 2003-08-21 17:09 Brown, Len
  2003-08-21 21:11 ` Jeff Garzik
  0 siblings, 1 reply; 4+ messages in thread
From: Brown, Len @ 2003-08-21 17:09 UTC (permalink / raw)
  To: Jeff Garzik, torvalds; +Cc: Grover, Andrew, zwane, linux-kernel

Jeff,
This won't work.
acpi_boot_init() is called from setup_arch(), which is called from
start_kernel() _before_ parse_options().  Ie. ACPI needs to consume this
flag before __setup() is invoked.

-Len

> -----Original Message-----
> From: Jeff Garzik [mailto:jgarzik@pobox.com] 
> Sent: Thursday, August 21, 2003 12:15 PM
> To: torvalds@osdl.org
> Cc: Brown, Len; Grover, Andrew; zwane@linuxpower.ca; 
> linux-kernel@vger.kernel.org
> Subject: [PATCH] 'noapic' already handled elsewhere
> 
> 
> I sent a previous patch to s/LOCAL_APIC/IO_APIC/, as Zwane noticed
> my first patch needed that.  In that patch, I commented __setup()
> would be better.
> 
> Well... line 718 of arch/i386/kernel/io_apic.c _already_ handles this
> case, using __setup() properly.
> 
> Word of warning... patch only compile tested, but seems obvious from
> looking at io_apic.c.
> 
> BTW, why isn't ACPI using __setup() as well?  I don't see that ACPI
> needs to patch arch/i386/kernel/setup.c at all.
> 
> 
> ===== arch/i386/kernel/setup.c 1.94 vs edited =====
> --- 1.94/arch/i386/kernel/setup.c	Thu Aug 21 01:32:04 2003
> +++ edited/arch/i386/kernel/setup.c	Thu Aug 21 12:09:13 2003
> @@ -544,12 +544,6 @@
>  			if (!acpi_force) acpi_disabled = 1;
>  		}
>  
> -#ifdef CONFIG_X86_LOCAL_APIC
> -		/* disable IO-APIC */
> -		else if (!memcmp(from, "noapic", 6)) {
> -			skip_ioapic_setup = 1;
> -		}
> -#endif /* CONFIG_X86_LOCAL_APIC */
>  #endif /* CONFIG_ACPI_BOOT */
>  
>  		/*
> 

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

* Re: [PATCH] 'noapic' already handled elsewhere
  2003-08-21 17:09 [PATCH] 'noapic' already handled elsewhere Brown, Len
@ 2003-08-21 21:11 ` Jeff Garzik
  0 siblings, 0 replies; 4+ messages in thread
From: Jeff Garzik @ 2003-08-21 21:11 UTC (permalink / raw)
  To: Brown, Len; +Cc: torvalds, Grover, Andrew, zwane, linux-kernel

Brown, Len wrote:
> Jeff,
> This won't work.
> acpi_boot_init() is called from setup_arch(), which is called from
> start_kernel() _before_ parse_options().  Ie. ACPI needs to consume this
> flag before __setup() is invoked.


Thanks for the correction.  I'll resend the earlier 
s/LOCAL_APIC/IO_APIC/ patch then.

Just found another ACPI bug in 2.6:

> config ACPI_HT
>         bool "ACPI Processor Enumeration for HT"
>         depends on (X86 && X86_LOCAL_APIC)
>         default y
[...]
> config ACPI
>         bool "Full ACPI Support"
>         depends on !X86_VISWS
>         depends on !IA64_HP_SIM
>         depends on IA64 || (X86 && ACPI_HT)


So CONFIG_ACPI is not allowed on uniprocessor anymore, _and_ it requires 
HyperThreading code?  ;-)  No wonder CONFIG_ACPI didn't appear for my 
uniprocessor Pentium3 'make oldconfig'  ;-)

(ACPI requires ACPI_HT, which requires LOCAL_APIC)

Another reason why I was saying that CONFIG_ACPI should be the toplevel 
config option (even if CONFIG_ACPI never actually appears in any code, 
but only in Kconfig)...

	Jeff




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

* RE: [PATCH] 'noapic' already handled elsewhere
@ 2003-08-21 21:33 Brown, Len
  0 siblings, 0 replies; 4+ messages in thread
From: Brown, Len @ 2003-08-21 21:33 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: torvalds, Grover, Andrew, zwane, linux-kernel

Re: config
Yes, I fixed this they way you suggested yesterday, both in 2.4 and 2.6.
The 2.4 tree is being tested, and the 2.6 patch is being buttoned up
now.


Thanks,
-Len

Ps   I sent a note on this to acpi-devel yesterday, but just got a
message from "Mail Delivery System [Mailer-Daemon@vasoftware.com]" that
my message has been waiting to go out for over 8 hours...


> -----Original Message-----
> From: Jeff Garzik [mailto:jgarzik@pobox.com] 
> Sent: Thursday, August 21, 2003 5:11 PM
> To: Brown, Len
> Cc: torvalds@osdl.org; Grover, Andrew; zwane@linuxpower.ca; 
> linux-kernel@vger.kernel.org
> Subject: Re: [PATCH] 'noapic' already handled elsewhere
> 
> 
> Brown, Len wrote:
> > Jeff,
> > This won't work.
> > acpi_boot_init() is called from setup_arch(), which is called from
> > start_kernel() _before_ parse_options().  Ie. ACPI needs to 
> consume this
> > flag before __setup() is invoked.
> 
> 
> Thanks for the correction.  I'll resend the earlier 
> s/LOCAL_APIC/IO_APIC/ patch then.
> 
> Just found another ACPI bug in 2.6:
> 
> > config ACPI_HT
> >         bool "ACPI Processor Enumeration for HT"
> >         depends on (X86 && X86_LOCAL_APIC)
> >         default y
> [...]
> > config ACPI
> >         bool "Full ACPI Support"
> >         depends on !X86_VISWS
> >         depends on !IA64_HP_SIM
> >         depends on IA64 || (X86 && ACPI_HT)
> 
> 
> So CONFIG_ACPI is not allowed on uniprocessor anymore, _and_ 
> it requires 
> HyperThreading code?  ;-)  No wonder CONFIG_ACPI didn't appear for my 
> uniprocessor Pentium3 'make oldconfig'  ;-)
> 
> (ACPI requires ACPI_HT, which requires LOCAL_APIC)
> 
> Another reason why I was saying that CONFIG_ACPI should be 
> the toplevel 
> config option (even if CONFIG_ACPI never actually appears in 
> any code, 
> but only in Kconfig)...
> 
> 	Jeff
> 
> 
> 
> 

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

* [PATCH] 'noapic' already handled elsewhere
@ 2003-08-21 16:14 Jeff Garzik
  0 siblings, 0 replies; 4+ messages in thread
From: Jeff Garzik @ 2003-08-21 16:14 UTC (permalink / raw)
  To: torvalds; +Cc: len.brown, andrew.grover, zwane, linux-kernel

I sent a previous patch to s/LOCAL_APIC/IO_APIC/, as Zwane noticed
my first patch needed that.  In that patch, I commented __setup()
would be better.

Well... line 718 of arch/i386/kernel/io_apic.c _already_ handles this
case, using __setup() properly.

Word of warning... patch only compile tested, but seems obvious from
looking at io_apic.c.

BTW, why isn't ACPI using __setup() as well?  I don't see that ACPI
needs to patch arch/i386/kernel/setup.c at all.


===== arch/i386/kernel/setup.c 1.94 vs edited =====
--- 1.94/arch/i386/kernel/setup.c	Thu Aug 21 01:32:04 2003
+++ edited/arch/i386/kernel/setup.c	Thu Aug 21 12:09:13 2003
@@ -544,12 +544,6 @@
 			if (!acpi_force) acpi_disabled = 1;
 		}
 
-#ifdef CONFIG_X86_LOCAL_APIC
-		/* disable IO-APIC */
-		else if (!memcmp(from, "noapic", 6)) {
-			skip_ioapic_setup = 1;
-		}
-#endif /* CONFIG_X86_LOCAL_APIC */
 #endif /* CONFIG_ACPI_BOOT */
 
 		/*

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

end of thread, other threads:[~2003-08-21 21:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-21 17:09 [PATCH] 'noapic' already handled elsewhere Brown, Len
2003-08-21 21:11 ` Jeff Garzik
  -- strict thread matches above, loose matches on Subject: below --
2003-08-21 21:33 Brown, Len
2003-08-21 16:14 Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).