]> git.hungrycats.org Git - linux/log
linux
23 years agoMerge bk://kernel.bkbits.net/gregkh/linux/i2c-2.5
Linus Torvalds [Mon, 22 Sep 2003 12:11:54 +0000 (05:11 -0700)]
Merge bk://kernel.bkbits.net/gregkh/linux/i2c-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

23 years ago[PATCH] Memory leak in ixj_pcmcia driver
Chris Wright [Mon, 22 Sep 2003 09:14:03 +0000 (02:14 -0700)]
[PATCH] Memory leak in ixj_pcmcia driver

Found by checker (David Yu Chen @Stanford)

23 years ago[PATCH] I2C: remove I2C_VERSION and I2C_DATE as they make no sense in the kernel...
Greg Kroah-Hartman [Mon, 22 Sep 2003 09:03:26 +0000 (02:03 -0700)]
[PATCH] I2C: remove I2C_VERSION and I2C_DATE as they make no sense in the kernel tree.

23 years agoMerge kroah.com:/home/greg/linux/BK/bleed-2.5
Greg Kroah-Hartman [Mon, 22 Sep 2003 08:36:30 +0000 (01:36 -0700)]
Merge kroah.com:/home/greg/linux/BK/bleed-2.5
into kroah.com:/home/greg/linux/BK/i2c-2.6

23 years ago[PATCH] I2C: sysfs sensor nameing inconsistency
Andrey Borzenkov [Mon, 22 Sep 2003 08:24:36 +0000 (01:24 -0700)]
[PATCH] I2C: sysfs sensor nameing inconsistency

> That's what you are going to have to set the name file to in the
> i2c_client structure, much like your patch did.  Then look at the
> different name files in each device directory to see what kind of device
> it is (chip, subclient, etc.)

OK attached patch sets all names to just chip name for chips themselves and
"chipname subclient" when subclient ios registered.

23 years ago[PATCH] I2C: remove check_region usage and warning from i2c-sensor
Greg Kroah-Hartman [Mon, 22 Sep 2003 08:11:24 +0000 (01:11 -0700)]
[PATCH] I2C: remove check_region usage and warning from i2c-sensor

23 years ago[PATCH] I2C: move the remaining i2c bus drivers to drivers/i2c/busses
Greg Kroah-Hartman [Mon, 22 Sep 2003 08:00:04 +0000 (01:00 -0700)]
[PATCH] I2C: move the remaining i2c bus drivers to drivers/i2c/busses

23 years ago[PATCH] I2C: move the scx200* drivers to drivers/i2c/busses
Greg Kroah-Hartman [Mon, 22 Sep 2003 07:21:09 +0000 (00:21 -0700)]
[PATCH] I2C: move the scx200* drivers to drivers/i2c/busses

23 years ago[PATCH] I2C: move i2c-velleman driver to drivers/i2c/busses
Greg Kroah-Hartman [Mon, 22 Sep 2003 07:09:17 +0000 (00:09 -0700)]
[PATCH] I2C: move i2c-velleman driver to drivers/i2c/busses

23 years agoI2C: move i2c-elektor.c driver to drivers/i2c/busses/
Greg Kroah-Hartman [Mon, 22 Sep 2003 06:57:44 +0000 (23:57 -0700)]
I2C: move i2c-elektor.c driver to drivers/i2c/busses/

23 years ago[PATCH] I2C: clean up the i2c-elv.c driver a bit
Greg Kroah-Hartman [Mon, 22 Sep 2003 06:44:13 +0000 (23:44 -0700)]
[PATCH] I2C: clean up the i2c-elv.c driver a bit

23 years ago[PATCH] I2C: move i2c-elv.c driver to drivers/i2c/busses
Greg Kroah-Hartman [Mon, 22 Sep 2003 06:36:52 +0000 (23:36 -0700)]
[PATCH] I2C: move i2c-elv.c driver to drivers/i2c/busses

23 years ago[PATCH] I2C: clean up i2c-philips-par.c driver a bit
Greg Kroah-Hartman [Mon, 22 Sep 2003 06:30:23 +0000 (23:30 -0700)]
[PATCH] I2C: clean up i2c-philips-par.c driver a bit

Fix bug when registering the i2c_adap as the structure was not set to 0.

23 years ago[PATCH] shared signals require shared VM
Albert Cahalan [Mon, 22 Sep 2003 06:23:42 +0000 (23:23 -0700)]
[PATCH] shared signals require shared VM

Elimination of this nonsense allows for the assumption
that a task group shares VM. This lets procps run faster.

23 years ago[PATCH] I2C: move the i2c-philips-par driver to drivers/i2c/busses
Greg Kroah-Hartman [Mon, 22 Sep 2003 06:20:35 +0000 (23:20 -0700)]
[PATCH] I2C: move the i2c-philips-par driver to drivers/i2c/busses

23 years ago[PATCH] I2C: fix up dependancies in the i2c/busses/Kconfig file
Greg Kroah-Hartman [Mon, 22 Sep 2003 06:10:15 +0000 (23:10 -0700)]
[PATCH] I2C: fix up dependancies in the i2c/busses/Kconfig file

23 years ago[PATCH] I2C: clean up i2c-prosavage.c driver
Greg Kroah-Hartman [Mon, 22 Sep 2003 06:06:04 +0000 (23:06 -0700)]
[PATCH] I2C: clean up i2c-prosavage.c driver

Remove direct memory accesses and link up device in the proper place in the
sysfs tree.

23 years ago[PATCH] I2C: move i2c-prosavage.c driver to drivers/i2c/busses where it belongs.
Greg Kroah-Hartman [Mon, 22 Sep 2003 05:46:46 +0000 (22:46 -0700)]
[PATCH] I2C: move i2c-prosavage.c driver to drivers/i2c/busses where it belongs.

23 years ago[PATCH] smbfs NLS fix
Andrew Morton [Mon, 22 Sep 2003 05:35:00 +0000 (22:35 -0700)]
[PATCH] smbfs NLS fix

strut nls_table was changed, but smbfs uses it and was not updated.

23 years ago[PATCH] misc fixes
Andrew Morton [Mon, 22 Sep 2003 05:34:50 +0000 (22:34 -0700)]
[PATCH] misc fixes

- bio_release_pages() should have file-local scope.

- don't use spaces in slab names in device mapper, enforce this henceforth
  in kmem_cache_create().

- Fix alpha header leftover from cpumask_t conversion

23 years ago[PATCH] ia64 sched_clock() implementation.
Andrew Morton [Mon, 22 Sep 2003 05:34:42 +0000 (22:34 -0700)]
[PATCH] ia64 sched_clock() implementation.

From David M-T.

23 years agoI2C: clean up the drivers/i2c/Kconfig file
Greg Kroah-Hartman [Mon, 22 Sep 2003 05:26:49 +0000 (22:26 -0700)]
I2C: clean up the drivers/i2c/Kconfig file

23 years agoI2C: clean up the i2c chips Kconfig logic and help information
Greg Kroah-Hartman [Mon, 22 Sep 2003 04:42:40 +0000 (21:42 -0700)]
I2C: clean up the i2c chips Kconfig logic and help information

23 years ago[PATCH] I2C: add the i2c-voodoo3 i2c bus driver
Greg Kroah-Hartman [Mon, 22 Sep 2003 04:15:16 +0000 (21:15 -0700)]
[PATCH] I2C: add the i2c-voodoo3 i2c bus driver

This is based on the lmsensor cvs version of the driver, but is cleaned
it up and ported it to 2.6.

23 years ago[PATCH] I2C: add the i2c-savage4 i2c bus driver
Greg Kroah-Hartman [Mon, 22 Sep 2003 04:05:20 +0000 (21:05 -0700)]
[PATCH] I2C: add the i2c-savage4 i2c bus driver

This is based on the lmsensor cvs version of the driver, but is cleaned
it up and ported it to 2.6.

23 years ago[PATCH] I2C: add the i2c-i810 i2c bus driver
Greg Kroah-Hartman [Mon, 22 Sep 2003 04:03:30 +0000 (21:03 -0700)]
[PATCH] I2C: add the i2c-i810 i2c bus driver

This is based on the lmsensor cvs version of the driver, but is cleaned
it up and ported it to 2.6.

23 years agoMerge bk://linux-sam.bkbits.net/kbuild
Linus Torvalds [Mon, 22 Sep 2003 01:37:14 +0000 (18:37 -0700)]
Merge bk://linux-sam.bkbits.net/kbuild
into home.osdl.org:/home/torvalds/v2.5/linux

23 years agoMerge bk://kernel.bkbits.net/davem/sparc-2.5
Linus Torvalds [Sun, 21 Sep 2003 14:31:26 +0000 (07:31 -0700)]
Merge bk://kernel.bkbits.net/davem/sparc-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

23 years agoMerge bk://kernel.bkbits.net/davem/net-2.5
Linus Torvalds [Sun, 21 Sep 2003 14:29:59 +0000 (07:29 -0700)]
Merge bk://kernel.bkbits.net/davem/net-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

23 years agoMerge davem@nuts.ninka.net:/disk1/davem/BK/sparc-2.5
David S. Miller [Sun, 21 Sep 2003 12:42:14 +0000 (05:42 -0700)]
Merge davem@nuts.ninka.net:/disk1/davem/BK/sparc-2.5
into kernel.bkbits.net:/home/davem/sparc-2.5

23 years ago[PATCH] use CLONE_KERNEL
Albert Cahalan [Sun, 21 Sep 2003 12:40:40 +0000 (05:40 -0700)]
[PATCH] use CLONE_KERNEL

This uses CLONE_KERNEL in place of the individual
flags, only changing the places where it is an exact
match.

I strongly suspect that CLONE_KERNEL ought to be
used in many more places, but they require a more
careful examination.

23 years agoRemove incorrect and unnecessary definition of "errno" that causes
Linus Torvalds [Sun, 21 Sep 2003 12:00:18 +0000 (05:00 -0700)]
Remove incorrect and unnecessary definition of "errno" that causes
link-time duplicate symbol errors.

23 years agoMerge davem@nuts.ninka.net:/disk1/davem/BK/net-2.5
David S. Miller [Sun, 21 Sep 2003 11:33:41 +0000 (04:33 -0700)]
Merge davem@nuts.ninka.net:/disk1/davem/BK/net-2.5
into kernel.bkbits.net:/home/davem/net-2.5

23 years agoMerge bk://kernel.bkbits.net/acme/llc-2.6
David S. Miller [Sun, 21 Sep 2003 13:09:37 +0000 (06:09 -0700)]
Merge bk://kernel.bkbits.net/acme/llc-2.6
into nuts.ninka.net:/disk1/davem/BK/net-2.5

23 years agoo LLC: remove unneeded EXPORT_SYMBOLs from llc_sap
Arnaldo Carvalho de Melo [Sun, 21 Sep 2003 20:39:17 +0000 (17:39 -0300)]
o LLC: remove unneeded EXPORT_SYMBOLs from llc_sap

Now all is in llc2.ko, so no need for exporting those symbols.
Also llc_build_and_send_ui_pkt is now in llc_output.c, where it
is being exported.

23 years ago[LLC]: llc_core.c needs linux/init.h
David S. Miller [Sun, 21 Sep 2003 12:02:22 +0000 (05:02 -0700)]
[LLC]: llc_core.c needs linux/init.h

23 years ago[NETFILTER]: Use net/checksum.h instead of asm/checksum.h
Matthew Wilcox [Sun, 21 Sep 2003 11:24:52 +0000 (04:24 -0700)]
[NETFILTER]: Use net/checksum.h instead of asm/checksum.h

23 years ago[ATM]: [zatm] Correct way to prevent module unload (from shemminger@osdl.org).
Chas Williams [Sun, 21 Sep 2003 11:23:42 +0000 (04:23 -0700)]
[ATM]: [zatm] Correct way to prevent module unload (from shemminger@osdl.org).

23 years ago[ATM]: [uPD98402] Exported symbols should not be marked __init.
Chas Williams [Sun, 21 Sep 2003 11:22:48 +0000 (04:22 -0700)]
[ATM]: [uPD98402] Exported symbols should not be marked __init.

23 years ago[ATM]: [uPD98402] Convert to new-style module.
Chas Williams [Sun, 21 Sep 2003 11:22:11 +0000 (04:22 -0700)]
[ATM]: [uPD98402] Convert to new-style module.

23 years ago[ATM]: [lanai] Get rid of MOD_INC/MOD_DEC (from shemminger@osdl.org).
Chas Williams [Sun, 21 Sep 2003 11:21:35 +0000 (04:21 -0700)]
[ATM]: [lanai] Get rid of MOD_INC/MOD_DEC (from shemminger@osdl.org).

23 years ago[ATM]: [idt77252] Get rid of MOD_INC/MOD_DEC.
Chas Williams [Sun, 21 Sep 2003 11:20:01 +0000 (04:20 -0700)]
[ATM]: [idt77252] Get rid of MOD_INC/MOD_DEC.

23 years ago[ATM]: [firestream] Allow module refcounting.
Chas Williams [Sun, 21 Sep 2003 11:19:20 +0000 (04:19 -0700)]
[ATM]: [firestream] Allow module refcounting.

23 years ago[ATM]: [eni] Correct way to prevent module unload (from shemminger@osdl.org).
Chas Williams [Sun, 21 Sep 2003 11:18:38 +0000 (04:18 -0700)]
[ATM]: [eni] Correct way to prevent module unload (from shemminger@osdl.org).

23 years ago[NETROM]: Timer code cleanup.
Vinay K. Nallamothu [Sun, 21 Sep 2003 11:17:41 +0000 (04:17 -0700)]
[NETROM]: Timer code cleanup.

23 years agoMerge bk://kernel.bkbits.net/acme/llc-2.6
David S. Miller [Sun, 21 Sep 2003 11:11:45 +0000 (04:11 -0700)]
Merge bk://kernel.bkbits.net/acme/llc-2.6
into nuts.ninka.net:/disk1/davem/BK/net-2.5

23 years ago[IPVS]: Make __ip_vs_svc_lock local and use __user tags.
Wensong Zhang [Sun, 21 Sep 2003 11:10:17 +0000 (04:10 -0700)]
[IPVS]: Make __ip_vs_svc_lock local and use __user tags.

23 years ago[NETFILTER]: Fix parisc64 alignment problems in ipt_physdev.c
Bart De Schuymer [Sun, 21 Sep 2003 11:05:09 +0000 (04:05 -0700)]
[NETFILTER]: Fix parisc64 alignment problems in ipt_physdev.c

23 years agoMerge nuts.ninka.net:/disk1/davem/BK/network-2.5
David S. Miller [Sun, 21 Sep 2003 11:01:18 +0000 (04:01 -0700)]
Merge nuts.ninka.net:/disk1/davem/BK/network-2.5
into nuts.ninka.net:/disk1/davem/BK/net-2.5

23 years agoMerge bk://linux-pnp.bkbits.net/pnp-2.5
Linus Torvalds [Sun, 21 Sep 2003 10:55:14 +0000 (03:55 -0700)]
Merge bk://linux-pnp.bkbits.net/pnp-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

23 years ago[PNPBIOS] move some more functions to local include file
Adam Belay [Sun, 21 Sep 2003 19:24:48 +0000 (19:24 +0000)]
[PNPBIOS] move some more functions to local include file

This patch moves some unnecessary global functions to the local
pnpbios include file.

23 years ago[PNPBIOS] return proper error codes on init failure
Adam Belay [Sun, 21 Sep 2003 19:20:41 +0000 (19:20 +0000)]
[PNPBIOS] return proper error codes on init failure

23 years ago[ISAPNP] remove unused isapnp_allow_dma0 modparam
Adam Belay [Sun, 21 Sep 2003 19:10:33 +0000 (19:10 +0000)]
[ISAPNP] remove unused isapnp_allow_dma0 modparam

It looks like this option has been moved from isapnp to resource.c,
but the MODULE_PARM line is still there:

patch from: Gerald Teschl <gt@esi.ac.at>

23 years ago[PATCH] janitor: remove unneeded includes (isapnp)
Adam Belay [Sun, 21 Sep 2003 19:05:42 +0000 (19:05 +0000)]
[PATCH] janitor: remove unneeded includes (isapnp)

From: Randy Hron <rwhron@earthlink.net>

23 years ago[PNP] remove DMA 0 restrictions
Adam Belay [Sun, 21 Sep 2003 19:02:08 +0000 (19:02 +0000)]
[PNP] remove DMA 0 restrictions

The original argument for blocking DMA 0 was to avoid conflicts with
"memory refresh"  but such configurations are only found on very old
8-bit systems that are likely not supported by the linux kernel.
This patch allows dma 0 to be assigned to PnP devices by default.  If
for whatever reason dma 0 cannot be used, one can avoid allocating it
by setting the pnp_reserve_dma= kernel parameter.

23 years ago[PNPBIOS] move detection code into core.c
Adam Belay [Sun, 21 Sep 2003 18:39:11 +0000 (18:39 +0000)]
[PNPBIOS] move detection code into core.c

This patch moves the detection code to a more appropriate file.

23 years ago[PNP] release card devices on probe failure
Adam Belay [Sun, 21 Sep 2003 18:25:50 +0000 (18:25 +0000)]
[PNP] release card devices on probe failure

When a driver's probe routine fails, it may not release all of the
card devices it requested.  This patch allows the pnp layer to ensure
that all devices claimed by the failing driver are released properly.

23 years ago[PNPBIOS] compilation fix for pnpbios without proc support
Adam Belay [Sun, 21 Sep 2003 17:55:37 +0000 (17:55 +0000)]
[PNPBIOS] compilation fix for pnpbios without proc support

Here's an updated patch that will correct the compile error when PROC
FS is disabled.  It also introduces better proc error recovery and
moves the local proc functions to the local include file.  Thanks to
Daniele Bellucci for finding the problem and contributing to this
patch.

23 years ago[PATCH] fix CONFIG_SECURE trouble in thread-aware procfs
Albert Cahalan [Sun, 21 Sep 2003 10:09:46 +0000 (03:09 -0700)]
[PATCH] fix CONFIG_SECURE trouble in thread-aware procfs

This fixes the thread-aware /proc for CONFIG_SECURE.

23 years ago[PATCH] floppy I/O error handling => Oops
Randy Dunlap [Sun, 21 Sep 2003 09:43:09 +0000 (02:43 -0700)]
[PATCH] floppy I/O error handling => Oops

bad_flp_intr() in floppy.c can cause an Oops if the I/O request is freed
but <errors> still points into the I/O request block.  Get the error
count out of the request block before ending the IO.

bad_flp_intr() oopsen reports:

  Andrey: http://marc.theaimsgroup.com/?l=linux-kernel&m=105837886921297&w=2
  John:   http://marc.theaimsgroup.com/?l=linux-kernel&m=106303650007125&w=2
  Barry:  http://bugme.osdl.org/show_bug.cgi?id=1033

23 years ago[PATCH] fix cciss memory leaks
Andrew Morton [Sun, 21 Sep 2003 08:43:37 +0000 (01:43 -0700)]
[PATCH] fix cciss memory leaks

From: Felipe W Damasio <felipewd@terra.com.br>

Fix a few error-path leaks in the cciss block driver.  Bug found by smatch
checker.

23 years ago[PATCH] mlock error handling fix
Andrew Morton [Sun, 21 Sep 2003 08:43:28 +0000 (01:43 -0700)]
[PATCH] mlock error handling fix

make_pages_present() can fail: propagate that failure back.

Spotted by Bill Irwin.

23 years ago[PATCH] rio.c: remove TWO_ZERO
Andrew Morton [Sun, 21 Sep 2003 08:43:19 +0000 (01:43 -0700)]
[PATCH] rio.c: remove TWO_ZERO

From: Adrian Bunk <bunk@fs.tum.de>

Three drivers under drivers/char/ in 2.5.72 use TWO_ZERO for compatibility
code with ancient 2.0 kernels.  The patch below removes this #ifdef'd code.

23 years ago[PATCH] move some more initializations out of drivers/char/mem.c
Andrew Morton [Sun, 21 Sep 2003 08:43:10 +0000 (01:43 -0700)]
[PATCH] move some more initializations out of drivers/char/mem.c

From: Christoph Hellwig <hch@lst.de>

keeping init order the same..

23 years ago[PATCH] kill superflous kdev_t.h inclusions
Andrew Morton [Sun, 21 Sep 2003 08:43:01 +0000 (01:43 -0700)]
[PATCH] kill superflous kdev_t.h inclusions

From: Christoph Hellwig <hch@lst.de>

now that kdev_t is gone very few places needs this still, the only header
of those beeing fs.h

23 years ago[PATCH] AS oops fix
Andrew Morton [Sun, 21 Sep 2003 08:42:54 +0000 (01:42 -0700)]
[PATCH] AS oops fix

From: Nick Piggin <piggin@cyberone.com.au>

If a request is merged with another, it sometimes has to be repositioned on
the rbtree - you just do a delete then an add.  This is a quite uncommon
case though.

I changed the way adding works, so collisions must be handled by the caller
instead of being dumbly fixed by the add routine.  Unfortunately the
uncommon callers weren't handling it properly.

23 years ago[PATCH] zoran driver documentation fix
Andrew Morton [Sun, 21 Sep 2003 08:42:46 +0000 (01:42 -0700)]
[PATCH] zoran driver documentation fix

From: Ronald Bultje <rbultje@ronald.bitfreak.net>

the zoran kernel driver is called 'zoran.o' in its CVS (historical thing, I
don't know why), and it's called zr36067.o in the kernel tree.  The
documentation in the kernel tree refers to zoran.o, though, which is (in
the kernel tree) the driver for zr36120-based cards, rather than the driver
for zr360x7-based cards.

The attached patch fixes the documentation and makes it refer to
zr36067.o instead.

23 years ago[PATCH] Fix sem_lock deadlock
Andrew Morton [Sun, 21 Sep 2003 08:42:39 +0000 (01:42 -0700)]
[PATCH] Fix sem_lock deadlock

From: Anton Blanchard <anton@samba.org>

I saw a lockup where 2 cpus were stuck in sem_lock().  It seems like we can
loop back to retry_undos with the lock held.  That path takes the lock so
we will deadlock.

23 years ago[PATCH] Handle init_new_context failures
Andrew Morton [Sun, 21 Sep 2003 08:42:31 +0000 (01:42 -0700)]
[PATCH] Handle init_new_context failures

From: Anton Blanchard <anton@samba.org>

If init_new_context fails we definitely do not want to call mmput, because
that will call destroy_context against an uninitialised context.  Instead
we should back out what we did in init_mm.  Fixes some weird failures on
ppc64 when running a fork bomb.

23 years ago[PATCH] Speed up direct-io hugetlbpage handling
Andrew Morton [Sun, 21 Sep 2003 08:42:22 +0000 (01:42 -0700)]
[PATCH] Speed up direct-io hugetlbpage handling

This patch short-circuits all the direct-io page dirtying logic for
higher-order pages.  Without this, we pointlessly bounce BIOs up to keventd
all the time.

23 years ago[PATCH] bio_dirty_fn() page leak fix
Andrew Morton [Sun, 21 Sep 2003 08:42:13 +0000 (01:42 -0700)]
[PATCH] bio_dirty_fn() page leak fix

bio_dirty_fn() needs to drop its ref against each remaining page in the BIO
before releasing the BIO.

23 years ago[PATCH] deadline insert_here fix
Andrew Morton [Sun, 21 Sep 2003 08:42:05 +0000 (01:42 -0700)]
[PATCH] deadline insert_here fix

From: Nick Piggin <piggin@cyberone.com.au>

Fix fallout from Jens' insert_here removal.  Without it its possible that a
request on the dispatch list is on the merge hash as well which is bad.  I
don't _think_ this would happen in any code paths, but I haven't looked too
closely.  It makes the API a bit less fragile anyway.

23 years ago[PATCH] x445: setup_ioapic_ids_from_mpc fix
Andrew Morton [Sun, 21 Sep 2003 08:41:56 +0000 (01:41 -0700)]
[PATCH] x445: setup_ioapic_ids_from_mpc fix

From: James Cleverdon <jamesclv@us.ibm.com>

32-way IBM x445s will have I/O xAPICs with IDs greater than 0xF (0x8 to 0xE
isn't enough).  This breaks the code in setup_ioapic_ids_from_mpc.
However, the entire unique ID check is unnecessary.  Only I/O APICs using
the serial APIC bus need the unique numbers.  Those sending messages
through the system bus simply don't use them.

23 years ago[PATCH] Incorrect value for SIGRTMAX
Andrew Morton [Sun, 21 Sep 2003 08:41:47 +0000 (01:41 -0700)]
[PATCH] Incorrect value for SIGRTMAX

From: Corey Minyard <minyard@acm.org>

I was having a problem with signals with POSIX timers, and it turns out
that the value of SIGRTMAX is incorrect.  Remember that there is no
signal 0, so the signals should go from 1-_NSIG.  However, SIGRTMAX is
defined as (_NSIG-1) in all architectures.  The following patch fixes this.

This define is only used in drivers/usb/core/devio.c and
kernel/posix-timers.c, and both are incorrect without this fix.  There's
also no check for zero in posix-timers.c, that fix is part of the diff.

Also, shouldn't do_sigaction() use this value instead of _NSIG?  It's
not a big deal, but some architectures have different values for _NSIG
and SIGRTMAX.

23 years ago[PATCH] NCR5380 timeout fix
Andrew Morton [Sun, 21 Sep 2003 08:41:38 +0000 (01:41 -0700)]
[PATCH] NCR5380 timeout fix

From: Wagner_Volanin <fadinha.mail@terra.com.br>

I have an old Genius Colorpage-SP2 SCSI scanner.  It is shipped with a
MS-PNR 8bit ISA non-pnp proprietary SCSI card from Microtek.

Although its chipset is a NCR53c400a, it wouldn't work with the appropriate
driver, always accusing timeout, whatever settings I passed to it.

Today I messed a little with the NCR5380.c file in drivers/scsi which is
included by the g_NCR5380 driver and I couldn't understand one thing:

Why the function NCR5380_poll_politely() returned the value 'r' on success
if this value should be '0' case everything went ok...

So I changed "return r;" to "return 0;" and after that my scanner worked
fine, and was easily detected by SANE, without a single error message.  :)

I have not the time to delve into the problem further, but I wanted to
report this.  I couldn't find any counter-effects caused by changing these
return values.

(Acked by Alan)

23 years ago[PATCH] hangcheck compile fix
Andrew Morton [Sun, 21 Sep 2003 08:41:29 +0000 (01:41 -0700)]
[PATCH] hangcheck compile fix

From: john stultz <johnstul@us.ibm.com>

Since monotonic_clock() is not defined on every arch yet, this patch
insures the hangcheck-timer module (currently the only user of
monotonic-clock) is not built where it will not compile.

I know, I know. Ideally monotonic_clock() would be implemented on all
arches, but I've just not had the time.  If any of the non x86/x86-64
folks feel bored, drop me a line.  It'd be a fairly easy project.

23 years ago[PATCH] Export new char dev functions
Andrew Morton [Sun, 21 Sep 2003 08:41:21 +0000 (01:41 -0700)]
[PATCH] Export new char dev functions

From: Jonathan Corbet <corbet@lwn.net>

Nobody told me that the failure to export these (like their block
counterparts) was anything but an oversight; modules will not be able to
use larger device numbers without them.  So...this patch exports the new
char device functions.

23 years ago[PATCH] Fix typo in scripts/postmod.c
Andrew Morton [Sun, 21 Sep 2003 08:41:13 +0000 (01:41 -0700)]
[PATCH] Fix typo in scripts/postmod.c

From: Kristian Hogsberg <krh@bitplanet.net>

There's a small typo in scripts/postmod.c

23 years ago[PATCH] Update Documentation/block/biodoc.txt
Andrew Morton [Sun, 21 Sep 2003 08:41:06 +0000 (01:41 -0700)]
[PATCH] Update Documentation/block/biodoc.txt

From: Nick Piggin <piggin@cyberone.com.au>

This brings biodoc.txt a bit more up to date with recent elevator changes.

23 years ago[PATCH] access_ok is likely
Andrew Morton [Sun, 21 Sep 2003 08:40:58 +0000 (01:40 -0700)]
[PATCH] access_ok is likely

From Manfred

While trying to figure out why sysv msg is around 30% slower than pipes for
data transfers I noticed that gcc's autodetection (3.2.2) guesses the
"if(access_ok())" tests in uaccess.h wrong and puts the error memset into the
direct path and the copy out of line.

So tell the compiler that access_ok() is likely to be true.

23 years ago[PATCH] remove /proc/config_build_info
Andrew Morton [Sun, 21 Sep 2003 08:40:51 +0000 (01:40 -0700)]
[PATCH] remove /proc/config_build_info

From: Zwane Mwaikambo <zwane@linuxpower.ca>

The same info is already available in /proc/version.

23 years ago[PATCH] floppy cleanup timers/resources on unload
Andrew Morton [Sun, 21 Sep 2003 08:40:42 +0000 (01:40 -0700)]
[PATCH] floppy cleanup timers/resources on unload

From: Zwane Mwaikambo <zwane@linuxpower.ca>

The floppy driver currently can leave pending timers after unloading
itself.

This bug has a corresponding bugzilla entry at;

http://bugme.osdl.org/show_bug.cgi?id=1061

23 years ago[PATCH] wanXL serial card driver
Andrew Morton [Sun, 21 Sep 2003 08:40:35 +0000 (01:40 -0700)]
[PATCH] wanXL serial card driver

From: Krzysztof Halasa <khc@pm.waw.pl>

This is a driver for SBE Inc.  wanXL 4-port sync serial card, second
version.

23 years ago[PATCH] Summit sub-arch: Make logical IDs independent of BIOS numbering scheme
Andrew Morton [Sun, 21 Sep 2003 08:40:26 +0000 (01:40 -0700)]
[PATCH] Summit sub-arch: Make logical IDs independent of BIOS numbering scheme

From: James Cleverdon <jamesclv@us.ibm.com>

In forthcoming IBM x445 systems, the physical APIC ID will not follow the
simple rule laid out by Intel and encoded into xapic_phys_to_log_apicid.
(The BIOS code that sets IDs doesn't work right above 16 CPUs if HT is turned
on, so for > 16-way the BIOS will disable HT and repack the physical CPUs
into APIC clusters.)

Anyway, it's a good idea to make the APIC code more independent of any
particular BIOS numbering scheme.  This patch allocates logical IDs based on
how many CPUs have already been onlined in a particular APIC cluster.

23 years ago[PATCH] ens1370 PCI driver naming fix
Andrew Morton [Sun, 21 Sep 2003 08:40:18 +0000 (01:40 -0700)]
[PATCH] ens1370 PCI driver naming fix

From: Patrick Mochel <mochel@osdl.org>

Two drivers are #including the same .c file.  Use them both and we get a
sysfs naming clash.

23 years ago[PATCH] fix incorrect argv[0] for init
Andrew Morton [Sun, 21 Sep 2003 08:40:10 +0000 (01:40 -0700)]
[PATCH] fix incorrect argv[0] for init

From: Erik Andersen <andersen@codepoet.org>

When someone specifies "init=" to select an alternative binary to run
instead of /sbin/init, argv[0] is not set correctly.  This is a problem for
programs such as busybox that multiplex applications based on the value of
argv[0].  For example, even if you specify init=/bin/sh" on the kernel
command line, busybox will still receive "/sbin/init" as argv[0] and will
therefore run init rather than /bin/sh...

23 years ago[PATCH] file locking memory leak
Andrew Morton [Sun, 21 Sep 2003 08:40:01 +0000 (01:40 -0700)]
[PATCH] file locking memory leak

From: Matthew Wilcox <willy@debian.org>

This patch fixes a memory leak in the file locking code.  Each attempt to
unlock a file would result in the leak of a file lock.  Many thanks to
Martin Josefsson for providing the testcase which enabled me to figure out
the problem.

23 years ago[PATCH] istallion: use schedule_work
Andrew Morton [Sun, 21 Sep 2003 08:39:53 +0000 (01:39 -0700)]
[PATCH] istallion: use schedule_work

From: "Krishnakumar. R" <krishnakumar@naturesoft.net>

A missing schedule_task -> schedule_work conversion.

23 years ago[PATCH] remove duplicate SOUND_RME96XX option
Andrew Morton [Sun, 21 Sep 2003 08:39:45 +0000 (01:39 -0700)]
[PATCH] remove duplicate SOUND_RME96XX option

From: Adrian Bunk <bunk@fs.tum.de>

sound/oss/Kconfig in 2.6.0-test5 includes two SOUND_RME96XX entries.

23 years ago[PATCH] reiserfs: add checks from 2.4 into 2.5
Andrew Morton [Sun, 21 Sep 2003 08:39:37 +0000 (01:39 -0700)]
[PATCH] reiserfs: add checks from 2.4 into 2.5

From: Oleg Drokin <green@namesys.com>

This patch adds more consistency checks to reiserfs (check that transaction
is not bigger than journal, check that we reply blocks not beyond fs and
check that fs fits the block device).  Similar patch was included into 2.4
some time ago.

23 years ago[PATCH] misc fixes
Andrew Morton [Sun, 21 Sep 2003 08:39:28 +0000 (01:39 -0700)]
[PATCH] misc fixes

- Remove dead declaration from elevator.h (Nick Piggin)

- Fix the scheduler selection boot-time message.  "Using anticipatory
  scheduling io scheduler" is not grammatical.

- Remove last use of __SMP__ (Randy Dunlap)

23 years ago[PATCH] allow x86 NUMA architecture detection to fail
Andrew Morton [Sun, 21 Sep 2003 08:39:20 +0000 (01:39 -0700)]
[PATCH] allow x86 NUMA architecture detection to fail

From: Dave Hansen <haveblue@us.ibm.com>

As described in this bug: http://bugme.osdl.org/show_bug.cgi?id=653 , if
you enable Summit support and NUMA Discontigmem support but boot on a
non-Summit box, the kernel will fail to boot.  The problem is that the
Summit code can not correctly get the NUMA memory configuration of a
flat box.  The code to do that is in get_memcfg_numa_flat(), but it
never gets called.

This patch implements a fallback to the generic NUMA code in
get_memcfg_numa_flat() if the Summit detection fails.  The patch also
adds the necessary bits to the Summit code so that it *knows* when it
fails.

23 years ago[PATCH] any_online_cpu fix
Andrew Morton [Sun, 21 Sep 2003 08:39:11 +0000 (01:39 -0700)]
[PATCH] any_online_cpu fix

From: William Lee Irwin III <wli@holomorphy.com>

any_online_cpu() is required to and with cpu_online_map before
attempting to find an online cpu somewhere in the map; this patch adds
that logic to the implementation(s) of any_online_cpu().

23 years ago[PATCH] mwave char/Kconfig fix
Andrew Morton [Sun, 21 Sep 2003 08:39:04 +0000 (01:39 -0700)]
[PATCH] mwave char/Kconfig fix

From: Angus Sawyer <angus.sawyer@dsl.pipex.com>

The mwave driver requires [un]register_char from 8250.c
Make sure 8250.c gets compilied.

23 years ago[PATCH] AGP warning fix
Andrew Morton [Sun, 21 Sep 2003 08:38:55 +0000 (01:38 -0700)]
[PATCH] AGP warning fix

agp_setup() is unreferenced if it's a module.

23 years ago[PATCH] Remove Documentation/smp.tex
Andrew Morton [Sun, 21 Sep 2003 08:38:47 +0000 (01:38 -0700)]
[PATCH] Remove Documentation/smp.tex

Hopelessly out of date

23 years ago[PATCH] Move slab objects to the end of the real allocation
Andrew Morton [Sun, 21 Sep 2003 08:38:38 +0000 (01:38 -0700)]
[PATCH] Move slab objects to the end of the real allocation

From: Manfred Spraul <manfred@colorfullife.com>

The real memory allocation is usually larger than the actual object size:
either due to L1 cache line padding, or due to page padding with
CONFIG_DEBUG_PAGEALLOC.  Right now objects are placed to the beginning of
the real allocation, but to trigger bugs it's better to move objects to the
end of the real allocation: that way accesses behind the end of the
allocation have a larger chance of hitting the (unmapped) next page.  The
attached patch moves the objects to align them with the end of the real
allocation.

Actually it contains 4 seperate changes:

- Do not page-pad allocations that are <= SMP_CACHE_LINE_SIZE.  This
  crashes.  Right now the limit is hardcoded to 128 bytes, but sooner or
  later an arch will appear with 256 byte cache lines.

- cleanup: redzone bytes are not accessed with inline helper functions,
  instead of magic offsets scattered throughout slab.c

- main change: move objects to the end of the allocation - trivial after
  the cleanup.

- Print old redzone value if a redzone mismatch happens: This makes it
  simpler to figure out what happened [single bit error, wrong redzone
  code, overwritten]

23 years ago[PATCH] might_sleep diagnostics
Andrew Morton [Sun, 21 Sep 2003 08:38:31 +0000 (01:38 -0700)]
[PATCH] might_sleep diagnostics

might_sleep() can be triggered by either local interrupts being disabled or
by elevated preempt count.  Disambiguate them.

23 years ago[PATCH] CPU scheduler interactivity changes
Andrew Morton [Sun, 21 Sep 2003 08:38:24 +0000 (01:38 -0700)]
[PATCH] CPU scheduler interactivity changes

From: Con Kolivas <kernel@kolivas.org>

Interactivity scheduler tweaks on top of Ingo's A3 interactivity patch.

Interactive credit added to task struct to find truly interactive tasks and
treat them differently.

Extra #defines included as helpers for conversion to/from nanosecond timing,
to work out an average timeslice for nice 0 tasks, and the effective dynamic
priority bonuses that will be given to tasks.

MAX_SLEEP_AVG modified to change dynamic priority by one for a nice 0 task
sleeping or running for one full timeslice.

CREDIT_LIMIT is the number of times a task earns sleep_avg over MAX_SLEEP_AVG
before it is considered HIGH_CREDIT (truly interactive); and -CREDIT_LIMIT is
LOW_CREDIT

TIMESLICE GRANULARITY is modified to be more frequent for more
interactivetasks (10 ms for top 2 dynamic priorities and then halving each
priority belowthat) and less frequent per extra cpu.

JUST_INTERACTIVE_SLEEP logic created to be a sleep_avg consistent with giving
a task enough dynamic priority to remain on the active array.

Task preemption of equal priority tasks is dropped as requeuing with
TIMESLICE_GRANULARITY makes this unecessary.

Dynamic priority bonus simplified.

User tasks that sleep a long time and not waking from uninterruptible sleep
are sought and categorised as idle. Their sleep avg is limited in it's rise to
prevent them becoming high priority and suddenly turning into cpu hogs.

Bonus for sleeping is proportionately higher the lower the dynamic priority of
a task is; this allows for very rapid escalation to interactive status.

Tasks that are LOW_CREDIT are limited in rise per sleep to one priority level.

Non HIGH_CREDIT tasks waking from uninterruptible sleep are sought to detect
cpu hogs waiting on I/O and their sleep_avg rise is limited to just
interactive state to prevent cpu bound tasks from becoming interactive during
I/O wait.

Tasks that earn sleep_avg over MAX_SLEEP_AVG get interactive credits.

On runqueue bonus is not given to non HIGH_CREDIT tasks waking from
uninterruptible sleep.

Forked tasks and their parents get sleep_avg limited to the minimum necessary
to maintain their effective dynamic priority thus preventing repeated forking
from being a way to get highly interactive, but not penalise them noticably
otherwise.

CAN_MIGRATE_TASK cleaned up and modified to work with nanosecond timestamps.

Reverted Ingo's A3 Starvation limit change - it was making interactive tasks
suffer more under increasing load. If a cpu is grossly overloaded and
everyone is going to starve it may as well run interactive tasks
preferentially.

Task requeuing is limited to interactive tasks only (cpu bound tasks dont need
low latency and derive benefit from longer timeslices), and they must have at
least TIMESLICE_GRANULARITY remaining.

HIGH_CREDIT tasks get penalised less sleep_avg the more interactive they are
thus keeping them interactive for bursts but if they become sustained cpu hogs
they will slide increasingly rapidly down the dynamic priority scale.

Tasks that run out of sleep_avg, are still using up cpu time and are not high
or low credit yet get penalised interactive credits to determine LOW_CREDIT
tasks (cpu bound ones).

23 years ago[PATCH] CPU scheduler balancing fix
Andrew Morton [Sun, 21 Sep 2003 08:38:16 +0000 (01:38 -0700)]
[PATCH] CPU scheduler balancing fix

From: Nick Piggin <piggin@cyberone.com.au>

The patch changes the imbalance required before a balance to 25% from 50% -
as the comments intend.  It also changes a case where the balancing
wouldn't be done if the imbalance was >= 25% but only 1 task difference.

The downside of the second change is that one task may bounce from one cpu
to another for some loads.  This will only bounce once every 200ms, so it
shouldn't be a big problem.

(Benchmarking results are basically a wash - SDET is increased maybe 0.5%)