Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp472186pxu; Wed, 25 Nov 2020 07:45:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJymrcjMxVYftqyuP0rtJDO++155J4jCHvb9n5JDyss2zJhHqE7PJE0XWVnMP54Y9Tj2tL3I X-Received: by 2002:a17:906:6010:: with SMTP id o16mr3693461ejj.55.1606319118110; Wed, 25 Nov 2020 07:45:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606319118; cv=none; d=google.com; s=arc-20160816; b=vqWym+KMFheNU5bklxcPP+8GJmHzTi4ivTt/arekLKk/cMcJPGXH5RoAxc0/g8BlLd L2P9BlMfm4zdxlNOMAp7tSiRUJRPZTTYtbIE5Z8aAgS7ApY6gntmUUyWEHjg0nVJ7fAh Nblxbus0HWRhkC/tWDsyikngQYC9kZu4YGCKRH5wiXjW0vZ2Hnss6F8q+4S3+wPe0dGm sp4gfhr9VFw58mBuEzvMSj4QP4weBkanTl0oryR1Eum2AWYlEu35e2v4NQf5y1TR0kGP Fu/GBIeOdyj8c8UKbFYMj/Z4G2evdF5zbob+a81Iu1Kf2pcGdC4toyppME4KzrHGirXy E9Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=zJQ2hLwoYKnLT/mLeaSf+xgCMRB9d8OpY3uJGRpDrh8=; b=LL8jLQ9M30o13Y1zcVAe/6EtFVVjzOWfLETOvwz5NVv73/59LpIbV4ujG6q7KgT4rU jBVfugtoTfSBGSsg+WcjYDfVjUP4j72TvXEoA/71/aYuYfj3fvvQTb6smmUGkGUogUc4 5ZueoXMwGd5LwutW6x2yKjAftatirQDiAgu/E5FxHublb234D87C29WNuEamDWRjJ48S 2u4XcHujdKwoncchZhFMHVPeX5mXmT0nWntpnwOMVH4ZiCeQzSXVRRoPHkEagN/P5Dwk QuX5uEb+ftJPb6WXLcvlpHIV8OUbDdNE+Xgi44WsJk6g7S+iB4b8OWnqjVO2ZE0t/XjP lSgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nuSjByGq; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d64si1438684edd.257.2020.11.25.07.44.54; Wed, 25 Nov 2020 07:45:18 -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=nuSjByGq; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731720AbgKYPmA (ORCPT + 99 others); Wed, 25 Nov 2020 10:42:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730675AbgKYPl6 (ORCPT ); Wed, 25 Nov 2020 10:41:58 -0500 Received: from mail-qt1-x844.google.com (mail-qt1-x844.google.com [IPv6:2607:f8b0:4864:20::844]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1C95C0613D4 for ; Wed, 25 Nov 2020 07:41:57 -0800 (PST) Received: by mail-qt1-x844.google.com with SMTP id t5so1896283qtp.2 for ; Wed, 25 Nov 2020 07:41:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=zJQ2hLwoYKnLT/mLeaSf+xgCMRB9d8OpY3uJGRpDrh8=; b=nuSjByGqfM0DLOPHS8807/d2MHwZyQ0oMMJcegcmic4Jy1ihsuYDkdrbQzDnrQ9q2T HJ0PX5wyfoeAyfEC10mav6bnWlqqySIplmsuTG7QK2JfK/URX4sdDuNt6Rr0xUtzvPtE Chs6DLzUgP4cJiJoOWafEYZgCKU/EZ/fFxIkkKdpBPjUKkDxMF69psIK+4VrAghS7Zek tfa5NJYwkr7MPK8nohTHTDXnnq/40o6x1lsycNv1fZsecnnshQpG5mvx0T4dj95UmQGk ljmFWunS4mOE9UvlQLw1Kpfc+L5smnqYbCx7gcLpoAPgc19ixzF2GffUHQkrEKr3C9Jw OYbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=zJQ2hLwoYKnLT/mLeaSf+xgCMRB9d8OpY3uJGRpDrh8=; b=CCR4Bb6toyWL+4V4jXtJFgPoJheZmgbXXCJEsSHMURfzRrhUkmuzlIAnvUWtwKkSr2 ZTljLamm0XTPInTnET6VpQHQq0IWp/+TRzQUizJQtEUfoKuhDndmgz8wG8NdXubBex/8 pW/1gMDUWhbO/QsEO3/3Q9Lm/8d/pkkTpA+jjIJsEJi5Q1ZNhFwTNfedhcNWYszycL6O cQpzSNYewfEojtOnHm3Ymc01rXZgyiuT8idvsNOtFshNYDGKXAq/eEck7mNJj75sbn4d WH+Wx4iglvYssUIZihVItJOk5LGmbeaBNoTh+4U7CTn+kuloM3vUvJiN2+mNERfzGwtC I6+A== X-Gm-Message-State: AOAM532rq8ubWSWiiJXOU0bgZ+D0u8NpdyWvMDMKlvaN9VvZz9MMb8AH ozb9wOurc7J6RE4OJP830bE= X-Received: by 2002:ac8:4a8c:: with SMTP id l12mr3634691qtq.7.1606318916838; Wed, 25 Nov 2020 07:41:56 -0800 (PST) Received: from localhost.localdomain (209-6-208-110.s8556.c3-0.smr-cbr2.sbo-smr.ma.cable.rcncustomer.com. [209.6.208.110]) by smtp.gmail.com with ESMTPSA id z88sm2800542qtd.46.2020.11.25.07.41.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Nov 2020 07:41:56 -0800 (PST) Sender: Konrad Rzeszutek Wilk Date: Wed, 25 Nov 2020 10:41:53 -0500 From: Konrad Rzeszutek Wilk To: Will Deacon Cc: Lu Baolu , Thomas Gleixner , Ingo Molnar , Ning Sun , Joerg Roedel , Borislav Petkov , catalin.marinas@arm.com, kernel-team@android.com, x86@kernel.org, tboot-devel@lists.sourceforge.net, Adrian Huang , iommu@lists.linux-foundation.org, Ashok Raj , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] x86/tboot: Don't disable swiotlb when iommu is forced on Message-ID: <20201125154153.GA29929@localhost.localdomain> References: <20201125014124.4070776-1-baolu.lu@linux.intel.com> <160630605367.4096500.10722779964348157570.b4-ty@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <160630605367.4096500.10722779964348157570.b4-ty@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 25, 2020 at 02:05:15PM +0000, Will Deacon wrote: > On Wed, 25 Nov 2020 09:41:24 +0800, Lu Baolu wrote: > > After commit 327d5b2fee91c ("iommu/vt-d: Allow 32bit devices to uses DMA > > domain"), swiotbl could also be used for direct memory access if IOMMU > > is enabled but a device is configured to pass through the DMA translation. > > Keep swiotlb when IOMMU is forced on, otherwise, some devices won't work > > if "iommu=pt" kernel parameter is used. > > Applied to arm64 (for-next/iommu/fixes), thanks! > > [1/1] x86/tboot: Don't disable swiotlb when iommu is forced on > https://git.kernel.org/arm64/c/e2be2a833ab5 But tboot never ran on ARM. It is a Intel specifc. I think either me or Thomas should take this patch.