Linux 2.4.0test11-ac1
Differences between 2.4.0test11ac1 and 2.4.0test11, pretty much all merged from stuff off the maintainers and kernel list.
For newcomers to these patches:
- You can find them on ftp.*.kernel.org/pub/linux/kernel/people/alan
- They are diffed against the base revision not cumulative diffs
- Please report -ac bugs to me. I'm sure Linus doesn't want to know
unless you can duplicate the problem on unadulterated 2.4test
Change Log
o Documentation for CONFIG_TOSHIBA
o Updated version of Rusty's kernel-hacking doc
o Updated SubmittingDrivers
o Added SubmittingPatches
o Updated procfs docs
o Updated initrd docs
o Support kgcc autodetect
o Link correctly with ACPI on ACPI_INTERPRETER off
o Rusty's fixes/review of unsafe set_bit usage
o Cleanup console_verbose() dunplication
o MTRR updates (36bit etc)
o Dont crash on boot with a dual cpu board holding a non intel cpu
o Ramdisk missing blkdev_put
o Radio driver cleanups
o BTTV radio config option
o Fix qcam VIDIOCGWIN bugs
o 3c503 error return cleanup
o 8390 seperate tx timeout path
o Acenic update
o Network driver check/request region fixes
o Epic100 update
o Tulip crash fix on weird eeproms
o ISAPnP hang on boot port fix
o CS46xx update
o Maestro pci_enable fix
o Support mixed pnp and legacy sb cards
o Fix function prototype in wacom drivr
o Hopefully fix the bugs in the FAT and HPFS file systems that
caused fs corruption
o Fix cramfs vanishing data bug
o Fix NLS config.in bug for SMB
o Fix generic bitops bugs
o Power management locking fixes
o filemap posix compliance fix
o Fix pte handling race
Also the ramfs changes are in my tree. I don't plan to submit the ramfs bits to Linus in their current state, thats just an Alan Convenience
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
Quoted 1 line · Alan Cox
o Dont crash on boot with a dual cpu board holding a non intel cpu
Is this the patch to check for the Local APIC?
JE
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
Quoted 4 lines · Alan Cox
Quoted 1 line
o Dont crash on boot with a dual cpu board holding a non intel cpu
Is this the patch to check for the Local APIC?
Yep
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
Quoted 5 lines · Alan Cox
Quoted 3 lines
Quoted 1 line
o Dont crash on boot with a dual cpu board holding a non intel cpu
Is this the patch to check for the Local APIC?
Yep
Hmm, that's weird -- the check is already there for some time -- seeverify_local_APIC(). It works and it's reliable even for the 82489DX.
Signature · 8 lines
+ Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: [email protected], PGP key available + - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] Please read the FAQ at http://www.tux.org/lkml/
Quoted 6 lines
Quoted 3 lines
Quoted 2 lines
Quoted 1 line
o Dont crash on boot with a dual cpu board holding a non intel cpu
Is this the patch to check for the Local APIC?
Yep
Hmm, that's weird -- the check is already there for some time -- see
verify_local_APIC(). It works and it's reliable even for the 82489DX.
Its completely unsafe. The CPU in question is NOT intel. It has no APIC instead you poke around randomly in MMIO space and the box dies. You have to check the cpu capabilities too
Alan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
Quoted 3 lines · Alan Cox
Its completely unsafe. The CPU in question is NOT intel. It has no APIC instead you poke around randomly in MMIO space and the box dies. You have to check the cpu capabilities too
Well, does any SMP board map anything into the local APIC space? After
saying there a real APIC there??? Now *THAT* is completely unsafe. How is that supposed to work when there actually is an APIC-equipped CPU put in?
Poking unoccupied space leads to bus error exceptions for certain archs
but I can't actually recall existence of such events for i386...
Signature · 8 lines
+ Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: [email protected], PGP key available + - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] Please read the FAQ at http://www.tux.org/lkml/
Quoted 4 lines
Well, does any SMP board map anything into the local APIC space? After
saying there a real APIC there??? Now *THAT* is completely unsafe. How is that supposed to work when there actually is an APIC-equipped CPU put in?
Quite a few dual pentium socket 7 boards report dual cpu and apic in the MP table regardless of the capabilities of the CPU installed. Its apparently legal to do so. There is an apic capability flag that should be tested before making any assumptions about APIC availability on a processor.
And yes some boards crash otherwise.
Alan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
Quoted 3 lines · Alan Cox
Quite a few dual pentium socket 7 boards report dual cpu and apic in the MP table regardless of the capabilities of the CPU installed. Its apparently legal to do so. There is an apic capability flag that should be tested before
It's not legal -- the MPS is very explicit the MP-table must reflect a
real configuration.
Quoted 1 line
making any assumptions about APIC availability on a processor.
OK, but how does it handle the 82489DX? There are valid configurations
using this kind of APIC, including Pentium P54C ones...
Quoted 1 line
And yes some boards crash otherwise.
Hmm, the only solution I can see is to check the APIC version in the
MP-table and only if an integrated version is reported then check capabilities. But can we trust the version reported given that amount of brokenness out there?
Maciej
Signature · 8 lines
+ Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: [email protected], PGP key available + - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] Please read the FAQ at http://www.tux.org/lkml/
Quoted 9 lines · Maciej W. Rozycki
Quoted 3 lines · Alan Cox
Quite a few dual pentium socket 7 boards report dual cpu and apic in the MP table regardless of the capabilities of the CPU installed. Its apparently legal to do so. There is an apic capability flag that should be tested before
It's not legal -- the MPS is very explicit the MP-table must reflect a
real configuration.
Legal or not, there are broken BIOSes out there. I had a Tyan Tomcat 4S that exhibited this behavior. Even though it was a single socket board, it had the same BIOS as the 4D (dual socket version) and would crash on an SMP kernel with a K6.
--
Brian Gerst
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
Quoted 4 lines
Quoted 2 lines
MP table regardless of the capabilities of the CPU installed. Its apparently legal to do so. There is an apic capability flag that should be tested before
It's not legal -- the MPS is very explicit the MP-table must reflect a
real configuration.
Intel tell me otherwise. The real world also disagrees which makes the discussion a little pointless. We have to handle the real situation where this occurs
Quoted 4 lines
Quoted 1 line
making any assumptions about APIC availability on a processor.
OK, but how does it handle the 82489DX? There are valid configurations
using this kind of APIC, including Pentium P54C ones...
These processors don't report the APIC on the cpuid ? If so then I guess the fix is something like this
if( cpuid says there is no local apic && vendor != intel)
Intel stuff appears to always be happy poking in APIC space. I don't know if this is related to the chip internals on the non APIC capable chips.
Alan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
Quoted 6 lines · Alan Cox
Quoted 2 lines
It's not legal -- the MPS is very explicit the MP-table must reflect a
real configuration.Intel tell me otherwise. The real world also disagrees which makes the discussion a little pointless. We have to handle the real situation where this occurs
Quoting from "MultiProcessor Specification" version 1.4, p. 5-2:
"The default system configurations are designed to support dual-processor
systems with fixed configurations. Systems with dynamically configurable components, for example, a uniprocessor system with an upgrade socket for the second processor, must always generate the MP configuration table. Failure to do so may cause the operating system to install the wrong modules due to erroneous configuration information."
This will not fix the broken work, unfortunately...
Quoted 5 lines
Quoted 2 lines
OK, but how does it handle the 82489DX? There are valid configurations
using this kind of APIC, including Pentium P54C ones...These processors don't report the APIC on the cpuid ? If so then I guess the fix is something like this
No, they don't, as they have their on-chip APICs disabled by hardware.
Otherwise they wouldn't be able to utilize a discrete local APIC.
Quoted 2 lines
Intel stuff appears to always be happy poking in APIC space. I don't know if this is related to the chip internals on the non APIC capable chips.
It might be related to the chipset setup. I wonder whether would it
crash on accessing another area of unoccupied space. Hmm, after thinking for I while I recall there exist an event that's called "PCI master abort" and that may happen when no device responds to a PCI cycle. What chipset do the affected systems use? Is it HX or NX? I have docs for both and I may search for a possible cause. Maybe we could fix it as a quirk...
Maciej
Signature · 8 lines
+ Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: [email protected], PGP key available + - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] Please read the FAQ at http://www.tux.org/lkml/
Followup to: <[email protected]> By author: Alan Cox <[email protected]> In newsgroup: linux.dev.kernel
Quoted 6 lines
Quoted 5 lines
Quoted 2 lines
making any assumptions about APIC availability on a processor.
OK, but how does it handle the 82489DX? There are valid configurations
using this kind of APIC, including Pentium P54C ones...
Quoted 8 lines
These processors don't report the APIC on the cpuid ? If so then I guess the fix is something like this
if( cpuid says there is no local apic && vendor != intel)Intel stuff appears to always be happy poking in APIC space. I don't know if this is related to the chip internals on the non APIC capable chips.
Nononono... the 82489DX is an *external* APIC, which should be usable on any Socket 5/7 CPU...
-hpa
Signature · 7 lines
<[email protected]> at work, <[email protected]> in private! "Unix gives you enough rope to shoot yourself in the foot." http://www.zytor.com/~hpa/puzzle.txt - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] Please read the FAQ at http://www.tux.org/lkml/
Quoted 5 lines
Quoted 2 lines
Intel stuff appears to always be happy poking in APIC space. I don't know if this is related to the chip internals on the non APIC capable chips.
Nononono... the 82489DX is an *external* APIC, which should be usable on any Socket 5/7 CPU...
I know of no socket 7 board with an 82489DX, and no board on the planet which has 82489DX and works SMP with a non intel processor. I accept its a heuristic but so is the current behaviour, and the current heuristic isnt working for as many cases.
Alan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
Quoted 4 lines · Alan Cox
I know of no socket 7 board with an 82489DX, and no board on the planet which has 82489DX and works SMP with a non intel processor. I accept its a heuristic but so is the current behaviour, and the current heuristic isnt working for as many cases.
Do you want me to contact you with a user of such a system? A modular
server with the ability to put up to four P54C CPUs. It uses 82489DX APICs (probably due to the fact there was no standalone I/O APIC chip available at that time) so CPUs report no APIC flag. And it starts in the PIC mode as opposed to the Virtual Wire. I may send you his bootstrap log if you want to (but not today -- I don't have it handy).
Needless to say, it handles the MP-table fine.
Anyway I certainly do not negate the existence of broken boards (and Tyan
BIOSes seem to be among the worst ones). I just insist on having a sane way to detect a real APIC and I feel more likely to "punish" broken setups than perfecly good ones. These boards can run UP kernels with no problem, can't they? If so, then just tell their users not to use MP kernels.
Could you please tell me what these broken boards report in MP-tables
when there is no APIC? Maybe we could find a way to distinguish them. All 82489DX-based boards I've met report 0x1 as the APIC revision (I don't think there are higher 82489DX revisions).
Maciej
Signature · 8 lines
+ Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: [email protected], PGP key available + - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] Please read the FAQ at http://www.tux.org/lkml/
Quoted 4 lines
APICs (probably due to the fact there was no standalone I/O APIC chip available at that time) so CPUs report no APIC flag. And it starts in the PIC mode as opposed to the Virtual Wire. I may send you his bootstrap log if you want to (but not today -- I don't have it handy).
Ok. That means my check is over zealous.
Quoted 4 lines
Could you please tell me what these broken boards report in MP-tables
when there is no APIC? Maybe we could find a way to distinguish them. All 82489DX-based boards I've met report0x1as the APIC revision (I don't think there are higher 82489DX revisions).
I think it reports 1.1 apics from memory. Its simply hardcoded in the bios rather than the configurable flash area.
The following change should make all of this work
if(vendor!=INTEL && !has_apic) /* No SMP */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
Quoted 2 lines · Alan Cox
I think it reports 1.1 apics from memory. Its simply hardcoded in the bios rather than the configurable flash area.
So we might check for it. Good!
Quoted 4 lines
The following change should make all of this work
if(vendor!=INTEL && !has_apic) /* No SMP */
And suddenly certain i486 systems do not work anymore? Well, I haven't
actually heard of an i486 SMP system running Linux so far (maybe they just work fine, so no reports). But we could try the following, instead:
if (boot_cpu_id != -1U && APIC_INTEGRATED(apic_version[boot_cpu_id]) && !has_apic) /* No SMP */
It should filter broken MP-tables and work fine on all 82489DX-based systems. I'll have a patch soon if we agree on this solution.
Maciej
Signature · 8 lines
+ Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: [email protected], PGP key available + - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] Please read the FAQ at http://www.tux.org/lkml/
Quoted 4 lines
Quoted 2 lines
if(vendor!=INTEL && !has_apic) /* No SMP */And suddenly certain i486 systems do not work anymore? Well, I haven't
i486 is an intel processor
Quoted 6 lines
if (boot_cpu_id != -1U && APIC_INTEGRATED(apic_version[boot_cpu_id]) && !has_apic) /* No SMP */It should filter broken MP-tables and work fine on all 82489DX-based systems. I'll have a patch soon if we agree on this solution.
we could try that. It doesnt seem unreasonable
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
Quoted 8 lines · Alan Cox
Quoted 5 lines
Quoted 3 lines
if(vendor!=INTEL && !has_apic) /* No SMP */And suddenly certain i486 systems do not work anymore? Well, I haven't
i486 is an intel processor
... but doesn't announce itself as such.
Quoted 8 lines
Quoted 6 lines
if (boot_cpu_id != -1U && APIC_INTEGRATED(apic_version[boot_cpu_id]) && !has_apic) /* No SMP */It should filter broken MP-tables and work fine on all 82489DX-based systems. I'll have a patch soon if we agree on this solution.
we could try that. It doesnt seem unreasonable
Seems reasonable enough.
Signature · 7 lines
<[email protected]> at work, <[email protected]> in private! "Unix gives you enough rope to shoot yourself in the foot." http://www.zytor.com/~hpa/puzzle.txt - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] Please read the FAQ at http://www.tux.org/lkml/
Quoted 4 lines
Quoted 3 lines
Quoted 1 line
And suddenly certain i486 systems do not work anymore? Well, I haven't
i486 is an intel processor
... but doesn't announce itself as such.
Depends which stepping. We can check for and allow 'unknown' vendor too. The socket7 chips all have cpuid or other id schemes.
Alan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
Alan,
Here is a patch that should fix the problem. I could trim downverify_local_APIC() now, but given the code freeze I guess it's for post-2.4.
Maciej
Signature · 70 lines
+ Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: [email protected], PGP key available + diff -up --recursive --new-file linux-2.4.0-test11-ac2.macro/arch/i386/kernel/mpparse.c linux-2.4.0-test11-ac2/arch/i386/kernel/mpparse.c --- linux-2.4.0-test11-ac2.macro/arch/i386/kernel/mpparse.c Wed Nov 22 21:05:29 2000 +++ linux-2.4.0-test11-ac2/arch/i386/kernel/mpparse.c Mon Nov 20 18:01:58 2000 @@ -486,18 +486,6 @@ void __init get_smp_config (void) { struct intel_mp_floating *mpf = mpf_found; printk("Intel MultiProcessor Specification v1.%d\n", mpf->mpf_specification); - - /* Spot non intel cpus in boards whose bios is a bit loose with the MP - specification. If the CPU is intel then it may have an external APIC */ - - if(boot_cpu_data.x86_vendor != X86_VENDOR_INTEL && - !test_bit(X86_FEATURE_APIC, boot_cpu_data.x86_capability)) - { - printk(KERN_WARNING "MP table found but your processor appears not to be SMP capable.\n"); - printk(KERN_WARNING "Boot will continue single processor.\n"); - return; - } - if (mpf->mpf_feature2 & (1<<7)) { printk(" IMCR and PIC compatibility mode.\n"); pic_mode = 1; diff -up --recursive --new-file linux-2.4.0-test11-ac2.macro/arch/i386/kernel/setup.c linux-2.4.0-test11-ac2/arch/i386/kernel/setup.c --- linux-2.4.0-test11-ac2.macro/arch/i386/kernel/setup.c Wed Nov 22 21:05:29 2000 +++ linux-2.4.0-test11-ac2/arch/i386/kernel/setup.c Wed Nov 22 22:22:15 2000 @@ -779,9 +779,7 @@ void __init setup_arch(char **cmdline_p) paging_init(); #ifdef CONFIG_X86_IO_APIC /* - * get boot-time SMP configuration: - * Don't try and use the SMP configuration/APIC unless the CPU - * has a local APIC. + * get boot-time SMP configuration: */ if (smp_found_config) get_smp_config(); diff -up --recursive --new-file linux-2.4.0-test11-ac2.macro/arch/i386/kernel/smpboot.c linux-2.4.0-test11-ac2/arch/i386/kernel/smpboot.c --- linux-2.4.0-test11-ac2.macro/arch/i386/kernel/smpboot.c Mon Nov 20 18:01:59 2000 +++ linux-2.4.0-test11-ac2/arch/i386/kernel/smpboot.c Wed Nov 22 22:23:06 2000 @@ -886,8 +886,10 @@ void __init smp_boot_cpus(void) /* * If we couldn't find a local APIC, then get out of here now! */ - if (!verify_local_APIC()) { - printk(KERN_ERR "BIOS bug, local APIC at 0x%lX not detected!...\n", mp_lapic_addr); + if (APIC_INTEGRATED(apic_version[boot_cpu_id]) && + !test_bit(X86_FEATURE_APIC, boot_cpu_data.x86_capability)) { + printk(KERN_ERR "BIOS bug, local APIC #%d not detected!...\n", + boot_cpu_id); printk(KERN_ERR "... forcing use of dummy APIC emulation. (tell your hw vendor)\n"); #ifndef CONFIG_VISWS io_apic_irqs = 0; @@ -896,6 +898,8 @@ void __init smp_boot_cpus(void) smp_num_cpus = 1; goto smp_done; } + + verify_local_APIC(); /* * If SMP should be disabled, then really disable it! - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] Please read the FAQ at http://www.tux.org/lkml/
Quoted 6 lines · Alan Cox
Quoted 4 lines
Quoted 2 lines
if(vendor!=INTEL && !has_apic) /* No SMP */And suddenly certain i486 systems do not work anymore? Well, I haven't
i486 is an intel processor
... but is there a reason why for example AMD 486's couldn't work in a 82489DX-based SMP board?
Signature · 6 lines
Vojtech Pavlik SuSE Labs - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] Please read the FAQ at http://www.tux.org/lkml/
Followup to: <[email protected]> By author: Alan Cox <[email protected]> In newsgroup: linux.dev.kernel
Quoted 9 lines
Quoted 3 lines
Nononono... the 82489DX is an *external* APIC, which should be usable on any Socket 5/7 CPU...
I know of no socket 7 board with an 82489DX, and no board on the planet which has 82489DX and works SMP with a non intel processor. I accept its a heuristic but so is the current behaviour, and the current heuristic isnt working for as many cases.
Fair enough.
-hpa
Signature · 7 lines
<[email protected]> at work, <[email protected]> in private! "Unix gives you enough rope to shoot yourself in the foot." http://www.zytor.com/~hpa/puzzle.txt - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] Please read the FAQ at http://www.tux.org/lkml/
Quoted 3 lines · Alan Cox
Change Log
o Cleanup
console_verbose()dunplication
include/linux/kernel.h: if we are adding new inlines to kernel headers, they should be 'static inline'..
Quoted 5 lines
o 3c503 error return cleanup o 8390 seperate tx timeout path o Acenic update o Network driver check/request region fixes o Epic100 update
dhinds seemed to question the epic100 fix which is enclosed in CONFIG_CARDBUS... also I have a big endian fix for epic100 in my local tree.
The change to hp-plus is totally unnecessary and backwards... [un]load_8390_module is null, has been for a while. A bombing run was made recently through most drivers to -remove- the now-null calls to *_8390_module.
Quoted 1 line
o Tulip crash fix on weird eeproms
Hopefully an update with this and more will be out this week.
Jeff
Signature · 7 lines
Jeff Garzik | Building 1024 | The chief enemy of creativity is "good" sense MandrakeSoft | -- Picasso - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] Please read the FAQ at http://www.tux.org/lkml/
Quoted 3 lines
Quoted 1 line
o Cleanup
console_verbose()dunplication
include/linux/kernel.h: if we are adding new inlines to kernel headers, they should be 'static inline'..
Agreed
Quoted 5 lines
Quoted 1 line
o Epic100 update
dhinds seemed to question the epic100 fix which is enclosed in
CONFIG_CARDBUS... also I have a big endian fix for epic100 in my local tree.
I dont think its CONFIG_CARDBUS, we need to test the chip version. But as it stands without that newer cards dont work. Its a WiP
Quoted 4 lines
The change to hp-plus is totally unnecessary and backwards... [un]load_8390_module is null, has been for a while. A bombing run was made recently through most drivers to -remove- the now-null calls to
*_8390_module.
Thats just cruft, already done
Quoted 2 lines
Quoted 1 line
o Tulip crash fix on weird eeproms
Hopefully an update with this and more will be out this week.
Ok
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/