- 14 Mar, 2005 10 commits
-
-
Brian King authored
Remove qdepth field from the ipr_resource_entry structure since the same data is also available in the scsi_device struct. Signed-off-by: Brian King <brking@us.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-
Brian King authored
Remove driver specific tcq_enable attribute now that change_queue_type API has made it redundant. Signed-off-by: Brian King <brking@us.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-
Brian King authored
Use new change_queue_type API. Signed-off-by: Brian King <brking@us.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-
Brian King authored
Since the ipr adapter initialization is performed by waiting for an interrupt to occur and this is the first interrupt ever received from the adapter, and the timeout for this interrupt is 5 minutes, failed ipr adapters can halt the boot process for a long time. In certain environments, it makes sense to not try as hard to get the adapter working and just fail the adapter. This patch adds two module parameters to modify the adapter initialization sequence. Signed-off-by: Brian King <brking@us.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-
Brian King authored
Fixes ipr to handle dynamic pci ids by searching for the adapter chipset in the probe routine if driver_data is NULL. Signed-off-by: Brian King <brking@us.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-
Brian King authored
The ipr family of adapters is capable of handling data transfer sizes of 16777215 bytes. Logical disk array devices under ipr are capable of only 256k transfer lengths. Patch sets max_sectors of the adapter to 32767 and overrides max_sectors for the logical disk array devices in the slave_configure routine. Signed-off-by: Brian King <brking@us.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-
Brian King authored
If a device disappears across an adapter reset, ipr schedules the device to be removed from scsi core. Any ops sent to that device prior to its actual removal end up getting sent to the adapter using a now invalid adapter resource handle. Usually, the adapter will just fail the command and the failure will end up looking like a selection timeout, but it is possible the resource handle has been re-used by the adapter and we could be sending an op to a different device than we think we are. This patch closes this window. Signed-off-by: Brian King <brking@us.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-
Brian King authored
Add support for some new adapters. Signed-off-by: Brian King <brking@us.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-
Brian King authored
Remove an adapter from the table that never shipped. Signed-off-by: Brian King <brking@us.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-
Brian King authored
Add some new IPR adapters and remove one. These ids have already been entered into http://pciids.sourceforge.net. Signed-off-by: Brian King <brking@us.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-
- 13 Mar, 2005 1 commit
-
-
Matthew Wilcox authored
Docs - The sym53c8xx= kernel parameter no longer exists - Correct a typo Bugfixes - The driver really isn't capable of dealing with 64-bit bus addresses yet, so bail out early - Get rid of SYM_SCAN_TARGETS_HILO (which had no effect) and set the shost->reverse_ordering flag instead - Associate a scsi_device with the target in slave_alloc instead of slave_configure Printk cleanups - Use dev_warn/dev_info where possible - Delete PRINT_ADDR, PRINT_TARGET and PRINT_LUN - Remove sym_print_target() and sym_print_lun() - Make sym_print_addr() call dev_info Memory allocation related - Delete non-dma allocators; use kmalloc/kcalloc directly instead - Move memory allocation wrappers from sym_glue to sym_malloc - Get rid of m_addr_t; use void * or dma_addr_t as appropriate - Change m_pool_ident_t from a struct pci_dev * to a struct device * - Use dma_alloc_coherent() instead of pci_alloc_consistent() Negotiation related - Move scsi_transport_spi.h include from sym_glue.c to sym_glue.h - Store the current transfer contract settings in the starget attributes - Delete sym2_get_offset(), sym2_get_period(), sym2_get_width(), sym2_get_dt(), sym2_get_iu() and sym2_get_qas() - Use spi_support_wide() (and friends) instead of scsi_device_wide() - We don't need tinfo.prev -- we can tell if the contract changed - Delete SYM_OPT_ANNOUNCE_TRANSFER_RATE - Use spi_display_xfer_agreement() - Use sdev->scsi_level instead of the never-set tinfo.curr.scsi_version - Instead of checking current xfer settings against our goal, use a check_nego flag. - Get rid of sym_tinfo and use sym_trans directly. - Split the sym_trans options into flags - Change width from an u8 into a flag - Delete sym_misc.c - Remove sym_xpt_async_nego_wide Linuxisation - Use udelay() directly instead of indirecting through UDELAY and sym_udelay - Rename some scsi_cmnd pointers from ccb or csio to cmd - Use simple_strtoul() instead of a handwritten parser - SKIP_SPACES was always being used with 1 as a parameter, and was implicitly modifying ptr and len. - GET_INT_ARG was doing the same with ptr and len. - Use pci_iomap(), pci_iounmap(), ioread8() et al - Delete the sym_data_dmamap_*() macros - Replace SYM_CONF_IOMAPPED with CONFIG_SCSI_SYM53C8XX_IOMAPPED - Delete unused SYM_HAVE_SCCB, SYM_HAVE_M_SVTOB, SYM_HAVE_M_SPOOL Misc cleanup - Move sym_conf.h into sym53c8xx.h - Eliminate the unused SYM_SETUP_MAX_LUN, SYM_SCMD_PTR - SYM_SETUP_PCI_PARITY and SYM_SETUP_SCSI_PARITY are always defined; simplify - Rename sym_pci_chip to sym_chip - Write sym_get_hcb() to hide nasty macro abuse - sym_lp() doesn't need to take the sym_hcb as an argument - sym_get_ccb() works better if you give it the cmd instead of the id/lun - We don't use cmd->host_scribble, host->dma_channel, host->n_io_port, host->io_port, host->base or host->irq; stop initialising them. - sym_tune_dev_queuing() works better if you give it the tcb rather than the hcb and target - Get rid of sym_driver_name(), just use SYM_DRIVER_NAME directly - OUTB/INB/etc macros implicitly use the hcb pointer; pass it explictly instead - Map the BARs early instead of mapping and unmapping them as necessary - Automatically fall back to ioport accesses if iomem isn't available - Get rid of tcb_p, lcb_p and ccb_p typedefs - Delete support for big endian chips -- 8xx chips can't be in BE mode - Inline sym_slot into sym_device - Inline sym_printb_hex() into sym_printl_hex() - Don't cast function return values to void - Introduce sym_nvram_type() - Pass the hcb and starget to sym_check_goals since we already have them in the caller - Some 0/NULL cleanup - Embed the sense buffer in the CCB so it doesn't need to be allocated separately Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-
- 07 Mar, 2005 5 commits
-
-
Matthew Wilcox authored
Convert 53c700 to use spi_display_xfer_agreement() Signed-off-by: Matthew Wilcox <matthew@wil.cx> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-
Matthew Wilcox authored
[ This is an updated version of http://marc.theaimsgroup.com/?l=linux-scsi&m=110918302718178&w=2 Relative to that patch, it prints the period in a nicer way; exactly the same way as the strings in the original version of this file. ] Introduce a generic SPI function to print the negotiated transfer agreement. It's based on the implementation in sym53c8xx_2/sym_misc.c. I have changes in my tree to make 53c700, ncr53c8xx and sym2 use it. Other drivers need to be converted to use the SPI transport layer first. In order to calculate the speed I needed to be able to convert from period factor to period in picoseconds. That required changing (show|store)_spi_transport_period to work in picoseconds rather than a string. Signed-off-by: Matthew Wilcox <matthew@wil.cx> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-
Adrian Bunk authored
This patch makes some needlessly global code static. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-
Kenn Humborg authored
Changes to the NCR5380 driver between 2.6.9 and 2.6.10 replaced the driver's home-grown delayed work implementation with a call to schedule_delayed_work(). However, the delay argument was not passed correctly, so the work was usually scheduled for _way_ too far in the future. This patch fixes this. NCR5380_print_status() is called from NCR5380_abort() and from NCR5380_bus_reset(). In at least the abort() case, the host lock has already been acquired by scsi_error.c:scsi_try_to_abort_command(). NCR5380_print_status() calls NCR5380_proc_info() which also acquires and releases the host lock. This patch removes the call to NCR5380_proc_info() from NCR5380_print_status. Cosmetic: Remove duplicated lines of code from NCR5380_abort(). Signed-off-by: Kenn Humborg <kenn@linux.ie> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-
Dave Jones authored
To try and escape the madness of adding a zillion USB card readers to the SCSI whitelist, I flipped the scan all lun's by default switch in the fedora kernel recently to see just what breaks, in the hope of moving from a whitelist solution to a blacklist. Here's the first (hopefully of not too many) devices that broke. (See https://bugzilla.redhat.com/beta/show_bug.cgi?id=149402 for more info) Signed-off-by: Dave Jones <davej@redhat.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-
- 03 Mar, 2005 3 commits
-
-
Jamie Lenehan authored
From: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Removes the page_to_virt and maps sg lists dynamically. This makes the driver work with highmem pages. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Jamie Lenehan <lenehan@twibble.org> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-
Kai Mäkisara authored
The patch at the end of this message modifies the st write semantics in the following way: write a filemark before rewind, offline, or seek if the previous operation was write. This semantics is specified on the man pages of some Unices and some software (e.g., cpio) seems to assume this. The change makes sure that the last file on the tape is properly terminated with a filemark and reading the file does not fail at the end. Signed-off-by: Kai Makisara <kai.makisara@kolumbus.fi> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-
James Bottomley authored
The basic change is to allow target scans to be done by generic device (which need only have a scsi host as a parent). Also changes most target functions to take a struct scsi_target instead of the H/C/T numbers. Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-
- 22 Feb, 2005 10 commits
-
-
Alan Stern authored
This patch adds a NOREPORTLUN blacklist flag for a disk made by "WDC" (Winchester?). The drive's firmware crashes when it receives REPORT_LUNS, even though it claims to be SCSI rev 04. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-
Alan Stern authored
This is an updated and unmangled version of the patch sent in by Martin Peschke. Apparently some drives report Hardware Error sense for problems which do improve after retrying, so the patch retries these supposedly "unrecoverable" errors for such devices. In addition to the IBM ESS drive it adds a blacklist entry for the drive inside the MPIO HS200 Gigabox. Signed-off-by: Martin Peschke <mpeschke@de.ibm.com> Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-
Kai Mäkisara authored
The patch at the end of this message converts the SCSI tape driver to support also descriptor based sense data. Test for deferred sense data have been added in a couple of places and the EOM tests have been unified. Some tests have been simplified but the patch is not meant to change the current behavior. The patch is against 2.6.11-rc4 and has been tested to some extent. The patch also includes the msleep_interruptible change from from kernel janitors. Thanks to Doug Gilbert for doing a first version of this sense data conversion. Signed-off-by: Kai Makisara <kai.makisara@kolumbus.fi> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-
Christoph Hellwig authored
It's lacking EH support and the hardware is supported by the qla1280 driver now. Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-
Christoph Hellwig authored
it oopses when trying to use it with my SmartRaid IV card, it's a mess and the only hardware supported by it but not the eata driver are two 10-year old ISA boards. Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-
Christoph Hellwig authored
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-
Christoph Hellwig authored
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-
Christoph Hellwig authored
reading the /proc/scsi/qla1280/* files can easily corrupt kernel memory. As the feature is deprecated, and the qla1280 implementation doesn't return very usefull implementation but is so buggy that any serious user would have noticed we just remove it. Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-
Matthew Wilcox authored
The static device_request_lock doesn't protect anything; remove it. Signed-off-by: Matthew Wilcox <matthew@wil.cx> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-
Andi Kleen authored
This patch fixes one of Christroph's fixme comments in the SCSI midlayer. The selection of the serial number and pid for commands was done by a global variable and not SMP safe. The race was not very serious because it was only used for error handling, but it's still better to fix it. I audited all the drivers and none seemed to use them for anything interesting, so I just made it a per host counter protected by host lock. (in fact they could be probably removed because they only see to be used as a flag in exception handling and for debugging. The patch would be unfortunately quite big because a lot of driver printks use them) This should be slight faster on SMP too because the cache line of the counter won't bounce around the machine. Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-
- 04 Feb, 2005 1 commit
-
-
Adrian Bunk authored
This patch makes some needlessly global code static. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-
- 03 Feb, 2005 10 commits
-
-
James Bottomley authored
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-
James Bottomley authored
From: James.Smart@Emulex.Com Adds io statistics (requests, completions, error count) as generic attributes for scsi devices. Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-
Christoph Hellwig authored
I think the hardware_version, firmware_version, rom_version and driver_version don't belong to the FC transport class, there's nothing specific to FC or even SCSI specific in them. Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-
James Bottomley authored
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-
James Bottomley authored
From: Moore, Eric Dean <Eric.Moore@lsil.com> 1) mptscsih.c: I have changed task management requests so they complete in same thread before returning to os. I removed the TMtimer code. (2) mptctl.c: I have deleted both TMtimer and timer code. Replaced with wait_event_interruptible_timeout. So commands are now completed in same thread. (3) mptctl_do_fw_download - nasty polling of global parameters that are set in contents of interrupt handler(mptctl_reply), now using wait_event_interruptible_timeout. (4) I have cleaned up mptctl_reply. Signed-off-by: Eric Moore <Eric.Moore@lsil.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-
Andi Kleen authored
Convert mptctl to compat_ioctl. I also changed it to unlocked_ioctl while I was on it. Signed-off-by: Andi Kleen <ak@muc.de> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-
Andi Kleen authored
Convert megaraid2 driver to new compat_ioctl entry points. Signed-off-by: Andi Kleen <ak@muc.de> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-
Andi Kleen authored
Add compat_ioctl to SG driver Signed-off-by: Andi Kleen <ak@muc.de> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-
Andi Kleen authored
Convert aacraid driver to the compat_ioctl entry points. I don't have hardware, so this is only compile tested, but I just did some transformations on the existing code. Signed-off-by: Andi Kleen <ak@muc.de> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-
Andi Kleen authored
Add compat_ioctl to osst Signed-off-by: Andi Kleen <ak@muc.de> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-