Alexander Viro [Tue, 24 Feb 2004 15:01:14 +0000 (10:01 -0500)]
[PATCH] au1k leaks, allocation and free_netdev() fixes
* fixes leaks on failed init
* switches to sane allocation
* fixes netdev freeing (kfree -> free_netdev)
* fixes the idiocy with ->init() (from registger_netdev()) calling
unregister_netdevice() in case of failure - before we got anywhere past
the very beginning of register_netdev().
That's a part of NE* series that failed through the cracks (there were
pending irda patches, so that had been postponed, irda patches either
hadn't materialized in two months or hadn't touched that driver at all,
the latter being more likely).
Error path (EISA) probe was using device before set.
# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
# ChangeSet 1.1567 -> 1.1568
# drivers/net/dgrs.c 1.23 -> 1.24
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 04/02/19 shemminger@osdl.org 1.1568
# fix bug in eisa error path.
# --------------------------------------------
#
Scott Feldman [Tue, 24 Feb 2004 14:50:10 +0000 (09:50 -0500)]
[netdrvr e100] Response to Jeff's review plus some minor fixes.
* define dump stats complete constant
* add mwb() to keep order straight with HW when appending
new resources to Rx and Tx queues
* increment stats for rx_dropped and rx_over_errors
Scott Feldman [Tue, 24 Feb 2004 14:43:09 +0000 (09:43 -0500)]
[PATCH] e1000: disable CSA fix for 82547
* Multiple reports of system lock-ups with the CSA patch, so
let's disable fix for now until we can understand why this
is causing the hangs. It was first thought that only pre-
productions systems would hang, but that's not true.
Don Fry [Tue, 24 Feb 2004 14:29:12 +0000 (09:29 -0500)]
[PATCH] pcnet32.c adds loopback test
This adds the ability to do a local loopback test for the adapter. This
source was submitted by James Lewis <jklewis@us.ibm.com>. Tested on PPC
and IA32 systems.
Don Fry [Tue, 24 Feb 2004 14:29:04 +0000 (09:29 -0500)]
[PATCH] pcnet32.c add PCI hot remove support
This patch adds support for PCI hot remove. Tested on PPC64 boxes.
The driver has also been checked to comply with PCMCIA/cardbus remove
requirements, but as I don't have a PCMCIA card, it is untested.
If a PCMCIA card is removed, reads will return FFFF. The FFFF will
cause all while loops to exit.
Don Fry [Tue, 24 Feb 2004 14:28:42 +0000 (09:28 -0500)]
[PATCH] 2.6.3 pcnet32.c change to use ethtool_ops
This changes the driver to use ethtool_ops to be more modular. There is a
net delta of just a one line between the two implementations, but permission
checking and copying to/from user space, etc. is all done in a consistent
manner by ethtool.c
Don Fry [Tue, 24 Feb 2004 14:28:26 +0000 (09:28 -0500)]
[PATCH] 2.6.3 pcnet32.c wrong vendor ID fix
This patch was originally sent by Jon Mason on Sat Jan 31.
"I created a patch that allows pcnet32 adapters sold in IBM RS/6000 systems
to be recognized in non-ppc computers. The problem is that the Vendor ID
of this adapter is incorrect. There is a ppc specific workaround to get
it working on that architecture (checkout
http://lxr.linux.no/source/arch/ppc/kernel/pci.c?a=ppc#L87
for the workaround), but it obviously won't fix the problem in non-ppc
architectures."
Jens Axboe [Tue, 24 Feb 2004 04:26:03 +0000 (20:26 -0800)]
[PATCH] fix SCSI non-sector bio backed IO
This fixes the SCSI layer to handle non-sector-aligned requests from
SG_IO (and potentially anything else producing these requests) that
could stall the machine and cause all sorts of funnies depending on the
low level driver used.
James Bottomley [Tue, 24 Feb 2004 01:53:03 +0000 (17:53 -0800)]
[PATCH] fix IRQBALANCE Kconfig dependencies
CONFIG_IRQBALANCE only affects arch/i386/kernel/io_apic.c, so you should
only see it as an option if you actually have one of those. This patch
makes IRQBALANCE depend on X86_IO_APIC.
Andrew Morton [Mon, 23 Feb 2004 12:50:28 +0000 (04:50 -0800)]
[PATCH] ppc64: fix cmd_line bugs
From: Anton Blanchard <anton@samba.org>
There were a number of bugs in our cmd_line handling:
- We were looking at cmd_line after it had been tokenised. Use saved_command
line instead
- Use strlcpy instead of memcpy/explicit NULL set.
- Remove magic numbers in iseries cmd_line parsing
Andrew Morton [Mon, 23 Feb 2004 12:45:25 +0000 (04:45 -0800)]
[PATCH] ppc64: Fix __get_SP()
From: Anton Blanchard <anton@samba.org>
__get_SP used to be a function call which meant we allocated a stack
frame before calling it. This meant the SP it returned was one frame
below the current function. Lets call that bogusSP (and the real one
SP).
The new dump_stack was being tail call optimised so it remained one
frame above bogusSP. dump_stack would then store below SP (as the ABI
allows us to) and would stomp over the back link that bogusSP pointed
to (__get_SP had set the back link up so it worked sometimes, just not
all the time).
Fix this by just making __get_SP an inline that returns the current SP.
Andrew Morton [Mon, 23 Feb 2004 12:43:38 +0000 (04:43 -0800)]
[PATCH] ppc64 cpu spinup fixes
From: Rusty Russell <rusty@rustcorp.com.au>
1) Check for cpuids >= NR_CPUS in prom_hold_cpus: we previously
overflowed arrays when this happened, and checking it here ensures
that it doesn't happen elsewhere. Still move processors to
secondary_hold (out of OF), but we won't release them.
2) smp_iSeries_message_pass and smp_xics_message_pass don't need to
iterate if given a specific CPU: cleanup and fix.
3) kick_cpu variants don't need to check cpu range (caller is screwed
anyway if this happened): replaced with BUG_ON for now.
4) smp_openpic_probe and smp_xics_probe can use cpus_weight(): it's
faster and simpler.
5) User for_each_cpu/for_each_online_cpu as appropriate.
Andrew Morton [Mon, 23 Feb 2004 12:41:50 +0000 (04:41 -0800)]
[PATCH] ppc64: add log_rtas_error()
From: Nathan Fontenot <nfont@austin.ibm.com>
Add log_rtas_error(), to be called in the event that a rtas call
returns a hardware error (-1) so we can log additional information
about the hardware error.
Andrew Morton [Mon, 23 Feb 2004 12:40:59 +0000 (04:40 -0800)]
[PATCH] ppc64: cleanup lmb code
From: Anton Blanchard <anton@samba.org>
- remove LMB_MEMORY_AREA, LMB_IO_AREA, we only allocate/reserve memory
areas now
- remove lmb_property->type, lmb_region->iosize, lmb_region->lcd_size,
no longer used
- bump number of regions to 128, we'll hit this limit sooner or later
with our big boxes (if we have more than 64 PCI host bridges the
reserved array will fill up for example)
- make all the lmb stuff __init
- no need to explicitly zero struct lmb lmb now we zero the BSS early
- we had two functions to dump the lmb array, kill one of them
- move the inline functions into lmb.c, they are only ever called from
there
James Bottomley [Mon, 23 Feb 2004 09:07:54 +0000 (03:07 -0600)]
SCSI: 53c700: reduce default tag depth to 4
This is a nice safe depth for older devices (which
we've been having trouble with at larger depths). It
is still adjustable upwards using sysfs if anyone
really needs a larger queue.
Alexander Viro [Mon, 23 Feb 2004 08:16:36 +0000 (00:16 -0800)]
[PATCH] removal of bogus CONFIG_BINFMT_ELF uses
We never use CONFIG_BINFTM_ELF and CONFIG_BINFMT_ELF_MODULE
anywhere in the source (they are used in makefiles, obviously).
32bit-emulation binfmt_elf_... in arch/* still define those guys
even though it hadn't been needed for years.
Junk removed.
PS: BTW, CONFIG_BINFMT_ELF32 _is_ used in several places in arch/mips and it
looks like they really want
#if defined(CONFIG_BINFMT_ELF32) || defined(CONFIG_BINFMT_ELF32_MODULE)
in these ifdefs, but that's a separate story...
Nathan Scott [Mon, 23 Feb 2004 08:16:26 +0000 (00:16 -0800)]
[PATCH] blkdev_open/bd_claim vs BLKBSZSET
I was modifying mkfs.xfs to use O_EXCL for 2.6, and hit a snag.
It seems that once I've opened a block dev with O_EXCL I can no
longer issue the BLKBSZSET ioctl to it.
Making this change, the ioctl succeeds cos the original filp bdev owner
from open now matches with the owner in the ioctl call.