Skip to contentSkip to conversation

2.5.69-mm4

DISCUSSION Andrew Morton 7 participants 27 messages May 13, 2003 – May 14, 2003 1 message not in the archive

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.5/2.5.69/2.5.69-mm4/

Lots of small things.

Changes since 2.5.69-mm3:

-netfilter-skbuff-fix.patch
-nfs-writeback-tweak.patch
-rq-dyn-works.patch

Merged

+SLAB_STORE_USER-larger-objects.patch

Enable full slab debug for larger slabs.

+remove-verify_write-leftovers.patch

Cleanup/build fix

+module_arch_cleanup-2.patch

modules cleanup

+remove-devfs_register.patch

Remvoe devfs_register()

+pnp-irqreturn-fix.patch

IRQ fix

+vma-merging-missing-fput.patch

VMA merging fip leak fix

+cpufreq-commented-out-code-bogon.patch

cpufreq fix

+small-cleanup-for-__rmqueue.patch

Cleanups

+cpufreq-oops-fix.patch

Odd oops fix

+netif_receive_skb-warning-fix.patch

Nail a warning

+misc.patch

Little stuff

+large-dma_addr_t-PAE-only.patch

dma_addr_t need not be 64-bit on CONFIG_HIGHMEM4G

+bump-module-ref-during-init.patch

Modules race fix

+put_dirty_page-protection-fix.patch

Stack segment page protection fix

+dcache_lock-vs-tasklist_lock-take-3.patch

New version of this lock ranking bugfix

+hugetlbpage-extern-fix.patch

Warning fixes/cleanups

+emergency-sync-printk.patch

Print messages when emergency sync and emergency remount complete.

+clear-smi-fix.patch

SMI/APCI fix

+inode-unhashing-fix-2.patch

Fix an inode lookup race (needs work, probabaly)

+reserve-lustre-EAs.patch

Reserve the Lustre extended attribute ID's

+setfont-loadkeys-fix.patch

Propagate console ioctls across all VT's

+sched_best_cpu_fix-4.patch

Numa scheduler fix fix fix

+spinlock-debugging-improvement.patch

Enhance uniproc spinlock debugging

-pcmcia-deadlock-fix-2.patch
-pcmcia-fix.patch
+pcmcia-deadlock-fix-3.patch

Updated

-kexec.patch
+reboot_on_bsp.patch
+apic_shutdown.patch
+i8259-shutdown.patch
+hwfixes-x86kexec.patch

Split up

+v4l-1.patch
+v4l-2.patch
+v4l-3.patch
+v4l-4.patch
+v4l-5.patch
+v4l-6.patch
+v4l-7.patch

Video-4-Linux update

+checker-1.patch

Thirteen Stanford checker memleak fixes

+mtrr-not-used-fix.patch

Prevent bogus mtrr printk

All 135 patches

linus.patch

mm.patch
add -mmN to EXTRAVERSION

kgdb-ga.patch
kgdb stub for ia32 (George Anzinger's one)

SLAB_STORE_USER-larger-objects.patch
enable slab debugging for larger objects

remove-verify_write-leftovers.patch
Remove __verify_write leftovers

ipmi-warning-fixes.patch

irqreturn-uml.patch
UML updates for the new IRQ API

irqreturn-aic79xx.patch
Fix aic79xx for new IRQ API

irqreturn-drivers-net.patch

slab-magazine-layer.patch
magazine layer for slab

config_spinline.patch
uninline spinlocks for profiling accuracy.

ppc64-ioctl-pci-update.patch
From: Anton Blanchard <[email protected]>
Subject: ppc64 stuff

ppc64-reloc_hide.patch

ppc64-aio-32bit-emulation.patch
32/64bit emulation for aio

ppc64-scruffiness.patch
Fix some PPC64 compile warnings

ppc64-xics-irq-fix.patch
PPC64 irq return fix

sym-do-160.patch
make the SYM driver do 160 MB/sec

hrtimers-fix-signone.patch
hrtimers: fix timer_create(2) && SIGEV_NONE

module_arch_cleanup-2.patch
module_arch_cleanup()

remove-devfs_register.patch
remove devfs_register

pnp-irqreturn-fix.patch
fix pnp_test_handler return

irqreturn-snd-via-fix.patch
via sound irqreturn fix

irq_cpustat-cleanup.patch
irq_cpustat cleanup

config-PAGE_OFFSET.patch
Configurable kenrel/user memory split

fat-speedup.patch
fat cluster search speedup

vma-merging-missing-fput.patch
Subject: [PATCH] Fix for vma merging refcounting bug

cpufreq-commented-out-code-bogon.patch
Commented out printk causes change in program flow in cpufreq/p4-clockmod.c

small-cleanup-for-__rmqueue.patch
small cleanup for __rmqueue

cpufreq-oops-fix.patch
export cpufreq_driver to fix oops in proc interface

netif_receive_skb-warning-fix.patch
netif_receive_skb() warning fix

misc.patch
Misc fixes

large-dma_addr_t-PAE-only.patch
64-bit dma_addr_t is only needed with PAE

irq-check-rate-limit.patch
IRQs: handle bad return values from handlers

irq_desc-others.patch
Fix up irq_desc initialisation for non-ia32

ext3-quota-reservation-fix.patch
Quota write transaction size fix

quota-reference-drop-fix.patch
dquot_transfer() fix

bump-module-ref-during-init.patch
Bump module ref during init.

put_dirty_page-protection-fix.patch

dcache_lock-vs-tasklist_lock-take-3.patch
Fix dcache_lock/tasklist_lock ranking bug

hugetlbpage-extern-fix.patch
fix hugetlbpage scoping

buffer-debug.patch
buffer.c debugging

ext3-truncate-ordered-pages.patch
ext3: explicitly free truncated pages

3c59x-irq-fix.patch

VM_RESERVED-check.patch
VM_RESERVED check

exit_mmap-TASK_SIZE.patch
exit_mmap() TASK_SIZE fix

semop-race-fix-2.patch
semop race fix #2

reiserfs_file_write-5.patch

visws-logo-fix.patch
visws: fix penguin with sgi logo

clustered-io_apic-fix.patch
Subject: [RFC][PATCH] fix for clusterd io_apics

emergency-sync-printk.patch
provide user feedback for emergency sync and remount

rcu-stats.patch
RCU statistics reporting

ext3-journalled-data-assertion-fix.patch
Remove incorrect assertion from ext3

ide_setting_sem-fix.patch

reslabify-pgds-and-pmds.patch
re-slabify i386 pgd's and pmd's

nfs-speedup.patch

nfs-oom-fix.patch
nfs oom fix

sk-allocation.patch
Subject: Re: nfs oom

nfs-more-oom-fix.patch

rpciod-atomic-allocations.patch
Make rcpiod use atomic allocations

linux-isp.patch

isp-update-1.patch

clone-retval-fix.patch
copy_process return value fix

de_thread-fix.patch
de_thread memory corruption fix

list_del-debug.patch
list_del debug check

airo-schedule-fix.patch
airo.c: don't sleep in atomic regions

synaptics-mouse-support.patch
Add Synaptics touchpad tweaking to psmouse driver

vmalloc-race-fix.patch
vmalloc race fix

clear-smi-fix.patch
Subject: [PATCH] linux-2.5.69_clear-smi-fix_A1

inode-unhashing-fix-2.patch
Don't remove inode from hash until filesystem has deleted it

reserve-lustre-EAs.patch
Reserve the ext2/ext3 EAs for the Lustre filesystem

kblockd.patch
Create `kblockd' workqueue

cfq-infrastructure.patch

elevator-completion-api.patch
elevator completion API

as-iosched.patch
anticipatory I/O scheduler

as-use-completion.patch
AS use completion notifier

as-remove-debug-checks.patch
AS: remove debug checks

as-iosched-dyn.patch
AS: update to dynamic request allocation API

as-monitor-seek-distance.patch
AS: monitor seek distance

as-div64-fix.patch
as: don't do 64-bit divides

as-small-hashes.patch
AS: smaller hashes

unplug-use-kblockd.patch
Use kblockd for running request queues

cfq-2.patch
CFQ scheduler, #2

cfq-iosched-dyn.patch
CFQ: update to rq-dyn API

unmap-page-debugging.patch
unmap unused pages for debugging

fremap-all-mappings.patch
Make all executable mappings be nonlinear

sched-2.5.68-B2.patch
HT scheduler, sched-2.5.68-B2

sched-numa-warning-fix.patch
scheduler warning fix for NUMA

sched_idle-typo-fix.patch
fix sched_idle typo

kgdb-ga-idle-fix.patch

acpi-irq-ret-fix.patch
acpi irq return value fix

sound-irq-hack.patch

oprofile-build-fix.patch
Fix arch/i386/oprofile/init.c build error

setfont-loadkeys-fix.patch
fix setfont and loadkeys on tty > 1

sched-2.5.64-D3.patch
sched-2.5.64-D3, more interactivity changes

sched_best_cpu-fix.patch
sched_best_cpu does not pick best cpu

sched_best_cpu-fix-2.patch
sched_best_cpu does not pick best cpu (2/2)

generic_hweight64-fix.patch

sched_best_cpu_fix-4.patch
Even more sched_best_cpu fixes

show_task-free-stack-fix.patch
show_task() fix and cleanup

spinlock-debugging-improvement.patch
Make debugging variant of spinlocks a bit more robust

htree-nfs-fix.patch
Fix ext3 htree / NFS compatibility problems

htree-nfs-fix-2.patch
htree nfs fix

htree-leak-fix.patch
ext3: htree memory leak fix

put_task_struct-debug.patch

ia32-mknod64.patch
mknod64 for ia32

ext2-64-bit-special-inodes.patch
ext2: support for 64-bit device nodes

ext3-64-bit-special-inodes.patch
ext3: support for 64-bit device nodes

64-bit-dev_t-kdev_t.patch
64-bit dev_t and kdev_t

tty-64-bit-dev_t-warning-fix.patch
tty layer 64-bit dev_t printk warning fix

oops-dump-preceding-code.patch
i386 oops output: dump preceding code

lockmeter.patch

security-process-attribute-api.patch
Process Attribute API for Security Modules

thread-info-in-task_struct.patch
allow thread_info to be allocated as part of task_struct

ext3-no-bkl.patch

journal_dirty_metadata-speedup.patch

journal_get_write_access-speedup.patch

ext3-concurrent-block-inode-allocation.patch
Subject: [PATCH] concurrent block/inode allocation for EXT3

ext3-orlov-approx-counter-fix.patch
Fix orlov allocator boundary case

ext3-concurrent-block-allocation-fix-1.patch

ext3-concurrent-block-allocation-hashed.patch
Subject: Re: [PATCH] concurrent block/inode allocation for EXT3

pcmcia-deadlock-fix-3.patch
Fix PCMCIA deadlock (rev. 2)

reboot_on_bsp.patch

apic_shutdown.patch

i8259-shutdown.patch

hwfixes-x86kexec.patch

fbdev-updates.patch
Fbdev update patch

v4l-1.patch
Subject: [patch] v4l: #1 - video-buf update

v4l-2.patch
Subject: [patch] v4l: #2 - v4l1-compat update

v4l-3.patch
Subject: [patch] v4l: #3 - bttv driver update

v4l-4.patch
Subject: [patch] v4l: #4 - bttv docmentation update

v4l-5.patch
Subject: [patch] v4l: #5 - i2c module updates.

v4l-6.patch
Subject: [patch] v4l: #6 - tuner module update

v4l-7.patch
Subject: [patch] v4l: #7 - saa7134 driver update

checker-1.patch

mtrr-not-used-fix.patch
kernel prints "mtrr: MTRR 2 not used" twice when exiting X

#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 3 lines · Andrew Morton

[SNIP]

This happens on my config:

gcc -Wp,-MD,net/core/.dev.o.d -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=pentium4 -Iinclude/asm-i386/mach-default -nostdinc -iwithprefix include -DKBUILD_BASENAME=dev -DKBUILD_MODNAME=dev -c -o net/core/.tmp_dev.o net/core/dev.c
net/core/dev.c:1496: conflicting types for handle_bridge' net/core/dev.c:1468: previous declaration of handle_bridge'
net/core/dev.c: In function `handle_bridge':
net/core/dev.c:1499: warning: passing arg 2 of handle_bridge' from incompatible pointer type net/core/dev.c:1499: too few arguments to function handle_bridge'
make[2]: *** [net/core/dev.o] Error 1
make[1]: *** [net/core] Error 2
make: *** [net] Error 2
alexh@lapper ~/src/linux/linux-2.5.69-mm4 $ &

mvh,
A

- --
Alexander Hoogerhuis | [email protected]
CCNP - CCDP - MCNE - CCSE | +47 908 21 485
"You have zero privacy anyway. Get over it." --Scott McNealy -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iD8DBQE+wJiNCQ1pa+gRoggRAhO2AJ9JRd0egyrq8mFa7CVN0TIBy+ui9gCgx223 fP1NtZhr9zypfHcsRjJgwBo=
=R7rj
-----END PGP SIGNATURE-----

#2 lore raw
Quoted 3 lines · Alexander Hoogerhuis

net/core/dev.c:1496: conflicting types for `handle_bridge'
net/core/dev.c:1468: previous declaration of `handle_bridge'

argh, sorry, stupid.

net/core/dev.c renamed from net/core/dev.c~handle_bridge-fix +2 -2
diff -puN net/core/dev.c~handle_bridge-fix net/core/dev.c
@@ -1491,7 +1491,7 @@ static inline void handle_diverter(struc
 #endif
 }
 
-static inline int handle_bridge(struct sk_buff *skb,
+static inline int __handle_bridge(struct sk_buff *skb,
 			struct packet_type **pt_prev, int *ret)
 {
 #if defined(CONFIG_BRIDGE) || defined(CONFIG_BRIDGE_MODULE)
@@ -1548,7 +1548,7 @@ int netif_receive_skb(struct sk_buff *sk
 
 	handle_diverter(skb);
 
-	if (handle_bridge(skb, &pt_prev, &ret))
+	if (__handle_bridge(skb, &pt_prev, &ret))
 		goto out;
 
 	list_for_each_entry_rcu(ptype, &ptype_base[ntohs(type)&15], list) {

_

#3 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 21 lines · Andrew Morton
Quoted 3 lines · Alexander Hoogerhuis

net/core/dev.c:1496: conflicting types for `handle_bridge'
net/core/dev.c:1468: previous declaration of `handle_bridge'

argh, sorry, stupid.

diff -puN net/core/dev.c~handle_bridge-fix net/core/dev.c

net/core/dev.c renamed from net/core/dev.c~handle_bridge-fix +1 -1
@@ -1491,7 +1491,7 @@ static inline void handle_diverter(struc
 #endif
 }
 
-static inline int handle_bridge(struct sk_buff *skb,
+static inline int __handle_bridge(struct sk_buff *skb,
 			struct packet_type **pt_prev, int *ret)
 {
 #if defined(CONFIG_BRIDGE) || defined(CONFIG_BRIDGE_MODULE)

net/core/dev.c int netif_receive_skb(struct sk_buff *sk · line 1554

Quoted 8 lines
net/core/dev.c renamed from net/core/dev.c~handle_bridge-fix +1 -1
@@ -1548,7 +1548,7 @@ int netif_receive_skb(struct sk_buff *sk
 
 	handle_diverter(skb);
 
-	if (handle_bridge(skb, &pt_prev, &ret))
+	if (__handle_bridge(skb, &pt_prev, &ret))
 		goto out;
 
 	list_for_each_entry_rcu(ptype, &ptype_base[ntohs(type)&15], list) {

And this one :)

        ld -m elf_i386  -T arch/i386/vmlinux.lds.s arch/i386/kernel/head.o arch/i386/kernel/init_task.o   init/built-in.o --start-group  usr/built-in.o  arch/i386/kernel/built-in.o  arch/i386/mm/built-in.o  arch/i386/mach-default/built-in.o  kernel/built-in.o  mm/built-in.o  fs/built-in.o  ipc/built-in.o  security/built-in.o  crypto/built-in.o  lib/lib.a  arch/i386/lib/lib.a  drivers/built-in.o  sound/built-in.o  arch/i386/pci/built-in.o  net/built-in.o --end-group  -o .tmp_vmlinux1

kernel/built-in.o(.text+0x1005): In function `schedule':
: undefined reference to `active_load_balance'
make: *** [.tmp_vmlinux1] Error 1
alexh@lapper ~/src/linux/linux-2.5.69-mm4 $

mvh,
A
- --
Alexander Hoogerhuis | [email protected]
CCNP - CCDP - MCNE - CCSE | +47 908 21 485
"You have zero privacy anyway. Get over it." --Scott McNealy -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iD8DBQE+wKY3CQ1pa+gRoggRAmd6AKDCJGGIiqot4yzmTlVdWpvQR1JagwCaAsY7 UdsL8kbCLzCEKTrsL/ijsoA=
=Uhvc
-----END PGP SIGNATURE-----

#4 lore raw
Quoted 5 lines · Alexander Hoogerhuis

And this one :)

        ld -m elf_i386  -T arch/i386/vmlinux.lds.s arch/i386/kernel/head.o arch/i386/kernel/init_task.o   init/built-in.o --start-group  usr/built-in.o  arch/i386/kernel/built-in.o  arch/i386/mm/built-in.o  arch/i386/mach-default/built-in.o  kernel/built-in.o  mm/built-in.o  fs/built-in.o  ipc/built-in.o  security/built-in.o  crypto/built-in.o  lib/lib.a  arch/i386/lib/lib.a  drivers/built-in.o  sound/built-in.o  arch/i386/pci/built-in.o  net/built-in.o --end-group  -o .tmp_vmlinux1

kernel/built-in.o(.text+0x1005): In function `schedule':
: undefined reference to `active_load_balance'

I got this one too, as well as:
drivers/built-in.o(.text+0x7d534): In function `fb_prepare_logo':
: undefined reference to `find_logo'

Helge Hafting

#5 lore raw
Quoted 4 lines · Helge Hafting
Quoted 2 lines

: undefined reference to `active_load_balance'

I got this one too

I don't think so. Please do a `make clean' and try again.

Quoted 3 lines

, as well as:
drivers/built-in.o(.text+0x7d534): In function `fb_prepare_logo':
: undefined reference to `find_logo'

Is that thing _still_ there?

Does this fix?

drivers/video/fbmem.c renamed from drivers/video/fbmem.c~fbmem-linkage-fix +1 -1
diff -puN drivers/video/fbmem.c~fbmem-linkage-fix drivers/video/fbmem.c
@@ -655,7 +655,7 @@ int fb_prepare_logo(struct fb_info *info
 	}
 
 	/* Return if no suitable logo was found */
-	fb_logo.logo = find_logo(info->var.bits_per_pixel);
+	fb_logo.logo = fb_find_logo(info->var.bits_per_pixel);
 	
 	if (!fb_logo.logo || fb_logo.logo->height > info->var.yres) {
 		fb_logo.logo = NULL;

_

#12 lore raw
In reply to Helge Hafting

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 11 lines · Helge Hafting
Quoted 5 lines · Alexander Hoogerhuis

And this one :)

        ld -m elf_i386  -T arch/i386/vmlinux.lds.s arch/i386/kernel/head.o arch/i386/kernel/init_task.o   init/built-in.o --start-group  usr/built-in.o  arch/i386/kernel/built-in.o  arch/i386/mm/built-in.o  arch/i386/mach-default/built-in.o  kernel/built-in.o  mm/built-in.o  fs/built-in.o  ipc/built-in.o  security/built-in.o  crypto/built-in.o  lib/lib.a  arch/i386/lib/lib.a  drivers/built-in.o  sound/built-in.o  arch/i386/pci/built-in.o  net/built-in.o --end-group  -o .tmp_vmlinux1

kernel/built-in.o(.text+0x1005): In function `schedule':
: undefined reference to `active_load_balance'

I got this one too, as well as:
drivers/built-in.o(.text+0x7d534): In function `fb_prepare_logo':
: undefined reference to `find_logo'

make clean; make on mine, still there...

mvh,
A
- --
Alexander Hoogerhuis | [email protected]
CCNP - CCDP - MCNE - CCSE | +47 908 21 485
"You have zero privacy anyway. Get over it." --Scott McNealy -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iD8DBQE+wNEvCQ1pa+gRoggRAgi4AJ9gabgNlPOBxzTQmom8acDyaYA38QCgpg+w fcZ3iMKojuGnvp0iTKGMDyE=
=0Gov
-----END PGP SIGNATURE-----

#13 lore raw
In reply to Alexander Hoogerhuis
Quoted 8 lines · Alexander Hoogerhuis
        ld -m elf_i386  -T arch/i386/vmlinux.lds.s arch/i386/kernel/head.o

arch/i386/kernel/init_task.o init/built-in.o --start-group
usr/built-in.o arch/i386/kernel/built-in.o arch/i386/mm/built-in.o arch/i386/mach-default/built-in.o kernel/built-in.o mm/built-in.o fs/built-in.o ipc/built-in.o security/built-in.o crypto/built-in.o lib/lib.a arch/i386/lib/lib.a drivers/built-in.o sound/built-in.o arch/i386/pci/built-in.o net/built-in.o --end-group -o .tmp_vmlinux1

Quoted 5 lines

kernel/built-in.o(.text+0x1005): In function `schedule':
: undefined reference to `active_load_balance'

make: *** [.tmp_vmlinux1] Error 1
alexh@lapper ~/src/linux/linux-2.5.69-mm4 $

This happens here too on a tree that was mrproper(ed).

Ed
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>

#6 lore raw

[PATCH] Re: 2.5.69-mm4 undefined active_load_balance

In reply to Andrew Morton
Quoted 9 lines · Andrew Morton
Quoted 3 lines · Helge Hafting
Quoted 1 line

: undefined reference to `active_load_balance'

I got this one too

I don't think so. Please do a `make clean' and try again.

You don't think so? How come?
Note that this was a clean install, I unpacked the 2.5.69 tarball, applied 2.5.69-mm3, copied a .config file, and ran "make oldconfig; make bzImage"

I tried make clean, and still get kernel/built-in.o(.text+0x102a): In function `schedule':
: undefined reference to active_load_balance' drivers/built-in.o(.text+0x7d534): In function fb_prepare_logo':
: undefined reference to `find_logo'
make: *** [.tmp_vmlinux1] Error 1

During compile, I got a warning that active_load_balance was implicitly declared or some such.

Looking at sched.c I see that active_load_balance is declared if CONFIG_SHARE_RUNQUEUE is not set.

Later, if we have CONFIG_SMP _and_ CONFIG_SHARE_RUNQUEUE we get a longer version of active_load_balance

So, active_load_balance doesn't exist if CONFIG_SHARE_RUNQUEUE is set on a non-smp machine.

but schedule() later do a call to active_load_balance that isn't masked by any #ifdef. This machine isn't SMP, and CONFIG_SHARE_RUNQUEUE gets set - so it goes wrong.

The problem seems to be in sched.h, which says:
/*
* Is there a way to do this via Kconfig?
*/
#ifdef CONFIG_NR_SIBLINGS_2

# define CONFIG_NR_SIBLINGS 2
#elif defined(CONFIG_NR_SIBLINGS_4)
# define CONFIG_NR_SIBLINGS 4
#else
# define CONFIG_NR_SIBLINGS 0
#endif

#ifdef CONFIG_NR_SIBLINGS

# define CONFIG_SHARE_RUNQUEUE 1
#else
# define CONFIG_SHARE_RUNQUEUE 0
#endif

I get

# define CONFIG_NR_SIBLINGS 0
and the #ifdef CONFIG_NR_SIBLINGS
test triggers because something #defined
to 0 is #defined.  I guess this is the problem,
and if so, changing the #ifdef CONFIG_NR_SIBLINGS
to #if CONFIG_NR_SIBLINGS should do the trick.

A patch for this is at the end of the message.

Quoted 9 lines
Quoted 4 lines

, as well as:
drivers/built-in.o(.text+0x7d534): In function `fb_prepare_logo':
: undefined reference to `find_logo'

Is that thing _still_ there?

Does this fix?

[...]
Yes, thanks!

Patch for the active_load_balance problem.
It is not yet tested, it is compiling right now
and that takes time.

Helge Hafting

sched.h 2003-05-13 15:45:43.000000000 +0200 renamed from sched.h.orig 2003-05-13 15:45:17.000000000 +0200 +1 -1
@@ -158,7 +158,7 @@
 # define CONFIG_NR_SIBLINGS 0
 #endif
 
-#ifdef CONFIG_NR_SIBLINGS
+#if CONFIG_NR_SIBLINGS
 # define CONFIG_SHARE_RUNQUEUE 1
 #else
 # define CONFIG_SHARE_RUNQUEUE 0
#7 lore raw

Re: [PATCH] Re: 2.5.69-mm4 undefined active_load_balance

Quoted 3 lines · Helge Hafting

Patch for the active_load_balance problem.
It is not yet tested, it is compiling right now
and that takes time.

Of course I missed something. Here is a patch that compiles and links too, when also using Andrew's fb-logo patch. I haven't tried booting it yet, as it is a remote machine.

Helge Hafting

sched.h 2003-05-13 18:07:01.000000000 +0200 renamed from sched.h.orig 2003-05-13 15:45:17.000000000 +0200 +1 -3
@@ -158,10 +158,8 @@
 # define CONFIG_NR_SIBLINGS 0
 #endif
 
-#ifdef CONFIG_NR_SIBLINGS
+#if CONFIG_NR_SIBLINGS
 # define CONFIG_SHARE_RUNQUEUE 1
-#else
-# define CONFIG_SHARE_RUNQUEUE 0
 #endif
 extern void sched_map_runqueue(int cpu1, int cpu2);
 
#8 lore raw

Re: [PATCH] Re: 2.5.69-mm4 undefined active_load_balance

The active_load_balance patch in the previous mail seems to work, the test machine rebooted and came up just fine.

Helge Hafting

#23 lore raw

Re: 2.5.69-mm4 smp crash, seems fs/vm related

In reply to Andrew Morton

I tried 2.5.69-mm4 + your fblogo patch on my dual celeron. It oopsed during boot.
The machine has 384M RAM, it uses ext2 filessytems on various scsi partitions, root is on a raid-0 device. It is a nfsv3 server for another machine, I don't think there were any nfs traffic when it crashed though. The kernel uses preempt, devfs & framebuffer.

Some scrolled off screen, this remained:

mempool_alloc
mempool_alloc
autoremove_wake_function
autoremove_wake_function
bio_alloc
mpage_alloc
do_mpage_readpage
radix_tree_insert
add_to_page_cache
mpage_readpages
ext2_get_block
read_pages
ext2_get_block
__alloc_pages
do_page_cache_readahead
filemap_populate
sys_remap_file_pages
do_mmap_pgoff
old_mmap
syscall_call
There were also a hex code listing at the end.

Helge Hafting

#9 lore raw

Re: [PATCH] Re: 2.5.69-mm4 undefined active_load_balance

In reply to Helge Hafting

sched.h 2003-05-13 18:07:01.000000000 +0200 line 163

Quoted 12 lines · Helge Hafting
sched.h 2003-05-13 18:07:01.000000000 +0200 renamed from sched.h.orig 2003-05-13 15:45:17.000000000 +0200 +1 -3
@@ -158,10 +158,8 @@
 # define CONFIG_NR_SIBLINGS 0
 #endif
-#ifdef CONFIG_NR_SIBLINGS
+#if CONFIG_NR_SIBLINGS
 # define CONFIG_SHARE_RUNQUEUE 1
-#else
-# define CONFIG_SHARE_RUNQUEUE 0
 #endif
 extern void sched_map_runqueue(int cpu1, int cpu2);

Linus just committed a patch to eliminate such offenders.

Do you mean #if CONFIG_NR_SIBLINGS != 0 or #ifdef CONFIG_NR_SIBLINGS?

-- wli

#24 lore raw
In reply to Andrew Morton
Quoted 2 lines · Andrew Morton

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.5/2.5.69/2.5.69-mm4/ Lots of small things.

Nuke various warnings:
(1) noreturn function does return all over i386 arch code
(2) CONFIG_SHARE_RUNQUEUE bits, mostly Helge Hafting's thing, but also handle some more arch code nailed by it
(3) some kind of dmi_blacklist excess array initializer oddity

-- wli

arch/i386/kernel/apic.c +3 -0
diff -prauN mm4-2.5.69-1/arch/i386/kernel/apic.c mm4-2.5.69-2/arch/i386/kernel/apic.c
@@ -1204,6 +1204,9 @@ void stop_apics(NORET_TYPE void(*rest)(v
 		set_cpus_allowed(current, 1 << arg.reboot_cpu_id);
 	}
 	on_each_cpu(cpu_stop_apics, &arg, 1, 0);
+	while (1) {
+		;
+	}
 }
 
 /*
arch/i386/kernel/cpu/proc.c +1 -1
diff -prauN mm4-2.5.69-1/arch/i386/kernel/cpu/proc.c mm4-2.5.69-2/arch/i386/kernel/cpu/proc.c
@@ -115,7 +115,7 @@ static int show_cpuinfo(struct seq_file 
 		     fpu_exception ? "yes" : "no",
 		     c->cpuid_level,
 		     c->wp_works_ok ? "yes" : "no");
-#ifdef CONFIG_SHARE_RUNQUEUE
+#if CONFIG_SHARE_RUNQUEUE
 {
 	extern long __rq_idx[NR_CPUS];
 
arch/i386/kernel/dmi_scan.c +2 -1
diff -prauN mm4-2.5.69-1/arch/i386/kernel/dmi_scan.c mm4-2.5.69-2/arch/i386/kernel/dmi_scan.c
@@ -816,7 +816,8 @@ static __initdata struct dmi_blacklist d
 	{ acer_cpufreq_pst, "Acer Aspire", {
 			MATCH(DMI_SYS_VENDOR, "Insyde Software"),
 			MATCH(DMI_BIOS_VERSION, "3A71"),
-			NO_MATCH, NO_MATCH, NO_MATCH
+			NO_MATCH,
+			NO_MATCH,
 			} },
 
 	{ NULL, }
arch/i386/kernel/reboot.c +12 -3
diff -prauN mm4-2.5.69-1/arch/i386/kernel/reboot.c mm4-2.5.69-2/arch/i386/kernel/reboot.c
@@ -229,7 +229,8 @@ void machine_real_restart(unsigned char 
 				: "i" ((void *) (0x1000 - sizeof (real_mode_switch) - 100)));
 }
 
-static void machine_restart_1(void * __unused)
+static NORET_TYPE void machine_restart_1(void *) ATTRIB_NORET;
+static NORET_TYPE void machine_restart_1(void *__unused)
 {
 	if(!reboot_thru_bios) {
 		/* rebooting needs to touch the page at absolute addr 0 */
@@ -243,13 +244,17 @@ static void machine_restart_1(void * __u
 	}
 
 	machine_real_restart(jump_to_bios, sizeof(jump_to_bios));
+	while (1) {
+		;
+	}
 }
 void machine_restart(char * __unused)
 {
 	stop_apics(machine_restart_1, 0);
 }
 
-static void machine_halt_1(void * __unused)
+static NORET_TYPE void machine_halt_1(void *) ATTRIB_NORET;
+static NORET_TYPE void machine_halt_1(void *__unused)
 {
 	stop_this_cpu();
 }
@@ -258,11 +263,15 @@ void machine_halt(void)
 	stop_apics(machine_halt_1, 0);
 }
 
-static void machine_power_off_1(void * __unused)
+static NORET_TYPE void machine_power_off_1(void *) ATTRIB_NORET;
+static NORET_TYPE void machine_power_off_1(void *__unused)
 {
 	if (pm_power_off)
 		pm_power_off();
 	stop_this_cpu();
+	while (1) {
+		;
+	}
 }
 void machine_power_off(void)
 {
include/linux/sched.h +1 -1
diff -prauN mm4-2.5.69-1/include/linux/sched.h mm4-2.5.69-2/include/linux/sched.h
@@ -158,7 +158,7 @@ extern void init_idle(task_t *idle, int 
 # define CONFIG_NR_SIBLINGS 0
 #endif
 
-#ifdef CONFIG_NR_SIBLINGS
+#if CONFIG_NR_SIBLINGS
 # define CONFIG_SHARE_RUNQUEUE 1
 #else
 # define CONFIG_SHARE_RUNQUEUE 0
kernel/sched.c +3 -3
diff -prauN mm4-2.5.69-1/kernel/sched.c mm4-2.5.69-2/kernel/sched.c
@@ -161,7 +161,7 @@ struct prio_array {
  *  restrictions on the mappings - there can be 4 CPUs per
  *  runqueue or even assymetric mappings.)
  */
-#ifdef CONFIG_SHARE_RUNQUEUE
+#if CONFIG_SHARE_RUNQUEUE
 # define MAX_NR_SIBLINGS CONFIG_NR_SIBLINGS
   long __rq_idx[NR_CPUS] __cacheline_aligned;
   static long __cpu_idx[NR_CPUS] __cacheline_aligned;
@@ -1188,7 +1188,7 @@ out:
 	;
 }
 
-#ifdef CONFIG_SHARE_RUNQUEUE
+#if CONFIG_SHARE_RUNQUEUE
 static void active_load_balance(runqueue_t *this_rq, int this_cpu)
 {
 	runqueue_t *rq;
@@ -2789,7 +2789,7 @@ void __init sched_init(void)
 		/*
 		 * Start with a 1:1 mapping between CPUs and runqueues:
 		 */
-#ifdef CONFIG_SHARE_RUNQUEUE
+#if CONFIG_SHARE_RUNQUEUE
 		rq_idx(i) = i;
 		cpu_idx(i) = 0;
 #endif
#14 lore raw
In reply to Ed Tomlinson
Quoted 8 lines · Ed Tomlinson
Quoted 6 lines

kernel/built-in.o(.text+0x1005): In function `schedule':
: undefined reference to `active_load_balance'

make: *** [.tmp_vmlinux1] Error 1
alexh@lapper ~/src/linux/linux-2.5.69-mm4 $

This happens here too on a tree that was mrproper(ed).

Yeah, I screwed up, sorry. One of the scheduler patches
was doing kooky things with CONFIG variables.

You can revert sched_idle-typo-fix.patch and sched-2.5.68-B2.patch or build an SMP kernel or wait for mm5 or kick me.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>

#25 lore raw
In reply to William Lee Irwin III
Quoted 2 lines · Andrew Morton
Quoted 2 lines

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.5/2.5.69/2.5.69-mm4/ Lots of small things.

Quoted 5 lines · William Lee Irwin III

Nuke various warnings:
(1) noreturn function does return all over i386 arch code
(2) CONFIG_SHARE_RUNQUEUE bits, mostly Helge Hafting's thing, but also handle some more arch code nailed by it
(3) some kind of dmi_blacklist excess array initializer oddity

Take 2: I missed one of the noreturns, in machine_halt_1():

arch/i386/kernel/apic.c +3 -0
diff -prauN mm4-2.5.69-1/arch/i386/kernel/apic.c mm4-2.5.69-2/arch/i386/kernel/apic.c
@@ -1204,6 +1204,9 @@ void stop_apics(NORET_TYPE void(*rest)(v
 		set_cpus_allowed(current, 1 << arg.reboot_cpu_id);
 	}
 	on_each_cpu(cpu_stop_apics, &arg, 1, 0);
+	while (1) {
+		;
+	}
 }
 
 /*
arch/i386/kernel/cpu/proc.c +1 -1
diff -prauN mm4-2.5.69-1/arch/i386/kernel/cpu/proc.c mm4-2.5.69-2/arch/i386/kernel/cpu/proc.c
@@ -115,7 +115,7 @@ static int show_cpuinfo(struct seq_file 
 		     fpu_exception ? "yes" : "no",
 		     c->cpuid_level,
 		     c->wp_works_ok ? "yes" : "no");
-#ifdef CONFIG_SHARE_RUNQUEUE
+#if CONFIG_SHARE_RUNQUEUE
 {
 	extern long __rq_idx[NR_CPUS];
 
arch/i386/kernel/dmi_scan.c +2 -1
diff -prauN mm4-2.5.69-1/arch/i386/kernel/dmi_scan.c mm4-2.5.69-2/arch/i386/kernel/dmi_scan.c
@@ -816,7 +816,8 @@ static __initdata struct dmi_blacklist d
 	{ acer_cpufreq_pst, "Acer Aspire", {
 			MATCH(DMI_SYS_VENDOR, "Insyde Software"),
 			MATCH(DMI_BIOS_VERSION, "3A71"),
-			NO_MATCH, NO_MATCH, NO_MATCH
+			NO_MATCH,
+			NO_MATCH,
 			} },
 
 	{ NULL, }
arch/i386/kernel/reboot.c +15 -3
diff -prauN mm4-2.5.69-1/arch/i386/kernel/reboot.c mm4-2.5.69-2/arch/i386/kernel/reboot.c
@@ -229,7 +229,8 @@ void machine_real_restart(unsigned char 
 				: "i" ((void *) (0x1000 - sizeof (real_mode_switch) - 100)));
 }
 
-static void machine_restart_1(void * __unused)
+static NORET_TYPE void machine_restart_1(void *) ATTRIB_NORET;
+static NORET_TYPE void machine_restart_1(void *__unused)
 {
 	if(!reboot_thru_bios) {
 		/* rebooting needs to touch the page at absolute addr 0 */
@@ -243,26 +244,37 @@ static void machine_restart_1(void * __u
 	}
 
 	machine_real_restart(jump_to_bios, sizeof(jump_to_bios));
+	while (1) {
+		;
+	}
 }
 void machine_restart(char * __unused)
 {
 	stop_apics(machine_restart_1, 0);
 }
 
-static void machine_halt_1(void * __unused)
+static NORET_TYPE void machine_halt_1(void *) ATTRIB_NORET;
+static NORET_TYPE void machine_halt_1(void *__unused)
 {
 	stop_this_cpu();
+	while (1) {
+		;
+	}
 }
 void machine_halt(void)
 {
 	stop_apics(machine_halt_1, 0);
 }
 
-static void machine_power_off_1(void * __unused)
+static NORET_TYPE void machine_power_off_1(void *) ATTRIB_NORET;
+static NORET_TYPE void machine_power_off_1(void *__unused)
 {
 	if (pm_power_off)
 		pm_power_off();
 	stop_this_cpu();
+	while (1) {
+		;
+	}
 }
 void machine_power_off(void)
 {
include/linux/sched.h +1 -1
diff -prauN mm4-2.5.69-1/include/linux/sched.h mm4-2.5.69-2/include/linux/sched.h
@@ -158,7 +158,7 @@ extern void init_idle(task_t *idle, int 
 # define CONFIG_NR_SIBLINGS 0
 #endif
 
-#ifdef CONFIG_NR_SIBLINGS
+#if CONFIG_NR_SIBLINGS
 # define CONFIG_SHARE_RUNQUEUE 1
 #else
 # define CONFIG_SHARE_RUNQUEUE 0
kernel/sched.c +3 -3
diff -prauN mm4-2.5.69-1/kernel/sched.c mm4-2.5.69-2/kernel/sched.c
@@ -161,7 +161,7 @@ struct prio_array {
  *  restrictions on the mappings - there can be 4 CPUs per
  *  runqueue or even assymetric mappings.)
  */
-#ifdef CONFIG_SHARE_RUNQUEUE
+#if CONFIG_SHARE_RUNQUEUE
 # define MAX_NR_SIBLINGS CONFIG_NR_SIBLINGS
   long __rq_idx[NR_CPUS] __cacheline_aligned;
   static long __cpu_idx[NR_CPUS] __cacheline_aligned;
@@ -1188,7 +1188,7 @@ out:
 	;
 }
 
-#ifdef CONFIG_SHARE_RUNQUEUE
+#if CONFIG_SHARE_RUNQUEUE
 static void active_load_balance(runqueue_t *this_rq, int this_cpu)
 {
 	runqueue_t *rq;
@@ -2789,7 +2789,7 @@ void __init sched_init(void)
 		/*
 		 * Start with a 1:1 mapping between CPUs and runqueues:
 		 */
-#ifdef CONFIG_SHARE_RUNQUEUE
+#if CONFIG_SHARE_RUNQUEUE
 		rq_idx(i) = i;
 		cpu_idx(i) = 0;
 #endif
#16 lore raw
In reply to a message not in the archive

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 6 lines · Andrew Morton
Quoted 3 lines · Alexander Hoogerhuis

kernel/built-in.o(.text+0x1005): In function `schedule':
: undefined reference to `active_load_balance'

I don't quite see how that can happen. Tried a `make clean'?

Quoth Dr. Frankesteen: "It's alive!". Helge's oneliner in shced.h did the trick. After patching in a custom DSDT, this is my leftover list of things that go boom on recent kernels:

* During shutdown, whilst stopping hotplug and unloading usb hub drivers, machine freezes hard. Last printout is something along these lines:

        "usb-ohci 02:0e.2, address 3", or some such.

Then the machine becomes a doorstop.

* Synaptics touchpad driver as of 2.5.69 does not recognise the "tap to click" functionality, and doesn't seem parse it's boot param to enable it, I get it to work by hardcoding the PARM-line in driver/input/mouse/psmouse.c to a "1". This might very well boil down to user error (PEBKAC) on the boot time parm, but the auto detection that worked up to .69 is b0rken.

* Insertion of my Palm cradle in the USB ports will result in this one once the cradle tries to go active (this one is from -mm2, present in -mm3 too):

Unable to handle kernel paging request at virtual address 8d3274f0
 printing eip:
f0a1c6ba
*pde = 00000000
Oops: 0002 [#1]
CPU:    0
EIP:    0060:[<f0a1c6ba>]    Tainted: PF  VLI
EFLAGS: 00010203

EIP is at usb_serial_probe+0x5e/0xdfd [usbserial]
eax: 064b1129 ebx: f0a21714 ecx: f0a21598 edx: ebac4400
esi: 00000000 edi: 00000000 ebp: dd9e9eb8 esp: dd9e9e00
ds: 007b es: 007b ss: 0068
Process modprobe (pid: 6353, threadinfo=dd9e8000 task=da240710)

Stack: efe92b64 dd9e9e20 00000246 c029761b 00000246 fffffff4 ed796980 ed562a80
       dd9e9e58 00000000 00000000 00000000 00000000 ed7969ec 000041ed 00000000
       dd9e9e5c ebac4400 edf85500 000000d0 ed7969ec 000041ed 00000000 dd9e9e6c
Call Trace:
 [<c01662e9>] d_instantiate+0x67/0x7b
 [<c0183a53>] sysfs_create+0x64/0x7e
 [<c01842d7>] sysfs_create_dir+0xa8/0xd6
 [<f0a21598>] usb_serial_driver+0x78/0x88 [usbserial]
 [<f0a21538>] usb_serial_driver+0x18/0x88 [usbserial]
 [<f0a21520>] usb_serial_driver+0x0/0x88 [usbserial]
 [<f088009a>] usb_device_probe+0x8c/0xac [usbcore]
 [<f0a214e0>] +0x0/0x40 [usbserial]
 [<f0a214e0>] +0x0/0x40 [usbserial]
 [<f0a21538>] usb_serial_driver+0x18/0x88 [usbserial]
 [<c01ef5a9>] bus_match+0x43/0x6e
 [<f0a21538>] usb_serial_driver+0x18/0x88 [usbserial]
 [<f0899298>] usb_bus_type+0x98/0xe0 [usbcore]
 [<f0a21538>] usb_serial_driver+0x18/0x88 [usbserial]
 [<c01ef6ab>] driver_attach+0x5c/0x60
 [<f0a21538>] usb_serial_driver+0x18/0x88 [usbserial]
 [<f0899244>] usb_bus_type+0x44/0xe0 [usbcore]
 [<f0a21538>] usb_serial_driver+0x18/0x88 [usbserial]
 [<c01ef979>] bus_add_driver+0xb1/0xc6
 [<f0a21538>] usb_serial_driver+0x18/0x88 [usbserial]
 [<f0899200>] usb_bus_type+0x0/0xe0 [usbcore]
 [<f0a21520>] usb_serial_driver+0x0/0x88 [usbserial]
 [<f0a21900>] +0x0/0x200 [usbserial]
 [<c01efd97>] driver_register+0x31/0x35
 [<f0a21538>] usb_serial_driver+0x18/0x88 [usbserial]
 [<f0a215c4>] usb_serial_tty_driver+0x4/0x120 [usbserial]
 [<c01dd77e>] tty_register_driver+0x17d/0x289
 [<f08801b7>] usb_register+0x6b/0xa6 [usbcore]
 [<f0a21538>] usb_serial_driver+0x18/0x88 [usbserial]
 [<f0a1d534>] usb_serial_register+0x4e/0xa0 [usbserial]
 [<f0a1ef60>] +0x5e0/0x998 [usbserial]
 [<f08330f3>] +0xf3/0x13f [usbserial]
 [<f0a21520>] usb_serial_driver+0x0/0x88 [usbserial]
 [<c0131624>] sys_init_module+0x133/0x209
 [<f0a21900>] +0x0/0x200 [usbserial]
 [<c010ae57>] syscall_call+0x7/0xb
 
Code: 00 00 00 c7 45 84 00 00 00 00 c7 85 78 ff ff ff 00 00 00 00 89 55 8c c7 85 74 ff ff ff 00 00 00 00 8b 03 0f 18 00 15 81 fb a8 15 <a2> f0 74 32 8d 4b ec 89 4d 84 8b 41 0c 89 44 24 04 8b 45 08 89
 <6>usb 2-1: USB disconnect, address 3

* On -mm3 under some loads mplayer can get very erratic, and after playing a videostream for about 10-15 mins it gets progressivly more prone to stalling. Moving the mousepointer into the window, and wiggling it a bit restores it for a while.

mvh,
A
- --
Alexander Hoogerhuis | [email protected]
CCNP - CCDP - MCNE - CCSE | +47 908 21 485
"You have zero privacy anyway. Get over it." --Scott McNealy -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iD8DBQE+wVV4CQ1pa+gRoggRAsE/AJ9Zx3MXrgbQwtsXer+4aBK7RbE9cQCePe/S ywXMXOVr8cvgOdN2eknAJnk=
=CyEy
-----END PGP SIGNATURE-----

#10 lore raw

Re: [PATCH] Re: 2.5.69-mm4 undefined active_load_balance

In reply to William Lee Irwin III
Quoted 16 lines · William Lee Irwin III

sched.h 2003-05-13 18:07:01.000000000 +0200 line 163

Quoted 12 lines · Helge Hafting
sched.h 2003-05-13 18:07:01.000000000 +0200 renamed from sched.h.orig 2003-05-13 15:45:17.000000000 +0200 +1 -3
@@ -158,10 +158,8 @@
 # define CONFIG_NR_SIBLINGS 0
 #endif
-#ifdef CONFIG_NR_SIBLINGS
+#if CONFIG_NR_SIBLINGS
 # define CONFIG_SHARE_RUNQUEUE 1
-#else
-# define CONFIG_SHARE_RUNQUEUE 0
 #endif
 extern void sched_map_runqueue(int cpu1, int cpu2);

Linus just committed a patch to eliminate such offenders.

Quoted 1 line

Do you mean #if CONFIG_NR_SIBLINGS != 0 or #ifdef CONFIG_NR_SIBLINGS?

I don't know this code well, I'm just guessing the rigth way to make it compile. I don't know what's the "clean" way to do #if/#ifdefs either - I could probably do better if I knew.

The problem was that CONFIG_SHARE_RUNQUEUE gets set even with configs where it doesn't make sense, (i.e. uniprocessor without HT) so I guessed it was some sort of misunderstanding about how #ifdef works. I hope whoever wrote that code will take a look and either say "yes - that's what I meant" or fix it in a better way.

Helge Hafting

#11 lore raw

Re: [PATCH] Re: 2.5.69-mm4 undefined active_load_balance

Quoted 2 lines · William Lee Irwin III
Quoted 2 lines

Linus just committed a patch to eliminate such offenders. Do you mean #if CONFIG_NR_SIBLINGS != 0 or #ifdef CONFIG_NR_SIBLINGS?

Quoted 9 lines · Helge Hafting

I don't know this code well, I'm just guessing the rigth way to make it compile. I don't know what's the "clean" way to do #if/#ifdefs either - I could probably do better if I knew. The problem was that CONFIG_SHARE_RUNQUEUE gets set even with configs where it doesn't make sense, (i.e. uniprocessor without HT) so I guessed it was some sort of misunderstanding about how #ifdef works. I hope whoever wrote that code will take a look and either say "yes - that's what I meant" or fix it in a better way.

Your fix was correct (the alternative is some rearrangment of those #defines) and I carried it out with some additional #ifdef -> #if conversions to cover the rest of the cases visible in my config and sent it to akpm in another patch.

-- wli

#17 lore raw
In reply to Alexander Hoogerhuis
Quoted 7 lines · Alexander Hoogerhuis

* Synaptics touchpad driver as of 2.5.69 does not recognise the "tap to click" functionality, and doesn't seem parse it's boot param to enable it, I get it to work by hardcoding the PARM-line in driver/input/mouse/psmouse.c to a "1". This might very well boil down to user error (PEBKAC) on the boot time parm, but the auto detection that worked up to .69 is b0rken.

There's some synaptics patch in -mm which looks like it needs

modprobe psmouse synaptics_tap=1

I'm not sure what the story is on getting all that finished off.

Quoted 4 lines

* On -mm3 under some loads mplayer can get very erratic, and after playing a videostream for about 10-15 mins it gets progressivly more prone to stalling. Moving the mousepointer into the window, and wiggling it a bit restores it for a while.

grr. Can you run `vmstat 1' and see if those stalls correspond with swap or disk I/O?

#18 lore raw
Quoted 9 lines · Andrew Morton
Quoted 7 lines · Alexander Hoogerhuis

* Synaptics touchpad driver as of 2.5.69 does not recognise the "tap to click" functionality, and doesn't seem parse it's boot param to enable it, I get it to work by hardcoding the PARM-line in driver/input/mouse/psmouse.c to a "1". This might very well boil down to user error (PEBKAC) on the boot time parm, but the auto detection that worked up to .69 is b0rken.

Quoted 5 lines

There's some synaptics patch in -mm which looks like it needs

modprobe psmouse synaptics_tap=1

I'm not sure what the story is on getting all that finished off.

While we're on the subject I'll mention that the 2.5 input layer sees only the touchpad on my T30, and not the trackpoint. The psaux driver in 2.4 works fine.

Signature · 1 line
Matt Mackall : http://www.selenic.com : of or relating to the moon
#26 lore raw
In reply to Andrew Morton
Quoted 4 lines · Andrew Morton

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.5/2.5.69/2.5.69-mm4/ Lots of small things.
thread-info-in-task_struct.patch
allow thread_info to be allocated as part of task_struct

AIUI the task_cache is meant to prevent certain task_t (dear gawd I can't stand those _struct suffixes) refcounting pathologies because the task_t has its final put done by the task itself or something on that order, so it may be better for ia64 to adapt the task_cache to their purposes instead of wiping it entirely. Also, making the task_cache treatment uniform apart from its declaration would allow the #ifdef to be shoved in a header.

Alternatively, one could alter the timing of the final put on a task_t so as to handle it similarly to the final mmput() (though here, too it might be more sightly to #ifdef the necessary bits in headers).

I think there are already outstanding task_t refcounting bugs, so I'm not entirely sure where we stand wrt. changing final put mechanics.

-- wli

#27 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line · William Lee Irwin III

William> On Mon, May 12, 2003 at 10:55:04PM -0700, Andrew Morton

Quoted 3 lines · William> wrote:
Quoted 3 lines

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.5/2.5.69/2.5.69-mm4/ Lots of small things. thread-info-in-task_struct.patch allow thread_info to be allocated as part of task_struct

William> AIUI the task_cache is meant to prevent certain task_t William> (dear gawd I can't stand those _struct suffixes) William> refcounting pathologies because the task_t has its final William> put done by the task itself or something on that order, so William> it may be better for ia64 to adapt the task_cache to their William> purposes instead of wiping it entirely. Also, making the William> task_cache treatment uniform apart from its declaration William> would allow the #ifdef to be shoved in a header.

William> Alternatively, one could alter the timing of the final put William> on a task_t so as to handle it similarly to the final William> mmput() (though here, too it might be more sightly to William> #ifdef the necessary bits in headers).

William> I think there are already outstanding task_t refcounting William> bugs, so I'm not entirely sure where we stand wrt. changing William> final put mechanics.

All I really care about is that (a) task_struct, thread_info, and kernel stack remain contiugous and within a single 64MB page and (b) that it be fast (as usual ;-). Other than that, it doesn't really matter where the memory comes from.

	--david
#19 lore raw
In reply to Matt Mackall

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 4 lines · Matt Mackall

While we're on the subject I'll mention that the 2.5 input layer sees only the touchpad on my T30, and not the trackpoint. The psaux driver in 2.4 works fine.

I'll second that one.

mvh,
A
- --
Alexander Hoogerhuis | [email protected]
CCNP - CCDP - MCNE - CCSE | +47 908 21 485
"You have zero privacy anyway. Get over it." --Scott McNealy -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iD8DBQE+wd+rCQ1pa+gRoggRAoVbAJ9ue4s3+PtoxE47bfsV7w9aqLrMWgCePwcR zrecFYp/2BOkRPatAPHpVFM=
=14pB
-----END PGP SIGNATURE-----

#20 lore raw
In reply to Andrew Morton

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 7 lines · Andrew Morton
Quoted 4 lines

* On -mm3 under some loads mplayer can get very erratic, and after playing a videostream for about 10-15 mins it gets progressivly more prone to stalling. Moving the mousepointer into the window, and wiggling it a bit restores it for a while.

grr. Can you run `vmstat 1' and see if those stalls correspond with swap or disk I/O?

Here's the result of some light poking in my mailbox (moving single mails form one folder to another, moved about 8 mails while this scrolled by:

procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----

 r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy id wa
 1  1   3700   4640   3568 479976    0    0   128 16020 2233  1926 50  4  0 46
 0  1   3700   4512   3568 463812    0    0   128  8704 2233  2856 13  4  0 83
 0  0   3700   5728   3624 500064    0    0   128  3424 2161  1428 51 21  8 20
 0  0   3700   5664   3624 500192    0    0   128     0 2070  2496 12  2 86  0
 0  1   3700   5536   3628 500320    0    0   128 13496 2188  2560 13  3 43 41
 9  1   3700   5408   3628 500448    0    0   128 16904 2325  2614 17  3  0 80
 0  1   3700   4576   3628 468596    0    0   128  8516 2222  2418 34  6  0 60
 3  1   3700   4832   3680 493404    0    0   128  7620 2220  1403 51 20  0 29
 0  0   3700  12192   3692 493532    0    0   132   180 2156  2601 18  3 45 33
 0  1   3700  12064   3716 493660    0    0   148 16372 2152  2640 13  3 40 45
 0  1   3700  11232   3724 477160    0    0   128  9488 2217  2392 38  5  0 57
 0  2   3700  11044   3724 460640    0    0   132  8960 2230  2869 13  4  0 83
 1  0   3700  15588   3788 489996    0    0   132 11896 2195  1246 61 19 16  4
 1  0   3700  15460   3788 490124    0    0   128     0 2078  2480 13  2 85  0
 0  2   3700  15284   3796 490252    0    0   128 10332 2198  2974 26  5 26 42
 0  2   3700  15220   3800 490380    0    0   128 16924 2310  2653 20  3  0 77
 0  1   3700  15092   3800 490508    0    0   128 17688 2363  2842 23  3  0 74
 0  0   3700  15348   3808 490636    0    0   128  1768 2239  2510 19  4 12 65
 0  0   3700  15220   3808 490764    0    0   128     0 2098  2584 19  2 79  0

alexh@lapper ~ $

I'll have a hunt around to get more output if you want?

mvh,
A

- --
Alexander Hoogerhuis | [email protected]
CCNP - CCDP - MCNE - CCSE | +47 908 21 485
"You have zero privacy anyway. Get over it." --Scott McNealy -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iD8DBQE+weC1CQ1pa+gRoggRAjbHAKDHRp0FG4CLzcFLCaHST7ubrf4vyACgpQXM vRWdd2M1QOfy/LMvyJphYzw=
=zuYD
-----END PGP SIGNATURE-----

#21 lore raw
Quoted 4 lines · Alexander Hoogerhuis

Here's the result of some light poking in my mailbox (moving single
mails form one folder to another, moved about 8 mails while this scrolled by:

Well something is performing a ton of writeout. You'd expect things to get a bit laggy.

#22 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 8 lines · Andrew Morton
Quoted 4 lines · Alexander Hoogerhuis

Here's the result of some light poking in my mailbox (moving single
mails form one folder to another, moved about 8 mails while this scrolled by:

Well something is performing a ton of writeout. You'd expect things to get a bit laggy.

I'll bookmark this mail and get back, I've had other cases where I get much worse stuff on an idle machine, and I'll give you the listing from that once I get it :)

mvh,
A

- --
Alexander Hoogerhuis | [email protected]
CCNP - CCDP - MCNE - CCSE | +47 908 21 485
"You have zero privacy anyway. Get over it." --Scott McNealy -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iD8DBQE+wez7CQ1pa+gRoggRAri/AJ4qxXs0fBFKB1Z27TD2a9K0rXmf3gCguvYt LlwizmHT+jZTd6tAFf4srvQ=
=seNR
-----END PGP SIGNATURE-----