]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[tg3] Fix excessive DMA alignment.
authorThomas Miletich <thomas.miletich@gmail.com>
Tue, 24 Jul 2012 13:07:05 +0000 (15:07 +0200)
committerMichael Brown <mcb30@ipxe.org>
Tue, 24 Jul 2012 14:50:11 +0000 (15:50 +0100)
Change the DMA alignment from 4096 bytes to 16 bytes, to conserve
available DMA memory.  The hardware doesn't have any specific
alignment requirements.

Signed-off-by: Thomas Miletich <thomas.miletich@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/tg3/tg3.h

index a56d784163833c18ef86ae937845d4a5f308ce48..1913cb166a5d070675a9e26b26e97ed4af3b8c3e 100644 (file)
@@ -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)