Re: [Bugme-new] [Bug 7495] New: Kernel periodically hangs.
From: Adrian Bunk
Date: Sun Nov 12 2006 - 08:38:28 EST
On Sun, Nov 12, 2006 at 02:16:16PM +0100, Arjan van de Ven wrote:
>
> > Some APIC-related bugs in the kernel Bugzilla that have been reported or
> > confirmed during the last 12 months (I only looked at "apic" in the
> > subject, there might be more related bugs in the Bugzilla):
> >
> > #5038 Fast running system clock with IO-APIC enabled
>
> This is a UP machine. NotInteresting(tm) wrt APIC.
>...
Currently it's a supported configuration.
We must either handle such cases or explicitely disable the APIC on all
UP machines (BTW: Is there any way to handle this when installing a
distribution kernel with CONFIG_HOTPLUG_CPU=y on an UP machine?).
> > > 1) Only care about SMP machines. APIC on true UP (no
> > > Hyperthreading/Dualcore) is a thing no hardware vendor tests (Microsoft
> > > doesn't use it) and is just too likely to trip up SMM and other bad BIOS
> > > stuff.
> > > * exception is probably people who don't WANT to use apic but where it
> > > somehow gets used anyway; if that happens we probably have the magic
> > > bullet that causes the regression :)
> >
> > On i386, it's a kernel configuration option.
>
> yes but it's generally a bad idea to set it; it only works on some
> machines. (and it can't be fixed)
> >
> > On x86_64, the APIC is currently always enabled even when configuring a
> > UP kernel.
>
> I think that's a mistake. But oh well, I suspect in practice ACPI/BIOS
> cause it to be turned off automatic most of the time.
I'd doubt the latter. Even on my cheap Asus board running an i386
AMD Athlon XP with 1.8 GHz the APIC is both used and working without any
problems.
> > > 2) Only care about ACPI using kernels. Non-ACPI uses MPS tables for
> > > this, but most vendors hardly maintain those anymore at all and they are
> > > generally just /dev/random nowadays
> >
> > What about non-ACPI SMP?
>
> if the machine is new enough to run ACPI I don't care about the non-ACPI
> case; just enable it. Really. On newish machines (and that is 7 years
> old or newer) MPS tables are NOT getting much if any attention by the
> bios guys. So Linux should use ACPI, and if you deliberately disable
> ACPI and THEN hit a problem to a large degree you asked for the problem
> in the first place.
>
> Older machines, different story.
My point was regarding the latter ones...
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/