]> git.hungrycats.org Git - linux/log
linux
22 years ago[SPARC32]: Use correct atomic initializer for semaphore counters
Keith M. Wesolowski [Thu, 25 Mar 2004 00:11:23 +0000 (16:11 -0800)]
[SPARC32]: Use correct atomic initializer for semaphore counters

Semaphores use 24-bit atomics, not 32.  Using the wrong initializer
causes immediate deadlock under SMP, and incorrect results under UP.

22 years agoMerge foobazco.org:/sources/2.5-bk
Keith M. Wesolowski [Sun, 21 Mar 2004 14:03:03 +0000 (06:03 -0800)]
Merge foobazco.org:/sources/2.5-bk
into foobazco.org:/sources/2.5-sparc-smp

22 years ago[PATCH] Revert UDF inode semaphore locking
Peter Osterlund [Sun, 21 Mar 2004 07:23:11 +0000 (23:23 -0800)]
[PATCH] Revert UDF inode semaphore locking

For some reason I don't understand, the last UDF filesystem update makes
the UDF deadlock when I write a bunch of mp3 files to a CDRW using the
packet writing patch.  Both "cp" and pdflush get stuck in __down.

Reverting the semaphore changes makes the problem go away.  Use the
kernel lock again, until whatever recursive offender gets fixed.

(The offensive recursion seems to be: write() takes the inode semaphore,
causes memory pressure, and then trying to write back the inode or dirty
data to disk tries to get the semaphore again and deadlocks.)

22 years agoMerge http://linux-watchdog.bkbits.net/linux-2.6-watchdog
Linus Torvalds [Sun, 21 Mar 2004 05:48:25 +0000 (21:48 -0800)]
Merge http://linux-watchdog.bkbits.net/linux-2.6-watchdog
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[WATCHDOG] v2.6.5-rc2 pcwd.c-patch1
Wim Van Sebroeck [Sun, 21 Mar 2004 21:33:23 +0000 (22:33 +0100)]
[WATCHDOG] v2.6.5-rc2 pcwd.c-patch1

Version 1.14 of pcwd.c - Changes that were made are:
* Extract the start code in a seperate function (pcwd_start)
* Extract the stop code in a seperate function (pcwd_stop)
* Extract the get_temperature code in a seperate function (pcwd_get_temperature)
* Make /dev/watchdog and /dev/temperature to different misc devices with their own fops
* Small clean-up's

Tested on pcwd card with temperature option.

22 years ago[WATCHDOG] v2.6.5-rc2 softdog.c-patch
Wim Van Sebroeck [Sun, 21 Mar 2004 12:28:25 +0000 (13:28 +0100)]
[WATCHDOG] v2.6.5-rc2 softdog.c-patch

Version 0.07 of softdog.c - Changes that were made are:
* Extract the start/keepalive code in a seperate function (softdog_keepalive)
* Extract the stop code in a seperate function (softdog_stop)
* Add notifier support
* Extract softdog_set_heartbeat code to seperate subroutine
* Small clean-up's

22 years ago[WATCHDOG] v2.6.5-rc2 wd501p.h-patch
Wim Van Sebroeck [Sun, 21 Mar 2004 12:24:59 +0000 (13:24 +0100)]
[WATCHDOG] v2.6.5-rc2 wd501p.h-patch

Cleanup header file after changes to wdt.c and wdt_pci.c

22 years ago[WATCHDOG] v2.6.5-rc2 wdt_pci.c-patch
Wim Van Sebroeck [Sun, 21 Mar 2004 12:22:23 +0000 (13:22 +0100)]
[WATCHDOG] v2.6.5-rc2 wdt_pci.c-patch

Version 0.10 of wdt_pci.c - Changes that were made are:
* Extract the start code in a seperate function (wdtpci_start)
* Extract the stop code in a seperate function (wdtpci_stop)
* Convert wdtpci_ping so that it return an int value (0=succes).
* Extract the get_temperature code in a seperate function (wdtpci_get_temperature)
* Make /dev/watchdog and /dev/temperature to different misc devices with their own fops.
* Reorganize init and exit functions
* Make heartbeat (the emulated heartbeat) a module parameter
* Rewrite status flag code so that we could add a new tachometer module parameter
   + make clear distinction between PCI-WDT500 and PCI-WDT501.
* Small clean-up's

22 years ago[WATCHDOG] v2.6.5-rc2 wdt.c-patch
Wim Van Sebroeck [Sun, 21 Mar 2004 12:18:43 +0000 (13:18 +0100)]
[WATCHDOG] v2.6.5-rc2 wdt.c-patch

Version 0.10 of wdt.c - Changes that were made are:
* Extract the start code in a seperate function (wdt_start)
* Extract the stop code in a seperate function (wdt_stop)
* Convert wdt_ping so that it return an int value (0=succes).
* Extract the get_temperature code in a seperate function (wdt_get_temperature)
* Make /dev/watchdog and /dev/temperature to different misc devices with their own fops.
* Reorganize init and exit functions
* Make heartbeat (the emulated heartbeat) a module parameter
* Rewrite status flag code so that we could add a new tachometer module parameter
* Small clean-up's

22 years agoMerge bk://linux-pnp.bkbits.net/pnp-2.6
Linus Torvalds [Sun, 21 Mar 2004 02:59:47 +0000 (18:59 -0800)]
Merge bk://linux-pnp.bkbits.net/pnp-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[PATCH] ISDN Eicon driver: move workqueue to tasklet for divas dpc
Armin Schindler [Sun, 21 Mar 2004 00:55:36 +0000 (16:55 -0800)]
[PATCH] ISDN Eicon driver: move workqueue to tasklet for divas dpc

Use tasklet instead of workqueue for the divas main dpc.

22 years ago[PATCH] ISDN Eicon driver: restructured capi list and lock handling
Armin Schindler [Sun, 21 Mar 2004 00:55:24 +0000 (16:55 -0800)]
[PATCH] ISDN Eicon driver: restructured capi list and lock handling

Restructered the CAPI code of list handling and lock.

Removed obsolete code.

22 years ago[PATCH] mprotect return value fix
Andrew Morton [Sun, 21 Mar 2004 00:38:39 +0000 (16:38 -0800)]
[PATCH] mprotect return value fix

From: Marc-Christian Petersen <m.c.p@wolk-project.de>

2.4 patch from Adrian Bunk.

ERRORS

    The mprotect() function shall fail if:

    ...

    [ENOMEM]
        Addresses in the range [addr,addr+len) are invalid for the
        address space of a process, or specify one or more pages which are
        not mapped.

22 years ago[PATCH] make inflate use less stack space with gcc3.5
Andrew Morton [Sun, 21 Mar 2004 00:38:26 +0000 (16:38 -0800)]
[PATCH] make inflate use less stack space with gcc3.5

From: Matt Mackall <mpm@selenic.com>

Quick fix to work around gcc3.5's automatic inline and broken stack
requirements calculation. Without this, I see stack overflows at boot
with 4k stacks.

22 years ago[PATCH] Add missing uacccess checks for sysctl.c
Andrew Morton [Sun, 21 Mar 2004 00:38:10 +0000 (16:38 -0800)]
[PATCH] Add missing uacccess checks for sysctl.c

From: Marc-Christian Petersen <m.c.p@wolk-project.de>

Kernel 2.6 lacks two -EFAULT returns in get_user() in kernel/sysctl.c.

22 years ago[PATCH] Fix error value for opening block devices
Andrew Morton [Sun, 21 Mar 2004 00:37:56 +0000 (16:37 -0800)]
[PATCH] Fix error value for opening block devices

From: Ulrich Drepper <drepper@redhat.com>

Opening a non-existing block device currently yields an ENXIO error.  Doing
the same for char devices produces the correct error ENODEV.

22 years ago[PATCH] kbuild ordering fix
Andrew Morton [Sun, 21 Mar 2004 00:37:44 +0000 (16:37 -0800)]
[PATCH] kbuild ordering fix

From: Sam Ravnborg <sam@ravnborg.org>

In the i386 case we need to generate asm-offset.h, before starting building
the kernel tree.  Building asm-offset.h causes us to use one of the
shorthands in the top-level makefile, namely the one for .s files.  The one
that allows us to do: make some/dir/file.s

And this shorthand happens to have a dependency to scripts, therefore I did
not see this problem on i386.  But David hit it with sparc64, because there
is no asm-offset.h file.  No parallel stuff involved here, just an ordinary
error.

22 years ago[PATCH] start_cpu_timer() cannot be __init
Andrew Morton [Sun, 21 Mar 2004 00:37:31 +0000 (16:37 -0800)]
[PATCH] start_cpu_timer() cannot be __init

It's now called from the CPU hot-add notifier.

22 years agoMerge bk://linux-scsi.bkbits.net/scsi-for-linus-2.6
Linus Torvalds [Sun, 21 Mar 2004 00:35:33 +0000 (16:35 -0800)]
Merge bk://linux-scsi.bkbits.net/scsi-for-linus-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[PATCH] Hack mptfusion to work on >4GB machines
Andi Kleen [Sun, 21 Mar 2004 04:17:28 +0000 (23:17 -0500)]
[PATCH] Hack mptfusion to work on >4GB machines

fusion needs several separately allocated coherent regions and
requires that they all be in the same 4GB segment.  Obviously this may
fail.  The hack is to force the coherent_dma_mask to 0xffffffff thus
ensuring that all the allocations occur within the first 4GB.  This
hack breaks Altix entirely.

22 years agoMerge http://linux.bkbits.net/linux-2.5
Adam Belay [Sat, 20 Mar 2004 21:19:18 +0000 (21:19 +0000)]
Merge http://linux.bkbits.net/linux-2.5
into neo.rr.com:/home/ambx1/linux/bk/linus-2.5

22 years ago[ISAPNP] Unmark experimental status
Adam Belay [Sat, 20 Mar 2004 17:53:21 +0000 (17:53 +0000)]
[ISAPNP] Unmark experimental status

ISAPnP support has been stable with the new pnp layer for a while.
This patch removes the experimental dependency.

22 years ago[PNP] Add some more modem IDs
Adam Belay [Sat, 20 Mar 2004 17:47:54 +0000 (17:47 +0000)]
[PNP] Add some more modem IDs

This patch allows the serial driver to bind to three additional modems.

22 years ago[ISAPNP] Remove uneeded MOD_INC/DEC_USE_COUNT
Christoph Hellwig [Sat, 20 Mar 2004 17:12:57 +0000 (17:12 +0000)]
[ISAPNP] Remove uneeded MOD_INC/DEC_USE_COUNT

isapnp_cfg_begin and isapnp_cfg_end are exported symbols, so if any
module using them is loaded isapnp.o can't be unloaded anyway

22 years ago[PNP] remove __init from system.c
Randy Dunlap [Sat, 20 Mar 2004 16:39:38 +0000 (16:39 +0000)]
[PNP] remove __init from system.c

// Linux 2.6.4-rc2
// These 2 functions shouldn't be __init for general PNP use

22 years ago[ISAPNP] MEM Config Fix
Adam Belay [Sat, 20 Mar 2004 13:49:10 +0000 (13:49 +0000)]
[ISAPNP] MEM Config Fix

This patch fixes a bug in the resource configuration function.  If
there are more than one memory ranges, the isapnp driver will write
into the incorrect configuration register.

22 years ago[PATCH] pmac: Improved G4 "windtunnel" fan controller
Benjamin Herrenschmidt [Sat, 20 Mar 2004 11:40:02 +0000 (03:40 -0800)]
[PATCH] pmac: Improved G4 "windtunnel" fan controller

This is an improved version of the G4 "windtunnel" fan controller.  It
depends on the keywest bugfix...

22 years ago[PATCH] keywest bugfix
Samuel Rydh [Sat, 20 Mar 2004 11:39:50 +0000 (03:39 -0800)]
[PATCH] keywest bugfix

This fixes a deadlock in I2C probing.

 - keywest holds the pmac_low_i2c_lock while registering the i2c adapter.
 - i2c_add_adapter() notifies registered drivers by calling
   driver->attach_adapter().
 - a driver might access the i2c bus from attach_adapter() which
   deadlocks since all xfer routines take the lock.

22 years ago[PATCH] SCSI: Fix Oops in sg with lots of SG_IO activity
Brian King [Sat, 20 Mar 2004 03:48:59 +0000 (22:48 -0500)]
[PATCH] SCSI: Fix Oops in sg with lots of SG_IO activity

Attached is a patch to fix an oops in sg_cmd_done. Please apply.

22 years ago[PATCH] Fix SCSI + st regressions problem
Kai Mäkisara [Sat, 20 Mar 2004 03:48:03 +0000 (22:48 -0500)]
[PATCH] Fix SCSI + st regressions problem

remove dependency on kobj.name.

22 years ago[PATCH] Fix missing part of x86-64 update, part 2
Linus Torvalds [Sat, 20 Mar 2004 03:20:25 +0000 (19:20 -0800)]
[PATCH] Fix missing part of x86-64 update, part 2

One more missing doc-file update

22 years ago[PATCH] Fix missing part of x86-64 update
Linus Torvalds [Sat, 20 Mar 2004 03:01:39 +0000 (19:01 -0800)]
[PATCH] Fix missing part of x86-64 update

Three quarters of the update from Andi was uncommitted due to a bad
patch date and a bug in "bk import -temail"..

Here are the missing parts..

22 years agoMerge alpha Kconfig
Linus Torvalds [Sat, 20 Mar 2004 02:29:59 +0000 (18:29 -0800)]
Merge alpha Kconfig

22 years ago[ALPHA] Update defconfig.
Richard Henderson [Sat, 20 Mar 2004 02:02:00 +0000 (18:02 -0800)]
[ALPHA] Update defconfig.

22 years ago[PATCH] fix scsi_transport_spi.c compile with gcc 2.95
Adrian Bunk [Sat, 20 Mar 2004 01:48:18 +0000 (17:48 -0800)]
[PATCH] fix scsi_transport_spi.c compile with gcc 2.95

Fix token pasting to work with older gcc versions.

We need a space before the "," that may get pasted away.

22 years ago[PATCH] fix console oops/race
Andrew Morton [Sat, 20 Mar 2004 01:45:57 +0000 (17:45 -0800)]
[PATCH] fix console oops/race

Finally nailed this sucker.

con_close() checks the tty->count and then sleeps in acquire_console_sem().
But another process can come in and grab a ref against the tty while
con_close() dropped the BKL.  But con_close() then proceeds to deallocate the
tty->driver_data anyway, even though the tty now has ->count == 2.

Fix that by moving the check for ->tty_count inside console_sem.

22 years ago[PATCH] critical x86-64 merge
Andi Kleen [Sat, 20 Mar 2004 01:44:56 +0000 (17:44 -0800)]
[PATCH] critical x86-64 merge

There were some nasty bugs in the x86-64 code, including one race that
could cause random reboots, especially on Intel machines, with the NMI
watchdog.  This patch fixes them and also includes some harmless
cleanups.

Main fixes were for some buglets in the IOMMU code and the plugging of a
race in the exception stack handling.  Also disables an broken MCE on K8
explicitely.

Also finally the preempt compile issues are fixed.

 - Declare hpet interrupt separately in drivers/char/rtc.c
 - Fix rtc.h/hpet.h to not depend on interrupt.h
 - Finally include smp_lock.h in hardirq.h
 - Update defconfig
 - Export bad_dma_address
 - Merge with 2.6.5rc2
 - Never schedule on interrupt stacks.
 - Add option to force software iotlb (iommu=soft)
 - Add ifdefs to gsi patch to match i386 (Bjorn Helgaas)
 - Fix K8 GART TLB MCE workaround to actually work
 - Fix dwarf2 unwind table in SAVE_ARGS (Jim Houston)
 - Disable APIC on VIA/NVidia even with acpi=off (Gwenole Beauchesne)
 - Fix parsing bug in "apic" option (Gwenole Beauchesne)
 - Fix dma mask handling in pci_alloc_consistent
 - Make pci_alloc_consistent more robust in low memory situations.
 - Print version number in oopses (from i386)
 - ACPI GSI cleanup (Bjorn Helgaas)
 - Disable K8 GART TLB walk error MCE explicitely
 - Add support to disable individual MCEs in the various banks.

22 years agoRename therm_adt7467.c to match the new reality.
Linus Torvalds [Sat, 20 Mar 2004 01:42:56 +0000 (17:42 -0800)]
Rename therm_adt7467.c to match the new reality.

22 years ago[PATCH] therm_adt7467 update
Andrew Morton [Sat, 20 Mar 2004 01:41:51 +0000 (17:41 -0800)]
[PATCH] therm_adt7467 update

From: "Colin Leroy" <colin@colino.net>

The fan driver I wrote for adt746x looks like it only handles the adt7467
chip found in iBooks G4; but it also handles the adt7460 chip found in the
Powerbook G4 Alu.  Here's a patch that updates therm_adt7467.c, Kconfig and
Makefile.

22 years ago[ISAPNP] Fix Device Detection Issue
Adam Belay [Sat, 20 Mar 2004 00:36:51 +0000 (00:36 +0000)]
[ISAPNP] Fix Device Detection Issue

Some isapnp devices were not getting detected as a result of a bug in the isapnp
driver.  It was not following the specifications and calculating a checksum when
it was not reliable.  This problem was originally discovered by Paul L. Rogers
<rogerspl@datasync.com>.  He made an initial patch.  This release has some small
modifications, including a check to see if we run out of CSNs.

22 years ago[PARPORT] Update PC Parport Detection Code
Adam Belay [Sat, 20 Mar 2004 00:33:35 +0000 (00:33 +0000)]
[PARPORT] Update PC Parport Detection Code

This patch updates the parport_pc driver's probing code to better
detect PnP devices.  It also removes an extra MODULE_AUTHOR.

22 years ago[PNP] Resource Conflict Cleanup
Matthew Wilcox [Sat, 20 Mar 2004 00:29:38 +0000 (00:29 +0000)]
[PNP] Resource Conflict Cleanup

This patch simplifies the ranged resource checking logic.

22 years agoLinux 2.6.5-rc2 v2.6.5-rc2
Linus Torvalds [Fri, 19 Mar 2004 08:09:53 +0000 (00:09 -0800)]
Linux 2.6.5-rc2

22 years agoAdd FBIOBLANK to list of compatible ioctls.
Linus Torvalds [Fri, 19 Mar 2004 08:07:09 +0000 (00:07 -0800)]
Add FBIOBLANK to list of compatible ioctls.

22 years agoMerge bk://kernel.bkbits.net/gregkh/linux/pci-2.6
Linus Torvalds [Fri, 19 Mar 2004 08:02:09 +0000 (00:02 -0800)]
Merge bk://kernel.bkbits.net/gregkh/linux/pci-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge bk://kernel.bkbits.net/davem/net-2.6
Linus Torvalds [Fri, 19 Mar 2004 07:00:42 +0000 (23:00 -0800)]
Merge bk://kernel.bkbits.net/davem/net-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge davem@nuts.davemloft.net:/disk1/BK/net-2.6
David S. Miller [Fri, 19 Mar 2004 06:27:42 +0000 (22:27 -0800)]
Merge davem@nuts.davemloft.net:/disk1/BK/net-2.6
into kernel.bkbits.net:/home/davem/net-2.6

22 years agoMerge bk://gkernel.bkbits.net/libata-2.6
Linus Torvalds [Fri, 19 Mar 2004 06:24:27 +0000 (22:24 -0800)]
Merge bk://gkernel.bkbits.net/libata-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge bk://gkernel.bkbits.net/net-drivers-2.6
Linus Torvalds [Fri, 19 Mar 2004 06:21:00 +0000 (22:21 -0800)]
Merge bk://gkernel.bkbits.net/net-drivers-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[PATCH] Fix 3c509
James Bottomley [Fri, 19 Mar 2004 09:12:22 +0000 (04:12 -0500)]
[PATCH] Fix 3c509

This rolls up Marc Zyngier's EISA correction (first two) and adds a missed
netdev_priv() conversion that was causing an oops on module removal.

22 years ago[NET]: Preemption disabling is superfluous in net_rx_action().
David S. Miller [Fri, 19 Mar 2004 06:20:52 +0000 (22:20 -0800)]
[NET]: Preemption disabling is superfluous in net_rx_action().

Noticed by Jan Glauber, confirmed by Stephen Hemminger.

22 years agoMerge bk://kernel.bkbits.net/jgarzik/carmel-2.6
Linus Torvalds [Fri, 19 Mar 2004 06:18:26 +0000 (22:18 -0800)]
Merge bk://kernel.bkbits.net/jgarzik/carmel-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge kroah.com:/home/greg/linux/BK/bleed-2.6
Greg Kroah-Hartman [Fri, 19 Mar 2004 06:18:02 +0000 (22:18 -0800)]
Merge kroah.com:/home/greg/linux/BK/bleed-2.6
into kroah.com:/home/greg/linux/BK/pci-2.6

22 years agoMerge bk://kernel.bkbits.net/davem/sparc-2.6
Linus Torvalds [Fri, 19 Mar 2004 06:12:09 +0000 (22:12 -0800)]
Merge bk://kernel.bkbits.net/davem/sparc-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[PATCH] PCI: claim PCI resources on ia64
Matthew Wilcox [Fri, 19 Mar 2004 06:08:42 +0000 (22:08 -0800)]
[PATCH] PCI: claim PCI resources on ia64

Call pci_claim_resources() so we can see what PCI resources are being used.

22 years ago[PATCH] PCI: Use insert_resource in pci_claim_resource
Matthew Wilcox [Fri, 19 Mar 2004 06:08:16 +0000 (22:08 -0800)]
[PATCH] PCI: Use insert_resource in pci_claim_resource

On ia64, the parent resources are not necessarily PCI resources and
so won't get found by pci_find_parent_resource.  Use the shiny new
insert_resource() function instead, which I think we would have used
here had it been available at the time.

22 years ago[PATCH] PCI: insert_resource can succeed and return an error
Matthew Wilcox [Fri, 19 Mar 2004 06:07:09 +0000 (22:07 -0800)]
[PATCH] PCI: insert_resource can succeed and return an error

If we start again, we can return an error even if we were successful.
Reset the result to 0 before beginning again.  Why don't we use a
tailcall here?

22 years ago[SPARC64]: Export sbus_dma_sync_X_for_device routines too.
David S. Miller [Fri, 19 Mar 2004 06:00:05 +0000 (22:00 -0800)]
[SPARC64]: Export sbus_dma_sync_X_for_device routines too.

22 years ago[SPARC64]: Update defconfig.
David S. Miller [Fri, 19 Mar 2004 05:57:54 +0000 (21:57 -0800)]
[SPARC64]: Update defconfig.

22 years ago[PM2FB]: Fix build on big-endian.
David S. Miller [Fri, 19 Mar 2004 05:55:50 +0000 (21:55 -0800)]
[PM2FB]: Fix build on big-endian.

22 years ago[SPARC64]: Implement pci_dma_error().
David S. Miller [Fri, 19 Mar 2004 05:40:56 +0000 (21:40 -0800)]
[SPARC64]: Implement pci_dma_error().

22 years ago[PATCH] fix "optimize && ?"
Russell King [Fri, 19 Mar 2004 04:52:30 +0000 (20:52 -0800)]
[PATCH] fix "optimize  &&  ?"

This prevents the "optimize && ?" message appearing when the kernel
configuration tool is run.  The message could be eliminated from the
tool, but I'd rather fix the needlessly over-complicated expression:

22 years ago[TRIVIAL] Tighten sanity in time_init to 250 ppm.
Richard Henderson [Fri, 19 Mar 2004 04:29:20 +0000 (20:29 -0800)]
[TRIVIAL] Tighten sanity in time_init to 250 ppm.
From:  "Bailey, Scott" <scott.bailey@eds.com>

22 years agoMerge http://linux-sound.bkbits.net/linux-sound
Linus Torvalds [Fri, 19 Mar 2004 01:56:43 +0000 (17:56 -0800)]
Merge http://linux-sound.bkbits.net/linux-sound
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge bk://gkernel.bkbits.net/net-drivers-2.6
Linus Torvalds [Fri, 19 Mar 2004 01:47:45 +0000 (17:47 -0800)]
Merge bk://gkernel.bkbits.net/net-drivers-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge bk://kernel.bkbits.net/davem/net-2.6
Linus Torvalds [Fri, 19 Mar 2004 01:46:43 +0000 (17:46 -0800)]
Merge bk://kernel.bkbits.net/davem/net-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[PATCH] Hotplug CPUs: Remove CPU_OFFLINE Notifier
Rusty Russell [Fri, 19 Mar 2004 00:04:23 +0000 (16:04 -0800)]
[PATCH] Hotplug CPUs: Remove CPU_OFFLINE Notifier

We no longer have a CPU_OFFLINE notifier: we freeze the machine and
kill the CPU atomically.  Remove it.

22 years ago[PATCH] Hotplug CPUs: Other CPU_DEAD Notifiers
Rusty Russell [Fri, 19 Mar 2004 00:04:13 +0000 (16:04 -0800)]
[PATCH] Hotplug CPUs: Other CPU_DEAD Notifiers

Various files keep per-cpu caches which need to be freed/moved when a
CPU goes down.  All under CONFIG_HOTPLUG_CPU ifdefs.

scsi.c: drain dead cpu's scsi_done_q onto this cpu.

buffer.c: brelse the bh_lrus queue for dead cpu.

timer.c: migrate timers from dead cpu, being careful of lock order vs
__mod_timer.

radix_tree.c: free dead cpu's radix_tree_preloads

page_alloc.c: empty dead cpu's nr_pagecache_local into nr_pagecache, and
free pages on cpu's local cache.

slab.c: stop reap_timer for dead cpu, adjust each cache's free limit, and
free each slab cache's per-cpu block.

swap.c: drain dead cpu's lru_add_pvecs into ours, and empty its committed_space
counter into global counter.

dev.c: drain device queues from dead cpu into this one.

flow.c: drain dead cpu's flow cache.

22 years ago[PATCH] Hotplug CPUs: Kswapd Changes
Rusty Russell [Fri, 19 Mar 2004 00:04:03 +0000 (16:04 -0800)]
[PATCH] Hotplug CPUs: Kswapd Changes

Keep track of kswapds: it's OK that they get moved off a node when the
last CPU goes down, but when a CPU comes back, we should try to move
the kswapd back onto its node.

22 years ago[PATCH] Hotplug CPUs: Workqueue Changes
Rusty Russell [Fri, 19 Mar 2004 00:03:54 +0000 (16:03 -0800)]
[PATCH] Hotplug CPUs: Workqueue Changes

Workqueues need to bring up/destroy the per-cpu thread on cpu up/down.

1) Add a global list of workqueues, and keep the name in the structure
   (to name the newly created thread).

2) Remove BUG_ON in run_workqueue, since thread is dragged off CPU when
   it goes down.

3) Lock out cpu up/down in flush_workqueue, create_workqueue and
   destroy_workqueue.

4) Add notifier to add/destroy workqueue threads, and take over work.

22 years ago[PATCH] Hotplug CPUs: Make ksoftirqd Handle CPU Going Down
Rusty Russell [Fri, 19 Mar 2004 00:03:44 +0000 (16:03 -0800)]
[PATCH] Hotplug CPUs: Make ksoftirqd Handle CPU Going Down

Change ksoftirqd not to assume it's on the CPU: when a cpu goes down,
it will be rudely dragged off.  Since do_softirq() uses
smp_processor_id(), it's easiest to disable preemption, check that the
cpu is still up, then call do_softirq().

If the cpu is actually offline, wait for the notifier, which kills us.

Take over tasklets from dead cpu in the notifier.

Clean up redundant double assignment in CPU_UP callback.

22 years ago[PATCH] Hotplug CPUs: Read Copy Update Changes
Rusty Russell [Fri, 19 Mar 2004 00:03:35 +0000 (16:03 -0800)]
[PATCH] Hotplug CPUs: Read Copy Update Changes

Add hook for RCU to handle jobs on dead cpu.  Requires new
tasklet_kill_immediate for RCU to clean up its tasklet (which might
have been about to run, so tasklet_kill won't work).

22 years ago[PATCH] Hotplug CPUs: Make Migration Thread Handle CPUs Going
Rusty Russell [Fri, 19 Mar 2004 00:03:25 +0000 (16:03 -0800)]
[PATCH] Hotplug CPUs: Make Migration Thread Handle CPUs Going

Change the migration thread to directly use its cpu arg, rather than
smp_processor_id(): if a cpu goes up then down rapidly, it can be on
the wrong cpu just before it is stopped.

Add code to stop the migration thread on CPU_DEAD and CPU_UP_CANCELED.

Remove the (bogus) priority of the notifier.

22 years ago[PATCH] Hotplug CPUs: Set prio of migration thread before CPU
Rusty Russell [Fri, 19 Mar 2004 00:03:16 +0000 (16:03 -0800)]
[PATCH] Hotplug CPUs: Set prio of migration thread before CPU

We need the migration thread to be RT as soon as the CPU comes online:
for example, stop_machine() (another RT task) expects to yield to it.
Extract the core of setscheduler() and do that when the migration
thread is created.  rq lock is a precaution against the (theoretical)
possibility of someone else doing setscheduer on this thread at the
same time.

22 years ago[PATCH] Hotplug CPUs: Keep IRQs off in Migration Thread Calling
Rusty Russell [Fri, 19 Mar 2004 00:03:06 +0000 (16:03 -0800)]
[PATCH] Hotplug CPUs: Keep IRQs off in Migration Thread Calling

Currently the migration thread re-enables irqs, then calls
move_task_away which disables IRQs again and actually does the move.
This means there is a race where the migration thread gets preempted,
and the target CPU can go down.

Hold irqs disabled in migration thread across move_task_away(), which
now doesn't need to save flags (the other caller is the hotplug CPU
code, where irqs are also disabled).

22 years ago[PATCH] Hotplug CPUs: Take cpu Lock Around Migration
Rusty Russell [Fri, 19 Mar 2004 00:02:56 +0000 (16:02 -0800)]
[PATCH] Hotplug CPUs: Take cpu Lock Around Migration

Grab cpu lock around sched_migrate_task() and sys_sched_setaffinity().
This is a noop without CONFIG_HOTPLUG_CPU.

The sched_migrate_task may have a performance penalty on NUMA if lots
of exec rebalancing is happening, however this only applies to
CONFIG_NUMA and CONFIG_HOTPLUG_CPU, which noone does at the moment
anyway.

Also, the scheduler in -mm solves the race another way, so this will
vanish then.

22 years ago[PATCH] Hotplug CPUs: don't pull onto offline CPUs
Rusty Russell [Fri, 19 Mar 2004 00:02:47 +0000 (16:02 -0800)]
[PATCH] Hotplug CPUs: don't pull onto offline CPUs

Don't move tasks onto offline cpus in load_balance and wake_task (the
latter is caused by a completion run from stop_machine).

Note that cpu_is_offline() is a noop when CONFIG_HOTPLUG_CPU=n.

22 years ago[PATCH] Hotplug CPUs: Sysfs Online Attribute
Rusty Russell [Fri, 19 Mar 2004 00:02:37 +0000 (16:02 -0800)]
[PATCH] Hotplug CPUs: Sysfs Online Attribute

Add "online" sysfs attribute to cpus to bring them up and down.

Again, only under CONFIG_HOTPLUG_CPU.

22 years ago[PATCH] Hotplug CPUs: cpu_down()
Rusty Russell [Fri, 19 Mar 2004 00:02:28 +0000 (16:02 -0800)]
[PATCH] Hotplug CPUs: cpu_down()

Implement cpu_down(): uses stop_machine to freeze the machine, then
uses (arch-specific) __cpu_disable() and migrate_all_tasks().

Whole thing under CONFIG_HOTPLUG_CPU, so doesn't break archs which
don't define that.

22 years ago[PATCH] remove_suid() should return error code
Andrew Morton [Thu, 18 Mar 2004 23:04:08 +0000 (15:04 -0800)]
[PATCH] remove_suid() should return error code

From: Nikita Danilov <Nikita@Namesys.COM>

remove_suid() ignores return value of notify_change()->i_op->setattr().
This mean, that even if file system fails to clear suid bit,
generic_file_aio_write_nolock() proceeds with write, which is unsafe.

Actually, even ext2's ->setattr() can fail, when trying to update ACL, for
example.

Attached patch modifies remove_suid() to return result of ->setattr(), and
updates in-tree callers.

22 years ago[PATCH] meye driver update
Andrew Morton [Thu, 18 Mar 2004 23:03:58 +0000 (15:03 -0800)]
[PATCH] meye driver update

From: Stelian Pop <stelian@popies.net>

This patchlet is just a resync with my tree, it only increments the meye
driver version number and makes some small comment changes as suggested by
Randy Dunlap.

22 years ago[PATCH] VM overcommit documentation fixes
Andrew Morton [Thu, 18 Mar 2004 23:03:49 +0000 (15:03 -0800)]
[PATCH] VM overcommit documentation fixes

From: Andy Whitcroft <andyw@uk.ibm.com>

Whilst looking at the memory overcommit logic I noticed that the pointer to
the documentation from the *_vm_enough_memory calls is incorrect.  Also
that in one instance the routine does not have the expected pointers.

22 years ago[PATCH] sonypi devinit section usage
Andrew Morton [Thu, 18 Mar 2004 23:03:39 +0000 (15:03 -0800)]
[PATCH] sonypi devinit section usage

From: Stelian Pop <stelian@popies.net>

This patch removes the usage of __devinit in the srs methods of the sonypi
driver, because those functions are also called from sonypi_pm_callback().

Patch originally from Randy Dunlap.

22 years ago[PATCH] add note about "Copyright" to SubmittingDrivers
Andrew Morton [Thu, 18 Mar 2004 23:03:30 +0000 (15:03 -0800)]
[PATCH] add note about "Copyright" to SubmittingDrivers

From: Grant Grundler <grundler@parisc-linux.org>

This patch adds a comment to "Documentation/SubmittingDrivers" about the
importance of adding a Copyright notice in submitted code.

The parisc-linux port has neglected this in the past and I've been slowly
trying to correct that (along with proper GPL header).

While I make it sound like GPL is the "only" acceptable license, I'll leave
it up to lawyers to determine what other appropriate license could be used
for a new driver.

22 years ago[PATCH] pte_chain comment fix
Andrew Morton [Thu, 18 Mar 2004 23:03:20 +0000 (15:03 -0800)]
[PATCH] pte_chain comment fix

From: Carl Spalletta <ioanamitu@yahoo.com>

Fix a comment bug.

22 years ago[PATCH] EDD: split assembly code
Andrew Morton [Thu, 18 Mar 2004 23:03:11 +0000 (15:03 -0800)]
[PATCH] EDD: split assembly code

From: Matt Domsch <Matt_Domsch@dell.com>

Split EDD assembly code from setup.S into edd.S.  This will enable it to be
#included into x86-64 too.

22 years ago[PATCH] EDD: move code from i386-specific locations to generic
Andrew Morton [Thu, 18 Mar 2004 23:03:01 +0000 (15:03 -0800)]
[PATCH] EDD: move code from i386-specific locations to generic

From: Matt Domsch <Matt_Domsch@dell.com>

move edd.c from arch/i386/kernel to new dir drivers/firmware.  Fix up
makefiles and Kconfigs.

22 years ago[PATCH] EDD: move code from i386-specific locations to generic
Andrew Morton [Thu, 18 Mar 2004 23:02:40 +0000 (15:02 -0800)]
[PATCH] EDD: move code from i386-specific locations to generic

From: Matt Domsch <Matt_Domsch@dell.com>

Three patches to move the BIOS Enhanced Disk Drive code from i386-specific
locations into more generic locations, which will allow it to be used on
x86-64 as well.

move edd.h from include/asm-i386 to include/linux

22 years ago[PATCH] Fix uninlined memcmp on i386
Andrew Morton [Thu, 18 Mar 2004 23:02:23 +0000 (15:02 -0800)]
[PATCH] Fix uninlined memcmp on i386

From: DHollenbeck <dick@softplc.com>

This patch was needed against a pristine 2.6.4 kernel when compiling with
"gcc 3.4 _very recent_" using the -Os option.

Without this patch, modules would use a non-inline memcmp() and then not
find it in the kernel, causing depmod to complain and some modules not to
load.

22 years ago[PATCH] fix HZ leaking to userspace in BSD accounting
Andrew Morton [Thu, 18 Mar 2004 23:02:14 +0000 (15:02 -0800)]
[PATCH] fix HZ leaking to userspace in BSD accounting

From: Tim Schmielau <tim@physik3.uni-rostock.de>

BSD accounting was missed in the conversion from HZ to USER_HZ.  I thought
nobody cared, but apparently there are still users to it.

22 years ago[PATCH] zlib: use kernel min/max
Andrew Morton [Thu, 18 Mar 2004 23:02:04 +0000 (15:02 -0800)]
[PATCH] zlib: use kernel min/max

From: "Randy.Dunlap" <rddunlap@osdl.org>

From: Michael Veeck <michael.veeck@gmx.net>

Remove unnecessary min/max macros and changes calls to use kernel.h macros
instead.

22 years ago[PATCH] sound: use kernel min/max
Andrew Morton [Thu, 18 Mar 2004 23:01:55 +0000 (15:01 -0800)]
[PATCH] sound: use kernel min/max

From: "Randy.Dunlap" <rddunlap@osdl.org>

From: Michael Veeck <michael.veeck@gmx.net>

Remove unnecessary min/max macros and changes calls to use kernel.h macros
instead.

22 years ago[PATCH] reiserfs: use kernel min/max
Andrew Morton [Thu, 18 Mar 2004 23:01:45 +0000 (15:01 -0800)]
[PATCH] reiserfs: use kernel min/max

From: "Randy.Dunlap" <rddunlap@osdl.org>

From: Michael Veeck <michael.veeck@gmx.net>

Remove unnecessary min/max macros and changes calls to use kernel.h macros
instead.

22 years ago[PATCH] procfs: use kernel min/max
Andrew Morton [Thu, 18 Mar 2004 23:01:35 +0000 (15:01 -0800)]
[PATCH] procfs: use kernel min/max

From: "Randy.Dunlap" <rddunlap@osdl.org>

From: Michael Veeck <michael.veeck@gmx.net>

Patch (against 2.6.3) removes unnecessary min/max macros and changes calls to
use kernel.h macros instead.

22 years ago[PATCH] ip2: fix double operator
Andrew Morton [Thu, 18 Mar 2004 23:01:26 +0000 (15:01 -0800)]
[PATCH] ip2: fix double operator

From: "Randy.Dunlap" <rddunlap@osdl.org>

This trivial patch fixes the bug #320:

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

The additional comment:

http://bugme.osdl.org/show_bug.cgi?id=320#c1

Is wrong, because it will send the command twice.

We only want to see if the command got success, thus is not necessary
to test against < 0 (if the return value is not 1, we got a error).

Note that I'm using the function (bad) style.

22 years ago[PATCH] doc. updates/typos
Andrew Morton [Thu, 18 Mar 2004 23:01:15 +0000 (15:01 -0800)]
[PATCH] doc. updates/typos

From: "Randy.Dunlap" <rddunlap@osdl.org>

Remove the rest of references to smp.tex
Documentation/cpufreq => Documentation/cpu-freq
DocBook/tulip.{pdf,ps,html} => DocBook/tulip-user.{pdf,ps,html}
Bunch of other typos.

22 years ago[PATCH] slab: start_cpu_timer() can be __init
Andrew Morton [Thu, 18 Mar 2004 23:01:05 +0000 (15:01 -0800)]
[PATCH] slab: start_cpu_timer() can be __init

From: "Randy.Dunlap" <rddunlap@osdl.org>

From: Luiz Fernando Capitulino <lcapitulino@prefeitura.sp.gov.br>

22 years ago[PATCH] 8250_pnp: probe and remove can be __devinit/__devexit
Andrew Morton [Thu, 18 Mar 2004 23:00:55 +0000 (15:00 -0800)]
[PATCH] 8250_pnp: probe and remove can be __devinit/__devexit

From: "Randy.Dunlap" <rddunlap@osdl.org>

From: Luiz Fernando Capitulino <lcapitulino@prefeitura.sp.gov.br>

22 years ago[PATCH] config: choice fix
Andrew Morton [Thu, 18 Mar 2004 23:00:47 +0000 (15:00 -0800)]
[PATCH] config: choice fix

From: Roman Zippel <zippel@linux-m68k.org>

When a boolean choice value has a dependency of 'm' it can be shortly
treated as a tristate symbol.  This fixes this and also add a small
optimization to precompute the value of the module symbol instead of
checking it all the time.

22 years ago[PATCH] config: persistent qconf configuration
Andrew Morton [Thu, 18 Mar 2004 23:00:38 +0000 (15:00 -0800)]
[PATCH] config: persistent qconf configuration

From: Roman Zippel <zippel@linux-m68k.org>

This patch is by Andreas Fester <Andreas.Fester@gmx.de> and saves and
restores various runtime options of qconf.