From patchwork Tue Sep 13 17:50:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: You-Sheng Yang X-Patchwork-Id: 1677399 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=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (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 4MRrbZ5G0Jz1ynx for ; Wed, 14 Sep 2022 03:50:34 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1oYA3F-0000Vf-OG; Tue, 13 Sep 2022 17:50:25 +0000 Received: from mail-pl1-f179.google.com ([209.85.214.179]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1oYA3E-0000VO-5d for kernel-team@lists.ubuntu.com; Tue, 13 Sep 2022 17:50:24 +0000 Received: by mail-pl1-f179.google.com with SMTP id jm11so12557016plb.13 for ; Tue, 13 Sep 2022 10:50:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date; bh=wKBJ0D1DseYNBhOm5pWy8nr3eYkf3Wd/Ln4Fcs3rOE4=; b=sSV7yOy6a2BdLY2swxMRvZwjK76smHu1HcXBFf/vAaPTlspyEpdEbV0uv0WRDC9zfz o9DWqn9ilBMMbEfj1/fNrJZVfgHP3xKB1Vt1sCUlYSpImvlLfq+rkm13TjWPHBZJtXVz lKWmwXEnGv8plKMjKFdRf1PTa/NWsPSkOUgznFcZvTBmfgwQ9QEZGb6/aAzbj7Zhu2Dz XfZ6fsilSG7+JFKBaCh2d2z6qhDZMXOmub6HooiUI0RUwyq1aHiaDzdORFGJCjk9l6wT wecI+/1yC49HwjJxYp9LjQNgLzIdLZMavS2OMcP4LgwlNoWj90XCmPKuN6Pc4c5ryrEi bSlQ== X-Gm-Message-State: ACgBeo3yL+pQh4e/lPYyMgueE2YCdgU8WJmlVYV0clq6I4zTfoVMNCRE G3mGwL9po2L3ClhxDlweFKx8beg+C9Y= X-Google-Smtp-Source: AA6agR5NuVg9ZamWVKUhN2a4ElIoLs8KtV10h05SlM4GXra86aDfcNoWp0j6uYuJSkZ5aU8mTGeEPA== X-Received: by 2002:a17:902:b207:b0:16f:2349:6116 with SMTP id t7-20020a170902b20700b0016f23496116mr32141449plr.80.1663091421802; Tue, 13 Sep 2022 10:50:21 -0700 (PDT) Received: from yewun.. (61-227-100-91.dynamic-ip.hinet.net. [61.227.100.91]) by smtp.gmail.com with ESMTPSA id z11-20020a170902cccb00b00173cfaed233sm8725768ple.62.2022.09.13.10.50.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Sep 2022 10:50:21 -0700 (PDT) From: You-Sheng Yang To: kernel-team@lists.ubuntu.com Subject: [PATCH 0/1][SRU][OEM-6.0/Unstable] use IOMMU passthrough mode for Intel IPUs on Intel Raptor Lake platforms Date: Wed, 14 Sep 2022 01:50:18 +0800 Message-Id: <20220913175019.1483658-1-vicamo.yang@canonical.com> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Received-SPF: pass client-ip=209.85.214.179; envelope-from=vicamo@gmail.com; helo=mail-pl1-f179.google.com 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" From: "You-Sheng Yang (vicamo)" BugLink: https://bugs.launchpad.net/bugs/1989041 [Impact] Intel iommu was turned on by default in mainline build v5.15.5 or jammy -generic kernel 5.15.0-12.12. This would breaks IPU6. For TGL and ADL platforms, it has been fixed in bug 1958004 for oem-5.14 and above. This patch adds a new ID for RPL. [Fix] Use IOMMU passthrough mode for IPU6 as it has its own iommu hardware. [Test Case] Apply the fix and kernel should print a new info line: Passthrough IOMMU for integrated Intel IPU and IPU6 camera should continue to work without intel_iommu=off work-around. [Where problems could occur] No. That's what it should have been done. [Other Info] Nominates only oem-6.0 and unstable for we have RPL IPU6 enabled on oem-6.0 and newer. zouxiaoh (1): UBUNTU: SAUCE: iommu: intel-ipu: use IOMMU passthrough mode for Intel IPUs on Raptor Lake drivers/iommu/intel/iommu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)