]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[intelxl] Configure DMA mask as 64-bit
authorMichael Brown <mcb30@ipxe.org>
Tue, 24 Nov 2020 17:47:42 +0000 (17:47 +0000)
committerMichael Brown <mcb30@ipxe.org>
Tue, 24 Nov 2020 17:47:42 +0000 (17:47 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/intelxl.c
src/drivers/net/intelxlvf.c

index 578d6ff02825ffd95a0166487844b6f2f6b16500..14a5858f365329fcdfb49e0b5ddfb94f44cfba4c 100644 (file)
@@ -1718,7 +1718,6 @@ static int intelxl_probe ( struct pci_device *pci ) {
        pci_set_drvdata ( pci, netdev );
        netdev->dev = &pci->dev;
        memset ( intelxl, 0, sizeof ( *intelxl ) );
-       intelxl->dma = &pci->dma;
        intelxl->intr = INTELXL_PFINT_DYN_CTL0;
        intelxl_init_admin ( &intelxl->command, INTELXL_ADMIN_CMD,
                             &intelxl_admin_offsets );
@@ -1741,6 +1740,10 @@ static int intelxl_probe ( struct pci_device *pci ) {
                goto err_ioremap;
        }
 
+       /* Configure DMA */
+       intelxl->dma = &pci->dma;
+       dma_set_mask_64bit ( intelxl->dma );
+
        /* Reset the NIC */
        if ( ( rc = intelxl_reset ( intelxl ) ) != 0 )
                goto err_reset;
index dc2e3bf4e51bef76e1221fdd88448517ba6881a7..61ac5e5c0e430a828cadcecef7b1cbbff2f03965 100644 (file)
@@ -598,7 +598,6 @@ static int intelxlvf_probe ( struct pci_device *pci ) {
        pci_set_drvdata ( pci, netdev );
        netdev->dev = &pci->dev;
        memset ( intelxl, 0, sizeof ( *intelxl ) );
-       intelxl->dma = &pci->dma;
        intelxl->intr = INTELXLVF_VFINT_DYN_CTL0;
        intelxl_init_admin ( &intelxl->command, INTELXLVF_ADMIN,
                             &intelxlvf_admin_command_offsets );
@@ -621,6 +620,10 @@ static int intelxlvf_probe ( struct pci_device *pci ) {
                goto err_ioremap;
        }
 
+       /* Configure DMA */
+       intelxl->dma = &pci->dma;
+       dma_set_mask_64bit ( intelxl->dma );
+
        /* Locate PCI Express capability */
        intelxl->exp = pci_find_capability ( pci, PCI_CAP_ID_EXP );
        if ( ! intelxl->exp ) {