From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7F669C433FE for ; Mon, 16 May 2022 22:54:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349123AbiEPWyk (ORCPT ); Mon, 16 May 2022 18:54:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233809AbiEPWyg (ORCPT ); Mon, 16 May 2022 18:54:36 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14023419AA for ; Mon, 16 May 2022 15:54:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652741675; x=1684277675; h=date:from:to:cc:subject:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=mA98VrZe/rix7Ydo+Yw58bcGuuP+5pWFws31EDCu4pc=; b=Bg3ziZ0P58ra6PUrfWUvcKqaFaqVEuR2T2ipwShJMRFQOvatfUc0SJkO ogQg8vhyggZjMhtv7v4M3UcaYDPBfEuFke32u4HlL7G3jvdt7rCBz/VJ3 MuWnCtyv5tIUT/3GIAD5qW+wHWlcEuBO5h/SUDm5ShBZCun/QHOJ6orgH DMn1DQTbGP7u/jB3qpXf8xF4CB8NdyO3wE4Ixe0q17cD1GumvC4ypRvhy IquD8K2rEQChbj4ySw64xIuaoUuAu4+wbGRixJv7EM+LFCw4sAYVT8A5w A24CMZoWbvawQ9FS73akyIINLvagvcomyxDx2f8iGiKLn3pZreX0Mnyuq Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10349"; a="331602921" X-IronPort-AV: E=Sophos;i="5.91,231,1647327600"; d="scan'208";a="331602921" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 May 2022 15:54:33 -0700 X-IronPort-AV: E=Sophos;i="5.91,231,1647327600"; d="scan'208";a="544585021" Received: from jacob-builder.jf.intel.com (HELO jacob-builder) ([10.7.198.157]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 May 2022 15:54:33 -0700 Date: Mon, 16 May 2022 15:58:22 -0700 From: Jacob Pan To: Jason Gunthorpe Cc: Lu Baolu , Joerg Roedel , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , Paolo Bonzini , David Airlie , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , Daniel Vetter , Kevin Tian , Ashok Raj , Liu Yi L , Ning Sun , Will Deacon , Robin Murphy , Christoph Hellwig , Steve Wahl , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, jacob.jun.pan@linux.intel.com Subject: Re: [PATCH 6/7] x86/boot/tboot: Move tboot_force_iommu() to Intel IOMMU Message-ID: <20220516155822.6130dd03@jacob-builder> In-Reply-To: <20220516180628.GL1343366@nvidia.com> References: <20220514014322.2927339-1-baolu.lu@linux.intel.com> <20220514014322.2927339-7-baolu.lu@linux.intel.com> <20220516180628.GL1343366@nvidia.com> Organization: OTC X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jason, On Mon, 16 May 2022 15:06:28 -0300, Jason Gunthorpe wrote: > Unrelated, but when we are in the special secure IOMMU modes, do we > force ATS off? Specifically does the IOMMU reject TLPs that are marked > as translated? Yes, VT-d context entry has a Device TLB Enable bit, if 0, it means "Translation Requests (with or without PASID) and Translated Requests received and processed through this scalable-mode context-entry are blocked." Thanks, Jacob From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3967DC433EF for ; Mon, 16 May 2022 22:54:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id BC66A6114A; Mon, 16 May 2022 22:54:41 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9CTCnwSmVXkD; Mon, 16 May 2022 22:54:41 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp3.osuosl.org (Postfix) with ESMTPS id B565A60EB2; Mon, 16 May 2022 22:54:40 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 863D5C0032; Mon, 16 May 2022 22:54:40 +0000 (UTC) Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) by lists.linuxfoundation.org (Postfix) with ESMTP id 97970C002D for ; Mon, 16 May 2022 22:54:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 7655C4052E for ; Mon, 16 May 2022 22:54:38 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp2.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=intel.com Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MGz9Izx3QVO0 for ; Mon, 16 May 2022 22:54:37 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by smtp2.osuosl.org (Postfix) with ESMTPS id 98AE04010C for ; Mon, 16 May 2022 22:54:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652741677; x=1684277677; h=date:from:to:cc:subject:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=mA98VrZe/rix7Ydo+Yw58bcGuuP+5pWFws31EDCu4pc=; b=GJ2HmiRTfHt0GFd+PBAJpe00m29jlzfTm+RvzPlg12JBkrNFLYegQ4Dh P9ojGH2GHHGrxPVK1BI3UOVUjKyRAk6LJmhRSPs2g7yCeir2SC+Dxn6R1 /8KytsGJviOR8xMli4ZAW21TxivtWJJpK8XJOwHrN00lvKOPTA+UlY2zr QldY7H5fI576Ra91f5NoUVoBIVvQVGggr4rqJRxT7Ety0oSMfFtb5Po79 NFGjmOdx1lVUvs/5jeVVvuVagyPOlSb7Y6CWDwwrKDe95AUxGiu0szrA2 yX9iA95e2mtp62rXvD8CDueVInC7A3RUEqvYLiFkXdpDbx4c3EzrerE/E g==; X-IronPort-AV: E=McAfee;i="6400,9594,10349"; a="258548142" X-IronPort-AV: E=Sophos;i="5.91,231,1647327600"; d="scan'208";a="258548142" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 May 2022 15:54:34 -0700 X-IronPort-AV: E=Sophos;i="5.91,231,1647327600"; d="scan'208";a="544585021" Received: from jacob-builder.jf.intel.com (HELO jacob-builder) ([10.7.198.157]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 May 2022 15:54:33 -0700 Date: Mon, 16 May 2022 15:58:22 -0700 From: Jacob Pan To: Jason Gunthorpe Subject: Re: [PATCH 6/7] x86/boot/tboot: Move tboot_force_iommu() to Intel IOMMU Message-ID: <20220516155822.6130dd03@jacob-builder> In-Reply-To: <20220516180628.GL1343366@nvidia.com> References: <20220514014322.2927339-1-baolu.lu@linux.intel.com> <20220514014322.2927339-7-baolu.lu@linux.intel.com> <20220516180628.GL1343366@nvidia.com> Organization: OTC X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Cc: Steve Wahl , David Airlie , Joonas Lahtinen , Will Deacon , Christoph Hellwig , Ashok Raj , Ingo Molnar , Kevin Tian , Dave Hansen , Jani Nikula , Ning Sun , Borislav Petkov , Rodrigo Vivi , Thomas Gleixner , Tvrtko Ursulin , linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, Daniel Vetter , Paolo Bonzini , Robin Murphy X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: iommu-bounces@lists.linux-foundation.org Sender: "iommu" Hi Jason, On Mon, 16 May 2022 15:06:28 -0300, Jason Gunthorpe wrote: > Unrelated, but when we are in the special secure IOMMU modes, do we > force ATS off? Specifically does the IOMMU reject TLPs that are marked > as translated? Yes, VT-d context entry has a Device TLB Enable bit, if 0, it means "Translation Requests (with or without PASID) and Translated Requests received and processed through this scalable-mode context-entry are blocked." Thanks, Jacob _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu