From patchwork Fri Oct 13 09:04:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Peter_M=C3=BCller?= X-Patchwork-Id: 7281 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) client-signature ECDSA (secp384r1)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4S6LD46QpTz3wfc for ; Fri, 13 Oct 2023 09:04:20 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) client-signature ECDSA (secp384r1)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4S6LD43bhrz84; Fri, 13 Oct 2023 09:04:20 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4S6LD432bXz2xn3; Fri, 13 Oct 2023 09:04:20 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) client-signature ECDSA (secp384r1)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4S6LD22ZTWz2xn3 for ; Fri, 13 Oct 2023 09:04:18 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4S6LD11t1sz84 for ; Fri, 13 Oct 2023 09:04:16 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1697187857; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xftCU6TAe34AIBkU7N4jaNEC5JkmqtMPuV4DvOC0/NI=; b=0suC66fNHwZMoloFzFzb4knlZ3p8WrqpX+PJ115De3AdL/Y6O9Bed9S88bKVBIBMSiRM7W S13dBvDIke7vm3BA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1697187857; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xftCU6TAe34AIBkU7N4jaNEC5JkmqtMPuV4DvOC0/NI=; b=JplrWNAsIaPjYC6pEgBY6kN+VlyqO/AU3S2vBq1jlYJQ8ss9n/Hh5dAQSoMlmS2VMJF/cQ PnVN9uVsQYz/7qEzQWros5PyQHACKeX0jOa3/a3Farqm6GkuuT9UA4LcEr1dj7w2UArvaP 5GoBASYNGyuNX9ZhSCwCtYCVpRW2YbCpaCKdgiEOuajYg3uqg8bpavPbftnvE41r4jWohX jhQ+9IguqCUUv8PYbPPmhdhZs8fRdh3EC75vVtJEE0HF58ALtILmIlLZVvyhqepgZQxgua h94vxuGnG9yapNT3V6WiZG0X6J6hbhKmAF5qvaUQOWXmcZ1oO4b8vemgaOW+GA== Message-ID: <0a0c2405-2e76-4c47-9959-6b511733d968@ipfire.org> Date: Fri, 13 Oct 2023 09:04:00 +0000 MIME-Version: 1.0 Subject: [PATCH 2/2] linux: Set default IOMMU handling to "strict" on 64-bit ARM To: development@lists.ipfire.org References: From: =?utf-8?q?Peter_M=C3=BCller?= In-Reply-To: Message-ID-Hash: I55CPPXNCTC4UYM4S3GZJRICIRQX4ZVS X-Message-ID-Hash: I55CPPXNCTC4UYM4S3GZJRICIRQX4ZVS X-MailFrom: peter.mueller@ipfire.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: IPFire development talk Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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 --- 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