From patchwork Sun Jul 9 14:56: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: 6977 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 (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4QzVb636clz3wjw for ; Sun, 9 Jul 2023 14:56:50 +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 4QzVb51hbnzq2; Sun, 9 Jul 2023 14:56:49 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4QzVb51FNxz2yWM; Sun, 9 Jul 2023 14:56:49 +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 (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4QzVb34SnMz2xYT for ; Sun, 9 Jul 2023 14:56:47 +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)) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4QzVb24XKLzg0 for ; Sun, 9 Jul 2023 14:56:46 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1688914607; 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=C9sGCnky5OKBsvjNQVovPwCbtg71O+L1CVPeT2xVILU=; b=H4xaABvwz1At1QPlbj+JjmDk2y1SxbTnC3QyStDVsnu6lCXH7BoA3cJhslKVISCH2Jh8Lk 00iseB8+hVgQYFCQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1688914607; 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=C9sGCnky5OKBsvjNQVovPwCbtg71O+L1CVPeT2xVILU=; b=E4GiLI2Cl9h80PRsvcg6RON+VMBTmX8MQNS0+ZGh455mO9CAxlv4nGU1QeiM0a1D/cRjC5 HJfXt2LZYeDSGFf1aSS4C86ozxUecj3OU2DwpfYaPzPW02J2zysJd8QBNSxTcoenNkhwnh 1Bq6vngArvjH4FxBqko66jRwzp+2xjSK1phIgKr4e4kZf7lNLxMEuOxiwKbmC9IPvYEn4T SWvxG4w6wcF3/KgPkEPUOhWT/OgIvPFDU8yjmEUbokqalBZH9pCcqFocOYrz13ofbwr1N5 diDEsQSbwhU6vePNYWfl6M7f+iVLJ1P7jSzeETdmAqW3tFPx5TdFOgNzzoCgQw== Message-ID: Date: Sun, 9 Jul 2023 14:56:00 +0000 MIME-Version: 1.0 Subject: [PATCH 3/3] linux: Align default IOMMU handling on aarch64 To: development@lists.ipfire.org References: From: =?utf-8?q?Peter_M=C3=BCller?= In-Reply-To: X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Resorting to strict default IOMMU handling has been our default for several Core Updates on x86_64 by now, so bring this security improvement to our aarch64 userbase as well. 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 a85704e96..dec736a56 100644 --- a/config/kernel/kernel.config.aarch64-ipfire +++ b/config/kernel/kernel.config.aarch64-ipfire @@ -7257,9 +7257,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