Searched hist:df1ec1b9d0df57e96011f175418dc95b1af46821 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/net/ethernet/qualcomm/emac/ |
H A D | emac-mac.c | diff 3f7832c26cc0cad2245981f777f3ee684399ce93 Thu Oct 12 12:42:04 CDT 2017 Timur Tabi <timur@codeaurora.org> Revert "net: qcom/emac: enforce DMA address restrictions"
This reverts commit df1ec1b9d0df57e96011f175418dc95b1af46821.
It turns out that memory allocated via dma_alloc_coherent is always aligned to the size of the buffer, so there's no way the RRD and RFD can ever be in separate 32-bit regions.
Signed-off-by: Timur Tabi <timur@codeaurora.org> Signed-off-by: David S. Miller <davem@davemloft.net> diff df1ec1b9d0df57e96011f175418dc95b1af46821 Wed Oct 11 14:52:25 CDT 2017 Timur Tabi <timur@codeaurora.org> net: qcom/emac: enforce DMA address restrictions
The EMAC has a restriction that the upper 32 bits of the base addresses for the RFD and RRD rings must be the same. The ensure that restriction, we allocate twice the space for the RRD and locate it at an appropriate address.
We also re-arrange the allocations so that invalid addresses are even less likely.
Signed-off-by: Timur Tabi <timur@codeaurora.org> Signed-off-by: David S. Miller <davem@davemloft.net>
|