Andrew Morton [Sun, 2 Mar 2003 12:38:02 +0000 (04:38 -0800)]
[PATCH] cciss: fix unlikely startup problem
Patch from Stephen Cameron <steve.cameron@hp.com>
* Make cciss driver wait longer for board to enter simple mode to
handle an unlikely corner case. (Hot replace of failed 144GB
drive in RAID 5 set at just the wrong time prior to driver loading
can make the board take a longer than usual time to go into "simple
mode". Without the patch, the driver gives up too early, and consequently
doesn't work. (A reboot will generally "fix" it.) This patch avoids
the problem.
* Fix a couple ioctls to return EAGAIN instead of inappropriate EFAULT.
Andrew Morton [Sun, 2 Mar 2003 12:37:19 +0000 (04:37 -0800)]
[PATCH] ext2: clear ext3 htree flag on directories
Forward port of a change which Ted made to 2.4's ext2.
HTREE backwards compatibility patch.
"I thought (and assumed) this patch had been applied to both the ext2 and
ext3 filesystems in the 2.4 kernel. It turns out it had only made it into
the ext3 filesystem code. This means that if an HTREE-enabled filesystem is
mounted using ext2, it will corrupt the filesystem as far as e2fsck and an
ext3 htree-enabled kernel is concerned. (The corruption won't cause any
data loss, but it will cause e2fsck and an ext3-htree kernel to omit a lot
of warning messages.)"
Andrew Morton [Sun, 2 Mar 2003 12:36:44 +0000 (04:36 -0800)]
[PATCH] loop: Fix OOM and oops
The loop driver takes a copy of the data which it is writing. When this
happens on the try_to_free_pages() path, loop can easily consume ALL memory
and bio_copy() will fail to allocate a page.
Loop forgets to check the bio_copy() return value and oopses.
Fix this by dropping PF_MEMALLOC and throttling to the block writeout speed.
The patch exports blk_congestion_wait() to modules for this. This is a
needed export: several filesystems have a "try to allocate and yield if it
failed" loop and blk_congestion_wait() is a more appropriate way of
implementing the sleep in this situation.
Russell King [Sun, 2 Mar 2003 20:56:17 +0000 (20:56 +0000)]
[ARM] SA11x0 PCMCIA 7
Request PCMCIA socket resources without marking them busy - this
allows future modifications to pcmcia to allow it to claim the
CIS resources for statically mapped sockets.
Russell King [Sun, 2 Mar 2003 20:16:48 +0000 (20:16 +0000)]
[ARM] SA11x0 PCMCIA 5
Remove get_irq_info method, passing the information via the init
method instead. The IRQ allocated to a socket never changes on
these platforms, so the extra code was just bloat.
Russell King [Sun, 2 Mar 2003 19:51:33 +0000 (19:51 +0000)]
[ARM] SA11x0 PCMCIA 3
Make low level socket_status() method take the socket index as an
argument in the same way that our other methods do. socket_status()
now only returns the status of the requested socket, not all sockets.
Russell King [Sun, 2 Mar 2003 19:32:19 +0000 (19:32 +0000)]
[ARM] SA11x0 PCMCIA 1
Make SA11x0 generic pcmcia implementation fit better with Dominik's
work - pass around our socket structure rather than the socket number
itself. Reference socket operations using the socket structure
rather than a static variable.
Alan Stern [Sun, 2 Mar 2003 01:48:38 +0000 (17:48 -0800)]
[PATCH] Fix USB address setting
You wouldn't expect that an innocent two-line patch would practically
destroy the entire functionality of the USB subsystem. But that's what my
last patch did. I didn't realize until I saw it in Greg's list of patches
forwarded to Linus; that patch includes a mistakenly unreverted prior
change. This explains the problems I was having yesterday, and probably
also the problems a great many people are having today.
Anyway, here's the correction -- it puts things back to what they should
have been in the first place. Greg, please apply this and send it to
Linus for his tree as soon as reasonably possible.
Russell King [Sat, 1 Mar 2003 10:24:05 +0000 (02:24 -0800)]
[PATCH] Fix cardbus build problem
This is a temporary patch which should get cardbus working again.
In order to use pci_remove_behind_bridge(), we need to separately
allocate the pci_dev structures.
Sam Ravnborg [Sat, 1 Mar 2003 06:57:30 +0000 (00:57 -0600)]
kbuild: Small updates in top-level makefile
1) Define comma so dependency files does not include a '_' in the filename
2) Use correct path for mkspec and mkversion
3) Removed checkhelp - corresponding perl script is no longer present
4) Spelling correction (reported on lkml)
kbuild: Silence some warnings when building vmlinux
For some people (though not me), the '+' indicating that a command will
invoke a sub-make didn't propagated properly, and caused a warning.
Putting the command all into one line should fix that.
Plus some cosmetics and clean up the per_cpu check.
Roger Luethi [Sat, 1 Mar 2003 02:39:28 +0000 (18:39 -0800)]
[PATCH] via-rhine: 1.17 release
Alas no rave reviews on lkml, but the private feedback I have received so
far on the recent changes has been excellent. The Rhine-II is now finally
usable with via-rhine. Time to call it 1.17.
The old /proc/sys/cpu/ - based interface is nothing else than a
cpufreq governor which decides what frequency to use within a policy
based on userspace input. So, convert this interface (and add a
corresponding sysfs file, /sys/devices/sys/cpu0/scaling_setspeed) to
become a cpufreq governor, and move it out to an extra module (which
partly explains the size of this patch).
[PATCH] cpufreq (2/5): x86 driver updates #2 (acpi, longhaul)
- update the VIA Longhaul driver to use frequency table helpers and
the advanced cpufreq driver registration interface.
- cleanup of the ACPI P-States cpufreq driver
- very small update of the core -- set 24API values ahead of the setpolicy
call.
Martin J. Bligh [Fri, 28 Feb 2003 07:02:42 +0000 (23:02 -0800)]
[PATCH] Fix kirq_balance up so I can disable it.
At the moment, there are two different switches used, irqbalance_disabled
and no_balance_irq ... each of which switches half the code off. This
patch harmonises them into one (irqbalance_disable), and uses the old
subarch stuff as a default value so that this is auto-disabled on boxes
like NUMA-Q that can't cope with it.
Also renamed no_balance_irq to NO_BALANCE_IRQ as it's really a static
defined number now, not pretending to be a switch variable any more.
Now off by default for NUMA-Q, on by default for others, but can be
disabled with the boot time flag if people desire.
Martin J. Bligh [Fri, 28 Feb 2003 07:02:28 +0000 (23:02 -0800)]
[PATCH] Move pfn_to_nid inline
Patch from William Lee Irwin
Inline and simplify pfn_to_nid - this is called heavily, it's a tiny
function, and makes a noticable difference in system time for kernel
compiles (sorry, lost the data). Is only used on NUMA machines.
Has been tested in my tree for over a month on UP, SMP, and NUMA and
compile tested against a variety of different configs.
Martin J. Bligh [Fri, 28 Feb 2003 07:02:21 +0000 (23:02 -0800)]
[PATCH] Fix potential NULL pointer
translation_table could be unintialised on machines other than NUMA-Q.
You never see this, as the compiler happens to optimise it away, but
it's still a Really Bad Idea (tm). Thanks to someone whose name I have
unfortunately forgotten for pointing this out.
Has been tested in my tree for over two weeks on UP, SMP, and NUMA and
compile tested against a variety of different configs.
Martin J. Bligh [Fri, 28 Feb 2003 07:02:14 +0000 (23:02 -0800)]
[PATCH] Move node pgdat into node's own memory
Patch from William Lee Irwin
This moves the node's pgdat into the node's own local memory area along
with the lmem_map.
It only touches arch/i386/mm/discontig.c - ie can only affect NUMA
machines. Has been tested in my tree for over a month on UP, SMP, and
NUMA and compile tested against a variety of different configs.
Russell King [Thu, 27 Feb 2003 23:37:28 +0000 (23:37 +0000)]
[ARM PATCH] 1406/1: Enable mtd partitions via mtdparts in dc21285 map driver
Patch from Jonas Larsson
The dc21285 mtd map driver supported RedBoot partitioning only. Kernel command line partitioning was not supported. This patch adds the missing functionality.
Andy Grover [Thu, 27 Feb 2003 08:23:08 +0000 (00:23 -0800)]
ACPI: Interpreter update
- Add acpi_walk_resource support (Bjorn Helgaas)
- Add S4BIOS support (Pavel Machek)
- Rewrite GPE code to deal with future GPE block devices
- Fix a bug that caused long delays when receiving SCIs
- Fix a bug that causes oopses when battery strings are ""
Duncan Sands [Thu, 27 Feb 2003 01:16:13 +0000 (17:16 -0800)]
[PATCH] USB speedtouch: better proc info
Output the correct device name, show the state of the device (for debugging) and of the
ADSL line (anyone want to write a graphical utility to show this, like under windows?). We
no longer consult the usb_device struct in udsl_atm_proc_read, so don't take a reference
to it. Against Greg's current 2.5 USB tree.
Roger Luethi [Thu, 27 Feb 2003 00:49:48 +0000 (16:49 -0800)]
[PATCH] via-rhine: fix races
This patch addresses two distinct races:
- Until now, the driver started the chip for Tx regardless of errors
pending in the status register. Not good if an error occured while
we were queueing packets -- the chip counter had not been reset,
so Tx died. (We can't reliably get an interrupt for every error
condition)
- The Rhine-II (when under load) frequently produces a Tx descriptor
write-back race error. Failing to handle this means waiting for the
netdev watchdog. Fixed.
In addition, we must wait for the Tx engine to turn off on error
conditions before we scavenge the descriptor entries. Failing to do
so will typically lead to performance going down to about 10%: Burst,
timeout, burst, timeout.. (again, with a Rhine-II under load).
Roger Luethi [Thu, 27 Feb 2003 00:49:41 +0000 (16:49 -0800)]
[PATCH] via-rhine: reset logic
Since Linus and Jeff raised the issue of PCI posted writes, I cleaned up
wait_for_reset() some more. Experiments show that with MMIO, a reset may
indeed take seemingly longer -- that is fixed by flushing that buffer.
Also, the driver now polls the appropriate register while waiting for the
reset to finish.