From patchwork Tue Nov 5 16:28:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Whitfield X-Patchwork-Id: 2006994 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XjYgV0rdhz1xyD for ; Wed, 6 Nov 2024 03:28:53 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1t8MQ8-0004My-Jf; Tue, 05 Nov 2024 16:28:44 +0000 Received: from smtp-relay-internal-1.internal ([10.131.114.114] helo=smtp-relay-internal-1.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1t8MQ6-0004LW-LS for kernel-team@lists.ubuntu.com; Tue, 05 Nov 2024 16:28:42 +0000 Received: from mail-oa1-f72.google.com (mail-oa1-f72.google.com [209.85.160.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 78D023F291 for ; Tue, 5 Nov 2024 16:28:42 +0000 (UTC) Received: by mail-oa1-f72.google.com with SMTP id 586e51a60fabf-2889e4e9a62so5932657fac.2 for ; Tue, 05 Nov 2024 08:28:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730824121; x=1731428921; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eiHhY2EGyPjQ1t+z9009PlhraLyp64RPPpQvq0XWZfc=; b=LSeCSCZpunbPmj5ZKhL1qtYzr4gwVqJC4QV5kK90L3wZnKfWPiLKBmxcBVF59QFvO3 8WK5OyFSLO4sBsee6GFYJiVyTk8s/zH/XLRbD6cl0yMpTdVmTYQr1na0mykcWPc/6kT7 0Ca9km+WNWW5YGawdQgc6U1H+sH88YN16v5baH27W1BSofP+k9TXWSAGuimluJW6ZDNv 2lC+mENo34TUxgBAvtyvYUEGpY8/UUIgctg46yFlmUyTZQINN496UNUv1ok4wLMdDAc2 62CA9Kt41oOppD7tjIBEDzrkohgCjSxWiVlKcLrx67RwCIzdm7DSo1UlnZiq/UnwjYOK yUUA== X-Gm-Message-State: AOJu0Yw4/uUKm6p3gl6Tyvi1VL4DugVU3DcT0K6c/sOnLtCflovQ3m3m VMRiu5G2G/IJfkQaed427RscyAdS0XuHZBnpmAO4WMpcjAoO3nR4AhxE5rw7RsPiknw3xy24Ti7 7ODl7L1+8fLbe1qL2aE+tMWzO/eWuVs0TeqY5/kmW5bPUyW2p20tjbhODPSaBFlH3Q2Nf/KgaLJ Q5huGNrG4d8A== X-Received: by 2002:a05:6870:3307:b0:287:7a8c:4f15 with SMTP id 586e51a60fabf-294844c54e7mr15364263fac.20.1730824121111; Tue, 05 Nov 2024 08:28:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IFxO9qUp8i2nN8gaYAghhs73uwMO+RluAfE+KtOXyGzQ6QXUihkCwJ15u5i5/UNPe+3BUuM+g== X-Received: by 2002:a05:6870:3307:b0:287:7a8c:4f15 with SMTP id 586e51a60fabf-294844c54e7mr15364251fac.20.1730824120822; Tue, 05 Nov 2024 08:28:40 -0800 (PST) Received: from localhost (172-10-233-79.lightspeed.sntcca.sbcglobal.net. [172.10.233.79]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7189cc7ff78sm2515374a34.44.2024.11.05.08.28.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Nov 2024 08:28:40 -0800 (PST) From: Ian Whitfield To: kernel-team@lists.ubuntu.com Subject: [SRU][j:linux-gcp-6.8][PATCH v2 1/1] UBUNTU: gcp: Enable IOMMU Passthrough by default Date: Tue, 5 Nov 2024 08:28:33 -0800 Message-ID: <20241105162833.15921-2-ian.whitfield@canonical.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241105162833.15921-1-ian.whitfield@canonical.com> References: <20241105162833.15921-1-ian.whitfield@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/2085904 This is a workaround for data-loss failures on C3-Metal, intended to be reverted after a long-term fix to IOMMU. Signed-off-by: Ian Whitfield --- debian.gcp-6.8/config/annotations | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/debian.gcp-6.8/config/annotations b/debian.gcp-6.8/config/annotations index ca5ed84c2bc9..a7e192536d80 100644 --- a/debian.gcp-6.8/config/annotations +++ b/debian.gcp-6.8/config/annotations @@ -5,6 +5,15 @@ include "../../debian.gcp/config/annotations" +CONFIG_IOMMU_DEFAULT_DMA_LAZY policy<{'amd64': 'n', 'arm64': 'n'}> +CONFIG_IOMMU_DEFAULT_DMA_LAZY note<'LP:2085904'> + +CONFIG_IOMMU_DEFAULT_DMA_STRICT policy<{'amd64': 'n', 'arm64': 'n'}> +CONFIG_IOMMU_DEFAULT_DMA_STRICT note<'LP:2085904'> + +CONFIG_IOMMU_DEFAULT_PASSTHROUGH policy<{'amd64': 'y', 'arm64': 'y'}> +CONFIG_IOMMU_DEFAULT_PASSTHROUGH note<'LP:2085904'> + CONFIG_RUST policy<{'amd64': '-', 'arm64': '-'}> CONFIG_RUST note<'TODO: update note'>