Skip to content

Commit b559b99

Browse files
Karan Tilak Kumarmartinkpetersen
authored andcommitted
scsi: fnic: Replace DMA mask of 64 bits with 47 bits
Cisco VIC supports only 47 bits. If the host sends DMA addresses that are greater than 47 bits, it causes work queue (WQ) errors in the VIC. Link: https://lore.kernel.org/r/20220513205605.81788-1-kartilak@cisco.com Tested-by: Karan Tilak Kumar <kartilak@cisco.com> Co-developed-by: Dhanraj Jhawar <djhawar@cisco.com> Signed-off-by: Dhanraj Jhawar <djhawar@cisco.com> Co-developed-by: Sesidhar Baddela <sebaddel@cisco.com> Signed-off-by: Sesidhar Baddela <sebaddel@cisco.com> Signed-off-by: Arulprabhu Ponnusamy <arulponn@cisco.com> Signed-off-by: Karan Tilak Kumar <kartilak@cisco.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 9feb5c4 commit b559b99

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

drivers/scsi/fnic/fnic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
#define DRV_NAME "fnic"
4141
#define DRV_DESCRIPTION "Cisco FCoE HBA Driver"
42-
#define DRV_VERSION "1.6.0.53"
42+
#define DRV_VERSION "1.6.0.54"
4343
#define PFX DRV_NAME ": "
4444
#define DFX DRV_NAME "%d: "
4545

drivers/scsi/fnic/fnic_main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -612,10 +612,10 @@ static int fnic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
612612
pci_set_master(pdev);
613613

614614
/* Query PCI controller on system for DMA addressing
615-
* limitation for the device. Try 64-bit first, and
616-
* fail to 32-bit.
615+
* limitation for the device. Try 47-bit first, and
616+
* fail to 32-bit. Cisco VIC supports 47 bits only.
617617
*/
618-
err = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64));
618+
err = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(47));
619619
if (err) {
620620
err = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32));
621621
if (err) {

0 commit comments

Comments
 (0)