Browse Source

[tg3] Fix excessive DMA alignment.

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>
tags/v1.20.1
Thomas Miletich 12 years ago
parent
commit
ced1493c02
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      src/drivers/net/tg3/tg3.h

+ 1
- 2
src/drivers/net/tg3/tg3.h View File

@@ -3277,8 +3277,7 @@ struct tg3 {
3277 3277
 #define TG3_TX_RING_SIZE		512
3278 3278
 #define TG3_DEF_TX_RING_PENDING		(TG3_TX_RING_SIZE - 1)
3279 3279
 
3280
-/* FIXME: look up alignment requirement in datasheet, page align for now */
3281
-#define	TG3_DMA_ALIGNMENT	4096
3280
+#define	TG3_DMA_ALIGNMENT	16
3282 3281
 
3283 3282
 #define TG3_RX_STD_DMA_SZ		(1536 + 64 + 2)
3284 3283
 

Loading…
Cancel
Save