29 Aug, 2008

1 commit


27 Jul, 2008

1 commit

  • Support for controllers and disks that implement DIF protection
    information:

    - During command preparation the RDPROTECT/WRPROTECT must be set
    correctly if the target has DIF enabled.

    - READ(6) and WRITE(6) are not supported when DIF is on.

    - The controller must be told how to handle the I/O via the
    protection operation field in scsi_cmnd.

    - Refactor the I/O completion code that extracts failed LBA from the
    returned sense data and handle DIF failures correctly.

    - sd_dif.c implements the functions required to prepare and complete
    requests with protection information attached.

    Signed-off-by: Martin K. Petersen
    Signed-off-by: James Bottomley

    Martin K. Petersen
     

12 Jul, 2008

2 commits


05 Jun, 2008

1 commit

  • Some of the storage devices (that can be accessed through multiple paths),
    do need some special handling for
    1. Activating the passive path of the storage access.
    2. Decode and handle the special sense codes returned by the devices.
    3. Handle the I/Os being sent to the passive path, especially
    during the device probe time.
    when accessed through multiple paths.

    As of today this special device handling is done at the dm-multipath
    layer using dm-handlers. That works well for (1); for (2) to be handled
    at dm layer, scsi sense information need to be exported from SCSI to dm-layer,
    which is not very attractive; (3) cannot be done at all at the dm layer.

    Device handler has been moved to SCSI mainly to handle (2) and (3) properly.

    Signed-off-by: Chandra Seetharaman
    Signed-off-by: Mike Anderson
    Signed-off-by: Mike Christie
    Signed-off-by: James Bottomley

    Chandra Seetharaman
     

06 May, 2008

1 commit


03 May, 2008

1 commit

  • This is the code to actually support 64 bit platforms. 64 bit
    DMA is enabled on both x86_32 PAE and 64 bit platforms.

    This code is based in part on the unofficial adaptec 64-bit
    dpt_i2o driver update that I got from Mark Salyzyn at Adaptec.

    Signed-off-by: Miquel van Smoorenburg
    Acked-by: Mark Salyzyn
    Signed-off-by: James Bottomley

    Miquel van Smoorenburg
     

28 Apr, 2008

1 commit

  • Replace the mac_esp driver with a new one based on the esp_scsi core.

    For esp_scsi: add support for sync transfers for the PIO mode, add a new
    esp_driver_ops method to get the maximum dma transfer size (like the old
    NCR53C9x driver), and some cleanups.

    Signed-off-by: Finn Thain
    Acked-by: David S. Miller
    Signed-off-by: Geert Uytterhoeven
    Signed-off-by: James Bottomley

    Finn Thain
     

08 Apr, 2008

1 commit

  • We've verified that there are 64 bit and endianness problems in the
    flashpoint driver. Reverse the logic of CONFIG_OMIT_FLASHPOINT (make
    it CONFIG_SCSI_FLASHPOINT) and make it depend on X86_32 so it can't
    appear for any other architectures. Long term, if someone chooses,
    they could make FlashPoint 64 bit compliant (it looks like its a
    question of fixing up the sizes in some of the packed descriptors)

    Signed-off-by: James Bottomley

    Matthew Wilcox
     

09 Mar, 2008

1 commit

  • We have several drivers that don't list SCSI as a dependency in
    Kconfig. That leads to them potentially being selected as Y even if
    SCSI is M (which will produce a build failure). Fix this by making
    the if SCSI_LOWLEVEL that goes around all the drivers a tristate
    forcing them all automatically to inherit the value of SCSI.

    Signed-off-by: James Bottomley

    James Bottomley
     

23 Feb, 2008

1 commit


13 Feb, 2008

1 commit

  • Fix compilation warning in gdth.c, which was using the deprecated
    pci_find_device.

    drivers/scsi/gdth.c:645: warning: 'pci_find_device' is deprecated (declared at include/linux/pci.h:495)

    Changing it to use pci_get_device, instead.

    Signed-off-by: Sergio Luis
    Signed-off-by: James Bottomley

    Sergio Luis
     

08 Feb, 2008

5 commits

  • This adds support to SCSI for enclosure services devices. It also makes
    use of the enclosure services added in an earlier patch to display the
    enclosure topology in sysfs.

    At the moment, the enclosures are SAS specific, but if anyone actually
    has a non-SAS enclosure that follows the SES-2 standard, we can add that
    as well.

    On my Vitesse based system, the enclosures show up like this:

    sparkweed:~# ls -l /sys/class/enclosure/0\:0\:1\:0/
    total 0
    -r--r--r-- 1 root root 4096 2008-02-03 15:44 components
    lrwxrwxrwx 1 root root 0 2008-02-03 15:44 device -> ../../../devices/pci0000:01/0000:01:02.0/host0/port-0:0/expander-0:0/port-0:0:12/end_device-0:0:12/target0:0:1/0:0:1:0
    drwxr-xr-x 2 root root 0 2008-02-03 15:44 SLOT 000
    drwxr-xr-x 2 root root 0 2008-02-03 15:44 SLOT 001
    drwxr-xr-x 2 root root 0 2008-02-03 15:44 SLOT 002
    drwxr-xr-x 2 root root 0 2008-02-03 15:44 SLOT 003
    drwxr-xr-x 2 root root 0 2008-02-03 15:44 SLOT 004
    drwxr-xr-x 2 root root 0 2008-02-03 15:44 SLOT 005
    lrwxrwxrwx 1 root root 0 2008-02-03 15:44 subsystem -> ../../enclosure
    --w------- 1 root root 4096 2008-02-03 15:44 uevent

    And the individual occupied slots like this:

    sparkweed:~# ls -l /sys/class/enclosure/0\:0\:1\:0/SLOT\ 001/
    total 0
    -rw-r--r-- 1 root root 4096 2008-02-03 15:45 active
    lrwxrwxrwx 1 root root 0 2008-02-03 15:45 device -> ../../../../devices/pci0000:01/0000:01:02.0/host0/port-0:0/expander-0:0/port-0:0:11/end_device-0:0:11/target0:0:0/0:0:0:0
    -rw-r--r-- 1 root root 4096 2008-02-03 15:45 fault
    -rw-r--r-- 1 root root 4096 2008-02-03 15:45 locate
    -rw-r--r-- 1 root root 4096 2008-02-03 15:45 status
    lrwxrwxrwx 1 root root 0 2008-02-03 15:45 subsystem -> ../../../enclosure_component
    -r--r--r-- 1 root root 4096 2008-02-03 15:45 type
    --w------- 1 root root 4096 2008-02-03 15:45 uevent

    You can flash the various blinky lights by echoing to the fault and locate files.

    >From the device's point of view, you can see it has an enclosure like this:

    sparkweed:~# ls /sys/class/scsi_disk/0\:0\:0\:0/device/
    block:sda generic queue_depth state
    bsg:0:0:0:0 iocounterbits queue_type subsystem
    bus iodone_cnt rescan timeout
    delete ioerr_cnt rev type
    device_blocked iorequest_cnt scsi_device:0:0:0:0 uevent
    driver modalias scsi_disk:0:0:0:0 vendor
    enclosure_component:SLOT 001 model scsi_generic:sg0
    evt_media_change power scsi_level

    Note the enclosure_component:SLOT 001 which shows where in the enclosure
    this device fits.

    The astute will notice that I'm using SCSI VPD Inquiries to identify the
    devices. This, unfortunately, won't work for SATA devices unless we do
    some really nasty hacking about on the SAT because the only think that
    knows the SAS addresses for SATA devices is libsas, not libata where the
    SAT resides.

    Signed-off-by: James Bottomley

    James Bottomley
     
  • These drivers depend on the deprecated NCR53C9X core and need to be converted
    to the esp_scsi core.

    Acked-by: Boaz Harrosh
    Cc: Linux/m68k
    Signed-off-by: James Bottomley

    James Bottomley
     
  • This driver depends on the deprecated NCR53C9X core and needs to be converted
    to the esp_scsi core.

    Acked-by: Boaz Harrosh
    Cc: "Maciej W. Rozycki"
    Signed-off-by: James Bottomley

    James Bottomley
     
  • This driver depends on the deprecated NCR53C9X core and needs to be converted
    to the esp_scsi core.

    Acked-by: Boaz Harrosh
    Signed-off-by: James Bottomley

    James Bottomley
     
  • Converted sun3x_esp driver to use esp_scsi.c

    Signed-off-by: Thomas Bogendoerfer
    Signed-off-by: James Bottomley

    Thomas Bogendoerfer
     

31 Jan, 2008

1 commit


26 Jan, 2008

1 commit

  • * git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (200 commits)
    [SCSI] usbstorage: use last_sector_bug flag universally
    [SCSI] libsas: abstract STP task status into a function
    [SCSI] ultrastor: clean up inline asm warnings
    [SCSI] aic7xxx: fix firmware build
    [SCSI] aacraid: fib context lock for management ioctls
    [SCSI] ch: remove forward declarations
    [SCSI] ch: fix device minor number management bug
    [SCSI] ch: handle class_device_create failure properly
    [SCSI] NCR5380: fix section mismatch
    [SCSI] sg: fix /proc/scsi/sg/devices when no SCSI devices
    [SCSI] IB/iSER: add logical unit reset support
    [SCSI] don't use __GFP_DMA for sense buffers if not required
    [SCSI] use dynamically allocated sense buffer
    [SCSI] scsi.h: add macro for enclosure bit of inquiry data
    [SCSI] sd: add fix for devices with last sector access problems
    [SCSI] fix pcmcia compile problem
    [SCSI] aacraid: add Voodoo Lite class of cards.
    [SCSI] aacraid: add new driver features flags
    [SCSI] qla2xxx: Update version number to 8.02.00-k7.
    [SCSI] qla2xxx: Issue correct MBC_INITIALIZE_FIRMWARE command.
    ...

    Linus Torvalds
     

23 Jan, 2008

1 commit

  • Fix typo in arch/powerpc/boot/flatdevtree_env.h.
    There is no Documentation/networking/ixgbe.txt.

    README.cycladesZ is now in Documentation/.
    wavelan.p.h is now in drivers/net/wireless/.
    HFS.txt is now Documentation/filesystems/hfs.txt.
    OSS-files are now in sound/oss/.

    Signed-off-by: Johann Felix Soden
    Acked-by: Randy Dunlap
    Signed-off-by: Linus Torvalds

    Johann Felix Soden
     

12 Jan, 2008

4 commits

  • Use open-iscsi.org instead of linux-iscsi.sf.net, which hasn't been
    updated for ages.

    Signed-off-by: FUJITA Tomonori
    Signed-off-by: Mike Christie
    Signed-off-by: James Bottomley

    FUJITA Tomonori
     
  • Most code changes were made to support adapters based on Marvell IOP, plus some
    other fixes.

    - add more PCI device IDs
    - support for adapters based on Marvell IOP
    - fix a result code translation error on big-endian systems
    - fix resource releasing bug when scsi_host_alloc() fail in hptiop_probe()
    - update scsi_cmnd.resid when finishing a request
    - correct some coding style issues

    [akpm@linux-foundation.org: type fixes]
    Signed-off-by: HighPoint Linux Team
    Signed-off-by: Andrew Morton
    Signed-off-by: James Bottomley

    HighPoint Linux Team
     
  • - Apparently no one wonts this driver, and no one
    is willing to fix it for future changes to SCSI.
    So remove it, and if someone wants it in the future
    He can revive it with the needed fixes.

    Signed-off-by: Boaz Harrosh
    Signed-off-by: James Bottomley

    Boaz Harrosh
     
  • The psi240i driver is still written for cmnd->request_buffer
    as a char pointer to actual data. There was never any attempt
    to use the scatterlist option.

    - remove all source files (3) from drivers/scsi
    - Remove from Makefile and Kconfig

    Signed-off-by: Boaz Harrosh
    Signed-off-by: James Bottomley

    Boaz Harrosh
     

06 Nov, 2007

1 commit


31 Oct, 2007

1 commit


20 Oct, 2007

1 commit

  • Fix powerpc allmodconfig build: advansys requires virt_to_bus() but powerpc
    doesn't implement it.

    Cc: James Bottomley
    Cc: Paul Mackerras
    Acked-by: Matthew Wilcox
    Cc: "David S. Miller"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     

15 Oct, 2007

1 commit

  • * master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (207 commits)
    [SCSI] gdth: fix CONFIG_ISA build failure
    [SCSI] esp_scsi: remove __dev{init,exit}
    [SCSI] gdth: !use_sg cleanup and use of scsi accessors
    [SCSI] gdth: Move members from SCp to gdth_cmndinfo, stage 2
    [SCSI] gdth: Setup proper per-command private data
    [SCSI] gdth: Remove gdth_ctr_tab[]
    [SCSI] gdth: switch to modern scsi host registration
    [SCSI] gdth: gdth_interrupt() gdth_get_status() & gdth_wait() fixes
    [SCSI] gdth: clean up host private data
    [SCSI] gdth: Remove virt hosts
    [SCSI] gdth: Reorder scsi_host_template intitializers
    [SCSI] gdth: kill gdth_{read,write}[bwl] wrappers
    [SCSI] gdth: Remove 2.4.x support, in-kernel changelog
    [SCSI] gdth: split out pci probing
    [SCSI] gdth: split out eisa probing
    [SCSI] gdth: split out isa probing
    gdth: Make one abuse of scsi_cmnd less obvious
    [SCSI] NCR5380: Use scsi_eh API for REQUEST_SENSE invocation
    [SCSI] usb storage: use scsi_eh API in REQUEST_SENSE execution
    [SCSI] scsi_error: Refactoring scsi_error to facilitate in synchronous REQUEST_SENSE
    ...

    Linus Torvalds
     

13 Oct, 2007

8 commits


23 Aug, 2007

2 commits

  • Introduce CONFIG_CHECK_SIGNATURE to control inclusion of check_signature()
    and avoid problems on platforms that don't have readb().

    Let the few legacy (ISA || PCI || X86) drivers that need check_signature()
    select CONFIG_CHECK_SIGNATURE.

    Signed-off-by: Geert Uytterhoeven
    Cc: Jeff Dike
    Cc: Heiko Carstens
    Cc: Roman Zippel
    Cc: Alan Cox
    Cc: Martin Schwidefsky
    Cc: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Geert Uytterhoeven
     
  • m68k: Fix a few hickups in drivers/scsi/Kconfig

    Signed-off-by: Geert Uytterhoeven
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Geert Uytterhoeven
     

23 Jul, 2007

1 commit

  • * master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (60 commits)
    [SCSI] libsas: make ATA functions selectable by a config option
    [SCSI] bsg: unexport sg v3 helper functions
    [SCSI] bsg: fix bsg_unregister_queue
    [SCSI] bsg: make class backlinks
    [SCSI] 3w-9xxx: add support for 9690SA
    [SCSI] bsg: fix bsg_register_queue error path
    [SCSI] ESP: Increase ESP_BUS_TIMEOUT to 275.
    [SCSI] libsas: fix scr_read/write users and update the libata documentation
    [SCSI] mpt fusion: update Kconfig help
    [SCSI] scsi_transport_sas: add destructor for bsg
    [SCSI] iscsi_tcp: buggered kmalloc()
    [SCSI] qla2xxx: Update version number to 8.02.00-k2.
    [SCSI] qla2xxx: Add ISP25XX support.
    [SCSI] qla2xxx: Use pci_try_set_mwi().
    [SCSI] qla2xxx: Use PCI-X/PCI-Express read control interfaces.
    [SCSI] qla2xxx: Re-factor isp_operations to static structures.
    [SCSI] qla2xxx: Validate mid-layer 'underflow' during check-condition handling.
    [SCSI] qla2xxx: Correct setting of 'current' and 'supported' speeds during FDMI registration.
    [SCSI] qla2xxx: Generalize iIDMA support.
    [SCSI] qla2xxx: Generalize FW-Interface-2 support.
    ...

    Linus Torvalds
     

20 Jul, 2007

1 commit