1. 25 7月, 2017 1 次提交
  2. 28 6月, 2017 1 次提交
  3. 16 3月, 2017 1 次提交
    • J
      scsi: lpfc: Finalize Kconfig options for nvme · 7d708033
      James Smart 提交于
      Reviewing the result of what was just added for Kconfig, we made a poor
      choice. It worked well for full kernel builds, but not so much for how
      it would be deployed on a distro.
      
      Here's the final result:
      - lpfc will compile in NVME initiator and/or NVME target support based
        on whether the kernel has the corresponding subsystem support.
        Kconfig is not used to drive this specifically for lpfc.
      - There is a module parameter, lpfc_enable_fc4_type, that indicates
        whether the ports will do FCP-only or FCP & NVME (NVME-only not yet
        possible due to dependency on fc transport). As FCP & NVME divvys up
        exchange resources, and given NVME will not be often initially, the
        default is changed to FCP only.
      Signed-off-by: NDick Kennedy <dick.kennedy@broadcom.com>
      Signed-off-by: NJames Smart <james.smart@broadcom.com>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      7d708033
  4. 07 3月, 2017 1 次提交
  5. 24 2月, 2017 1 次提交
  6. 23 2月, 2017 2 次提交
  7. 01 2月, 2017 1 次提交
  8. 15 12月, 2016 1 次提交
  9. 18 11月, 2016 1 次提交
  10. 09 11月, 2016 2 次提交
  11. 27 9月, 2016 7 次提交
  12. 13 8月, 2016 1 次提交
  13. 20 7月, 2016 1 次提交
  14. 13 7月, 2016 1 次提交
    • R
      scsi: ultrastor.c depends on ISA_DMA_API · 7e1ee441
      Randy Dunlap 提交于
      Fix build when CONFIG_ISA_DMA_API is not enabled. Fixes these build
      errors (on x86_64):
      
      ../drivers/scsi/ultrastor.c: In function 'ultrastor_14f_detect':
      ../drivers/scsi/ultrastor.c:519:5: error: implicit declaration of function 'request_dma' [-Werror=implicit-function-declaration]
           if (config.dma_channel && request_dma(config.dma_channel,"Ultrastor")) {
           ^
      ../drivers/scsi/ultrastor.c: In function 'ultrastor_release':
      ../drivers/scsi/ultrastor.c:658:3: error: implicit declaration of function 'free_dma' [-Werror=implicit-function-declaration]
         free_dma(shost->dma_channel);
         ^
      Signed-off-by: NRandy Dunlap <rdunlap@infradead.org>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      7e1ee441
  15. 16 4月, 2016 1 次提交
  16. 12 4月, 2016 2 次提交
    • F
      g_ncr5380: Remove CONFIG_SCSI_GENERIC_NCR53C400 · 9d376402
      Finn Thain 提交于
      This change brings a number of improvements: fewer macros, better test
      coverage, simpler code and sane Kconfig options. The downside is a small
      chance of incompatibility (which seems unavoidable).
      
      CONFIG_SCSI_GENERIC_NCR53C400 exists to enable or inhibit pseudo DMA
      transfers when the driver is used with 53C400-compatible cards. Thanks to
      Ondrej Zary's patches, PDMA now works which means it can be enabled
      unconditionally.
      
      Due to bad design, CONFIG_SCSI_GENERIC_NCR53C400 ties together unrelated
      functionality as it sets both PSEUDO_DMA and BIOSPARAM macros. This patch
      effectively enables PSEUDO_DMA and disables BIOSPARAM.
      
      The defconfigs and the Kconfig default leave CONFIG_SCSI_GENERIC_NCR53C400
      undefined. Red Hat 9 and CentOS 2.1 were the same. This leaves both
      PSEUDO_DMA and BIOSPARAM disabled. The effect of this patch should be
      better performance from enabling PSEUDO_DMA.
      
      On the other hand, Debian 4 and SLES 10 had CONFIG_SCSI_GENERIC_NCR53C400
      enabled, so both PSEUDO_DMA and BIOSPARAM were enabled. This patch might
      affect configurations like this by disabling BIOSPARAM. My best guess is
      that this could be a problem only in the vanishingly rare case that
      1) the CHS values stored in the boot device partition table are wrong and
      2) a 5380 card is in use (because PDMA on 53C400 used to be broken).
      Signed-off-by: NFinn Thain <fthain@telegraphics.com.au>
      Reviewed-by: NHannes Reinecke <hare@suse.com>
      Tested-by: NOndrej Zary <linux@rainbow-software.org>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      9d376402
    • R
      scsi: reduce CONFIG_SCSI_CONSTANTS=y impact by 8k · e1f0bce3
      Rasmus Villemoes 提交于
      On 64 bit, struct error_info has 6 bytes of padding, which amounts to
      over 4k of wasted space in the additional[] array. We could easily get
      rid of that by instead using separate arrays for the codes and the
      pointers. However, we can do even better than that and save an
      additional 6 bytes per entry: In the table, just store the sizeof()
      the corresponding string literal. The cumulative sum of these is then
      the appropriate offset into additional_text, which is built from the
      concatenation (with '\0's inbetween) of the strings.
      
      $ scripts/bloat-o-meter /tmp/vmlinux vmlinux
      add/remove: 0/0 grow/shrink: 1/1 up/down: 24/-8488 (-8464)
      function                                     old     new   delta
      scsi_extd_sense_format                       136     160     +24
      additional                                 11312    2824   -8488
      
      The Kconfig help text used to say that CONFIG_SCSI_CONSTANTS=y costs
      around 75 KB, but that was a little exaggerated. The actual number was
      closer to 44K, and 36K with this patch.
      Signed-off-by: NRasmus Villemoes <linux@rasmusvillemoes.dk>
      Reviewed-by: NHannes Reinecke <hare@suse.com>
      Tested-by: NDouglas Gilbert <dgilbert@interlog.com>
      Reviewed-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      e1f0bce3
  17. 06 3月, 2016 1 次提交
  18. 07 1月, 2016 1 次提交
  19. 19 12月, 2015 1 次提交
  20. 12 12月, 2015 1 次提交
  21. 26 11月, 2015 1 次提交
  22. 21 11月, 2015 2 次提交
    • A
      scsi: hpsa: select CONFIG_SCSI_SAS_ATTR · 653cfb85
      Arnd Bergmann 提交于
      The hpsa driver recently started using the sas transport class, but it
      does not ensure that the corresponding code is actually built, which
      may lead to a link error:
      
      drivers/built-in.o: In function `hpsa_free_sas_phy':
      (.text+0x1ce874): undefined reference to `sas_port_delete_phy'
      (.text+0x1ce87c): undefined reference to `sas_phy_free'
      drivers/built-in.o: In function `hpsa_alloc_sas_port':
      (.text+0x1ceb9c): undefined reference to `sas_port_alloc_num'
      (.text+0x1ceba8): undefined reference to `sas_port_add'
      drivers/built-in.o: In function `hpsa_init':
      (.init.text+0x8838): undefined reference to `sas_attach_transport'
      (.init.text+0x8868): undefined reference to `sas_release_transport
      
      This adds 'select SCSI_SAS_ATTR' in the Kconfig entry, just like we do
      for all other drivers using those functions.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Fixes: d04e62b9 ("hpsa: add in sas transport class")
      Reviewed-by: NChristoph Hellwig <hch@lst.de>
      Acked-by: NDon Brace <don.brace@pmcs.com>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      653cfb85
    • A
      scsi: advansys needs ISA dma api for ISA support · 2b8bbdb9
      Arnd Bergmann 提交于
      The advansys drvier uses the request_dma function that is used on ISA
      machines for the internal DMA controller, which causes build errors
      on platforms that have ISA slots but do not provide the ISA DMA API:
      
      drivers/scsi/advansys.c: In function 'advansys_board_found':
      drivers/scsi/advansys.c:11300:10: error: implicit declaration of function 'request_dma' [-Werror=implicit-function-declaration]
      
      The problem now showed up in ARM randconfig builds after commit
      6571fb3f ("advansys: Update to version 3.5 and remove compilation
      warning") made it possible to build on platforms that have neither
      VIRT_TO_BUS nor ISA_DMA_API but that do have ISA.
      
      This adds the missing dependency.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Reviewed-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      2b8bbdb9
  23. 12 11月, 2015 1 次提交
    • S
      mpt3sas: Single driver module which supports both SAS 2.0 & SAS 3.0 HBAs · c84b06a4
      Sreekanth Reddy 提交于
      Modified the mpt3sas driver to have a single driver module which
      supports both SAS 2.0 & SAS 3.0 HBA devices.
      
      * Added SAS 2.0 HBA device IDs to the mpt3sas_pci_table pci table.
      
      * Created two separate SCSI host templates for SAS2 and SAS3 HBAs so
        that, during the driver load time driver can use corresponding host
        template(based the pci device ID) while registering a scsi host
        adapter instance for that pci device.
      
      * Registered two IOCTL devices, mpt2ctl is for SAS2 HBAs & mpt3ctl for
        SAS3 HBAs. Also updated the code to make sure that mpt2ctl device
        processes only those ioctl cmds issued for the SAS2 HBAs and mpt3ctl
        device processes only those ioctl cmds issued for the SAS3 HBAs.
      
      * Added separate indexing for SAS2 and SAS3 HBAs.
      
      * Replaced compile time check 'MPT2SAS_SCSI' to run time check
        'hba_mpi_version_belonged' whereever needed.
      
      * Aliased this merged driver to mpt2sas using MODULE_ALIAS.
      
      * Moved global varaible 'driver_name' to per adapter instance variable.
      
      * Created two raid function template and used corresponding raid
        function templates based on the run time check
        'hba_mpi_version_belonged'.
      
      * Moved mpt2sas_warpdrive.c file from mpt2sas to mpt3sas folder and
        renamed it as mpt3sas_warpdrive.c.
      
      * Also renamed the functions in mpt3sas_warpdrive.c file to follow
        current driver function name convention.
      
      * Updated the Makefile to build mpt3sas_warpdrive.o file for these
        WarpDrive-specific functions.
      
      * Also in function mpt3sas_setup_direct_io(), used sector_div() API
        instead of division operator (which gives compilation errors on 32 bit
        machines).
      
      * Removed mpt2sas files, mpt2sas directory & mpt3sas_module.c file.
      
      * Added module parameter 'hbas_to_enumerate' which permits using this
        merged driver as a legacy mpt2sas driver or as a legacy mpt3sas
        driver.
      
        Here are the available options for this module parameter:
      
         0 - Merged driver which enumerates both SAS 2.0 & SAS 3.0 HBAs
         1 - Acts as legacy mpt2sas driver, which enumerates only SAS 2.0 HBAs
         2 - Acts as legacy mpt3sas driver, which enumerates only SAS 3.0 HBAs
      
      * Removed mpt2sas entries from SCSI's Kconfig and Makefile files.
      Signed-off-by: NSreekanth Reddy <Sreekanth.Reddy@avagotech.com>
      Reviewed-by: NChristoph Hellwig <hch@lst.de>
      Reviewed-by: NHannes Reinecke <hare@suse.de>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      c84b06a4
  24. 29 9月, 2015 1 次提交
  25. 31 7月, 2015 1 次提交
  26. 20 6月, 2015 1 次提交
  27. 26 5月, 2015 4 次提交