* RE: smpenum patch updated to 2.6.9-rc2
@ 2004-09-20 18:29 Grover, Andrew
[not found] ` <F760B14C9561B941B89469F59BA3A847078E2B48-sBd4vmA9Se6krb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Grover, Andrew @ 2004-09-20 18:29 UTC (permalink / raw)
To: Stian Jordet; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
> From: Stian Jordet [mailto:liste-NI9zH3lwcMKHXe+LvDLADg@public.gmane.org]
> > > 2) With acpi=off and CONFIG_X86_MPS the boot hangs at
> "ENABLING IO-
> > > APIC's"
> > > 4) Without your patch and acpi=off the boot hangs at:
> > >
> > > ENABLING IO-APIC IRQs
> > > Setting 2 in the phys_id_present_map
> > > ...changing IO-APIC Physical APIC ID to 2 ... ok.
>
> Why do I get two more lines without your patch? With your patch I only
> get the first line before it hangs...
The patch redoes arch/i386/kernel/io_apic.c setup_ioapic_ids_from_mpc.
(Its name loses the "from_mpc" part because it is used by both MPS and
ACPI in the smpenum patch.) The function is completely different and
some of the error messages changed verbosity.
If you'd like to really figure out why this system isn't working via
MPS, here are some things to try:
1) Is it hanging in that function? insert a printk at the very end, to
see.
2) Find the line that says "#define Dprintk (x...)" in
include/asm-i386/apic.h and change it to "#define Dprintk (x...) printk
(x...)". That should print out everything that's going on, so we can
compare the working ACPI case with the non-working MPS case.
Regards -- Andy
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
^ permalink raw reply [flat|nested] 6+ messages in thread* RE: smpenum patch updated to 2.6.9-rc2
@ 2004-09-15 21:17 Grover, Andrew
[not found] ` <F760B14C9561B941B89469F59BA3A847077F835A-sBd4vmA9Se6krb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Grover, Andrew @ 2004-09-15 21:17 UTC (permalink / raw)
To: Stian Jordet; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
[-- Attachment #1: Type: text/plain, Size: 920 bytes --]
> From: Stian Jordet [mailto:liste-NI9zH3lwcMKHXe+LvDLADg@public.gmane.org]
Hi Stian thanks a lot!
> I have a Asus CUV266-DLS smp motherboard with Via Apollo Pro 266
> chipset. It has never booted with io-apic in non-ACPI mode, and still
> doesn't. I just want to let you know my experiences with your patch.
>
> 1) With ACPI enabled everything works as it always has (one ACPI bug,
> but that's another story)
great...
> 2) With acpi=off and CONFIG_X86_MPS the boot hangs at "ENABLING IO-
> APIC's"
ok not a new bug...
> 3) With acpi=off and !CONFIG_X86_MPS the boot hangs at "Uncompressing
> Linux... Ok, booting the kernel".
Fixed, please try the attached patch.
> 4) Without your patch and acpi=off the boot hangs at:
>
> ENABLING IO-APIC IRQs
> Setting 2 in the phys_id_present_map
> ...changing IO-APIC Physical APIC ID to 2 ... ok.
ok great.
Thanks -- Regards -- Andy
[-- Attachment #2: smpenum.diff --]
[-- Type: application/octet-stream, Size: 1382 bytes --]
diff -Nru a/arch/i386/kernel/apic.c b/arch/i386/kernel/apic.c
--- a/arch/i386/kernel/apic.c 2004-09-15 14:13:36 -07:00
+++ b/arch/i386/kernel/apic.c 2004-09-15 14:13:36 -07:00
@@ -666,6 +666,7 @@
static int __init detect_init_APIC (void)
{
u32 h, l, features;
+ unsigned long lapic_addr;
extern void get_cpu_vendor(struct cpuinfo_x86*);
/* Disabled by DMI scan or kernel option? */
@@ -717,12 +718,12 @@
return -1;
}
set_bit(X86_FEATURE_APIC, boot_cpu_data.x86_capability);
- smp_lapic_addr = APIC_DEFAULT_PHYS_BASE;
+ lapic_addr = APIC_DEFAULT_PHYS_BASE;
/* The BIOS may have set up the APIC at some other address */
rdmsr(MSR_IA32_APICBASE, l, h);
if (l & MSR_IA32_APICBASE_ENABLE)
- smp_lapic_addr = l & MSR_IA32_APICBASE_BASE;
+ lapic_addr = l & MSR_IA32_APICBASE_BASE;
if (nmi_watchdog != NMI_NONE)
nmi_watchdog = NMI_LOCAL_APIC;
@@ -730,6 +731,8 @@
apic_printk(APIC_VERBOSE, "Found and enabled local APIC!\n");
apic_pm_activate();
+
+ smp_set_lapic_address(lapic_addr);
return 0;
diff -Nru a/arch/i386/kernel/io_apic.c b/arch/i386/kernel/io_apic.c
--- a/arch/i386/kernel/io_apic.c 2004-09-15 14:13:36 -07:00
+++ b/arch/i386/kernel/io_apic.c 2004-09-15 14:13:36 -07:00
@@ -735,7 +735,7 @@
{
int irq;
- if (skip_ioapic_setup == 1)
+ if (skip_ioapic_setup == 1 || !nr_ioapics)
return;
for (irq = 0; irq < NR_IRQS; irq++)
^ permalink raw reply [flat|nested] 6+ messages in thread* smpenum patch updated to 2.6.9-rc2
@ 2004-09-14 0:23 Grover, Andrew
[not found] ` <F760B14C9561B941B89469F59BA3A847077BA236-sBd4vmA9Se6krb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Grover, Andrew @ 2004-09-14 0:23 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Hi all,
The smpenum patch, which separates the ACPI and MPS-specific code from
each other in SMP init, has been updated to 2.6.9-rc2.
Latest Changes:
- Moved ACPI-specific code from io_apic.c and mpparse.c to acpi/boot.c
- Moved MPS-specific code from io_apic.c to mpparse.c
- Removed obsolete X86_CONFIG_MPPARSE config option
It is available at:
<http://www.kernel.org/pub/linux/kernel/people/grover/smp-20040913-2.6.9
-rc2.diff.gz>
Thanks -- Andy
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-09-21 2:01 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-20 18:29 smpenum patch updated to 2.6.9-rc2 Grover, Andrew
[not found] ` <F760B14C9561B941B89469F59BA3A847078E2B48-sBd4vmA9Se6krb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-09-21 2:01 ` Stian Jordet
-- strict thread matches above, loose matches on Subject: below --
2004-09-15 21:17 Grover, Andrew
[not found] ` <F760B14C9561B941B89469F59BA3A847077F835A-sBd4vmA9Se6krb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-09-20 12:59 ` Stian Jordet
2004-09-14 0:23 Grover, Andrew
[not found] ` <F760B14C9561B941B89469F59BA3A847077BA236-sBd4vmA9Se6krb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-09-14 22:00 ` Stian Jordet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox