]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
MIPS: Alchemy: fix dbdma2
authorManuel Lauss <manuel.lauss@gmail.com>
Thu, 11 May 2023 15:30:10 +0000 (17:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Jun 2023 13:38:57 +0000 (15:38 +0200)
commit10130470bb0003b784f4656cc3ef2b9dc396ebdd
tree98954975794663865646d2ccbab740516f1f99f9
parentc313ba1565837de9ca96b8abf8a12b4e8d65ed0d
MIPS: Alchemy: fix dbdma2

[ Upstream commit 2d645604f69f3a772d58ead702f9a8e84ab2b342 ]

Various fixes for the Au1200/Au1550/Au1300 DBDMA2 code:

- skip cache invalidation if chip has working coherency circuitry.
- invalidate KSEG0-portion of the (physical) data address.
- force the dma channel doorbell write out to bus immediately with
  a sync.

Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/mips/alchemy/common/dbdma.c