Skip to content

Commit

Permalink
[tg3] Fix excessive DMA alignment.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
thomil authored and mcb30 committed Jul 24, 2012
1 parent 183a70e commit ced1493
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/drivers/net/tg3/tg3.h
Expand Up @@ -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)

Expand Down

0 comments on commit ced1493

Please sign in to comment.