]> git.hungrycats.org Git - linux/log
linux
23 years agoMerge bk://ppc.bkbits.net/for-linus-ppc
Linus Torvalds [Sun, 12 Oct 2003 11:19:03 +0000 (04:19 -0700)]
Merge bk://ppc.bkbits.net/for-linus-ppc
into home.osdl.org:/home/torvalds/v2.5/linux

23 years agoMerge samba.org:/stuff/paulus/kernel/linux-2.5
Paul Mackerras [Mon, 13 Oct 2003 06:39:18 +0000 (16:39 +1000)]
Merge samba.org:/stuff/paulus/kernel/linux-2.5
into samba.org:/stuff/paulus/kernel/for-linus-ppc

23 years agoMerge master.kernel.org:/home/dwmw2/BK/jffs2-forlinus-2.5
Linus Torvalds [Sun, 12 Oct 2003 11:17:46 +0000 (04:17 -0700)]
Merge master.kernel.org:/home/dwmw2/BK/jffs2-forlinus-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

23 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-rmk
Linus Torvalds [Sun, 12 Oct 2003 11:07:02 +0000 (04:07 -0700)]
Merge bk://bk.arm.linux.org.uk/linux-2.6-rmk
into home.osdl.org:/home/torvalds/v2.5/linux

23 years ago[ARM] Add missing csum_partial export.
Russell King [Sun, 12 Oct 2003 11:19:31 +0000 (12:19 +0100)]
[ARM] Add missing csum_partial export.

23 years agoFix repeat delays in adbhit, they didn't make the transition to
Benjamin Herrenschmidt [Sat, 11 Oct 2003 18:28:40 +0000 (20:28 +0200)]
Fix repeat delays in adbhit, they didn't make the transition to
jiffies based values to ms. This fix crazy key repeat on ADB
based PowerMacs

23 years agoFix a crash on sleep in the OF platform core where we would
Benjamin Herrenschmidt [Sat, 11 Oct 2003 18:17:44 +0000 (20:17 +0200)]
Fix a crash on sleep in the OF platform core where we would
use a NULL "driver" pointer and actually try to call it after
casting it !

23 years agoFix VIA-based TB/Decrementer calibration , previously it wouldn't work
Benjamin Herrenschmidt [Sat, 11 Oct 2003 18:15:35 +0000 (20:15 +0200)]
Fix VIA-based TB/Decrementer calibration , previously it wouldn't work
properly with HZ != 100, causing tb_to_us to be wrong and gettimeofday()
to return strangely "off" results

23 years agoFix timebase hardware sync on SMP PowerMacs (both oldworld dual 604s and
Benjamin Herrenschmidt [Sat, 11 Oct 2003 18:14:01 +0000 (20:14 +0200)]
Fix timebase hardware sync on SMP PowerMacs (both oldworld dual 604s and
core99 dual G4s).

23 years agoMove definition of TimeBase registers from reg_booke.h to reg.h, those
Benjamin Herrenschmidt [Sat, 11 Oct 2003 18:12:28 +0000 (20:12 +0200)]
Move definition of TimeBase registers from reg_booke.h to reg.h, those
registers exist on common CPUs and without those definitions, SMP won't
build

23 years agoFix RAMDAC detection on some IMS TwinTurbo video cards ("Mac" cards only),
Benjamin Herrenschmidt [Sat, 11 Oct 2003 18:01:43 +0000 (20:01 +0200)]
Fix RAMDAC detection on some IMS TwinTurbo video cards ("Mac" cards only),
without this, you get no display on machines with those cards

23 years agoThe POWER4 support merged previously was incomplete, add the missing bits
Benjamin Herrenschmidt [Sat, 11 Oct 2003 17:58:36 +0000 (19:58 +0200)]
The POWER4 support merged previously was incomplete, add the missing bits
so that the kernel boots at least on POWER4 and G5 CPUs

23 years agoExport init_mm, some modules need that
Benjamin Herrenschmidt [Sat, 11 Oct 2003 17:54:42 +0000 (19:54 +0200)]
Export init_mm, some modules need that

23 years agoExport mol_trampoline and mmu_hash_lock for MOL
Benjamin Herrenschmidt [Sat, 11 Oct 2003 17:53:56 +0000 (19:53 +0200)]
Export mol_trampoline and mmu_hash_lock for MOL
(missing from a previous cset)

23 years agocoff images bootloader reserves more memory for the kernel, allow booting
Benjamin Herrenschmidt [Sat, 11 Oct 2003 17:51:14 +0000 (19:51 +0200)]
coff images bootloader reserves more memory for the kernel, allow booting
of "standard" configs on oldworld macs

23 years agoFix call to Open Firmware "map" call, parameters were flipped causing
Benjamin Herrenschmidt [Sat, 11 Oct 2003 17:49:45 +0000 (19:49 +0200)]
Fix call to Open Firmware "map" call, parameters were flipped causing
the coff image to randomly fail

23 years agoFix jffs2 memory leak on mount error
David Woodhouse [Sat, 11 Oct 2003 16:58:36 +0000 (17:58 +0100)]
Fix jffs2 memory leak on mount error

23 years agoJFFS2 update; completed support for NAND flash.
David Woodhouse [Sat, 11 Oct 2003 16:51:34 +0000 (17:51 +0100)]
JFFS2 update; completed support for NAND flash.

 - Implement write-buffer flushing by garbage collection instead of padding.
 - Implement selective write-buffer flushing on fsync().
 - Implement error recovery on write-buffer flush.
 - Fix remove_suid(). Writing to a suid file didn't previously mark the file non-suid.
 - Fix handling of full file systems, to avoid unlink() returning -ENOSPC.
 - Fix assorted memory leaks.
 - Improve garbage collection efficiency by merging fewer pages.

23 years agoMerge http://linux-acpi.bkbits.net/linux-acpi-release-2.6.0
Linus Torvalds [Sat, 11 Oct 2003 13:40:27 +0000 (06:40 -0700)]
Merge http://linux-acpi.bkbits.net/linux-acpi-release-2.6.0
into home.osdl.org:/home/torvalds/v2.5/linux

23 years agoMerge bk://kernel.bkbits.net/davem/net-2.5
Linus Torvalds [Sat, 11 Oct 2003 13:38:11 +0000 (06:38 -0700)]
Merge bk://kernel.bkbits.net/davem/net-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

23 years agoMerge bk://kernel.bkbits.net/davem/sparc-2.5
Linus Torvalds [Sat, 11 Oct 2003 13:36:16 +0000 (06:36 -0700)]
Merge bk://kernel.bkbits.net/davem/sparc-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

23 years ago[PATCH] Bug in timer_tsc cpufreq callback
Venkatesh Pallipadi [Sat, 11 Oct 2003 12:58:58 +0000 (05:58 -0700)]
[PATCH] Bug in timer_tsc cpufreq callback

There is a bug in cpufreq call back funtion in timer_tsc routines,
that can result in system deadlock. The issue is: grabbing the
write_lock on xtime_lock without disabling the interrupts. So,=20
if we happen to get a timer interrupt while we are in this code,
system will go into a deadlock.

This bug only effects the kernels that have CONFIG_CPU_FREQ enabled.

23 years agoMerge kernel.crashing.org:/home/benh/kernels/linux-2.5
Benjamin Herrenschmidt [Sat, 11 Oct 2003 12:57:12 +0000 (14:57 +0200)]
Merge kernel.crashing.org:/home/benh/kernels/linux-2.5
into kernel.crashing.org:/home/benh/kernels/for-linus-ppc

23 years ago[PATCH] SMP races in the timer code
Ingo Molnar [Sat, 11 Oct 2003 12:54:53 +0000 (05:54 -0700)]
[PATCH] SMP races in the timer code

This fixes two del_timer_sync() races that are still in the timer code.

The first race was actually triggered in a 2.4 backport of the 2.6 timer
code.  The second race was never triggered - it is mostly theoretical on
a standalone kernel.  (It's more likely in any virtualized or otherwise
preemptable environment.)

Both races happen when self-rearming timers are used.  One mainstream
example is kernel/itimer.c.  The effect of the races is that
del_timer_sync() lets a timer running instead of synchronizing with it,
causing logic bugs (and crashes) in the affected kernel code.  One
typical incarnation of the race is a double add_timer().

race #1:

this code in __run_timers() is running on CPU0:

                        list_del(&timer->entry);
                        timer->base = NULL;
[*]
                        set_running_timer(base, timer);
                        spin_unlock_irq(&base->lock);
[**]
                        fn(data);
                        spin_lock_irq(&base->lock);

CPU0 gets stuck at the [*] code-point briefly - after the timer->base has
been set to NULL, but before the base->running_timer pointer has been set
up. This is a fundamentally volatile scenario, as there's _zero_ knowledge
in the data structures that this timer is about to be executed!

Now CPU1 comes along and calls del_timer_sync(). It will find nothing -
neither timer->base nor base->running_timer will cause it to synchronize.
It will return and report that the timer has been deleted - shortly
afterwards CPU1 continues to execute the timer fn, which will cause
crashes.

This particular race is easy to fix by reordering the timer->base
clearing with set_running_timer(), and putting a wmb() between them, but
there's more races:

race #2

The checking of del_timer_sync() for 'pending or running timer' is
fundamentally unrobust. Eg. if CPU0 gets stuck at the [***] point below:

                base = &per_cpu(tvec_bases, i);
                if (base->running_timer == timer) {
                        while (base->running_timer == timer) {
                                cpu_relax();
                                preempt_check_resched();
                        }
[***]
                        break;
                }
        }
        smp_rmb();
        if (timer_pending(timer))
                goto del_again;

then del_timer_sync() has already decided that this timer is not running
(we just finished loop-waiting for it), but we have not done the
timer_pending() check yet.

If the timer has re-armed itself, and if the timer expires on CPU1 (this
needs a long delay on CPU0 but that's not hard to achieve eg.  in UML or
with kernel preemption enabled), then CPU1 could start to expire the
timer and gets to the [**] point in __run_timers (see above), then CPU1
gets stalled and CPU0 is unstalled, then the timer_pending() check in
del_timer_sync() will not notice the running timer, and del_timer_sync()
returns - while CPU1 is just about to run the timer!

Fixing this second race is hard - it involves a heavy race-check
operation that has to lock all bases, and has to re-check the
base->running_timer value, and timer_pending condition atomically.

This fix also fixes the first race, due to forcing del_timer_sync() to
always observe the timer state atomically, so the [*] code point will
always synchronize with del_timer_sync().

The patch is ugly but safe, and it has fixed the crashes in the 2.4
backport.  I tested the patch on 2.6.0-test7 with some heavy itimer use
and it works fine.  Removing self-arming timers safely is the sole
purpose of del_timer_sync(), so there's no way around this overhead i
think.  I believe we should ultimately fix all major del_timer_sync()
users to not use self-arming timers - having del_timer_sync() in the
thread-exit path is now a considerable source of SMP overhead.  But this
is out of the scope of current 2.6 fixes of course, and we have to
support self-arming timers as well.

23 years ago[ATM]: Kill PROC_FS ifdef around includes.
David S. Miller [Sat, 11 Oct 2003 05:42:58 +0000 (22:42 -0700)]
[ATM]: Kill PROC_FS ifdef around includes.

23 years ago[IPX]: ipx_proc.c needs linux/init.h even when PROC_FS is not enabled.
Noah J. Misch [Sat, 11 Oct 2003 05:18:00 +0000 (22:18 -0700)]
[IPX]: ipx_proc.c needs linux/init.h even when PROC_FS is not enabled.

23 years ago[NET]: Fix register_netdev() return value check in synclink_cs.c
Stephen Hemminger [Sat, 11 Oct 2003 05:16:11 +0000 (22:16 -0700)]
[NET]: Fix register_netdev() return value check in synclink_cs.c

23 years ago[WAN]: Fix register_netdev() return value check in hostess_sv11.c
Stephen Hemminger [Sat, 11 Oct 2003 05:15:37 +0000 (22:15 -0700)]
[WAN]: Fix register_netdev() return value check in hostess_sv11.c

23 years ago[IPV4]: ip_copy_metadata must copy the nfcache field.
Julian Anastasov [Sat, 11 Oct 2003 04:59:57 +0000 (21:59 -0700)]
[IPV4]: ip_copy_metadata must copy the nfcache field.

23 years agoMerge nuts.ninka.net:/disk1/davem/BK/sparcwork-2.5
David S. Miller [Sat, 11 Oct 2003 04:51:25 +0000 (21:51 -0700)]
Merge nuts.ninka.net:/disk1/davem/BK/sparcwork-2.5
into nuts.ninka.net:/disk1/davem/BK/sparc-2.5

23 years agoMerge bk://ppc@ppc.bkbits.net/for-linus-ppc
Benjamin Herrenschmidt [Fri, 10 Oct 2003 22:54:41 +0000 (00:54 +0200)]
Merge bk://ppc@ppc.bkbits.net/for-linus-ppc
into kernel.crashing.org:/home/benh/kernels/for-linus-ppc

23 years agoMerge bk://kernel.bkbits.net/gregkh/linux/usb-2.6
Linus Torvalds [Fri, 10 Oct 2003 09:25:31 +0000 (02:25 -0700)]
Merge bk://kernel.bkbits.net/gregkh/linux/usb-2.6
into home.osdl.org:/home/torvalds/v2.5/linux

23 years agoMerge bk://kernel.bkbits.net/gregkh/linux/i2c-2.6
Linus Torvalds [Fri, 10 Oct 2003 09:21:15 +0000 (02:21 -0700)]
Merge bk://kernel.bkbits.net/gregkh/linux/i2c-2.6
into home.osdl.org:/home/torvalds/v2.5/linux

23 years agoMerge intel.com:/home/lenb/bk/linux-2.6.0
Len Brown [Fri, 10 Oct 2003 09:03:12 +0000 (05:03 -0400)]
Merge intel.com:/home/lenb/bk/linux-2.6.0
into intel.com:/home/lenb/bk/linux-acpi-test-2.6.0

23 years agoMerge kroah.com:/home/greg/linux/BK/bleed-2.5
Greg Kroah-Hartman [Fri, 10 Oct 2003 08:53:03 +0000 (01:53 -0700)]
Merge kroah.com:/home/greg/linux/BK/bleed-2.5
into kroah.com:/home/greg/linux/BK/usb-2.6

23 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-rmk
Linus Torvalds [Fri, 10 Oct 2003 08:51:45 +0000 (01:51 -0700)]
Merge bk://bk.arm.linux.org.uk/linux-2.6-rmk
into home.osdl.org:/home/torvalds/v2.5/linux

23 years ago[ARM] Add missing exports for Integrator logic module drivers.
Russell King [Sat, 11 Oct 2003 00:06:33 +0000 (01:06 +0100)]
[ARM] Add missing exports for Integrator logic module drivers.

This adds a couple of missing symbol exports for
lm_driver_register and lm_driver_unregister.

23 years ago[ARM] Remove no_action function from CLPS7500 code.
Russell King [Fri, 10 Oct 2003 23:59:29 +0000 (00:59 +0100)]
[ARM] Remove no_action function from CLPS7500 code.

no_action is implemented by generic code; no need for machine class
code to implement it as well.

23 years agoMerge kroah.com:/home/greg/linux/BK/bleed-2.5
Greg Kroah-Hartman [Fri, 10 Oct 2003 08:35:49 +0000 (01:35 -0700)]
Merge kroah.com:/home/greg/linux/BK/bleed-2.5
into kroah.com:/home/greg/linux/BK/i2c-2.6

23 years agoMerge bk://linux-dj.bkbits.net/cpufreq
Linus Torvalds [Fri, 10 Oct 2003 08:04:04 +0000 (01:04 -0700)]
Merge bk://linux-dj.bkbits.net/cpufreq
into home.osdl.org:/home/torvalds/v2.5/linux

23 years agoMerge wopr.codemonkey.org.uk:/mnt/nfs/sepia/bar/src/kernel/2.6/trees/bk-linus
Dave Jones [Fri, 10 Oct 2003 23:31:17 +0000 (00:31 +0100)]
Merge wopr.codemonkey.org.uk:/mnt/nfs/sepia/bar/src/kernel/2.6/trees/bk-linus
into wopr.codemonkey.org.uk:/mnt/nfs/sepia/bar/src/kernel/2.6/trees/cpufreq

23 years ago[CPUFREQ] Kill longhaul warnings
Dave Jones [Fri, 10 Oct 2003 23:24:13 +0000 (00:24 +0100)]
[CPUFREQ] Kill longhaul warnings
(Blah about unused variables).
This code still won't be used, as its still not tested/debugged properly
on a Nehemiah.

23 years ago[CPUFREQ] Fix longhauls speed calculations.
Dave Jones [Fri, 10 Oct 2003 21:57:10 +0000 (22:57 +0100)]
[CPUFREQ] Fix longhauls speed calculations.
We got half multipliers horribly wrong, which made us think we could
clock the CPU much higher than we actually could.

23 years ago[CPUFREQ] refix EBLCR FSB only works on Samuel1.
Dave Jones [Fri, 10 Oct 2003 21:45:31 +0000 (22:45 +0100)]
[CPUFREQ] refix EBLCR FSB only works on Samuel1.
Now that longhaul=1 matches more than 1 CPU, this broke.

23 years ago[CPUFREQ] Make VIA longhaul work on Samuel2 & Ezra again.
Dave Jones [Fri, 10 Oct 2003 21:02:19 +0000 (22:02 +0100)]
[CPUFREQ] Make VIA longhaul work on Samuel2 & Ezra again.
These CPUs are actually only longhaul v1 compliant.
This was catastrophic, as the MSRs moved between v1 and v2.
There was also massive confusion in the documentation regarding Ezra.
It's not another variant, so 'v2' never existed.
Renamed v3 (Powersaver) to v2 as a result of this.

23 years ago[PATCH] I2C: fix i2c-dev class release function bug.
Greg Kroah-Hartman [Fri, 10 Oct 2003 07:59:18 +0000 (00:59 -0700)]
[PATCH] I2C: fix i2c-dev class release function bug.

There was no release function, that was the bug :)
It caused bad messages to show up in the syslog whenever a i2c driver was removed, and could
easily oops.

23 years ago[PATCH] I2C: i2c-sis630 driver fixes
Alexander Malysh [Fri, 10 Oct 2003 07:11:04 +0000 (00:11 -0700)]
[PATCH] I2C: i2c-sis630 driver fixes

attached you can find a patch that should fix i2c-sis630 driver for
2.6.0-X kernel. With i2c-sis630 from stock 2.6.0-X we have oops and
driver was not correct registered against i2c-core.

Changes:
1) fixed a oops while modprobing
2) added check for buffer overflow for i2c block data read transaction
3) added 'force' modprobe parameter. It's allow more easily
   testing for not yet supported SiS chips.

23 years agoMerge bk://kernel.bkbits.net/davem/sparc-2.5
Linus Torvalds [Fri, 10 Oct 2003 00:32:18 +0000 (17:32 -0700)]
Merge bk://kernel.bkbits.net/davem/sparc-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

23 years ago[SPARC64]: Fix mixed declarations and code in flush_dcache_page_all.
David S. Miller [Thu, 9 Oct 2003 22:50:35 +0000 (15:50 -0700)]
[SPARC64]: Fix mixed declarations and code in flush_dcache_page_all.

23 years ago[SPARC64]: Fix __bzero_noasi declaration.
David S. Miller [Thu, 9 Oct 2003 22:49:14 +0000 (15:49 -0700)]
[SPARC64]: Fix __bzero_noasi declaration.

23 years agoMerge kernel.crashing.org:/home/benh/kernels/linux-2.5
Benjamin Herrenschmidt [Thu, 9 Oct 2003 20:54:09 +0000 (22:54 +0200)]
Merge kernel.crashing.org:/home/benh/kernels/linux-2.5
into kernel.crashing.org:/home/benh/kernels/for-linus-ppc

23 years agoPPC32: Export a couple of symbols (csum_partial and init_task).
Paul Mackerras [Fri, 10 Oct 2003 02:44:52 +0000 (12:44 +1000)]
PPC32: Export a couple of symbols (csum_partial and init_task).

23 years agoMerge samba.org:/stuff/paulus/kernel/linux-2.5
Paul Mackerras [Thu, 9 Oct 2003 20:57:33 +0000 (06:57 +1000)]
Merge samba.org:/stuff/paulus/kernel/linux-2.5
into samba.org:/stuff/paulus/kernel/for-linus-ppc

23 years ago[SPARC64]: Update defconfig.
David S. Miller [Thu, 9 Oct 2003 18:43:32 +0000 (11:43 -0700)]
[SPARC64]: Update defconfig.

23 years ago[NET]: Delete skb_shared() checks from loopback driver transmit.
David S. Miller [Thu, 9 Oct 2003 17:11:08 +0000 (10:11 -0700)]
[NET]: Delete skb_shared() checks from loopback driver transmit.

This code is from ancient history when TCP did not used SKB cloning.

23 years ago[WAN]: Incorrect comparison for register_netdev in cosa.c
Stephen Hemminger [Thu, 9 Oct 2003 17:04:46 +0000 (10:04 -0700)]
[WAN]: Incorrect comparison for register_netdev in cosa.c

23 years ago[IRDA]: Fix memory leak in sa1100_ir.c
Stephen Hemminger [Thu, 9 Oct 2003 17:04:04 +0000 (10:04 -0700)]
[IRDA]: Fix memory leak in sa1100_ir.c

23 years ago[NET]: Fix initialization sequence in SunGEM driver.
David Gibson [Thu, 9 Oct 2003 16:57:49 +0000 (09:57 -0700)]
[NET]: Fix initialization sequence in SunGEM driver.

23 years ago[ATM]: Mark unclean drivers as not-64BIT.
Andi Kleen [Thu, 9 Oct 2003 16:57:09 +0000 (09:57 -0700)]
[ATM]: Mark unclean drivers as not-64BIT.

23 years ago[WAN]: Fix transmitted headers with generic HDLC + Cisco encap.
Krzysztof Halasa [Thu, 9 Oct 2003 16:45:30 +0000 (09:45 -0700)]
[WAN]: Fix transmitted headers with generic HDLC + Cisco encap.

23 years ago[SPARC64]: Squelch bogus gcc warning in unaligned.c due to bad flow analysis.
David S. Miller [Thu, 9 Oct 2003 16:20:48 +0000 (09:20 -0700)]
[SPARC64]: Squelch bogus gcc warning in unaligned.c due to bad flow analysis.

23 years ago[VLAN]: kfree(skb) --> kfree_skb(skb).
David S. Miller [Thu, 9 Oct 2003 16:05:08 +0000 (09:05 -0700)]
[VLAN]: kfree(skb) --> kfree_skb(skb).

23 years agoMerge intel.com:/home/lenb/bk/linux-2.6.0
Len Brown [Thu, 9 Oct 2003 09:17:53 +0000 (05:17 -0400)]
Merge intel.com:/home/lenb/bk/linux-2.6.0
into intel.com:/home/lenb/bk/linux-acpi-test-2.6.0

23 years agoRevert the process group accessor functions. They are buggy, and
Linus Torvalds [Thu, 9 Oct 2003 08:13:56 +0000 (01:13 -0700)]
Revert the process group accessor functions. They are buggy, and
cause NULL pointer references in /proc.

Moreover, it's questionable whether the whole thing makes sense at all.
Per-thread state is good.

Cset exclude: davem@nuts.ninka.net|ChangeSet|20031005193942|01097
Cset exclude: akpm@osdl.org[torvalds]|ChangeSet|20031005180420|42200
Cset exclude: akpm@osdl.org[torvalds]|ChangeSet|20031005180411|42211

23 years ago[PATCH] I2C: correct some errors in i2c/chips/Kconfig
Jean Delvare [Thu, 9 Oct 2003 06:35:09 +0000 (23:35 -0700)]
[PATCH] I2C: correct some errors in i2c/chips/Kconfig

23 years ago[PATCH] I2C: Chip driver initialization fixes
Jean Delvare [Thu, 9 Oct 2003 06:33:03 +0000 (23:33 -0700)]
[PATCH] I2C: Chip driver initialization fixes

fixes all chip drivers by moving the initialization before any sysfs
entry is created.

23 years ago[PATCH] USB: Make Ethernet Gadget depend on CONFIG_NET
Noah J. Misch [Thu, 9 Oct 2003 06:17:49 +0000 (23:17 -0700)]
[PATCH] USB: Make Ethernet Gadget depend on CONFIG_NET

Previously, one could configure a kernel that wouldn't link by doing a 'make
allnoconfig' and then a 'make menuconfig' and enabling CONFIG_EXPERIMENTAL,
CONFIG_PCI, CONFIG_USB_GADGET, and CONFIG_USB_ETH.

23 years ago[PATCH] USB: Make ISD-200 USB/ATA Bridge depend on BLK_DEV_IDE
Noah J. Misch [Thu, 9 Oct 2003 06:17:37 +0000 (23:17 -0700)]
[PATCH] USB: Make ISD-200 USB/ATA Bridge depend on BLK_DEV_IDE

This usb driver needs ide_fix_driveid from drivers/ide/ide-ops.c, which
needs BLK_DEV_IDE ("Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy
support") to get built.

Without this patch, you can configure an un-linkable kernel by doing make
allnoconfig, make menuconfig, and setting CONFIG_PCI, CONFIG_USB,
CONFIG_USB_STORAGE, and CONFIG_USB_STORAGE_ISD200 only.

23 years ago[PATCH] USB: Handspring Treo 600 id
Dax Kelson [Thu, 9 Oct 2003 06:17:21 +0000 (23:17 -0700)]
[PATCH] USB: Handspring Treo 600 id

I've got a new toy. This obviously correct 4 liner patches
the two files:

23 years ago[PATCH] net/sunrpc/clnt.c compile fix
Paul Mundt [Thu, 9 Oct 2003 05:33:22 +0000 (22:33 -0700)]
[PATCH] net/sunrpc/clnt.c compile fix

net/sunrpc/clnt.c does not compile if RPC_DEBUG is not enabled, due to
the fact that tk_pid is protected by RPC_DEBUG (which in turn depends on
CONFIG_SYSCTL).

The printk's that use it don't actually need to print it out at all,
the rpc_task tag isn't really interesting here.

Acked by Trond Myklebust.

23 years ago[PATCH] Build fixes for zoran on PA-RISC
Matthew Wilcox [Thu, 9 Oct 2003 04:25:22 +0000 (21:25 -0700)]
[PATCH] Build fixes for zoran on PA-RISC

The Zoran driver doesn't include <asm/io.h> and thus won't compile
on architectures where that doesn't get implicitly included through
some other path.

Add the proper includes.

23 years ago[PATCH] Prefetch workaround for Athlon/Opteron
Andi Kleen [Thu, 9 Oct 2003 04:23:31 +0000 (21:23 -0700)]
[PATCH] Prefetch workaround for Athlon/Opteron

This is the latest iteration of the workaround for the Athlon/Opteron
prefetch erratum.  Sometimes the CPU would incorrectly report an
exception on prefetch.

This supercedes the previous dumb workaround of checking for AMD CPUs in
prefetch().  That one bloated the kernel by several KB and lead to lots
of unnecessary checks in hot paths.

Also this one handles user space faults too, so the kernel can
effectively isolte the user space from caring about this errata.

Instead it handles it in the slow path of the exception handler (the
check is only done when the kernel would normally trigger seg fault or
crash anyways)

All the serious criticisms to the previous patches have been addressed.
It checks segment bases now, handles vm86 mode and avoids deadlocks when
the prefetch exception happened inside mmap_sem.

This includes review and fixes from Jamie Lokier and Andrew Morton.
Opcode decoder based on code from Richard Brunner.

23 years ago[PATCH] USB: make more driver names match module names
David Brownell [Thu, 9 Oct 2003 03:30:54 +0000 (20:30 -0700)]
[PATCH] USB: make more driver names match module names

This resolves a bug in osdl bugtraq (#1261) by making
some more driver names match their module names.  Such
mismatches are bad because scripts often need to add
special cases, handling multiple names for drivers.

23 years ago[PATCH] USB: remove stupid check for NULL in devio.c
Oliver Neukum [Thu, 9 Oct 2003 03:30:40 +0000 (20:30 -0700)]
[PATCH] USB: remove stupid check for NULL in devio.c

usually this would be too trivial, but is so obviously stupid that
people might think that there's some hidden trick in there.

We should not check for NULL _after_ following a pointer.
Consider it a small tiny step towards cleaning up this code.

23 years ago[PATCH] USB: Fix USB suspend in 2.6.0-test6
Paul Mackerras [Thu, 9 Oct 2003 03:30:27 +0000 (20:30 -0700)]
[PATCH] USB: Fix USB suspend in 2.6.0-test6

In drivers/usb/core/hcd-pci.c, the code forgets to set hcd->state to
USB_STATE_SUSPENDED on suspend.  The effect is that on resume, the
code refuses to wake the HCD up, and instead prints a message saying
the interface hasn't been suspended.

The patch below fixes this.  It is against 2.6.0-test6.  With this
patch I can suspend and resume my Apple PowerBook G4, and the USB
works after resuming.

23 years ago[PATCH] USB: Fix two typos in drivers/usb/README
Alexey Dobriyan [Thu, 9 Oct 2003 03:30:10 +0000 (20:30 -0700)]
[PATCH] USB: Fix two typos in drivers/usb/README

23 years ago[PATCH] USB: Correct module names in drivers/usb/*/Kconfig
Alexey Dobriyan [Thu, 9 Oct 2003 03:29:53 +0000 (20:29 -0700)]
[PATCH] USB: Correct module names in drivers/usb/*/Kconfig

Module names in Kconfig help texts should match those in Makefiles. Please apply.

23 years ago[PATCH] USB: minor net2280 cleanup
David Brownell [Thu, 9 Oct 2003 03:26:58 +0000 (20:26 -0700)]
[PATCH] USB: minor net2280 cleanup

This holds minor net2280 cleanups:

  - Cleaner handling for cases where dma_alloc_coherent() must be
    used instead of kmalloc().  (Kmalloc is more memory-efficient
    for the "small buffers" case.)   Both MIPS cases should work,
    as well as others.

  - Prefetch cachelines on PIO paths.

The first of those gets rid of one <linux/version.h> usage, no
longer useful now that 2.4 and 2.6 versions have forked.

23 years ago[PATCH] IPMI fixes for 2.6.0-test7
Corey Minyard [Thu, 9 Oct 2003 01:02:15 +0000 (18:02 -0700)]
[PATCH] IPMI fixes for 2.6.0-test7

This fixes some problems with timing calculations (primarily for ia64)
and adds an operation to send panic strings to the IPMI event log on a
panic.

23 years ago[PATCH] ftape linkage error
Mikael Pettersson [Thu, 9 Oct 2003 01:02:07 +0000 (18:02 -0700)]
[PATCH] ftape linkage error

Since 2.6.0-test6, ftape can't be configured as a built-in driver.
test6 changed ftape-init.c to call ftape_proc_destroy() also in
the non-MODULE case; however, ftape_proc_destroy() is only defined
when the driver is built as a module. The result is a linkage error.

This fixes this by deleting the #if MODULE around ftape_proc_destroy()'s
definition.

23 years agoRevert floppy driver dependence on CONFIG_ISA. The thing exists
Linus Torvalds [Thu, 9 Oct 2003 00:53:14 +0000 (17:53 -0700)]
Revert floppy driver dependence on CONFIG_ISA. The thing exists
on lots of PCI-only setups that have no ISA anywhere.

23 years ago[PATCH] Update the AV7110 DVB driver
Michael Hunold [Thu, 9 Oct 2003 00:51:06 +0000 (17:51 -0700)]
[PATCH] Update the AV7110 DVB driver

 - add vbi device handling for dvb-c cards with analog module
 - fix error handling upon device initialization
 - fix DD1_INIT handling of DVB-C w/ analog module installed.  (Jon
   Burgess)

23 years ago[PATCH] Misc. fixes for AT76C651 DVB frontend driver
Michael Hunold [Thu, 9 Oct 2003 00:50:57 +0000 (17:50 -0700)]
[PATCH] Misc. fixes for AT76C651 DVB frontend driver

 - fixed some return values in device attach functions
 - allow private data to be associated with frontend devices here, too
 - misc bugfixes and performance improvements (endianess, function split up)

23 years ago[PATCH] Misc. fixes for ALPS TDLB7 DVB frontend driver
Michael Hunold [Thu, 9 Oct 2003 00:50:49 +0000 (17:50 -0700)]
[PATCH] Misc. fixes for ALPS TDLB7 DVB frontend driver

 - applied latest changes by Juergen Peitz (great work!)
  o as a workaround for the lockup problem the data valid signal is
    checked after every channel switch.  If it is not set FEC parameters
    are set again.
  o disabled autoprobing if FEC settings are known (from sp887x).
  o added support for FE_READ_UNCORRECTED_BLOCKS (from sp887x).
  o added support for FE_SLEEP (from sp887x).
  o bit error rate is now not only read from register 0xC07 but also
    from 0xC08 (from sp887x).
  o I2C feedthrough to the tuner is now only enabled when needed (from
    sp887x).
  o Added FE_CAN_QAM_AUTO and FE_CAN_HIERARCHY_AUTO to
    dvb_frontend_info.
  o Removed obsolete setting of default frontend parameters in
    sp8870_init.
  o Removed obsolete module parameter 'loadcode' because changes in the
    saa7146 driver made firmware loading very fast.

23 years ago[PATCH] Fix DVB network device handling
Michael Hunold [Thu, 9 Oct 2003 00:50:40 +0000 (17:50 -0700)]
[PATCH] Fix DVB network device handling

 - simplify and sanitize add/del handling for dvb net devices

23 years ago[PATCH] Add private data pointer to DVB frontends
Michael Hunold [Thu, 9 Oct 2003 00:50:32 +0000 (17:50 -0700)]
[PATCH] Add private data pointer to DVB frontends

 - allow private data to be associated with dvb frontend devices
   (Andreas Oberritter)
 - fixed fe_count countint in nxt6000 frontend driver (Andreas
   Oberritter)

23 years ago[PATCH] Fix vbi handling in saa7146 core driver
Michael Hunold [Thu, 9 Oct 2003 00:50:23 +0000 (17:50 -0700)]
[PATCH] Fix vbi handling in saa7146 core driver

 - add some debug and safety checks for video/vbi capture buffer
   handling
 - add new flag SAA7146_USE_PORT_B_FOR_VBI, so we can distinguish on
   which video port to apply the vbi workaround
 - add del_timer(...) for vbi capture queue and vbi_read timers,
   prevents oopses on vbi usage

23 years ago[PATCH] New DVB frontend driver ves1x93 (obsoletes alps_bsrv2)
Michael Hunold [Thu, 9 Oct 2003 00:50:15 +0000 (17:50 -0700)]
[PATCH] New DVB frontend driver ves1x93 (obsoletes alps_bsrv2)

 - replace alps_bsrv2 driver by generic ves1893 & ves1993 driver
   (Andreas Oberritter)

23 years ago[PATCH] Fix 64bit bug in trident frame buffer driver
Andi Kleen [Thu, 9 Oct 2003 00:49:17 +0000 (17:49 -0700)]
[PATCH] Fix 64bit bug in trident frame buffer driver

Fix another 64bit bug, this time in the trident frame buffer driver

When storing the ioremap_nocache() return in a integer the variable must be
long not int.

23 years ago[PATCH] More barriers in module code.
Rusty Russell [Thu, 9 Oct 2003 00:42:12 +0000 (17:42 -0700)]
[PATCH] More barriers in module code.

Paul McKenney convinced me that there's no *guarantee* that all archs
will refuse the speculate the atomic ops above the state test, eg:

CPU0 (stopref_set_state) CPU1 (stopref)

 atomic_set(&ack, 0); if (state == XXX)
 wmb(); atomic_inc(&ack);
 state = XXX;

Certainly Alpha needs a rmb() inside stopref to guarantee it sees
the same ordering.

23 years ago[PATCH] ipt_limit fix for HZ=1000
Rusty Russell [Thu, 9 Oct 2003 00:42:03 +0000 (17:42 -0700)]
[PATCH] ipt_limit fix for HZ=1000

The range that the iptables limit extension can specify depends on HZ.
This means that rules which worked i386 2.4 (100 HZ) won't work on
2.6.

The solution is to adjust the precision based on the HZ value (keeping
the range of possible values the same).  For extra geek cred, this is
done by calculating a power-of-two constant below the maximum
multiplication factor, which gcc then turns into a simple shift.

23 years ago[PATCH] Fix pcmcia_tcic.c if PCMCIA_DEBUG is defined.
Rusty Russell [Thu, 9 Oct 2003 00:41:54 +0000 (17:41 -0700)]
[PATCH] Fix pcmcia_tcic.c if PCMCIA_DEBUG is defined.

From:  Stephen Hemminger <shemminger@osdl.org>

  Compile errors in the pcmcia/tcic driver if PCMCIA_DEBUG is defined.
  Looks like simple debug code bitrot, this fixes it.

23 years agoManual merge of sound config
Linus Torvalds [Thu, 9 Oct 2003 00:34:09 +0000 (17:34 -0700)]
Manual merge of sound config

23 years agoMerge bk://ppc.bkbits.net/for-linus-ppc
Linus Torvalds [Thu, 9 Oct 2003 00:24:46 +0000 (17:24 -0700)]
Merge bk://ppc.bkbits.net/for-linus-ppc
into home.osdl.org:/home/torvalds/v2.5/linux

23 years ago[PATCH] Fix compile on PPC
Paul Mackerras [Thu, 9 Oct 2003 00:23:30 +0000 (17:23 -0700)]
[PATCH] Fix compile on PPC

At the moment the aty128fb and matroxfb frame buffer drivers don't
compile on PPC.  In both cases the error is pretty trivial.  This
patch is the minimum change to fix the problems.

The _IOR() type problem fix in aty128fb.c depends on the fact that the
size of a pointer is the same as "size_t", so we don't have to use
_IOR_BAD() to keep the ioctl number the same.

23 years agodisable_irq() should synchronize with irq handler only if one exists.
Linus Torvalds [Wed, 8 Oct 2003 13:47:40 +0000 (06:47 -0700)]
disable_irq() should synchronize with irq handler only if one exists.

Noted by Al Viro: if no handler exists (and we have IRQ_INPROGRESS set
because of an earlier irq that got through), synchronize_irq() will
end up waiting forever.

23 years ago[ARM] Add ARM specific ignores to BK ignore file
Russell King [Wed, 8 Oct 2003 13:16:44 +0000 (14:16 +0100)]
[ARM] Add ARM specific ignores to BK ignore file

23 years agoMerge
Len Brown [Wed, 8 Oct 2003 12:34:35 +0000 (08:34 -0400)]
Merge

23 years agoMerge intel.com:/home/lenb/bk/linux-2.6.0
Len Brown [Wed, 8 Oct 2003 12:10:50 +0000 (08:10 -0400)]
Merge intel.com:/home/lenb/bk/linux-2.6.0
into intel.com:/home/lenb/bk/linux-acpi-test-2.6.0

23 years ago[PATCH] futex bug fixes
Jamie Lokier [Wed, 8 Oct 2003 11:59:24 +0000 (04:59 -0700)]
[PATCH] futex bug fixes

This fixes two serious bugs in the futex code.

One is a race condition which results in list corruption when
FUTEX_REQUEUE is used.  It is due to the split locks change introduced
in 2.6.0-test6, and oopses when triggered.

The other is a security hole.  A program can use FUTEX_FD to create
futexes on mms or inodes which don't reference them, and when those
structures are reused by a different mm or inode, the addresses match.
The effect is that a malicious or flawed program can steal wakeups from
completely unrelated tasks, causing them to block (or worse if they are
counting on the token passing property).

These are the specific changes:

    1. Each futex_q retains a reference to its key mm or inode.

    2. The condition for a futex_q to indicate that it's woken can usually
       be interrogated lock-free.

    3. futex_wait calls the hash function once instead of three times,
       and usually takes the per-bucket lock once too.

    4. When a futex is woken, the per-bucket lock is not usually taken,
       so that's one less cache line transfer during heavy SMP futex use.

    5. The wait condition and barriers in futex_wait are simpler.

    5. FUTEX_REQUEUE is fixed.  The per-bucket lock juggling is done
       in such a way that there are no race conditions against the tests
       for whether a futex is woken.

This patch is an combination of patches previously sent to the list.  An
equivalent patch has been in Andrew Morton's tree for a while, with no
failure reports.  Also I have been running it on my own SMP box for a
while.  Conversely, we have received an oops report for the 2.6.0-test6
code, so the fix is needed.