1. 26 5月, 2005 4 次提交
    • A
      [SCSI] git-scsi-misc-sbp2-warning-fix · 644e02ea
      Andrew Morton 提交于
      drivers/ieee1394/sbp2.c: In function `sbp2_check_sbp2_response':
      drivers/ieee1394/sbp2.c:2154: warning: unused variable `device_type'
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      644e02ea
    • J
      [SCSI] Add target alloc/destroy callbacks to the host template · a283bd37
      James Bottomley 提交于
      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: NJames Bottomley <James.Bottomley@SteelEye.com>
      a283bd37
    • A
      [SCSI] TYPE_RBC cache fixes (sbp2.c affected) · 631e8a13
      Al Viro 提交于
      	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: NAl Viro <viro@parcelfarce.linux.theplanet.co.uk>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      631e8a13
    • M
      [SCSI] sym2 version 2.2.1 · 53222b90
      Matthew Wilcox 提交于
      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: NJames Bottomley <James.Bottomley@SteelEye.com>
      53222b90
  2. 21 5月, 2005 36 次提交