diff options
author | Thomas Miletich <thomas.miletich@gmail.com> | 2012-07-24 15:07:05 +0200 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2012-07-24 15:50:11 +0100 |
commit | ced1493c021133fe34066a0e430c82ec5a5d40ff (patch) | |
tree | 3d10c9cb4e8048bb68553e86257563c6cc9f2d62 /src/drivers | |
parent | 183a70e8b783ec143e8c30296f1a7c3c7de193d7 (diff) | |
download | ipxe-ced1493c021133fe34066a0e430c82ec5a5d40ff.zip ipxe-ced1493c021133fe34066a0e430c82ec5a5d40ff.tar.gz ipxe-ced1493c021133fe34066a0e430c82ec5a5d40ff.tar.bz2 |
[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>
Diffstat (limited to 'src/drivers')
-rw-r--r-- | src/drivers/net/tg3/tg3.h | 3 |
1 files changed, 1 insertions, 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) |