Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4420358pxb; Tue, 10 Nov 2020 16:28:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJx7nrcFLD20AeYS3o3GhOevoq6jVc6UrH+Gm4tbYsv7b+OuvLr7Jsf9uWYDILMpgqQD6ns5 X-Received: by 2002:a17:906:77cc:: with SMTP id m12mr22122530ejn.139.1605054503126; Tue, 10 Nov 2020 16:28:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605054503; cv=none; d=google.com; s=arc-20160816; b=CcQDjXoFDKQl0kNa6YP6MU4h6YP4h7ihDnRULaQ3GqplYskdConMzUKfPP3xst9HNH N3HSut90AqqXc3lc/jIkSkhTo7YIHphTAsR+PuiagS55eyQU4usc4MstZq6IkxYzWD5k JKFmCH0k4aNlUjaM6Tw2W6Z1U7SYogI1gyohNIV+N2LiayuukDa5R4i8FoIYQZx+YHdi ZmOBwGsOjetb6GShKARG0cFoiDAFerHd6YA+j1IghsZ78unsl1grlbV3SNZksGVxP8GK 9uqF0kCbSvV+/SodCaKv2jF3+owAyMd9WiEgU+lhxGjIN4g0/89mWY9KYhbxkQ0qrXX3 DvBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=2O6LIbW3W1fyPRRz6Q2ugAoXMb1CF9Vg+VkIYIaeEto=; b=m2jZt9xibqAZFTBt/sBO+GPdL1Mjjmsp8JUowNFbKsTAT4ldzYQS4ZZ4qXtPxBgPan ruH0WyZdI2xcYZKVgKboZdxaStBxJXDhdWh86UPhJ3VwtHlfmLNwWcr28E+42k/+DMUe SnVguMdUTS0Y2eCkEfZmAqx9qWTML8C7OoICmwBK4EAHByBUAR4IMD3P0Vt114cWCbw3 eeqRX+/s+OL6Qo8PnTpDw5y5GsEbHqUro/rxbTytMlpx0cYzMpylPvI2yYEPMeJQspSC +ElpU8tM3ApuBaAFPXOzDHSC24x8x/VHYLAFSQMMFEop+/MfW39DoD/GVGDT4q6UruFE fFSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lzTpU0r8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y14si250881eds.56.2020.11.10.16.27.52; Tue, 10 Nov 2020 16:28:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lzTpU0r8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731805AbgKKAZM (ORCPT + 99 others); Tue, 10 Nov 2020 19:25:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726706AbgKKAZM (ORCPT ); Tue, 10 Nov 2020 19:25:12 -0500 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 567D1C0613D1 for ; Tue, 10 Nov 2020 16:25:10 -0800 (PST) Received: by mail-ej1-x642.google.com with SMTP id i19so309313ejx.9 for ; Tue, 10 Nov 2020 16:25:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2O6LIbW3W1fyPRRz6Q2ugAoXMb1CF9Vg+VkIYIaeEto=; b=lzTpU0r87pk4y6h34io+WvlgUIGcBLyA7ro331I4mTZJeLaJR4TA//cDV8W5J/BQUY ND4Rxi7HVlG6Isz9aIu+NiblYCN/AMdvIG+p3HcHSRb2rg3mXcJTNf1cNykx8kLNh6o9 Ey7hiKYbqRCeTosc4zpX2vFY3z1AQLirY2i35nYzgh09Ef+VZYJeT1WmQNsCHYTS7hhk VqdzzAMc6EdY9cIb1hgG9h7zpbamGZ64NZJaKiFJQ1fo/EP+1N+oAyUvpfKNQk0sORWL gXHJHu9WbxjxEp8y4Lokg7Rrxjk3iq0h2A7LEi9PYUKwAmpjJ6UFadkPBP36DMA8zJZw n65g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2O6LIbW3W1fyPRRz6Q2ugAoXMb1CF9Vg+VkIYIaeEto=; b=d0mFykByG1rvZnChHYVVBY6apHprZpykrEhwBLENQWVj/PpimrBYI9jZ31/KaZcbfS FOSGyTtYSvJxe234Ph0aZg8Af0oXpAuxK8WZoXJ6uE4V7N5fpAD/B2Cma7NtlMIJBlPV uyTB9vJkS8SUCBD7McTiOYN3t/p4w0l+ObfsdJ+pmlOi19siatEkfMurKkGDuJ8Gm8TE l8G+TCx39ZFHBqsGqCl3/QsM1StoIeqUJaEhNH/Z4ARGXtHCOwLI4X/A30+3jKamJkwS QVVYy1saSAkEjZgBq+0OHPqw8H0/c1Uny6pdM9DnjV9Ha7GwprFbR58rXB325ECMzBNZ bfOQ== X-Gm-Message-State: AOAM532bb6J0Bjg72JlhWEa9XLMhVQ4FnVsKXZTgn2u2abPIvYzMwYwF 5aaCGzie17tJZkuYIOscAKSeUxSt0Ujs/dGI98E= X-Received: by 2002:a17:906:b312:: with SMTP id n18mr23363538ejz.353.1605054308883; Tue, 10 Nov 2020 16:25:08 -0800 (PST) MIME-Version: 1.0 References: <20201110071908.3133-1-zhenzhong.duan@gmail.com> <4cfa1f1827e0ccbfbc94de3beba64a4a141b2248.camel@linux.intel.com> In-Reply-To: <4cfa1f1827e0ccbfbc94de3beba64a4a141b2248.camel@linux.intel.com> From: Zhenzhong Duan Date: Wed, 11 Nov 2020 08:24:52 +0800 Message-ID: Subject: Re: [PATCH v2] iommu/vt-d: avoid unnecessory panic if iommu init fail in tboot system To: Lukasz Hawrylko Cc: linux-kernel , ning.sun@intel.com, Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, David Woodhouse , Lu Baolu , Joerg Roedel , iommu@lists.linux-foundation.org, tboot-devel@lists.sourceforge.net Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Lukasz, On Tue, Nov 10, 2020 at 11:53 PM Lukasz Hawrylko wrote: > > Hi Zhenzhong > > On Tue, 2020-11-10 at 15:19 +0800, Zhenzhong Duan wrote: > > "intel_iommu=off" command line is used to disable iommu but iommu is force > > enabled in a tboot system for security reason. > > > > However for better performance on high speed network device, a new option > > "intel_iommu=tboot_noforce" is introduced to disable the force on. > > > > By default kernel should panic if iommu init fail in tboot for security > > reason, but it's unnecessory if we use "intel_iommu=tboot_noforce,off". > > > > Fix the code setting force_on and move intel_iommu_tboot_noforce > > from tboot code to intel iommu code. > > > > Fixes: 7304e8f28bb2 ("iommu/vt-d: Correctly disable Intel IOMMU force on") > > Signed-off-by: Zhenzhong Duan > > --- > > v2: move ckeck of intel_iommu_tboot_noforce into iommu code per Baolu. > > I have check it on my TXT testing environment with latest TBOOT, > everything works as expected. Thanks very much for help checking, may I have your Tested-by? Zhenzhong