[PATCH 2/2] myri10ge: set 64bits consistent DMA mask

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jeff Garzik <jeff@...>
Cc: <netdev@...>
Date: Wednesday, August 6, 2008 - 10:15 am

Set 64bits consistent DMA mask since it improves performance
in some cases. No need to check the return value since it is
not required for the driver to work.

Signed-off-by: Brice Goglin <brice@myri.com> 
---
 drivers/net/myri10ge/myri10ge.c |    1 +
 1 file changed, 1 insertion(+)

Index: linux-2.6/drivers/net/myri10ge/myri10ge.c
===================================================================
--- linux-2.6.orig/drivers/net/myri10ge/myri10ge.c	2008-07-23 09:18:21.000000000 +0200
+++ linux-2.6/drivers/net/myri10ge/myri10ge.c	2008-08-04 13:22:14.000000000 +0200
@@ -3699,6 +3699,7 @@
 		dev_err(&pdev->dev, "Error %d setting DMA mask\n", status);
 		goto abort_with_netdev;
 	}
+	(void)pci_set_consistent_dma_mask(pdev, DMA_64BIT_MASK);
 	mgp->cmd = dma_alloc_coherent(&pdev->dev, sizeof(*mgp->cmd),
 				      &mgp->cmd_bus, GFP_KERNEL);
 	if (mgp->cmd == NULL)


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/2] myri10ge small updates for 2.6.27, Brice Goglin, (Wed Aug 6, 10:13 am)
[PATCH 2/2] myri10ge: set 64bits consistent DMA mask, Brice Goglin, (Wed Aug 6, 10:15 am)
[PATCH 1/2] myri10ge: update firmware headers, Brice Goglin, (Wed Aug 6, 10:14 am)
Re: [PATCH 1/2] myri10ge: update firmware headers, Jeff Garzik, (Thu Aug 7, 1:56 am)