Revert "dwc: re-rewrite barrier part"
authorEmmanuel Vadot <manu@FreeBSD.org>
Mon, 16 Oct 2023 19:43:36 +0000 (21:43 +0200)
committerEmmanuel Vadot <manu@FreeBSD.org>
Mon, 16 Oct 2023 19:48:19 +0000 (21:48 +0200)
commit0cb63dcac446df85787cc0a77d4d38d01ff92913
tree9fc7edff7effd724597be933495ab24f6b8b46ef
parent8f9f7b4a427f2518e978600794f013cb711dfb86
Revert "dwc: re-rewrite barrier part"

Turns out we need all the barrier.
The one before writing the OWN bit is needed so the DMA engine
have coherent data, the second one (after the OWN bit is set) is
also needed because the DMA buffers are allocated with VM_MEMATTR_DEFAULT
whic equals to being cached.

This reverts commit 2b4f615e7d4720b16007cfa8aaedf720f572067a.
This reverts commit 4870346488051b9c4a1dc8b11cab55d4e5b7c230.

Reported by: mmel
sys/dev/dwc/dwc1000_dma.c