Make sure to create DMA'able memory for statistics block. This was
missed in r212061 and it caused crashes for 570x controllers as controller DMAed statistics to physical address 0. Reported by: kan
This commit is contained in:
parent
33e98ade53
commit
12c65daeaf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=212302
@ -2258,6 +2258,15 @@ bge_dma_alloc(struct bge_softc *sc)
|
||||
if (error)
|
||||
return (error);
|
||||
|
||||
/* Create tag for statistics block. */
|
||||
error = bge_dma_ring_alloc(sc, PAGE_SIZE, BGE_STATS_SZ,
|
||||
&sc->bge_cdata.bge_stats_tag,
|
||||
(uint8_t **)&sc->bge_ldata.bge_stats,
|
||||
&sc->bge_cdata.bge_stats_map,
|
||||
&sc->bge_ldata.bge_stats_paddr, "statistics block");
|
||||
if (error)
|
||||
return (error);
|
||||
|
||||
/* Create tag for jumbo RX ring. */
|
||||
if (BGE_IS_JUMBO_CAPABLE(sc)) {
|
||||
error = bge_dma_ring_alloc(sc, PAGE_SIZE, BGE_JUMBO_RX_RING_SZ,
|
||||
|
Loading…
Reference in New Issue
Block a user