1. 30 9月, 2005 3 次提交
  2. 29 9月, 2005 2 次提交
    • A
      [PATCH] libata: interrupt driven pio for LLD · e50362ec
      Albert Lee 提交于
      libata.h:
      libata-core:
        Add ATA_FLAG_PIO_POLLING flag for LLDs that expect interrupt for
      command completion only.
      
      sata_nv.c:
      sata_vsc.c:
        irq handler is wrapper around ata_host_intr(), can handle PIO interrupts.
      
      sata_promise.c:
      sata_sx4.c:
      sata_qstor.c:
      sata_mv.c:
        Private irq handler.
        Polling mode ATA_FLAG_PIO_POLLING used for compatibility.
      Signed-off-by: NAlbert Lee <albertcc@tw.ibm.com>
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      e50362ec
    • A
      [PATCH] libata: interrupt driven pio for libata-core · 312f7da2
      Albert Lee 提交于
      - add PIO_ST_FIRST for the state before sending ATAPI CDB or sending
      "ATA PIO data out" first data block.
      - add ATA_TFLAG_POLLING and ATA_DFLAG_CDB_INTR flags
      - remove the ATA_FLAG_NOINTR flag since the interrupt handler is now
      aware of the states
      - modify ata_pio_sector() and atapi_pio_bytes() to work in the interrupt
      context
      - modify the ata_host_intr() to handle PIO interrupts
      - modify ata_qc_issue_prot() to initialize states
      - atapi_packet_task() changed to handle "ATA PIO data out" first data block
      - support the pre-ATA4 ATAPI device which raise interrupt when ready to
      receive CDB
      Signed-off-by: NAlbert Lee <albertcc@tw.ibm.com>
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      312f7da2
  3. 28 9月, 2005 2 次提交
  4. 23 9月, 2005 1 次提交
  5. 22 9月, 2005 1 次提交
  6. 19 9月, 2005 3 次提交
    • J
      [SCSI] Fix thread termination for the SCSI error handle · 3ed7a470
      James Bottomley 提交于
      From: 	Alan Stern <stern@rowland.harvard.edu>
      
      This patch (as561) fixes the error handler's thread-exit code.  The
      kthread_stop call won't wake the thread from a down_interruptible, so
      the patch gets rid of the semaphore and simply does
      
              set_current_state(TASK_INTERRUPTIBLE);
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      
      Modified to simplify the termination loop and correct the sleep condition.
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      3ed7a470
    • J
      [SCSI] fix oops on usb storage device disconnect · 939647ee
      James Bottomley 提交于
      We fix the oops by enforcing the host state model.  There have also
      been two extra states added: SHOST_CANCEL_RECOVERY and
      SHOST_DEL_RECOVERY so we can take the model through host removal while
      the recovery thread is active.
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      939647ee
    • A
      [SCSI] SCSI scanning and removal fixes · a64358db
      Alan Stern 提交于
      This patch (as545) fixes the list traversals in __scsi_remove_target and
      scsi_forget_host.  In each case the existing code list_for_each_entry_safe
      in an _unsafe_ manner, because the list was not protected from outside
      modification while the iteration was running.
      
      The new scsi_forget_host routine takes the moderately controversial step
      of iterating over devices for removal rather than iterating over targets.
      This makes more sense to me because the current scheme treats targets as
      second-class citizens, created and removed on demand, rather than as
      objects corresponding to actual hardware.  (Also I couldn't figure out any
      safe way to iterate over the target list, since it's not so easy to tell
      when a target has already been removed.)
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      a64358db
  7. 18 9月, 2005 2 次提交
  8. 16 9月, 2005 4 次提交
  9. 15 9月, 2005 4 次提交
  10. 14 9月, 2005 3 次提交
  11. 13 9月, 2005 2 次提交
  12. 11 9月, 2005 8 次提交
  13. 10 9月, 2005 5 次提交
    • J
    • A
      [SCSI] 3ware 9000: handle use_sg != 0 for emulated commands · d327d082
      adam radford 提交于
      The attached patch updates the driver for the 3ware 9000 series to do
      the following:
      
      - Correctly handle single sgl's with use_sg = 1.
      
      This is needed with the latest scsi-block-2.6 merge otherwise the 3w-9xxx
      driver will not work.  I tested the patch James sent a few weeks back to fix
      this, and it had a bug where the request_buffer was accessed in
      twa_scsiop_execute_scsi_complete() when it was invalid.  This is a corrected
      variation of that patch.
      Signed-off-by: NAdam Radford <linuxraid@amcc.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      d327d082
    • C
      [SCSI] SAS transport class · c7ebbbce
      Christoph Hellwig 提交于
      The SAS transport class contains common code to deal with SAS HBAs, an
      aproximated representation of SAS topologies in the driver model,
      and various sysfs attributes to expose these topologies and managment
      interfaces to userspace.
      
      In addition to the basic SCSI core objects this transport class introduces
      two additional intermediate objects:  The SAS PHY as represented by struct
      sas_phy defines an "outgoing" PHY on a SAS HBA or Expander, and the SAS
      remote PHY represented by struct sas_rphy defines an "incoming" PHY on a
      SAS Expander or end device.  Note that this is purely a software concept, the
      underlying hardware for a PHY and a remote PHY is the exactly the same.
      
      There is no concept of a SAS port in this code, users can see what PHYs
      form a wide port based on the port_identifier attribute, which is the same
      for all PHYs in a port.
      
      This submission doesn't handle hot-plug addition or removal of SAS devices
      and thus doesn't do scanning in a workqueue yet, that will be added in
      phase2 after this submission.  In a third phase I will add additional
      managment infrastructure.
      
      I think this submission is ready for 2.6.14, but additional comments are
      of course very welcome.
      
      I'd like to thanks James Smart a lot for his very useful input on the
      design.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      c7ebbbce
    • D
      [SCSI] sg: do not set VM_IO flag on mmap-ed pages · 1c8e71d7
      Douglas Gilbert 提交于
      Further to the problem discussed in this post:
      http://marc.theaimsgroup.com/?l=linux-scsi&m=112540053711489&w=2
      
      It seems that the sg driver does not need to set the VM_IO flag
      on pages that it memory maps to the user space since they are
      not from the IO space. Ahmed Teirelbar <ahmed.teirelbar@adic.com>
      wants the facility and has tested this patch as I have without
      adverse effects.
      
      The oops protection is still important. Some users really did
      try and use dio transfers from the sg driver to memory mapped
      IO space (on a video capture card if my memory serves) during the
      lk 2.4 series. I'm not sure how successful it was but that will
      now be politely refused in lk 2.6.13+ .
      
      Changelog:
         - set the page flags for sg's reserved buffer mmap-ed
           to the user space to VM_RESERVED (rather than
           VM_RESERVED | VM_IO )
      Signed-off-by: NDouglas Gilbert <dougg@torque.net>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      1c8e71d7
    • J
      [SCSI] SCSI core: fix leakage of scsi_cmnd's · 788ce43a
      James Bottomley 提交于
      Actually, just one problem and one cosmetic fix:
      
      1) We need to dequeue for the loop and kill case (it seems easiest
      simply to dequeue in the scsi_kill_request() routine)
      2) There's no real need to drop the queue lock.  __scsi_done() is lock
      agnostic, so since there's no requirement, let's just leave it in to
      avoid any locking issues.
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      788ce43a