[2/2] linux: Set default IOMMU handling to "strict" on 64-bit ARM

Message ID 0a0c2405-2e76-4c47-9959-6b511733d968@ipfire.org
State Staged
Commit 7f8b75f8badcfb58710093a4d352cff6fec59b70
Headers
Series [1/2] linux: Disable io_uring |

Commit Message

Peter Müller Oct. 13, 2023, 9:04 a.m. UTC
  This has been our default setting on x86_64 for quite some time now,
which is why this patch aligns the aarch64 kernel configuration to that
value.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
---
 config/kernel/kernel.config.aarch64-ipfire | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Comments

Michael Tremer Oct. 14, 2023, 11:41 a.m. UTC | #1
Hello,

Thanks for the patch. I do not quite see the connection to the first one of this patchset apart from that both changes affect the kernel. Please do not group things together into a patchset that do not have a direct connection.

-Michael

> On 13 Oct 2023, at 10:04, Peter Müller <peter.mueller@ipfire.org> wrote:
> 
> This has been our default setting on x86_64 for quite some time now,
> which is why this patch aligns the aarch64 kernel configuration to that
> value.
> 
> Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
> ---
> config/kernel/kernel.config.aarch64-ipfire | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/config/kernel/kernel.config.aarch64-ipfire b/config/kernel/kernel.config.aarch64-ipfire
> index 0d7c1ba8a..46bfb1bb3 100644
> --- a/config/kernel/kernel.config.aarch64-ipfire
> +++ b/config/kernel/kernel.config.aarch64-ipfire
> @@ -7190,9 +7190,9 @@ CONFIG_IOMMU_IO_PGTABLE_LPAE=y
> # CONFIG_IOMMU_IO_PGTABLE_DART is not set
> # end of Generic IOMMU Pagetable Support
> 
> -# CONFIG_IOMMU_DEFAULT_DMA_STRICT is not set
> +CONFIG_IOMMU_DEFAULT_DMA_STRICT=y
> # CONFIG_IOMMU_DEFAULT_DMA_LAZY is not set
> -CONFIG_IOMMU_DEFAULT_PASSTHROUGH=y
> +# CONFIG_IOMMU_DEFAULT_PASSTHROUGH is not set
> CONFIG_OF_IOMMU=y
> CONFIG_IOMMU_DMA=y
> CONFIG_ROCKCHIP_IOMMU=y
> -- 
> 2.35.3
  

Patch

diff --git a/config/kernel/kernel.config.aarch64-ipfire b/config/kernel/kernel.config.aarch64-ipfire
index 0d7c1ba8a..46bfb1bb3 100644
--- a/config/kernel/kernel.config.aarch64-ipfire
+++ b/config/kernel/kernel.config.aarch64-ipfire
@@ -7190,9 +7190,9 @@  CONFIG_IOMMU_IO_PGTABLE_LPAE=y
 # CONFIG_IOMMU_IO_PGTABLE_DART is not set
 # end of Generic IOMMU Pagetable Support
 
-# CONFIG_IOMMU_DEFAULT_DMA_STRICT is not set
+CONFIG_IOMMU_DEFAULT_DMA_STRICT=y
 # CONFIG_IOMMU_DEFAULT_DMA_LAZY is not set
-CONFIG_IOMMU_DEFAULT_PASSTHROUGH=y
+# CONFIG_IOMMU_DEFAULT_PASSTHROUGH is not set
 CONFIG_OF_IOMMU=y
 CONFIG_IOMMU_DMA=y
 CONFIG_ROCKCHIP_IOMMU=y