Linux 2.4.11-pre4
Hello Linus,
the new and very cool Multiquad NUMA stuff break something...
gcc -D__KERNEL__ -I/usr/src/linux-2.4.11-pre4-preempt/include -Wall -Wstrict-prototypes -Wno-trigraphs -O -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -mcpu=k6 -mpreferred-stack-boundary=2 -malign-functions=4 -fschedule-insns2
-fexpensive-optimizations -c -o mpparse.o mpparse.cmpparse.c: In function `MP_processor_info':
mpparse.c:195: `clustered_apic_mode' undeclared (first use in this function) mpparse.c:195: (Each undeclared identifier is reported only once mpparse.c:195: for each function it appears in.)mpparse.c: In function `smp_read_mpc':
mpparse.c:386: `clustered_apic_mode' undeclared (first use in this function) make[1]: *** [mpparse.o] Error 1
make[1]: Leaving directory `/usr/src/linux-2.4.11-pre4-preempt/arch/i386/kernel'
make: *** [_dir_arch/i386/kernel] Error 2
269.520u 29.200s 5:45.26 86.5% 0+0k 0+0io 1007275pf+0w
-Dieter
Odd. Compiles for me with and without SMP support turned on. Does "linux-2.4.11-pre4-preempt" mean you're running with other patches over the raw kernel? Which ones - just the preempt patch? Can you point me to them?
Martin
PS. If you had other patches, can you try compiling just raw 2.4.11-pre4, and tell me if that works?
mpparse.c does this:
#include <asm/smp.h>
smp.h does this:
#ifndef clustered_apic_mode
#ifdef CONFIG_MULTIQUAD
#define clustered_apic_mode (1)
#define esr_disable (1)
#else /* !CONFIG_MULTIQUAD */
#define clustered_apic_mode (0)
#define esr_disable (0)
#endif /* CONFIG_MULTIQUAD */
#endif
Or at least it should .....
Quoted 20 lines · --On Friday, October 05, 2001 6:38 AM +0200 Dieter Nützel…
Hello Linus,
Quoted 2 lines
the new and very cool Multiquad NUMA stuff break something...
gcc -D__KERNEL__ -I/usr/src/linux-2.4.11-pre4-preempt/include -Wall > -Wstrict-prototypes -Wno-trigraphs -O -fomit-frame-pointer > -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -mcpu=k6 > -mpreferred-stack-boundary=2 -malign-functions=4 -fschedule-insns2 > -fexpensive-optimizations -c -o mpparse.ompparse.c
mpparse.c: In function `MP_processor_info':
mpparse.c:195: `clustered_apic_mode' undeclared (first use in this function) mpparse.c:195: (Each undeclared identifier is reported only once mpparse.c:195: for each function it appears in.)mpparse.c: In function `smp_read_mpc':
mpparse.c:386: `clustered_apic_mode' undeclared (first use in this function) make[1]: *** [mpparse.o] Error 1
make[1]: Leaving directory > `/usr/src/linux-2.4.11-pre4-preempt/arch/i386/kernel'
make: *** [_dir_arch/i386/kernel] Error 2
269.520u 29.200s 5:45.26 86.5% 0+0k 0+0io 1007275pf+0wQuoted 1 line
-Dieter
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Quoted 1 line
Odd. Compiles for me with and without SMP support turned on.
My fault. I'd tested this on SMP and Uniproc, but not uniproc with IO apic support. Try this patch:
smp.h renamed from smp.h.old +11 -10
@@ -31,9 +31,20 @@# define INT_DELIVERY_MODE 1/* logical delivery broadcast to all procs */ # endif #else +# define INT_DELIVERY_MODE 0/* physical delivery on LOCAL quad */ # define TARGET_CPUS 0x01#endif +#ifndef clustered_apic_mode +#ifdef CONFIG_MULTIQUAD +#define clustered_apic_mode (1) +#define esr_disable (1) +#else /* !CONFIG_MULTIQUAD */ +#define clustered_apic_mode (0) +#define esr_disable (0) +#endif /* CONFIG_MULTIQUAD */ +#endif +#ifdef CONFIG_SMP #ifndef ASSEMBLY
@@ -76,16 +87,6 @@extern volatile int physical_apicid_to_cpu[MAX_APICID ];extern volatile int cpu_to_logical_apicid[NR_CPUS ];extern volatile int logical_apicid_to_cpu[MAX_APICID ]; - -#ifndef clustered_apic_mode -#ifdef CONFIG_MULTIQUAD -#define clustered_apic_mode (1) -#define esr_disable (1) -#else /* !CONFIG_MULTIQUAD */ -#define clustered_apic_mode (0) -#define esr_disable (0) -#endif /* CONFIG_MULTIQUAD */ -#endif /* * General functions that each host system must provide.
Am Freitag, 5. Oktober 2001 19:54 schrieb Martin J. Bligh:
Quoted 4 lines
Quoted 1 line
Odd. Compiles for me with and without SMP support turned on.
My fault. I'd tested this on SMP and Uniproc, but not uniproc with IO apic support. Try this patch:
Yes, I have UP with UP_IOAPIC enabled. Shall I test it or run my disk test over night?
Thanks for your fast fix.
I have some short hiccup during this "test site". So I can't type that fast...
-Dieter
Quoted 40 lines
smp.h renamed from smp.h.old +0
-0@@ -31,9 +31,20 @@# define INT_DELIVERY_MODE 1/* logical delivery broadcast to all procs */ # endif
#elsesmp.h renamed from smp.h.old +11
-10+# define INT_DELIVERY_MODE 0/* physical delivery on LOCAL quad */ # define TARGET_CPUS 0x01#endif +#ifndef clustered_apic_mode +#ifdef CONFIG_MULTIQUAD +#define clustered_apic_mode (1) +#define esr_disable (1) +#else /* !CONFIG_MULTIQUAD */ +#define clustered_apic_mode (0) +#define esr_disable (0) +#endif /* CONFIG_MULTIQUAD */ +#endif +#ifdef CONFIG_SMP #ifndef ASSEMBLY @@ -76,16 +87,6 @@extern volatile int physical_apicid_to_cpu[MAX_APICID ];extern volatile int cpu_to_logical_apicid[NR_CPUS ];extern volatile int logical_apicid_to_cpu[MAX_APICID ]; - -#ifndef clustered_apic_mode -#ifdef CONFIG_MULTIQUAD -#define clustered_apic_mode (1) -#define esr_disable (1) -#else /* !CONFIG_MULTIQUAD */ -#define clustered_apic_mode (0) -#define esr_disable (0) -#endif /* CONFIG_MULTIQUAD */ -#endif /* * General functions that each host system must provide.
Signature · 11 lines
Dieter Nützel Graduate Student, Computer Science University of Hamburg Department of Computer Science Cognitive Systems Group Vogt-Kölln-Straße 30 D-22527 Hamburg, Germany email: [email protected] @home: [email protected]
Am Freitag, 5. Oktober 2001 19:54 schrieb Martin J. Bligh:
Quoted 4 lines
Quoted 1 line
Odd. Compiles for me with and without SMP support turned on.
My fault. I'd tested this on SMP and Uniproc, but not uniproc with IO apic support. Try this patch:
1. OK, it fixes the UP UP_IOAPIC compilation problem. System (with preempt-patch) up and runnig.
2. Woohu. I have 8 CPUs, now...;-)
--- /proc is somewhat broken
[-]
processor : 7vendor_id : 9—U0D'À
cpu family : 1
model : 0
model name : 0D'À
stepping : unknown
cache size : 0 KBfdiv_bug : nohlt_bug : nof00f_bug : nocoma_bug : no
fpu : yesfpu_exception : yes
cpuid level : -1071168528
wp : yes
flags : fpu syscall mmxext lm 3dnowext 3dnow cxmmx
bogomips : 0.00
[-]
3. OOmem deak look.
4. Back in disk stress mode...again.
-Dieter
Quoted 40 lines
smp.h renamed from smp.h.old +0
-0@@ -31,9 +31,20 @@# define INT_DELIVERY_MODE 1/* logical delivery broadcast to all procs */ # endif
#elsesmp.h renamed from smp.h.old +11
-10+# define INT_DELIVERY_MODE 0/* physical delivery on LOCAL quad */ # define TARGET_CPUS 0x01#endif +#ifndef clustered_apic_mode +#ifdef CONFIG_MULTIQUAD +#define clustered_apic_mode (1) +#define esr_disable (1) +#else /* !CONFIG_MULTIQUAD */ +#define clustered_apic_mode (0) +#define esr_disable (0) +#endif /* CONFIG_MULTIQUAD */ +#endif +#ifdef CONFIG_SMP #ifndef ASSEMBLY @@ -76,16 +87,6 @@extern volatile int physical_apicid_to_cpu[MAX_APICID ];extern volatile int cpu_to_logical_apicid[NR_CPUS ];extern volatile int logical_apicid_to_cpu[MAX_APICID ]; - -#ifndef clustered_apic_mode -#ifdef CONFIG_MULTIQUAD -#define clustered_apic_mode (1) -#define esr_disable (1) -#else /* !CONFIG_MULTIQUAD */ -#define clustered_apic_mode (0) -#define esr_disable (0) -#endif /* CONFIG_MULTIQUAD */ -#endif /* * General functions that each host system must provide.
Am Freitag, 5. Oktober 2001 18:25 schrieb Martin J. Bligh:
Quoted 1 line
Odd. Compiles for me with and without SMP support turned on.
UP only. But with UP IOAPIC.
#
# Processor type and features
#
# CONFIG_M386 is not set
# CONFIG_M486 is not set
# CONFIG_M586 is not set
# CONFIG_M586TSC is not set
# CONFIG_M586MMX is not set
# CONFIG_M686 is not set
# CONFIG_MPENTIUMIII is not set
# CONFIG_MPENTIUM4 is not set
# CONFIG_MK6 is not setCONFIG_MK7=y
# CONFIG_MCRUSOE is not set
# CONFIG_MWINCHIPC6 is not set
# CONFIG_MWINCHIP2 is not set
# CONFIG_MWINCHIP3D is not set
# CONFIG_MCYRIXIII is not setCONFIG_X86_WP_WORKS_OK=yCONFIG_X86_INVLPG=yCONFIG_X86_CMPXCHG=yCONFIG_X86_XADD=yCONFIG_X86_BSWAP=yCONFIG_X86_POPAD_OK=y
# CONFIG_RWSEM_GENERIC_SPINLOCK is not setCONFIG_RWSEM_XCHGADD_ALGORITHM=yCONFIG_X86_L1_CACHE_SHIFT=6CONFIG_X86_TSC=yCONFIG_X86_GOOD_APIC=yCONFIG_X86_USE_3DNOW=yCONFIG_X86_PGE=yCONFIG_X86_USE_PPRO_CHECKSUM=y
# CONFIG_TOSHIBA is not set
# CONFIG_MICROCODE is not setCONFIG_X86_MSR=yCONFIG_X86_CPUID=yCONFIG_NOHIGHMEM=y
# CONFIG_HIGHMEM4G is not set
# CONFIG_HIGHMEM64G is not set
# CONFIG_MATH_EMULATION is not setCONFIG_MTRR=y
# CONFIG_SMP is not setCONFIG_PREEMPT=yCONFIG_X86_UP_APIC=yCONFIG_X86_UP_IOAPIC=yCONFIG_X86_LOCAL_APIC=yCONFIG_X86_IO_APIC=yCONFIG_HAVE_DEC_LOCK=y
Quoted 2 lines
Does "linux-2.4.11-pre4-preempt" mean you're running with other patches over the raw kernel? Which ones - just the preempt patch?
Yes.
First:
patch-rml-2.4.11-pre2-preempt-kernel-1
It works with pre2 and pre3 (after some clean ups by hand)
http://www.tech9.net/rml/linux/
Second:
Kupdated-patch for ReiserFS but that shouldn't matter. No link handy. I can send it to you if you need it.
Quoted 1 line
Can you point me to them?
See above.
Quoted 5 lines
Martin
PS. If you had other patches, can you try compiling just raw 2.4.11-pre4, and tell me if that works?
Only the two above.
I'll try tomorrow if it's needed.
Ughh.
I have a "dbench 32" loop with 1000 (one thousend) cycles running on an IBM DDYS 18GB U160 test disk running. 'cause my own (same but younger, latest firmware Rev. S96H) spin down occasionally. I think it have to be replaced:-( Then it is the third one. My first show "extremely shocked error" code with the DFT IBM tool.
System load stays at 29~32 (through put is between 40-45 MB/sec) for some hours, now and during I write this text...
Andrea's VM plus preempt-patch is GREAT.
Greetings,
Dieter
Quoted 19 lines
mpparse.cdoes this:#include <
asm/smp.h>
smp.hdoes this:#ifndef
clustered_apic_mode
#ifdefCONFIG_MULTIQUAD
#defineclustered_apic_mode(1)
#defineesr_disable(1)
#else /* !CONFIG_MULTIQUAD */
#defineclustered_apic_mode(0)
#defineesr_disable(0)
#endif /*CONFIG_MULTIQUAD*/
#endifOr at least it should .....
--On Friday, October 05, 2001 6:38 AM +0200 Dieter Nützel
Quoted 29 lines · <[email protected]> wrote:
Quoted 29 lines
Hello Linus,
Quoted 7 lines
the new and very cool Multiquad NUMA stuff break something... gcc -D__KERNEL__ -I/usr/src/linux-2.4.11-pre4-preempt/include -Wall >
(quoted diff) +0
-4-Wstrict-prototypes -Wno-trigraphs -O -fomit-frame-pointer > -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -mcpu=k6 > -mpreferred-stack-boundary=2 -malign-functions=4 -fschedule-insns2 > -fexpensive-optimizations -c -o mpparse.o
mpparse.c
mpparse.c: In function `MP_processor_info':
mpparse.c:195:clustered_apic_mode' undeclared (first use in this function) mpparse.c:195: (Each undeclared identifier is reported only once mpparse.c:195: for each function it appears in.) mpparse.c: In functionsmp_read_mpc':
mpparse.c:386: `clustered_apic_mode' undeclared (first use in this function) make[1]: *** [mpparse.o] Error 1
make[1]: Leaving directory > `/usr/src/linux-2.4.11-pre4-preempt/arch/i386/kernel' make: *** [_dir_arch/i386/kernel] Error 2
269.520u 29.200s 5:45.26 86.5% 0+0k 0+0io 1007275pf+0wQuoted 1 line
-Dieter
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Signature · 11 lines
Dieter Nützel Graduate Student, Computer Science University of Hamburg Department of Computer Science Cognitive Systems Group Vogt-Kölln-Straße 30 D-22527 Hamburg, Germany email: [email protected] @home: [email protected]