30 Sep, 2016

2 commits

  • Convert g_NCR5380 to use scsi_add_host instead of scsi_module.c Use
    pnp_driver and isa_driver to manage cards.

    In order to support multiple cards, new module parameter format is
    introduced. The old parameters are kept for compatibility.

    Signed-off-by: Ondrej Zary
    Acked-by: Finn Thain
    Signed-off-by: Martin K. Petersen

    Ondrej Zary
     
  • Remove deprecated __setup for parsing command line parameters.
    g_NCR5380.* parameters could be used instead.

    This might break existing setups with g_NCR5380 built-in (if there are
    any). But it has to go in order to remove the overrides[] array.

    Signed-off-by: Ondrej Zary
    Acked-by: Finn Thain
    Signed-off-by: Martin K. Petersen

    Ondrej Zary
     

27 Sep, 2016

6 commits

  • The driver has not seen any maintainer activity or other work that
    wasn't tree wide conversion or clenaups in the entire history of
    the git tree.

    Signed-off-by: Christoph Hellwig
    Reviewed-by: Hannes Reinicke
    Acked-by: Finn Thain
    Signed-off-by: Martin K. Petersen

    Christoph Hellwig
     
  • The driver has not seen any maintainer activity or other work that
    wasn't tree wide conversion or clenaups in the entire history of
    the git tree.

    Signed-off-by: Christoph Hellwig
    Reviewed-by: Hannes Reinicke
    Acked-by: Finn Thain
    Signed-off-by: Martin K. Petersen

    Christoph Hellwig
     
  • The driver has not seen any maintainer activity or other work that
    wasn't tree wide conversion or clenaups in the entire history of
    the git tree.

    Signed-off-by: Christoph Hellwig
    Reviewed-by: Hannes Reinicke
    Acked-by: Finn Thain
    Signed-off-by: Martin K. Petersen

    Christoph Hellwig
     
  • The driver has not seen any maintainer activity or other work that
    wasn't tree wide conversion or clenaups in the entire history of
    the git tree.

    Signed-off-by: Christoph Hellwig
    Reviewed-by: Hannes Reinicke
    Signed-off-by: Martin K. Petersen

    Christoph Hellwig
     
  • The driver has not seen any maintainer activity or other work that
    wasn't tree wide conversion or clenaups in the entire history of
    the git tree.

    Signed-off-by: Christoph Hellwig
    Reviewed-by: Hannes Reinicke
    Signed-off-by: Martin K. Petersen

    Christoph Hellwig
     
  • The driver has not seen any maintainer activity or other work that
    wasn't tree wide conversion or clenaups in the entire history of
    the git tree.

    Signed-off-by: Christoph Hellwig
    Reviewed-by: Hannes Reinicke
    Signed-off-by: Martin K. Petersen

    Christoph Hellwig
     

03 Sep, 2016

1 commit

  • added Documentation/scsi/smartpqi.txt

    [mkp: applied by hand]

    Reviewed-by: Kevin Barnett
    Reviewed-by: Scott Benesh
    Reviewed-by: Johannes Thumshirn
    Signed-off-by: Don Brace
    Reviewed-by: Tomas Henzl
    Signed-off-by: Martin K. Petersen

    Don Brace
     

31 Aug, 2016

1 commit

  • The driver that used the 'nodisconnect' parameter was removed in commit
    565bae6a4a8f ("[SCSI] 53c7xx: kill driver"). Related documentation was
    cleaned up in commit f37a7238d379 ("[SCSI] 53c7xx: fix removal
    fallout"), except for the remaining two mentions that are removed here.

    Signed-off-by: Finn Thain
    Reviewed-by: Geert Uytterhoeven
    Signed-off-by: Martin K. Petersen

    Finn Thain
     

19 Jun, 2016

1 commit


09 Jun, 2016

1 commit

  • sas_ata_strategy_handler() adds the works of the ata error handler to
    system_unbound_wq. This workqueue asynchronously runs work items, so the
    ata error handler will be performed concurrently on different CPUs. In
    this case, ->host_failed will be decreased simultaneously in
    scsi_eh_finish_cmd() on different CPUs, and become abnormal.

    It will lead to permanently inequality between ->host_failed and
    ->host_busy, and scsi error handler thread won't start running. IO
    errors after that won't be handled.

    Since all scmds must have been handled in the strategy handler, just
    remove the decrement in scsi_eh_finish_cmd() and zero ->host_busy after
    the strategy handler to fix this race.

    Fixes: 50824d6c5657 ("[SCSI] libsas: async ata-eh")
    Cc: stable@vger.kernel.org
    Signed-off-by: Wei Fang
    Reviewed-by: James Bottomley
    Signed-off-by: Martin K. Petersen

    Wei Fang
     

29 May, 2016

1 commit

  • Pull SCSI target updates from Nicholas Bellinger:
    "Here are the outstanding target pending updates for v4.7-rc1.

    The highlights this round include:

    - Allow external PR/ALUA metadata path be defined at runtime via top
    level configfs attribute (Lee)
    - Fix target session shutdown bug for ib_srpt multi-channel (hch)
    - Make TFO close_session() and shutdown_session() optional (hch)
    - Drop se_sess->sess_kref + convert tcm_qla2xxx to internal kref
    (hch)
    - Add tcm_qla2xxx endpoint attribute for basic FC jammer (Laurence)
    - Refactor iscsi-target RX/TX PDU encode/decode into common code
    (Varun)
    - Extend iscsit_transport with xmit_pdu, release_cmd, get_rx_pdu,
    validate_parameters, and get_r2t_ttt for generic ISO offload
    (Varun)
    - Initial merge of cxgb iscsi-segment offload target driver (Varun)

    The bulk of the changes are Chelsio's new driver, along with a number
    of iscsi-target common code improvements made by Varun + Co along the
    way"

    * 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending: (29 commits)
    iscsi-target: Fix early sk_data_ready LOGIN_FLAGS_READY race
    cxgbit: Use type ISCSI_CXGBIT + cxgbit tpg_np attribute
    iscsi-target: Convert transport drivers to signal rdma_shutdown
    iscsi-target: Make iscsi_tpg_np driver show/store use generic code
    tcm_qla2xxx Add SCSI command jammer/discard capability
    iscsi-target: graceful disconnect on invalid mapping to iovec
    target: need_to_release is always false, remove redundant check and kfree
    target: remove sess_kref and ->shutdown_session
    iscsi-target: remove usage of ->shutdown_session
    tcm_qla2xxx: introduce a private sess_kref
    target: make close_session optional
    target: make ->shutdown_session optional
    target: remove acl_stop
    target: consolidate and fix session shutdown
    cxgbit: add files for cxgbit.ko
    iscsi-target: export symbols
    iscsi-target: call complete on conn_logout_comp
    iscsi-target: clear tx_thread_active
    iscsi-target: add new offload transport type
    iscsi-target: use conn_transport->transport_type in text rsp
    ...

    Linus Torvalds
     

20 May, 2016

1 commit

  • Pull Documentation updates from Jon Corbet:
    "A bit busier this time around.

    The most interesting thing (IMO) this time around is some beginning
    infrastructural work to allow documents to be written using
    restructured text. Maybe someday, in a galaxy far far away, we'll be
    able to eliminate the DocBook dependency and have a much better
    integrated set of kernel docs. Someday.

    Beyond that, there's a new document on security hardening from Kees,
    the movement of some sample code over to samples/, a number of
    improvements to the serial docs from Geert, and the usual collection
    of corrections, typo fixes, etc"

    * tag 'docs-for-linus' of git://git.lwn.net/linux: (55 commits)
    doc: self-protection: provide initial details
    serial: doc: Use port->state instead of info
    serial: doc: Always refer to tty_port->mutex
    Documentation: vm: Spelling s/paltform/platform/g
    Documentation/memcg: update kmem limit doc as codes behavior
    docproc: print a comment about autogeneration for rst output
    docproc: add support for reStructuredText format via --rst option
    docproc: abstract terminating lines at first space
    docproc: abstract docproc directive detection
    docproc: reduce unnecessary indentation
    docproc: add variables for subcommand and filename
    kernel-doc: use rst C domain directives and references for types
    kernel-doc: produce RestructuredText output
    kernel-doc: rewrite usage description, remove duplicated comments
    Doc: correct the location of sysrq.c
    Documentation: fix common spelling mistakes
    samples: v4l: from Documentation to samples directory
    samples: connector: from Documentation to samples directory
    Documentation: xillybus: fix spelling mistake
    Documentation: x86: fix spelling mistakes
    ...

    Linus Torvalds
     

10 May, 2016

1 commit


28 Apr, 2016

2 commits


12 Apr, 2016

1 commit


24 Feb, 2016

1 commit

  • Change the MTMKPART operation of the MTIOCTOP ioctl so that it works
    also with current drives (LTO-5/6, etc.). Send a separate FORMAT MEDIUM
    command if the partition mode page indicates that this is required. Use
    LOAD to position the tape at the beginning of tape.

    The operation is extended so that if the argument is negative, its
    absolute value specifies the size of partition 0, which is the
    physically first partition of the tape.

    Signed-off-by: Kai Mäkisara
    Tested-by: Shane M Seymour
    Tested-by: Laurence Oberman
    Tested-by: Douglas Gilbert
    Signed-off-by: Martin K. Petersen

    Kai Makisara
     

10 Nov, 2015

1 commit

  • Change st driver to allow enabling or disabling debug output
    via sysfs file /sys/bus/scsi/drivers/st/debug_flag.

    Previously the only way to enable debug output was:

    1. loading the driver with the module parameter debug_flag=1
    2. an ioctl call (this method was also the only way to dynamically
    disable debug output).

    To use the ioctl you need a second tape drive (if you are
    actively testing the first tape drive) since a second process
    cannot open the first tape drive if it is in use.

    The this change is only functional if the value of the macro
    DEBUG in st.c is a non-zero value (which it is by default).

    Signed-off-by: Shane Seymour
    Reviewed-by: Laurence Oberman
    Acked-by: Kai Mäkisara
    Signed-off-by: James Bottomley

    Seymour, Shane M
     

26 Jun, 2015

1 commit


02 Jun, 2015

1 commit

  • This patch implements tape statistics in the st module via
    sysfs. Current no statistics are available for tape I/O and there
    is no easy way to reuse the block layer statistics for tape
    as tape is a character device and does not have perform I/O in
    sector sized chunks (the size of the data written to tape
    can change). For tapes we also need extra stats related to
    things like tape movement (via other I/O).

    There have been multiple end users requesting statistics
    including AT&T (and some HP customers who have not given
    permission to be named). It is impossible for them
    to investigate any issues related to tape performance
    in a non-invasive way.

    [jejb: eliminate PRId64]
    Signed-off-by: Shane Seymour
    Tested-by: Shane Seymour
    Reviewed-by: Christoph Hellwig
    Signed-off-by: James Bottomley

    Seymour, Shane M
     

06 Mar, 2015

1 commit

  • The IRQF_DISABLED flag is a NOOP and has been scheduled for removal
    since Linux v2.6.36 by commit 6932bf37bed4 ("genirq: Remove
    IRQF_DISABLED from core code").

    According to commit e58aa3d2d0cc ("genirq: Run irq handlers with
    interrupts disabled"), running IRQ handlers with interrupts
    enabled can cause stack overflows when the interrupt line of the
    issuing device is still active.

    This patch ends the grace period for IRQF_DISABLED (i.e.,
    SA_INTERRUPT in older versions of Linux) and removes the
    definition and all remaining usages of this flag.

    There's still a few non-functional references left in the kernel
    source:

    - The bigger hunk in Documentation/scsi/ncr53c8xx.txt is removed entirely
    as IRQF_DISABLED is gone now; the usage in older kernel versions
    (including the old SA_INTERRUPT flag) should be discouraged. The
    trouble of using IRQF_SHARED is a general problem and not specific to
    any driver.

    - I left the reference in Documentation/PCI/MSI-HOWTO.txt untouched since
    it has already been removed in linux-next.

    - All remaining references are changelogs that I suggest to keep.

    Signed-off-by: Valentin Rothberg
    Cc: Afzal Mohammed
    Cc: Arnd Bergmann
    Cc: Brian Norris
    Cc: Christoph Hellwig
    Cc: Dan Carpenter
    Cc: David Woodhouse
    Cc: Ewan Milne
    Cc: Eyal Perry
    Cc: Felipe Balbi
    Cc: Greg Kroah-Hartman
    Cc: H. Peter Anvin
    Cc: Hannes Reinecke
    Cc: Hongliang Tao
    Cc: Huacai Chen
    Cc: Jiri Kosina
    Cc: Jonathan Corbet
    Cc: Keerthy
    Cc: Laurent Pinchart
    Cc: Linus Torvalds
    Cc: Nishanth Menon
    Cc: Paul Bolle
    Cc: Peter Ujfalusi
    Cc: Peter Zijlstra
    Cc: Quentin Lambert
    Cc: Rajendra Nayak
    Cc: Ralf Baechle
    Cc: Santosh Shilimkar
    Cc: Sricharan R
    Cc: Thomas Gleixner
    Cc: Tony Lindgren
    Cc: Zhou Wang
    Cc: iss_storagedev@hp.com
    Cc: linux-mips@linux-mips.org
    Cc: linux-mtd@lists.infradead.org
    Link: http://lkml.kernel.org/r/1425565425-12604-1-git-send-email-valentinrothberg@gmail.com
    Signed-off-by: Ingo Molnar

    Valentin Rothberg
     

13 Dec, 2014

1 commit

  • Pull trivial tree update from Jiri Kosina:
    "Usual stuff: documentation updates, printk() fixes, etc"

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (24 commits)
    intel_ips: fix a type in error message
    cpufreq: cpufreq-dt: Move newline to end of error message
    ps3rom: fix error return code
    treewide: fix typo in printk and Kconfig
    ARM: dts: bcm63138: change "interupts" to "interrupts"
    Replace mentions of "list_struct" to "list_head"
    kernel: trace: fix printk message
    scsi: mpt2sas: fix ioctl in comment
    zbud, zswap: change module author email
    clocksource: Fix 'clcoksource' typo in comment
    arm: fix wording of "Crotex" in CONFIG_ARCH_EXYNOS3 help
    gpio: msm-v1: make boolean argument more obvious
    usb: Fix typo in usb-serial-simple.c
    PCI: Fix comment typo 'COMFIG_PM_OPS'
    powerpc: Fix comment typo 'CONIFG_8xx'
    powerpc: Fix comment typos 'CONFiG_ALTIVEC'
    clk: st: Spelling s/stucture/structure/
    isci: Spelling s/stucture/structure/
    usb: gadget: zero: Spelling s/infrastucture/infrastructure/
    treewide: Fix company name in module descriptions
    ...

    Linus Torvalds
     

27 Nov, 2014

1 commit

  • The task_collector mode (or "latency_injector", (C) Dan Willians) is an
    optional I/O path in libsas that queues up scsi commands instead of
    directly sending it to the hardware. It generall increases latencies
    to in the optiomal case slightly reduce mmio traffic to the hardware.

    Only the obsolete aic94xx driver and the mvsas driver allowed to use
    it without recompiling the kernel, and most drivers didn't support it
    at all.

    Remove the giant blob of code to allow better optimizations for scsi-mq
    in the future.

    Signed-off-by: Christoph Hellwig
    Reviewed-by: Hannes Reinecke
    Acked-by: Dan Williams

    Christoph Hellwig
     

25 Nov, 2014

1 commit


24 Nov, 2014

1 commit

  • Drop the now unused reason argument from the ->change_queue_depth method.
    Also add a return value to scsi_adjust_queue_depth, and rename it to
    scsi_change_queue_depth now that it can be used as the default
    ->change_queue_depth implementation.

    Signed-off-by: Christoph Hellwig
    Reviewed-by: Mike Christie
    Reviewed-by: Hannes Reinecke

    Christoph Hellwig
     

20 Nov, 2014

1 commit


12 Nov, 2014

3 commits

  • Remove the tagged argument from scsi_adjust_queue_depth, and just let it
    handle the queue depth. For most drivers those two are fairly separate,
    given that most modern drivers don't care about the SCSI "tagged" status
    of a command at all, and many old drivers allow queuing of multiple
    untagged commands in the driver.

    Instead we start out with the ->simple_tags flag set before calling
    ->slave_configure, which is how all drivers actually looking at
    ->simple_tags except for one worke anyway. The one other case looks
    broken, but I've kept the behavior as-is for now.

    Except for that we only change ->simple_tags from the ->change_queue_type,
    and when rejecting a tag message in a single driver, so keeping this
    churn out of scsi_adjust_queue_depth is a clear win.

    Now that the usage of scsi_adjust_queue_depth is more obvious we can
    also remove all the trivial instances in ->slave_alloc or ->slave_configure
    that just set it to the cmd_per_lun default.

    Signed-off-by: Christoph Hellwig
    Reviewed-by: Mike Christie
    Reviewed-by: Hannes Reinecke
    Reviewed-by: Martin K. Petersen

    Christoph Hellwig
     
  • Allow a driver to ask for block layer tags by setting .use_blk_tags in the
    host template, in which case it will always see a valid value in
    request->tag, similar to the behavior when using blk-mq. This means even
    SCSI "untagged" commands will now have a tag, which is especially useful
    when using a host-wide tag map.

    Signed-off-by: Christoph Hellwig
    Reviewed-by: Mike Christie
    Reviewed-by: Martin K. Petersen
    Reviewed-by: Hannes Reinecke

    Christoph Hellwig
     
  • This patch adds a debug_flag parameter that can be set on module load, and allows the DEBUG facility without a module recompile.
    Note that now DEBUG 1 is the default with this patch.

    Usage: modprobe st debug_flag=1

    Signed-off-by: Laurence Oberman
    Acked-by: Kai M??kisara
    Signed-off-by: Christoph Hellwig

    Laurence Oberman
     

29 Oct, 2014

1 commit


22 Oct, 2014

1 commit


20 Oct, 2014

1 commit


17 Sep, 2014

1 commit


07 Aug, 2014

1 commit

  • Pull trivial tree changes from Jiri Kosina:
    "Summer edition of trivial tree updates"

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (23 commits)
    doc: fix two typos in watchdog-api.txt
    irq-gic: remove file name from heading comment
    MAINTAINERS: Add miscdevice.h to file list for char/misc drivers.
    scsi: mvsas: mv_sas.c: Fix for possible null pointer dereference
    doc: replace "practise" with "practice" in Documentation
    befs: remove check for CONFIG_BEFS_RW
    scsi: doc: fix 'SCSI_NCR_SETUP_MASTER_PARITY'
    drivers/usb/phy/phy.c: remove a leading space
    mfd: fix comment
    cpuidle: fix comment
    doc: hpfall.c: fix missing null-terminate after strncpy call
    usb: doc: hotplug.txt code typos
    kbuild: fix comment in Makefile.modinst
    SH: add proper prompt to SH_MAGIC_PANEL_R2_VERSION
    ARM: msm: Remove MSM_SCM
    crypto: Remove MPILIB_EXTRA
    doc: CN: remove dead link, kerneltrap.org no longer works
    media: update reference, kerneltrap.org no longer works
    hexagon: update reference, kerneltrap.org no longer works
    doc: LSM: update reference, kerneltrap.org no longer works
    ...

    Linus Torvalds
     

18 Jul, 2014

1 commit

  • Obsolete; either use 'max_lun' if the host supports only a
    limited number of LUNs or BLIST_NOLUN if the target has
    problems addressing more than one LUN.

    Signed-off-by: Hannes Reinecke
    Reviewed-by: Ewan Milne
    Signed-off-by: Christoph Hellwig

    Hannes Reinecke
     

19 Jun, 2014

1 commit


19 May, 2014

1 commit


16 Mar, 2014

1 commit