1. 09 9月, 2005 1 次提交
  2. 08 9月, 2005 5 次提交
  3. 07 9月, 2005 12 次提交
    • J
      [libata sata_mv] fix build · ca20aa69
      Jeff Garzik 提交于
      This function will go away when pci_intx() finally makes it
      into the core PCI layer.
      ca20aa69
    • B
      [PATCH] libata: Marvell SATA support (PIO mode) · 20f733e7
      Brett Russ 提交于
      This is my libata compatible low level driver for the Marvell SATA
      family.  Currently it successfully runs in PIO mode on a 6081 chip.
      EDMA support is in the works and should be done shortly.  Review,
      testing (especially on other flavors of Marvell), comments welcome.
      Signed-off-by: NBrett Russ <russb@emc.com>
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      20f733e7
    • B
      [PATCH] libata: fix pio_mask values (take 2) · 7da79312
      Brett Russ 提交于
      ata_get_mode_mask() uses bits 3 and 4 in the pio_mask to represent PIO
      modes 3 and 4.  The value read from the drive, which reports support
      for PIO3 and PIO4 in bits 0 and 1, is shifted left by 3 bits and OR'd
      with 0x7 (which then corresponds to PIO 2-0 in libata).  Thus, the
      drivers below need adjustments to comply with the way pio_mask is
      used.  I changed the masks from the commented values to all support
      PIO4-0, since the spec mandates that PIO0-2 are supported and there's
      no reason not to support PIO3 IMO.
      Signed-off-by: NBrett Russ <russb@emc.com>
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      7da79312
    • J
      [kernel-doc] fix various DocBook build problems/warnings · 344babaa
      Jeff Garzik 提交于
      Most serious is fixing include/sound/pcm.h, which breaks the DocBook
      build.
      
      The other stuff is just filling in things that cause warnings.
      344babaa
    • J
      [SCSI] quieten messages on scsi_execute commands · 3173d8c3
      James Bottomley 提交于
      scsi_io_completion() can be a bit noisy about certain conditions.
      Previously this wasn't a problem for internally generated commands,
      since they never hit it.  However, since we do all SCSI commands via
      bios, now they do.  user CD testers like magicdev are now getting not
      ready messages every time they touch the CD to see if there's anything
      in it.
      
      Fix this by making all scsi_execute commands REQ_QUIET and making
      scsi_finish_io() not say anything for REQ_QUIET.
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      3173d8c3
    • C
    • C
    • C
      [SCSI] fix SCSI_IOCTL_PROBE_HOST · 32993523
      Christoph Hellwig 提交于
      This returns always false with new-style drivers right now.  Make it
      return always true instead, as a host must be present if we are able
      to call the ioctl (without a host attached there would be no device
      node to call on..)
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      32993523
    • A
      [SCSI] Universal Xport no attach blacklist · 48690405
      Anton Blanchard 提交于
      On Fri, Dec 13, 2002 at 12:24:39AM +1100, Anton Blanchard wrote:
      
      > We tested 2.5.51 on a ppc64 box, qlogic 2312 and a fastt700 array. I
      > had CONFIG_SCSI_REPORT_LUNS and unfortunately it thought the management
      > LUN was a disk:
      >
      >   Vendor: IBM       Model: Universal Xport   Rev: 0520
      >   Type:   Direct-Access                      ANSI SCSI revision: 03
      >
      > ...
      >
      > SCSI device sdaj: drive cache: write through
      > SCSI device sdaj: 40960 512-byte hdwr sectors (21 MB)
      >  sdaj: unknown partition table
      > Attached scsi disk sdaj at scsi2, channel 0, id 0, lun 31
      >
      > ...
      >
      > end_request: I/O error, dev sdaj, sector 0
      
      Three years later...
      
      It looks like SGI use the same FC vendor and they already have a
      workaround for this issue. The following patch adds the IBM version of
      it.
      Signed-off-by: NAnton Blanchard <anton@samba.org>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      48690405
    • A
      [SCSI] sd: pause in sd_spinup_disk for slow USB devices · 4451e472
      Alan Stern 提交于
      This patch adds a delay tailored for USB flash devices that are slow to
      initialize their firmware.  The symptom is a repeated Unit Attention with
      ASC=0x28 (Not Ready to Ready transition).  The patch will wait for up to 5
      seconds for such devices to become ready.  Normal devices won't send the
      repeated Unit Attention sense key and hence won't trigger the patch.
      
      This fixes a problem with James Roberts-Thomson's USB device, and I've
      seen several reports of other devices exhibiting the same symptoms --
      presumably they will be helped as well.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      4451e472
    • A
      [SCSI] return success after retries in scsi_eh_tur · e47373ec
      Alan Stern 提交于
      The problem lies in the way the error handler uses TEST UNIT READY to
      tell whether error recovery has succeeded.  The scsi_eh_tur function
      gives up after one round of retrying; after that it decides that more
      error recovery is needed.
      
      However TUR is liable to report sense data indicating a retry is needed
      when in fact error recovery has succeeded.  A typical example might be
      SK=2, ASC=4, ASCQ=1 (Logical unit in process of becoming ready).  The mere
      fact that we were able to get a sensible reply to the TUR should indicate
      that the device is working well enough to stop error recovery.
      
      I ran across a case back in January where this happened.  A CD-ROM drive
      timed out the INQUIRY command, and a device reset fixed the blockage.
      But then the drive kept responding with 2/4/1 -- because it was spinning
      up I suppose -- until the error handler gave up and placed it offline.
      If the initial INQUIRY had received the 2/4/1 instead, everything would
      have worked okay.  It doesn't seem reasonable for things to fail just
      because the error handler had started running.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      e47373ec
    • J
      [SCSI] ibmvscsi: handle large scatter/gather lists · 4dddbc26
      James Bottomley 提交于
      The maximum size of a scatter-gather list that the current IBM VSCSI
      Client can handle is 10.  This patch adds large scatter-gather support
      to the client so that it is capable of handling up to SG_ALL(255)
      number of requests in the scatter-gather list.
      Signed-off-by: NLinda Xie <lxie@us.ibm.com>
      Acked by: Dave C Boutcher <sleddog@us.ibm.com>
      
      Rejections fixed up and
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      4dddbc26
  4. 05 9月, 2005 20 次提交
  5. 31 8月, 2005 2 次提交
    • J
      [SCSI] embryonic RAID class · 61a7afa2
      James Bottomley 提交于
      The idea behind a RAID class is to provide a uniform interface to all
      RAID subsystems (both hardware and software) in the kernel.
      
      To do that, I've made this class a transport class that's entirely
      subsystem independent (although the matching routines have to match per
      subsystem, as you'll see looking at the code).  I put it in the scsi
      subdirectory purely because I needed somewhere to play with it, but it's
      not a scsi specific module.
      
      I used a fusion raid card as the test bed for this; with that kind of
      card, this is the type of class output you get:
      
      jejb@titanic> ls -l /sys/class/raid_devices/20\:0\:0\:0/
      total 0
      lrwxrwxrwx  1 root root     0 Aug 16 17:21 component-0 -> ../../../devices/pci0000:80/0000:80:04.0/host20/target20:1:0/20:1:0:0/
      lrwxrwxrwx  1 root root     0 Aug 16 17:21 component-1 -> ../../../devices/pci0000:80/0000:80:04.0/host20/target20:1:1/20:1:1:0/
      lrwxrwxrwx  1 root root     0 Aug 16 17:21 device -> ../../../devices/pci0000:80/0000:80:04.0/host20/target20:0:0/20:0:0:0/
      -r--r--r--  1 root root 16384 Aug 16 17:21 level
      -r--r--r--  1 root root 16384 Aug 16 17:21 resync
      -r--r--r--  1 root root 16384 Aug 16 17:21 state
      
      So it's really simple: for a SCSI device representing a hardware raid,
      it shows the raid level, the array state, the resync % complete (if the
      state is resyncing) and the underlying components of the RAID (these are
      exposed in fusion on the virtual channel 1).
      
      As you can see, this type of information can be exported by almost
      anything, including software raid.
      
      The more difficult trick, of course, is going to be getting it to
      perform configuration type actions with writable attributes.
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      61a7afa2
    • J
      [libata] fix ATAPI-enable typo · 6f106233
      Jeff Garzik 提交于
      Dumb typo spotted by Mark Lord.
      6f106233