[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210723214031.3251801-6-atish.patra@wdc.com>
Date: Fri, 23 Jul 2021 14:40:31 -0700
From: Atish Patra <atish.patra@....com>
To: linux-kernel@...r.kernel.org
Cc: Atish Patra <atish.patra@....com>,
Albert Ou <aou@...s.berkeley.edu>,
Christoph Hellwig <hch@....de>, devicetree@...r.kernel.org,
Dmitry Vyukov <dvyukov@...gle.com>,
Frank Rowand <frowand.list@...il.com>,
Guo Ren <guoren@...ux.alibaba.com>,
iommu@...ts.linux-foundation.org, linux-riscv@...ts.infradead.org,
Marek Szyprowski <m.szyprowski@...sung.com>,
Palmer Dabbelt <palmer@...belt.com>,
Paul Walmsley <paul.walmsley@...ive.com>,
Rob Herring <robh+dt@...nel.org>,
Robin Murphy <robin.murphy@....com>,
Tobias Klauser <tklauser@...tanz.ch>
Subject: [RFC 5/5] RISC-V: Support a new config option for non-coherent DMA
In future, there will be more RISC-V platforms with non-coherent DMA.
Instead of selecting all the required config options in every soc, create
a new config that selects all the required configs related non-coherent
DMA.
Signed-off-by: Atish Patra <atish.patra@....com>
---
arch/riscv/Kconfig | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index 8fcceb8eda07..931b283c8ec9 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -209,6 +209,14 @@ config PGTABLE_LEVELS
config LOCKDEP_SUPPORT
def_bool y
+config RISCV_DMA_NONCOHERENT
+ bool
+ select ARCH_HAS_DMA_PREP_COHERENT
+ select ARCH_HAS_SYNC_DMA_FOR_DEVICE
+ select ARCH_HAS_SYNC_DMA_FOR_CPU
+ select ARCH_HAS_SETUP_DMA_OPS
+ select DMA_GLOBAL_POOL
+
source "arch/riscv/Kconfig.socs"
source "arch/riscv/Kconfig.erratas"
--
2.31.1
Powered by blists - more mailing lists