[ipxe-devel] [PATCH] [tg3] Fix excessive DMA alignment.
Thomas Miletich
thomas.miletich at gmail.com
Tue Jul 24 13:07:05 UTC 2012
Change the DMA alignment from 4096 bytes to 16 bytes, to conserve available DMA memory. The hardware doesn't have any specifiy alignment requirements.
Signed-off-by: Thomas Miletich<thomas.miletich at gmail.com>
---
src/drivers/net/tg3/tg3.h | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/drivers/net/tg3/tg3.h b/src/drivers/net/tg3/tg3.h
index a56d784..1913cb1 100644
--- a/src/drivers/net/tg3/tg3.h
+++ b/src/drivers/net/tg3/tg3.h
@@ -3277,8 +3277,7 @@ struct tg3 {
#define TG3_TX_RING_SIZE 512
#define TG3_DEF_TX_RING_PENDING (TG3_TX_RING_SIZE - 1)
-/* FIXME: look up alignment requirement in datasheet, page align for now */
-#define TG3_DMA_ALIGNMENT 4096
+#define TG3_DMA_ALIGNMENT 16
#define TG3_RX_STD_DMA_SZ (1536 + 64 + 2)
--
1.7.9.5
More information about the ipxe-devel
mailing list