Stelian Pop [Fri, 21 Feb 2003 05:52:12 +0000 (21:52 -0800)]
[PATCH] sonypi and input subsystem
This makes the sonypi driver forward the VAIO jog-dial events directly
to the input subsystem as mouse wheel events. This way one is not
required anymore to have an external daemon polling /dev/sonypi if
interested only in jogdial events.
Linus Torvalds [Fri, 21 Feb 2003 01:55:12 +0000 (17:55 -0800)]
We don't need to wait for task in-activity in release_task() any more,
since we now properly reference-count the allocations and thus can't
be freeing the thread structures from underneath the task running on
another CPU.
Move "free_uid(p->user)" and "security_task_free()" to __put_task_struct(),
so that we're guaranteed to always have a user structure pointer.
Pamela Delaney [Fri, 21 Feb 2003 01:19:11 +0000 (17:19 -0800)]
[PATCH] Fusion Driver 2.05.00.03 against 2.5.62bk3
Please accept this large patch against 2.5.62bk4 to update the
Fusion-MPT driver from 2.03.01.01 to 2.05.00.03.
This version contains full 2.5 kernel support (add, configuration &
removal of disks, new module hooks), performance enhancements, removal
of obsolete code that is 2.4 (or earlier) specific and removal of blank
spaces at end of lines. Tested overnight on 2.5.62bk3 and ran some
tests against bk4 this morning on both machines. Things appear to be
fine - have not tested the two failure conditions today.
The driver has been tested on two different platforms:
- P4 4-processor
o boot controller
o built into kernel
o disk add, configure, remove
o bus, target reset
o device offline cases
o cross channel I/O stress tests w/ Fibre and SCSI
- Athlon uniprocessor, IDE boot
o Ran a test that repeatedly loads the driver, mounts disks, runs a
short I/O test (20mins) then unload the driver components in a
different order
Failures:
o Unable to boot if boot controller is built as a module - pivot_root
fails (Happens if IDE or SCSI boot)
o Problems when formatting large SCSI disks. On P4 w/ 2.5.60, there
were no difficulties formatting a 36GB disk. On Athlon, mkfs.ext2
would never send a write command to the driver (verified w/ SCSI
trace and driver debug). Reads completed successfully. mkfs.ext2
would not exit and is shown as a running process.
Smaller partitions were formatted correctly. W/ 2.5.62 failures on
P4 and Athlon.
Andrew Morton [Thu, 20 Feb 2003 05:45:35 +0000 (21:45 -0800)]
[PATCH] Don't call mmdrop under a spinlock
We're calling mmdrop() under spin_lock_irq(&rq->lock). But mmdrop
calls vfree(), which calls smp_call_function().
It is not legal to call smp_call_function() with irq's off. Because
another CPU may be running smp_call_function() against _this_ CPU, which
deadlocks.
So the patch arranges for mmdrop() to not be called under
spin_lock_irq(&rq->lock).
Andrew Morton [Thu, 20 Feb 2003 05:19:00 +0000 (21:19 -0800)]
[PATCH] Keep interrupts enabled in exit path
We are leaving local interrupts disabled coming out of exit_notify().
But we are about to call wait_task_inactive() which spins, waiting for
another CPU to end a task. If that CPU has issued smp_call_function() to
this CPU, deadlock.
So the patch enables interrupts again before returning from exit_notify().
Also, exit_notify() returns with preemption disabled, so there is no
need to perform another preempt_disable() in do_exit().
Adam Belay [Wed, 19 Feb 2003 17:35:42 +0000 (17:35 +0000)]
PnPBIOS Updates
Fixes a very tricky GPF bug that caused crashes on a few buggy systems,
especially laptops. For those interested, PnPBIOS now reserves
segement 0x40 before any call. Also it updates the driver to use the
new parsing functions.
Adam Belay [Wed, 19 Feb 2003 17:00:08 +0000 (17:00 +0000)]
Moves the resource parsing functions to a new location "support.c". These
resource parsing functions contain many improvements including the ability
to set resources according to actual value rather than dependent functions.
The interface changes will be able to take advantage of this.
Adam Belay [Wed, 19 Feb 2003 16:56:09 +0000 (16:56 +0000)]
This patch contains an improved resource management algorithm. It is
capable of resolving nearly any conflict between two or more PnP devices.
It also contains better error reporting and a manual override capability.
[IPV4/IPV6]: Fix to avoid overriding TCP/UDP with a new protocol of same type.
Registering a new protocol of type SOCK_STREAM with a protocol value other
than IPPROTO_TCP will override TCP if the application passes 0 as the protocol
to the socket() call.
socket(AF_INET, SOCK_STREAM, 0)
I guess many applications follow this syntax as they assume TCP is the default
protocol for SOCK_STREAM type.
The same holds true for SOCK_DGRAM type sockets assuing UDP as the default.
This is due to the insertion of a new inet_protosw entry into the inetsw list
of a particular type at the head of the list. inet_create() uses the first
entry in the list if a wild-card protocol is passed.
The following patch fixes the insertion of a new entry so that it is added
after the last permanent entry in the list. This makes sure that the new
entries do not override any existing permanent entries.
Linus Torvalds [Wed, 19 Feb 2003 09:48:59 +0000 (01:48 -0800)]
Add doublefault handling with a task gate.
This potentially helps debugging, since otherwise a double fault
would generate a triple fault and then reboot the machine. Now
instead it can print out a note about where the problem happened,
unless all the kernel data structures are truly buggered.
This patch removes the devfs interface code in mtrr that has been
stubbed out by an ifdef forever. It's one of the few remaining users
of regular files on devfs so there's some urge for me to get rid of it :)
small updates to bring us nearer the lm_Sensors CVS (docs, comments,
missing statics, named initializers). I still need to review their
actual code changes before submitting those..
[XFS] Under heavy load, there are not enough hash buckets to deal with
the number of metadata buffers. Use the same techniques as the
regular linux buffer cache here.
use more hash buckets for holding xfs metadata, and use the same
hash algorithm as the regular buffer cache.
Glen Overby [Wed, 19 Feb 2003 19:26:14 +0000 (20:26 +0100)]
[XFS] fix one more set of transaction callback ordering issues,
this was always there, but exposed by the last change in
this area and made much more likely.
Nathan Scott [Wed, 19 Feb 2003 19:19:52 +0000 (20:19 +0100)]
[XFS] Extra check on the mount path - ensure we don't attempt to mount XFS fs's
with sector sizes smaller than those the device supports. Tripped a BUG
in pagebuf, should now be resolved.