Searched hist:"4668 ae1f" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/net/ethernet/broadcom/ |
H A D | bgmac.c | 4668ae1f Tue Apr 14 05:08:01 CDT 2015 Felix Fietkau <nbd@openwrt.org> bgmac: fix DMA rx corruption
The driver needs to inform the hardware about the first invalid (not yet filled) rx slot, by writing its DMA descriptor pointer offset to the BGMAC_DMA_RX_INDEX register.
This register was set to a value exceeding the rx ring size, effectively allowing the hardware constant access to the full ring, regardless of which slots are initialized.
To fix this issue, always mark the last filled rx slot as invalid.
Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: David S. Miller <davem@davemloft.net> 4668ae1f Tue Apr 14 05:08:01 CDT 2015 Felix Fietkau <nbd@openwrt.org> bgmac: fix DMA rx corruption The driver needs to inform the hardware about the first invalid (not yet filled) rx slot, by writing its DMA descriptor pointer offset to the BGMAC_DMA_RX_INDEX register. This register was set to a value exceeding the rx ring size, effectively allowing the hardware constant access to the full ring, regardless of which slots are initialized. To fix this issue, always mark the last filled rx slot as invalid. Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: David S. Miller <davem@davemloft.net>
|