Commit graph

97,731 commits

Message SHA1
[SCSI] aic7xxx: remove separate target and device allocations
Since the aic driver is now taught to speak in terms of the generic
linux devices, we can now also dispense with the transport class get
routines (since we update the parameters when the driver sees they
change) and also plumb it into the spi transport transfer agreement
reporting infrastructure.

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>

James Bottomley   commited 2005-05-26 14:28:31 -04:00
b1abb4d67f
Automatic merge of ../scsi-misc-2.6-old/
James Bottomley   commited 2005-05-26 14:14:55 -04:00
153b1e1fd9
Automatic merge of 'for-linus' branch from
rsync://rsync.kernel.org/pub/scm/linux/kernel/git/jgarzik/netdev-2.6

Linus Torvalds   commited 2005-05-26 10:27:39 -07:00
f49809fe9b
[IA64] sys_mmap doesn't follow posix.1 when parameter len=0
In IA64 kernel, sys_mmap calls do_mmap2 and do_mmap2 returns addr if
len=0, which means the mmap sys call succeeds.

Posix.1 says:
The mmap() function shall fail if:
[EINVAL] The value of len is zero. 

Here is a patch to fix it.

Signed-off-by: Zhang Yanmin <yanmin.zhang@intel.com>
Acked-by: David Mosberger <davidm@hpl.hp.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>

Zhang Yanmin   authored and   Tony Luck   commited 2005-05-26 10:19:07 -07:00
d11cf326bd
Automatic merge of rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git branch HEAD
  authored and   Jeff Garzik   commited 2005-05-26 13:03:24 -04:00
8973a585ae
Merge of 'misc-fixes' branch from
rsync://rsync.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev

Linus Torvalds   commited 2005-05-26 10:02:30 -07:00
cdbbde14cb
[SCSI] allow the HBA to reserve target and device private areas
This patch basically allows any HBA attached to the SPI transport class
to declare an extra area which the mid-layer will allocate as part of
its device and target allocations.

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>

James Bottomley   commited 2005-05-26 11:49:20 -04:00
c3e9dda4f5
[SCSI] git-scsi-misc-sbp2-warning-fix
drivers/ieee1394/sbp2.c: In function `sbp2_check_sbp2_response':
drivers/ieee1394/sbp2.c:2154: warning: unused variable `device_type'

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>

Andrew Morton   authored and   James Bottomley   commited 2005-05-26 11:30:57 -04:00
644e02ea14
[SCSI] Add target alloc/destroy callbacks to the host template
This gives the HBA driver notice when a target is created and
destroyed to allow it to manage its own target based allocations
accordingly.

This is a much reduced verson of the original patch sent in by
James.Smart@Emulex.com

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>

James Bottomley   commited 2005-05-26 11:27:53 -04:00
a283bd37d0
[PATCH] timeout at boottime with NEC3500A (and possibly others) when inserted a CD in it
From: Marcello Maggioni <hayarms@gmail.com>

Problem: Some drives (NEC 3500, TDK 1616N, Mad-dog MD-16XDVD9, RICOH
MP5163DA, Memorex DVD9 drive and IO-DATA's too for sure), if a
CD/DVD is inserted into the tray when the system is booted and if
before the OS bootup the BIOS checked for the presence of a bootable
CD/DVD into the drive, during the IDE probe phase the drive may
result busy and remain so for the next 25/30 seconds . This cause the
drive to be skipped during the booting phase and not begin usable
until the next reboot (if the reboot goes well and the drive doesn't
timeout again).

Solution: Rising the timeout time from 10 seconds to 35 seconds
(during these 35 seconds every drive should wake up for sure
according to the tests I've done).

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl>

Marcello Maggioni   authored and   Bartlomiej Zolnierkiewicz   commited 2005-05-26 15:47:35 +02:00
284e423811
[SCSI] TYPE_RBC cache fixes (sbp2.c affected)
a) TYPE_SDAD renamed to TYPE_RBC and taken to scsi.h
	b) in sbp2.c remapping of TYPE_RPB to TYPE_DISK turned off
	c) relevant places in midlayer and sd.c taught to accept TYPE_RBC
	d) sd.c::sd_read_cache_type() looks into page 6 when dealing with
TYPE_RBC - these guys have writeback cache flag there and are not guaranteed
to have page 8 at all.
	e) sd_read_cache_type() got an extra sanity check - it checks that
it got the page it asked for before using its contents.  And screams if
mismatch had happened.  Rationale: there are broken devices out there that
are "helpful" enough to go for "I don't have a page you've asked for, here,
have another one".  For example, PL3507 had been caught doing just that...
	f) sbp2 sets sdev->use_10_for_rw and sdev->use_10_for_ms instead
of bothering to remap READ6/WRITE6/MOD_SENSE, so most of the conversions
in there are gone now.

	Incidentally, I wonder if USB storage devices that have no
mode page 8 are simply RBC ones.  I haven't touched that, but it might
be interesting to check...

Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>

Al Viro   authored and   James Bottomley   commited 2005-05-26 08:41:15 -05:00
631e8a1398
[SCSI] sym2 version 2.2.1
sym2 version 2.2.1:
 - Fix MMIO BAR detection (Thanks to Bob Picco)
 - Fix odd-sized transfers with a wide bus (Thanks to Larry Stephens)
 - Write posting fixes (Thanks to Thibaut Varene)
 - Change one of the GFP_KERNEL allocations back into a GFP_ATOMIC
 - Make CCB_BA() return a script-endian address
 - Move range checks and disabling of devices from the queuecommand path
   to slave_alloc()
 - Remove a warning in sym_setup_cdb()
 - Keep a pointer to the scsi_target instead of the scsi_dev in the tcb
 - Remove a check for the upper layers passing an oversized cmd
 - Replace CAM_REQ_ constants with the Linux DID_ constants
 - Replace CAM_DIR_ constants with the Linux DMA_ constants
 - Inline sym_read_parisc_pdc() on non-parisc systems

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>

Matthew Wilcox   authored and   James Bottomley   commited 2005-05-26 08:41:14 -05:00
53222b9069
[PATCH] ide-scsi: kmap scatter/gather before doing PIO
From: Stuart Hayes <Stuart_Hayes@dell.com>

The system can panic with a null pointer dereference using ide-scsi if
PIO is being done on scatter gather pages that are in high memory,
because page_address() returns 0.  We are actually seeing this using a
tape drive.  This patch will kmap_atomic() the pages before performing
PIO.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl>

Stuart Hayes   authored and   Bartlomiej Zolnierkiewicz   commited 2005-05-26 15:38:45 +02:00
41bb4c43b3
[PATCH] convert IDE device drivers to driver-model
* add ide_bus_match() and export ide_bus_type
* split ide_remove_driver_from_hwgroup() out of ide_unregister()
* move device cleanup from ide_unregister() to drive_release_dev()
* convert ide_driver_t->name to driver->name
* convert ide_driver_t->{attach,cleanup} to driver->{probe,remove}
* remove ide_driver_t->busy as ide_bus_type->subsys.rwsem
  protects against concurrent ->{probe,remove} calls
* make ide_{un}register_driver() void as it cannot fail now
* use driver_{un}register() directly, remove ide_{un}register_driver()
* use device_register() instead of ata_attach(), remove ata_attach()
* add proc_print_driver() and ide_drivers_show(), remove ide_drivers_op
* fix ide_replace_subdriver() and move it to ide-proc.c
* remove ide_driver_t->drives, ide_drives and drives_lock
* remove ide_driver_t->drivers, drivers and drivers_lock
* remove ide_drive_t->driver and DRIVER() macro

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl>

Bartlomiej Zolnierkiewicz   commited 2005-05-26 14:55:34 +02:00
8604affde9
AUDIT: Defer freeing aux items until audit_free_context()
While they were all just simple blobs it made sense to just free them
as we walked through and logged them. Now that there are pointers to
other objects which need refcounting, we might as well revert to
_only_ logging them in audit_log_exit(), and put the code to free them
properly in only one place -- in audit_free_aux().

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
----------------------------------------------------------

David Woodhouse   commited 2005-05-26 12:04:57 +01:00
7551ced334
[PATCH] libata: Fix zero sg_dma_len() on 64-bit platform
When testing ATAPI PIO data transfer on the ppc64 platform,  __atapi_pio_bytes() got zero when
sg_dma_len() is used. I checked the <asm-ppc64/scatterlish.h>, the struct scatterlist is defined as:

struct scatterlist {
	struct page *page;
	unsigned int offset;
	unsigned int length;

	/* For TCE support */
	u32 dma_address;
	u32 dma_length;
};

#define sg_dma_address(sg)	((sg)->dma_address)
#define sg_dma_len(sg)		((sg)->dma_length)

So, if the scatterlist is not DMA mapped, sg_dma_len() will return zero on ppc64.
The same problem should occur on the x86-64 platform.
On the i386 platform, sg_dma_len() returns sg->length, that's why the problem does not occur on an i386.

Changes:
- Use sg->length if the scatterlist is not DMA mapped (yet).

Signed-off-by: Albert Lee <albertcc@tw.ibm.com>

Albert Lee   authored and   Jeff Garzik   commited 2005-05-26 03:49:42 -04:00
32529e0128
Automatic merge of rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git branch HEAD
  authored and   Jeff Garzik   commited 2005-05-26 02:17:16 -04:00
c1ef1f351d
Automatic merge of rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git branch HEAD
  authored and   Jeff Garzik   commited 2005-05-26 01:47:10 -04:00
949d33e70f
Automatic merge of /spare/repo/netdev-2.6 branch tlan
  authored and   Jeff Garzik   commited 2005-05-25 22:11:38 -04:00
ad6a9984ee
Automatic merge of /spare/repo/netdev-2.6 branch sis900
  authored and   Jeff Garzik   commited 2005-05-25 22:11:28 -04:00
38778204a1
Automatic merge of /spare/repo/netdev-2.6 branch veth
  authored and   Jeff Garzik   commited 2005-05-25 22:11:14 -04:00
8cf0d9d075
Automatic merge of /spare/repo/netdev-2.6 branch qeth
  authored and   Jeff Garzik   commited 2005-05-25 22:11:06 -04:00
8a75e7d644
Automatic merge of /spare/repo/netdev-2.6 branch ns83820
  authored and   Jeff Garzik   commited 2005-05-25 22:10:53 -04:00
f5a702b26a
Automatic merge of /spare/repo/netdev-2.6 branch natsemi
  authored and   Jeff Garzik   commited 2005-05-25 22:10:38 -04:00
5ea6f2c33f
Automatic merge of /spare/repo/netdev-2.6 branch forcedeth
  authored and   Jeff Garzik   commited 2005-05-25 22:10:25 -04:00
acb969560d
Automatic merge of /spare/repo/netdev-2.6 branch airo
  authored and   Jeff Garzik   commited 2005-05-25 22:09:52 -04:00
ee03a68c10
Automatic merge of /spare/repo/netdev-2.6 branch atmel
  authored and   Jeff Garzik   commited 2005-05-25 22:07:51 -04:00
0c2fc10901
Merge of rsync://rsync.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6
Linus Torvalds   commited 2005-05-25 18:01:26 -07:00
bef9c55884
Merge of 'new-ids' branch from
rsync://rsync.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev

Linus Torvalds   commited 2005-05-25 17:56:57 -07:00
3db602bdcd
[PATCH] sata_svw: Add support for new device IDs
BCM5785 (HT1000) is a new southbridge from Serverworks/Broadcom that
incorporates 4 SATA ports in a single PCIX function. Functionally these
ports are similar to that in older devices like the Apple K2 and the
Frodo4/8. This patch adds support for the new PCI device ID along with a
blurb on what the various device IDs mean. Additionally in all devices
based on this SATA controller, the SATA ports appear as a single PCI
function. This is true for older Frodo8 devices as well. Hence the init
function should init all the ports present in the detected controller
(which could be 4 or 8).

Signed-off-by: Narendra Sankar <nsankar@broadcom.com>

Narendra Sankar   authored and   Jeff Garzik   commited 2005-05-25 20:10:58 -04:00
60bf09a366
[PATCH] sata_promise: add PCI ID for FastTrak TX2200 2-ports
Francisco Javier   authored and   Jeff Garzik   commited 2005-05-25 19:29:37 -04:00
4c3a53d410
[PATCH] sata_sil: new ID 1002:437A for ATI IXP400
NAKAMURA Kenta   authored and   Jeff Garzik   commited 2005-05-25 19:28:38 -04:00
525a099771
[PATCH] therm_adt746x: show correct sensor locations
This patch shows the correct locations of the heat sensors present in iBook
and PowerBooks G4, instead of displaying them as being on CPU and GPU
(which is not always the case).

Signed-off-by: Colin Leroy <colin@colino.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

Colin Leroy   authored and   Linus Torvalds   commited 2005-05-25 15:31:29 -07:00
d20c507f28
[PATCH] Make sure therm_adt746x only handles known hardware
This patch limits therm_adt746x to currently existing fan controllers in
Apple laptops.  It may avoid problems with future hardware.

Signed-off-by: Colin Leroy <colin@colino.net>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

Colin Leroy   authored and   Linus Torvalds   commited 2005-05-25 15:31:29 -07:00
a8bacec093
[PATCH] IB: fix endianness of path record MTU field
Make MTU field in SA PathRecord and MCMemberRecord a u8 rather than an enum
to avoid complications with endianness.

Signed-off-by: Roland Dreier <roland@topspin.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

Roland Dreier   authored and   Linus Torvalds   commited 2005-05-25 15:31:28 -07:00
3bf4fb820d
[PATCH] IB: fix potential ib_umad leak
Free all unclaimed MAD receive buffers when userspace closes our file so we
don't leak memory.

Signed-off-by: Roland Dreier <roland@topspin.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

Roland Dreier   authored and   Linus Torvalds   commited 2005-05-25 15:31:28 -07:00
561e148ea9
[PATCH] IB: allow NULL sa_query callbacks
Check if a client passes a NULL callback into an SA query, and if so, never
call back.  This fixes an oops if someone unloads ib_ipoib and ib_sa in
rapid succession.  ib_ipoib does an MCMember delete with a NULL callback
and 0 timeout on unload, which is usually fine since the delete completes
successfully.  However, if ib_sa is unloaded immediately afterwards, the
delete will be canceled and ib_sa will try to call the (now already
unloaded) ib_ipoib module back with the cancel completion, which triggers
the oops.

Signed-off-by: Roland Dreier <roland@topspin.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

Roland Dreier   authored and   Linus Torvalds   commited 2005-05-25 15:31:28 -07:00
e4f50f003d
[PATCH] x86_64: CONFIG_BUG=n fixes
Fixes some !CONFIG_BUG warnings:
include/asm/mmu_context.h: I funktion `switch_mm':
include/asm/mmu_context.h:57: varning: implicit declaration of function `out_of_line_bug'

Signed-off-by: Alexander Nyberg <alexn@telia.com>
Cc: Andi Kleen <ak@muc.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

Alexander Nyberg   authored and   Linus Torvalds   commited 2005-05-25 15:31:28 -07:00
4f60fdf613
[PATCH] ipmi build fix
It looks like the recent IPMI patches had some -mm-onlyisms.

Signed-off-by: Neil Horman <nhorman@redhat.com>
Cc: Corey Minyard <minyard@acm.org>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

Neil Horman   authored and   Linus Torvalds   commited 2005-05-25 15:31:27 -07:00
dca79a046b
[PATCH] v4l: bttv i2c oops fix
Don't try to access the i2c bus if the register wasn't successful.

Signed-off-by: Gerd Knorr <kraxel@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

Gerd Knorr   authored and   Linus Torvalds   commited 2005-05-25 15:31:27 -07:00
5daf05fbf7
Merge of /home/davem/src/GIT/linux-2.6/.git/
David S. Miller   commited 2005-05-25 14:58:04 -07:00
4b463f7858
Merge of 'for-linus' branch from
rsync://rsync.kernel.org/pub/scm/linux/kernel/git/jgarzik/netdev-2.6

Linus Torvalds   commited 2005-05-25 14:01:50 -07:00
1b981021e8
Automatic merge of /spare/repo/netdev-2.6 branch amd8111
  authored and   Jeff Garzik   commited 2005-05-25 13:57:36 -04:00
f6f3a488e5
Automatic merge of /spare/repo/netdev-2.6 branch pcnet32
  authored and   Jeff Garzik   commited 2005-05-25 13:57:25 -04:00
a58eae6480
Automatic merge of /spare/repo/netdev-2.6 branch ixgb
  authored and   Jeff Garzik   commited 2005-05-25 13:57:15 -04:00
09e62666d8
Automatic merge of /spare/repo/netdev-2.6 branch e1000
  authored and   Jeff Garzik   commited 2005-05-25 13:57:03 -04:00
34812c9e18
Automatic merge of /spare/repo/netdev-2.6 branch e100
  authored and   Jeff Garzik   commited 2005-05-25 13:56:55 -04:00
d6d78f63ce
Merge of /spare/repo/netdev-2.6 branch misc-fixes
  authored and   Jeff Garzik   commited 2005-05-25 13:56:22 -04:00
a83d5cf7a1
[PATCH] relax ide-cd dma restrictions
This has been sitting for a while, and is causing lots of grief for
people burning CDs.  It relaxes the dma restriction for ide-cd,
requiring only the length to be 32-byte aligned, address should be fine
at normal double word alignment.

Signed-off-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

Jens Axboe   authored and   Linus Torvalds   commited 2005-05-25 10:17:08 -07:00
384f1fcd2d
[PATCH] Speedtouch resync after lost signal.
There's a bigger Speedtouch update coming your way after 2.6.12 but in
the meantime, let's at least make it automatically resync if the DSL
signal is lost.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

David Woodhouse   authored and   Linus Torvalds   commited 2005-05-25 10:13:43 -07:00
0e15850200