lkml.org 
[lkml]   [2013]   [Jul]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 58/98] [SCSI] mpt2sas: fix firmware failure with wrong task attribute
    Date
    3.5.7.17 -stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Sreekanth Reddy <Sreekanth.Reddy@lsi.com>

    commit 48ba2efc382f94fae16ca8ca011e5961a81ad1ea upstream.

    When SCSI command is received with task attribute not set, set it to SIMPLE.
    Previously it is set to untagged. This causes the firmware to fail the commands.

    Signed-off-by: Sreekanth Reddy <Sreekanth.Reddy@lsi.com>
    Signed-off-by: James Bottomley <JBottomley@Parallels.com>
    Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
    ---
    drivers/scsi/mpt2sas/mpt2sas_scsih.c | 6 +-----
    1 file changed, 1 insertion(+), 5 deletions(-)

    diff --git a/drivers/scsi/mpt2sas/mpt2sas_scsih.c b/drivers/scsi/mpt2sas/mpt2sas_scsih.c
    index 9cfe117..4d8bd35 100644
    --- a/drivers/scsi/mpt2sas/mpt2sas_scsih.c
    +++ b/drivers/scsi/mpt2sas/mpt2sas_scsih.c
    @@ -3999,11 +3999,7 @@ _scsih_qcmd_lck(struct scsi_cmnd *scmd, void (*done)(struct scsi_cmnd *))
    else
    mpi_control |= MPI2_SCSIIO_CONTROL_SIMPLEQ;
    } else
    -/* MPI Revision I (UNIT = 0xA) - removed MPI2_SCSIIO_CONTROL_UNTAGGED */
    -/* mpi_control |= MPI2_SCSIIO_CONTROL_UNTAGGED;
    - */
    - mpi_control |= (0x500);
    -
    + mpi_control |= MPI2_SCSIIO_CONTROL_SIMPLEQ;
    } else
    mpi_control |= MPI2_SCSIIO_CONTROL_SIMPLEQ;
    /* Make sure Device is not raid volume.
    --
    1.8.1.2


    \
     
     \ /
      Last update: 2013-07-11 18:41    [W:2.618 / U:0.016 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site