From patchwork Wed Feb 21 08:56:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea Righi X-Patchwork-Id: 1901919 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 4Tfqs32MXyz23d2 for ; Wed, 21 Feb 2024 19:56:54 +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 1rciPB-0002JD-VA; Wed, 21 Feb 2024 08:56:42 +0000 Received: from smtp-relay-internal-0.internal ([10.131.114.225] helo=smtp-relay-internal-0.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1rciP6-0002J5-Oa for kernel-team@lists.ubuntu.com; Wed, 21 Feb 2024 08:56:36 +0000 Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) (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-0.canonical.com (Postfix) with ESMTPS id 6AFB53FA81 for ; Wed, 21 Feb 2024 08:56:36 +0000 (UTC) Received: by mail-ej1-f71.google.com with SMTP id a640c23a62f3a-a3ee38c40baso126681866b.0 for ; Wed, 21 Feb 2024 00:56:36 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708505796; x=1709110596; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=V+sX2/wavSIgETqm0qy0W3bKQsgios7fTHAE+MNTkCE=; b=QA+1R7qCr4YCWVNqMnta8aGRoGHlVrAQuCLMD/X2ecoy72KgI1RAlqIvJRqQTzeSOJ YTfrJBXOZj7WSHsIhYKJAVsfrWa6wLoV+7EDJVjdulJ00020R5KPi4HiMOgxSzYDnLRu T1az7Yfan1DdQO+wlvQwdYxMS55KW3UIwZsJDDpZoMEccRuSmaFuj+OE8qcso7/FlQc8 bcCN7e8X8s3Z+ON4+6eehsCbgxjhWQtToddLXFSo4NcjALsGb9+cOMq/ZwbFeEajeTBg o1Tgt1rqS3bqN0kqI5Pk3+T6/0PrRg7R2ktZjUaTwy2O+zZjZpCeVO1WNAI+S4H2aY7L dfbA== X-Gm-Message-State: AOJu0YxWevW3aDPU7hC9+XWsKJM0taZmcr6lLn4QTfDEDdo7FsGFySjH V1PAe7+KQqVT97cJzOkX/fXZpOyc8xccXiaTDrbWUMFMxT2it1Qfaxs0BC8uzEvL+fzVu7G+eIw 9zQ5vkqAIpNmHfKXDxq70bxtqG/H965ZjELk3kYRZqlQaWo6KuBYRm3BWFXstqxw427CSq6dslh Orngdp5zdMSA== X-Received: by 2002:a17:906:e246:b0:a3e:69eb:4492 with SMTP id gq6-20020a170906e24600b00a3e69eb4492mr5834178ejb.20.1708505796100; Wed, 21 Feb 2024 00:56:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IHG7I47R5EWgu5FYmUIgRrYjjmbIBB8/rw+QlvYboeJeoWRaIyk6WQyGkQ3SrBWs/y/sslqtw== X-Received: by 2002:a17:906:e246:b0:a3e:69eb:4492 with SMTP id gq6-20020a170906e24600b00a3e69eb4492mr5834169ejb.20.1708505795747; Wed, 21 Feb 2024 00:56:35 -0800 (PST) Received: from gpd.homenet.telecomitalia.it (host-79-51-63-186.retail.telecomitalia.it. [79.51.63.186]) by smtp.gmail.com with ESMTPSA id u6-20020a170906408600b00a3e70fec6a0sm3392660ejj.171.2024.02.21.00.56.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 00:56:35 -0800 (PST) From: Andrea Righi To: kernel-team@lists.ubuntu.com Subject: [U/N][PATCH 1/1] UBUNTU: [Config] enable Intel DMA remapping by default Date: Wed, 21 Feb 2024 09:56:33 +0100 Message-ID: <20240221085633.419512-1-andrea.righi@canonical.com> X-Mailer: git-send-email 2.43.0 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/1951440 We have tried in the past to enable CONFIG_INTEL_IOMMU_DEFAULT_ON and CONFIG_INTEL_IOMMU_SCALABLE_MODE_DEFAULT_ON (starting with Jammy), but there were multiple issues (especially with old hardware), so we ended up disabling these options afterwards, see LP: #1971699. Considering that IOMMU is enabled by default in upstream kernels, probably most of these issues are solved now (or old hardware has been decommissioned). Moreover, having this enabled by default can prevent potential issues with modern hardware and drivers (see for example LP #1958004). Signed-off-by: Andrea Righi Acked-by: Andrei Gherzan --- debian.master/config/annotations | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/debian.master/config/annotations b/debian.master/config/annotations index 5c9c4f9afb11..d459e470d806 100644 --- a/debian.master/config/annotations +++ b/debian.master/config/annotations @@ -321,8 +321,11 @@ CONFIG_INTEL_ATOMISP note<'LP: #2017444'> CONFIG_INTEL_ATOMISP2_PM policy<{'amd64': 'm'}> CONFIG_INTEL_ATOMISP2_PM note<'LP: #2017444'> -CONFIG_INTEL_IOMMU_DEFAULT_ON policy<{'amd64': 'n'}> -CONFIG_INTEL_IOMMU_DEFAULT_ON note<'LP: #1971699'> +CONFIG_INTEL_IOMMU_DEFAULT_ON policy<{'amd64': 'y'}> +CONFIG_INTEL_IOMMU_DEFAULT_ON note<'LP: #1951440'> + +CONFIG_INTEL_IOMMU_SCALABLE_MODE_DEFAULT_ON policy<{'amd64': 'y'}> +CONFIG_INTEL_IOMMU_SCALABLE_MODE_DEFAULT_ON note<'LP: #1951440'> CONFIG_IOMMU_DEBUGFS policy<{'amd64': 'n', 'arm64': 'n', 'armhf': 'n', 'ppc64el': 'n', 'riscv64': 'n', 's390x': 'n'}> CONFIG_IOMMU_DEBUGFS note<'LP: #1861057'> @@ -6567,7 +6570,6 @@ CONFIG_INTEL_IOATDMA policy<{'amd64': 'm'}> CONFIG_INTEL_IOMMU policy<{'amd64': 'y'}> CONFIG_INTEL_IOMMU_FLOPPY_WA policy<{'amd64': 'y'}> CONFIG_INTEL_IOMMU_PERF_EVENTS policy<{'amd64': 'y'}> -CONFIG_INTEL_IOMMU_SCALABLE_MODE_DEFAULT_ON policy<{'amd64': 'n'}> CONFIG_INTEL_IOMMU_SVM policy<{'amd64': 'y'}> CONFIG_INTEL_IPS policy<{'amd64': 'm'}> CONFIG_INTEL_ISHTP_ECLITE policy<{'amd64': 'm'}>