]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: qedi: Add the CRC size within iSCSI NVM image
authorNilesh Javali <nilesh.javali@cavium.com>
Thu, 30 Aug 2018 06:55:53 +0000 (23:55 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Oct 2018 06:55:59 +0000 (08:55 +0200)
commitdbd0ea4cfa2af92724b04e0f63fdf59349e1f9c8
tree1c894e7c6ce99582b54b6a4f141aff955344ab3d
parent319949c5e4a8a9622a96f9a1d23ca7f036c473f3
scsi: qedi: Add the CRC size within iSCSI NVM image

[ Upstream commit c77a2fa3ff8f73d1a485e67e6f81c64823739d59 ]

The QED driver commit, 1ac4329a1cff ("qed: Add configuration information
to register dump and debug data"), removes the CRC length validation
causing nvm_get_image failure while loading qedi driver:

[qed_mcp_get_nvm_image:2700(host_10-0)]Image [0] is too big - 00006008 bytes
where only 00006004 are available
[qedi_get_boot_info:2253]:10: Could not get NVM image. ret = -12

Hence add and adjust the CRC size to iSCSI NVM image to read boot info at
qedi load time.

Signed-off-by: Nilesh Javali <nilesh.javali@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/qedi/qedi.h
drivers/scsi/qedi/qedi_main.c