Skip to content
Snippets Groups Projects
  1. Nov 24, 2014
  2. Nov 20, 2014
  3. Oct 03, 2014
  4. Oct 01, 2014
  5. Sep 27, 2014
  6. Sep 23, 2014
    • Juergen Gross's avatar
      xen-scsifront: Add Xen PV SCSI frontend driver · 8beb8d4c
      Juergen Gross authored
      
      Introduces the Xen pvSCSI frontend. With pvSCSI it is possible for a
      Xen domU to issue SCSI commands to a SCSI LUN assigned to that
      domU. The SCSI commands are passed to the pvSCSI backend in a driver
      domain (usually Dom0) which is owner of the physical device. This
      allows e.g. to use SCSI tape drives in a Xen domU.
      
      The code is taken from the pvSCSI implementation in Xen done by
      Fujitsu based on Linux kernel 2.6.18.
      
      Changes from the original version are:
      - port to upstream kernel
      - put all code in just one source file
      - move module to appropriate location in kernel tree
      - adapt to Linux style guide
      - some minor code simplifications
      - replace constants with defines
      - remove not used defines
      - add support for larger SG lists by putting them in a granted page
      
      Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
      Acked-by: default avatarChristoph Hellwig <hch@lst.de>
      Signed-off-by: default avatarDavid Vrabel <david.vrabel@citrix.com>
      8beb8d4c
  7. Sep 22, 2014
  8. Sep 16, 2014
    • Randy Dunlap's avatar
      scsi: use 'depends' instead of 'select' for SCSI_FC_ATTRS · 6a38792c
      Randy Dunlap authored
      
      There are other kconfig symbols which use SCSI_FC_ATTRS.
      In order to maintain sanity and prevent kconfig warnings, change
      all of these from using 'select' to using 'depends on' so that
      proper symbol dependencies will be honored and circular depends
      problems will be avoided.
      This fixes kconfig warnings and build errors:
      
      warning: (LIBFC && SCSI_IBMVFC && SCSI_QLA_FC && SCSI_LPFC && ZFCP && SCSI_BFA_FC && SCSI_CHELSIO_FCOE && FUSION_FC) selects SCSI_FC_ATTRS which has unmet direct dependencies (SCSI && NET)
      drivers/scsi/scsi_transport_fc.c: In function 'fc_host_post_event':
      drivers/scsi/scsi_transport_fc.c:543:7: error: 'scsi_nl_sock' undeclared (first use in this function)
      drivers/scsi/scsi_transport_fc.c: In function 'fc_host_post_vendor_event':
      drivers/scsi/scsi_transport_fc.c:611:7: error: 'scsi_nl_sock' undeclared (first use in this function)
      
      Reported-by: Fengguang Wu <fengguang.wu@intel.com> [0-day test robot]
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      6a38792c
    • Randy Dunlap's avatar
      scsi: fix build errors, SCSI_FC_ATTRS needs to depend on SCSI && NET · 95cd6f48
      Randy Dunlap authored
      
      Fix build errors when CONFIG_SCSI_NETLINK is enabled but
      CONFIG_NET is not enabled:
      
      drivers/built-in.o: In function `scsi_nl_rcv_msg':
      scsi_netlink.c:(.text+0x1850fa): undefined reference to `netlink_ack'
      scsi_netlink.c:(.text+0x185105): undefined reference to `skb_pull'
      scsi_netlink.c:(.text+0x18515d): undefined reference to `netlink_capable'
      drivers/built-in.o: In function `scsi_netlink_init':
      (.text+0x185244): undefined reference to `init_net'
      drivers/built-in.o: In function `scsi_netlink_init':
      (.text+0x185258): undefined reference to `__netlink_kernel_create'
      drivers/built-in.o: In function `scsi_netlink_exit':
      (.text+0x185291): undefined reference to `netlink_kernel_release'
      
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Tested-by: default avatarAnish Bhatt <anish@chelsio.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      95cd6f48
  9. Sep 15, 2014
  10. Jul 25, 2014
  11. Jul 17, 2014
  12. Jun 02, 2014
    • Nicholas Bellinger's avatar
      virtio-scsi: Enable DIF/DIX modes in SCSI host LLD · e6dc783a
      Nicholas Bellinger authored
      
      This patch updates virtscsi_probe() to setup necessary Scsi_Host
      level protection resources. (currently hardcoded to 1)
      
      It changes virtscsi_add_cmd() to attach outgoing / incoming
      protection SGLs preceeding the data payload, and is using the
      new virtio_scsi_cmd_req_pi->pi_bytes[out,in] field to signal
      to signal to vhost/scsi bytes to expect for protection data.
      
      (Add missing #include <linux/blkdev.h> for blk_integrity - sfr + nab)
      
      Acked-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      Cc: Michael S. Tsirkin <mst@redhat.com>
      Cc: Martin K. Petersen <martin.petersen@oracle.com>
      Cc: Christoph Hellwig <hch@lst.de>
      Cc: Hannes Reinecke <hare@suse.de>
      Cc: Sagi Grimberg <sagig@dev.mellanox.co.il>
      Cc: H. Peter Anvin <hpa@zytor.com>
      Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
      e6dc783a
  13. Apr 10, 2014
    • Dan Williams's avatar
      scsi: async sd resume · 3c31b52f
      Dan Williams authored
      async_schedule() sd resume work to allow disks and other devices to
      resume in parallel.
      
      This moves the entirety of scsi_device resume to an async context to
      ensure that scsi_device_resume() remains ordered with respect to the
      completion of the start/stop command.  For the duration of the resume,
      new command submissions (that do not originate from the scsi-core) will
      be deferred (BLKPREP_DEFER).
      
      It adds a new ASYNC_DOMAIN_EXCLUSIVE(scsi_sd_pm_domain) as a container
      of these operations.  Like scsi_sd_probe_domain it is flushed at
      sd_remove() time to ensure async ops do not continue past the
      end-of-life of the sdev.  The implementation explicitly refrains from
      reusing scsi_sd_probe_domain directly for this purpose as it is flushed
      at the end of dpm_resume(), potentially defeating some of the benefit.
      Given sdevs are quiesced it is permissible for these resume operations
      to bleed past the async_synchronize_full() calls made by the driver
      core.
      
      We defer the resolution of which pm callback to call until
      scsi_dev_type_{suspend|resume} time and guarantee that the callback
      parameter is never NULL.  With this in place the type of resume
      operation is encoded in the async function identifier.
      
      There is a concern that async resume could trigger PSU overload.  In the
      enterprise, storage enclosures enforce staggered spin-up regardless of
      what the kernel does making async scanning safe by default.  Outside of
      that context a user can disable asynchronous scanning via a kernel
      command line or CONFIG_SCSI_SCAN_ASYNC.  Honor that setting when
      deciding whether to do resume asynchronously.
      
      Inspired by Todd's analysis and initial proposal [2]:
      https://01.org/suspendresume/blogs/tebrandt/2013/hard-disk-resume-optimization-simpler-approach
      
      
      
      Cc: Len Brown <len.brown@intel.com>
      Cc: Phillip Susi <psusi@ubuntu.com>
      [alan: bug fix and clean up suggestion]
      Acked-by: default avatarAlan Stern <stern@rowland.harvard.edu>
      Suggested-by: default avatarTodd Brandt <todd.e.brandt@linux.intel.com>
      [djbw: kick all resume work to the async queue]
      Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
      3c31b52f
  14. Dec 19, 2013
    • Paul Gortmaker's avatar
      [SCSI] aci7xxx_old: delete decade+ obsolete driver · 1a4049dd
      Paul Gortmaker authored
      After getting warnings in an allyesconfig build[1] from this
      driver, I decided to remind myself just how old it was, and
      whether it warranted fixing.  In the Kconfig help text, I found:
      
        "This driver will eventually be phased out entirely"
      
      Going back to the history archive, I see the line was added[2]
      in Feb 2002, when we moved from v2.4.2.1 ---> v2.4.2.2
      
      So, with over a decade of notification, and multiple major releases
      since then, I think we can justify removing this.  Currently we have
      people wasting time building it during routine testing, and then
      wasting more time re-researching the known reported warnings, only to
      find that nobody really is willing to integrate the fixes[3] for it.
      
      A quick search didn't seem to indicate any active user base for it.
      If someone happens to have a quirky _old_ card that the eleven year
      old "new" driver doesn't work with, then it is entirely reasonable
      that they stick with a kernel version that predates this removal.
      
      [1] drivers/scsi/aic7xxx_old.c: In function ‘aic7xxx_register’:
          drivers/scsi/aic7xxx_old.c:7901:5: warning: case value ‘257’ not in enumerated type ‘ahc_chip’ [-Wswitch]
          drivers/scsi/aic7xxx_old.c:7898:5: warning: case value ‘513’ not in enumerated type ‘ahc_chip’ [-Wswitch]
          drivers/scsi/aic7xxx_old.c: In function ‘aic7xxx_load_seeprom’:
          drivers/scsi/aic7xxx_old.c:8517:5: warning: case value ‘257’ not in enumerated type ‘ahc_chip’ [-Wswitch]
          drivers/scsi/aic7xxx_old.c:8510:5: warning: case value ‘513’ not in enumerated type ‘ahc_chip’ [-Wswitch]
      
      [2] http://git.kernel.org/cgit/linux/kernel/git/tglx/history.git commit 44e8778c
      
      [3] https://lkml.org/lkml/2012/10/29/215
      
      
      
      Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
      Acked-by: default avatarHannes Reinecke <hare@suse.de>
      Acked-by: default avatarDoug Ledford <dledford@redhat.com>
      Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
      1a4049dd
  15. Dec 02, 2013
  16. Sep 03, 2013
  17. Aug 21, 2013
    • Anton Blanchard's avatar
      [SCSI] lpfc: Don't force CONFIG_GENERIC_CSUM on · f5944daa
      Anton Blanchard authored
      
      We want ppc64 to be able to select between optimised assembly
      checksum routines in big endian and the generic lib/checksum.c
      routines in little endian.
      
      The lpfc driver is forcing CONFIG_GENERIC_CSUM on which means
      we are unable to make the decision to enable it in the arch
      Kconfig. If the option exists it is always forced on.
      
      This got introduced in 3.10 via commit 6a7252fd ([SCSI] lpfc:
      fix up Kconfig dependencies). I spoke to Randy about it and
      the original issue was with CRC_T10DIF not being defined.
      
      As such, remove the select of CONFIG_GENERIC_CSUM.
      
      Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
      Cc: <stable@vger.kernel.org> # 3.10
      Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
      f5944daa
  18. Jun 27, 2013
  19. May 10, 2013
  20. Jan 21, 2013
  21. Jan 09, 2013
  22. Dec 01, 2012
  23. Nov 27, 2012
  24. Jul 20, 2012
    • Alan Cox's avatar
      [SCSI] aha152x: Allow use on 64bit systems · fa7250d6
      Alan Cox authored
      
      This is reported to work, known to work on PCMCIA and a code check shows no
      problems on the other bits of the code.
      
      Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
      Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
      fa7250d6
    • James Bottomley's avatar
      [SCSI] Remove scsi_wait_scan module · 6072609d
      James Bottomley authored
      
      scsi_wait_scan was introduced with asynchronous host scanning as a hack
      for distributions that weren't using proper udev based wait for root to
      appear in their initramfs scripts.  In 2.6.30 Commit
      
      c7510859
      Author: Rafael J. Wysocki <rjw@sisk.pl>
      Date:   Sun Apr 12 20:06:56 2009 +0200
      
          PM/Hibernate: Wait for SCSI devices scan to complete during resume
      
      Actually broke scsi_wait_scan because it renders
      scsi_complete_async_scans() a nop for modular SCSI if you include
      scsi_scans.h (which this module does).
      
      The lack of bug reports is sufficient proof that this module is no
      longer used.
      
      Cc: Jeff Mahoney <jeffm@suse.de>
      Cc: Dave Jones <davej@redhat.com>
      Cc: maximilian attems <max@stro.at>
      Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
      6072609d
  25. May 17, 2012
    • Paul Gortmaker's avatar
      scsi: delete the MCA specific drivers and driver code · a88dc06c
      Paul Gortmaker authored
      
      The support for CONFIG_MCA is being removed, since the 20
      year old hardware simply isn't capable of meeting today's
      software demands on CPU and memory resources.
      
      This commit removes the MCA specific SCSI drivers, and the
      MCA specific portions of code in dual role ISA/MCA drivers.
      Also, the MCA specific SCSI documentation is removed.
      
      Cc: James Bottomley <JBottomley@parallels.com>
      Cc: linux-scsi@vger.kernel.org
      Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
      a88dc06c
  26. Apr 23, 2012
  27. Mar 27, 2012
  28. Mar 08, 2012
  29. Feb 19, 2012
  30. Feb 13, 2012
  31. Jan 16, 2012
  32. Oct 31, 2011
  33. Sep 23, 2011
  34. Aug 27, 2011
Loading