1. 24 Aug, 2004 4 commits
    • Andrew Morton's avatar
      [PATCH] I2O: run linux/i2o.h and linux/i2o-dev.h through · 9019be28
      Andrew Morton authored
      From: Markus Lidel <Markus.Lidel@shadowconnect.com>
      
      - i2o.h and i2o-dev.h are now formated using Lindent.
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
      9019be28
    • Andrew Morton's avatar
      [PATCH] I2O: remove on-demand allocation of Scsi_Host's in · b590b47b
      Andrew Morton authored
      From: Markus Lidel <Markus.Lidel@shadowconnect.com>
      
      - New notification system for i2o_driver's which get now a notification if a
        I2O controller is added or removed.
      
      - SCSI-OSM now uses notifications to create the Scsi_Host to the
        corresponding I2O controller.
      
      - Use __scsi_add_device to preset hostdata.
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
      b590b47b
    • Andrew Morton's avatar
      [PATCH] I2O: add functionality to scsi_add_device to preset · ff8da0ac
      Andrew Morton authored
      From: Markus Lidel <Markus.Lidel@shadowconnect.com>
      
      - Add a new function __scsi_add_device, which has an additional parameter
        compared to scsi_add_device.  This parameter is used to preset the hostdata
        pointer.
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
      ff8da0ac
    • James Bottomley's avatar
      i20 rewrite · 3d0affc8
      James Bottomley authored
      From: Markus Lidel <Markus.Lidel@shadowconnect.com>
      
      generic:
      - split i2o_core into several files, grouped by same function
      - I2O devices are now registered as devices and show up in sysfs
      - the various I2O OSM's (e.g. i2o_scsi) now register in the I2O core
         and also use the 2.6 driver mechanism.
      - I2O messages will be created in the message frame instead of creating
         it in local memory and copying it over later on.
      - context list for 64 pointer to 32 context conversion now uses a
         double linked list
      
      PCI:
      - driver now registers as a PCI device driver and uses probe function to
         get the possible controllers. (needed for hotplugging)
      - converted DMA handling from pci_* to generic dma_* functions
      
      Block OSM:
      - use one request queue per I2O block device instead of one per
         controller
      - I2O block devices and queues are allocated dynamically and therefore
         no more limit of block devices
      
      SCSI OSM:
      - corrected bug in SCSI reply function which caused the memory to be
         freed before the done function was called.
      - one I2O controller registers as one scsi host instead of one scsi host
         per channel
      - no more ch,id,lun => tid mapping table
      
      Config OSM:
      - added ioctl32 for passthru and getiops.
      - removed ioctl_html
      
      Documentation:
      - removed TODO entries from README
      - moved docs under Documentation/i2o
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
      3d0affc8
  2. 22 Aug, 2004 2 commits
  3. 21 Aug, 2004 6 commits
  4. 20 Aug, 2004 1 commit
  5. 19 Aug, 2004 3 commits
    • James Bottomley's avatar
      [PATCH] fix for Domain Validation hang on some devices with sym_2 · afe57355
      James Bottomley authored
      There's a bad hang where the driver locks the system solid trying to do
      domain validation with certain devices.  The one I've managed to
      reproduce it with is a Quantum Atlas.
      
      What happens is that setting the offset to zero is an async negotiation
      message.  However, the driver still seems to have DT set (which is
      illegal).  Most devices just reject this as stupid, but the Quantum
      seems to try to obey it and hangs the bus.
      
      The simple fix is to reset all PPR options when the offset is set to
      zero.
      Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
      afe57355
    • Brian King's avatar
      [PATCH] Allow TCQ depth to be lowered properly · 74a84824
      Brian King authored
      Ran into a couple small issues with the patch. First,
      blk_queue_resize_tags wasn't getting exported, so I sent Jens a patch to
      fix this, which he has now sent upstream. Second, the comment above
      blk_queue_resize_tags says the queue_lock must be held when calling this
      routine. Attached is an updated patch that grabs the lock. Other than
      that, it looks good.
      
      James Bottomley wrote:
      > On Tue, 2004-08-03 at 10:50, Brian King wrote:
      >>Currently, it is possible to call scsi_activate_tcq with a small queue depth,
      >>then later call scsi_adjust_queue_depth with a larger queue depth. This results
      >>in the scsi layer having a larger queue depth than the block layer knows about.
      >>This results in these additional commands being issued as untagged ops rather than
      >>tagged ops. This patch changes scsi_activate_tcq to call blk_queue_init_tags with
      >>the maximum supported number of tags so this cannot occur.
      >
      >
      > Sorry, been away at conferences with not enough time to remember what
      > went on here.
      >
      > The reason it looks the way it does is historical...when the blk layer
      > tcq interfaces were created, there was no way to resize the queue.  Jens
      > later added resize (for me) and I forgot to incorporate it into the
      > code.
      >
      > Another small point is that the max number of tags can be greater than
      > 256.  256 is a SPI limit only (and even the qla1280, a SPI card which
      > could use the tag as its global queue index would take > 256).  The
      > limit in scsi_adjust_queue_depth has long since been obsoleted by our
      > dynamic command allocation.
      >
      > I think the attached should work correctly (as long as it compiles...I
      > coded it up on the flight home).
      Signed-off-by: default avatarBrian King <brking@us.ibm.com>
      Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
      74a84824
    • James Bottomley's avatar
      get the kernel to warn about deprecated SCSI ioctls · 59fbf85b
      James Bottomley authored
      The non unique SCSI ioctls:
      
      SCSI_IOCTL_SEND_COMMAND
      SCSI_IOCTL_TEST_UNIT_READY
      SCSI_IOCTL_BENCHMARK_COMMAND
      SCSI_IOCTL_SYNC
      SCSI_IOCTL_START_UNIT
      SCSI_IOCTL_STOP_UNIT
      
      Have been deprecated for a while now.  We should make the kernel
      complain when a program actually uses one of them, so users have had
      adequate warning before they are removed.
      Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
      59fbf85b
  6. 18 Aug, 2004 2 commits
  7. 17 Aug, 2004 1 commit
  8. 16 Aug, 2004 2 commits
    • Mike Anderson's avatar
      [PATCH] reorder call in scsi_remove_host · 44d90463
      Mike Anderson authored
      This patch against scsi-misc-2.6 reorders a call to scsi_forget_host in
      the scsi_remove_host function. This removes the error message
      "Synchronizing SCSI cache..." on rmmod of a scsi host driver module as
      shown in example output 1 and 2 below.
      
      I had previous created a much more complicated patch to work around this
      problem. In response Christoph mention a simpler solution (pointer to
      thread below) which is this patch.
      
      http://marc.theaimsgroup.com/?l=linux-scsi&m=108720042210331&w=2
      
      Example output.
      
      1.) Before patch.
      
      elm:~# scsi1 : scsi_debug, version 1.73 [20040518], dev_size_mb=8,
      opts=0x0
        Vendor: Linux     Model: scsi_debug        Rev: 0004
        Type:   Direct-Access                      ANSI SCSI revision: 03
      SCSI device sdc: 16384 512-byte hdwr sectors (8 MB)
      SCSI device sdc: drive cache: write back
       sdc: unknown partition table
      Attached scsi disk sdc at scsi1, channel 0, id 0, lun 0
      Attached scsi generic sg4 at scsi1, channel 0, id 0, lun 0,  type 0
      Synchronizing SCSI cache for disk sdc: <4>FAILED
        status = 0, message = 00, host = 1, driver = 00
      
      2.) After patch.
      
      elm:~# scsi1 : scsi_debug, version 1.73 [20040518], dev_size_mb=8, opts=0x0
        Vendor: Linux     Model: scsi_debug        Rev: 0004
        Type:   Direct-Access                      ANSI SCSI revision: 03
      SCSI device sdc: 16384 512-byte hdwr sectors (8 MB)
      SCSI device sdc: drive cache: write back
       sdc: unknown partition table
      Attached scsi disk sdc at scsi1, channel 0, id 0, lun 0
      Attached scsi generic sg4 at scsi1, channel 0, id 0, lun 0,  type 0
      Synchronizing SCSI cache for disk sdc:
      Signed-off-by: default avatarMike Anderson <andmike@us.ibm.com>
      Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
      44d90463
    • James Bottomley's avatar
      MPT Fusion driver 3.01.15 update · dd424b0a
      James Bottomley authored
      Highlights of this release:
      - Patch provided by Christoph Hellwig to remove the isense code.
      - Fix compile errors when CONFIG_PROC_FS=n.
      - A fix for the module parameter "mptscsih" which was not being exported.
      - The port of the 2.05.17 thru 2.05.23 of the lk 2.4 mpt driver.
      Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
      dd424b0a
  9. 14 Aug, 2004 19 commits