• Eric Moore's avatar
    [SCSI] mptlan: bug fix, only half the message frame is dma'd resulting in corruption · e1fc2b51
    Eric Moore authored
    NB = number of blocks.  This represents the number of blocks to
    transfer.  The block size is based on the message frame size provided
    in the ioc_facts. A value of zero indicates the entire message frame
    should be copied. This is two bit value.  So by setting this to
    non-zero vaule, you increase performance by reducing amount of data
    needing to be dma'd.  The value that is stored in ioc->ReqeustNB is
    sometimes a non-zero vaule, which creates a bug in mptlan, where not
    the entire message frame is getting transfer to firware, resulting in
    corruption.  This fix sets the default to zero, thus entire message
    frame is copied.
    Signed-off-by: default avatarEric Moore <Eric.Moore@lsi.com>
    Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
    e1fc2b51
mptlan.c 46.3 KB