[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20231221185152.327231-1-fido_max@inbox.ru>
Date: Thu, 21 Dec 2023 21:51:52 +0300
From: Maxim Kochetkov <fido_max@...ox.ru>
To: linux-riscv@...ts.infradead.org
Cc: linux-kernel@...r.kernel.org,
robh@...nel.org,
jiaxun.yang@...goat.com,
mpe@...erman.id.au,
aou@...s.berkeley.edu,
palmer@...belt.com,
paul.walmsley@...ive.com,
Maxim Kochetkov <fido_max@...ox.ru>
Subject: [PATCH 1/1] riscv: set ARCH_DMA_DEFAULT_COHERENT if RISCV_DMA_NONCOHERENT is not set
Not all the RISCV are DMA coherent by default. Moreover we have
RISCV_DMA_NONCOHERENT option.
So set ARCH_DMA_DEFAULT_COHERENT only when RISCV_DMA_NONCOHERENT is not set
Fixes: c00a60d6f4a1 ("of: address: always use dma_default_coherent for default coherency")
Signed-off-by: Maxim Kochetkov <fido_max@...ox.ru>
---
arch/riscv/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index d6824bec2c00..111c5d92d503 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -14,7 +14,7 @@ config RISCV
def_bool y
select ACPI_GENERIC_GSI if ACPI
select ACPI_REDUCED_HARDWARE_ONLY if ACPI
- select ARCH_DMA_DEFAULT_COHERENT
+ select ARCH_DMA_DEFAULT_COHERENT if !RISCV_DMA_NONCOHERENT
select ARCH_ENABLE_HUGEPAGE_MIGRATION if HUGETLB_PAGE && MIGRATION
select ARCH_ENABLE_SPLIT_PMD_PTLOCK if PGTABLE_LEVELS > 2
select ARCH_ENABLE_THP_MIGRATION if TRANSPARENT_HUGEPAGE
--
2.40.1
Powered by blists - more mailing lists