Handle PAE case correctly. You cannot effectively specify a 4GB
boundary in PAE case so use a 2GB boundary for PAE as suggested by jhb. Pointed out by: jhb Reviewed by: jhb
This commit is contained in:
parent
227209559d
commit
38cc61518b
@ -2272,7 +2272,7 @@ bge_dma_alloc(struct bge_softc *sc)
|
||||
/* Create parent tag for buffers. */
|
||||
boundary = 0;
|
||||
if ((sc->bge_flags & BGE_FLAG_4G_BNDRY_BUG) != 0)
|
||||
boundary = BGE_DMA_4G_BNDRY;
|
||||
boundary = BGE_DMA_BNDRY;
|
||||
error = bus_dma_tag_create(bus_get_dma_tag(sc->bge_dev),
|
||||
1, boundary, lowaddr, BUS_SPACE_MAXADDR, NULL,
|
||||
NULL, BUS_SPACE_MAXSIZE_32BIT, 0, BUS_SPACE_MAXSIZE_32BIT,
|
||||
|
@ -2487,10 +2487,14 @@ struct bge_gib {
|
||||
#define BGE_DMA_MAXADDR 0xFFFFFFFFFF
|
||||
#endif
|
||||
|
||||
#if (BUS_SPACE_MAXADDR > 0xFFFFFFFF)
|
||||
#define BGE_DMA_4G_BNDRY 0x100000000
|
||||
#ifdef PAE
|
||||
#define BGE_DMA_BNDRY 0x80000000
|
||||
#else
|
||||
#define BGE_DMA_4G_BNDRY 0
|
||||
#if (BUS_SPACE_MAXADDR > 0xFFFFFFFF)
|
||||
#define BGE_DMA_BNDRY 0x100000000
|
||||
#else
|
||||
#define BGE_DMA_BNDRY 0
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user