Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp50338pxu; Wed, 25 Nov 2020 12:48:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJyoTBNEHx1AXUXXtPXpqyO/Ys5DGOHCQQnYBKOxCm7nmXVpiIq6QE1yT3Allc2cPLxpNhXs X-Received: by 2002:a50:fe02:: with SMTP id f2mr5355233edt.97.1606337293584; Wed, 25 Nov 2020 12:48:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606337293; cv=none; d=google.com; s=arc-20160816; b=cMIZg0n/GS8PeBDeCeZVi8oOSl2WD8h4FpU4zYmMtJgO+IYpvxZZIlposdXrMdRlQx HIww8MPmt7ILJnqiwZPwbw4H53ZO3t/2JT8W5rjyeeMu0XWK4yyhRRYvmllLLsVhPdiO QQqY9Gpk3Bsv6x51bIiYzVe6CxWlFdUNXrjovguFkVHG1ONvn0wqYEIB7x2++bUPlYei LPtvd6DAGoukVd0yi/CQdwknf9SeyDLOhFfOeD08kc0bUKm87G730TPgCgIVwaO+zF9Z DtpnSrbDfvQ2S6C1c67exP/01jZhVZ3lnGQTiy7Tj4O56RgvhQ+iluafr7MmbaWkUPUa G9Tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=6YvOWnMX3fvGfSEZapVqdP8390rvZYuwv/lUXeTndn0=; b=iXrZL5nhndmJzQHFZIE5sEFbfr+ceT4LZLTpp9TTrb7IA63QHZX/IBLjbveclbYMIZ s/Za8JFkGzfNPxZDs3A7jJXSihOA79VkiSk/3V1t3LhODQluVRG3u7i2eQhy3d7/V9N1 S/HoAuBjYHOXvh5rHaNnkJz7v8AmIeSDNynC5wIkoOqbwG4MQJQDSajCu1D0gLecR2mo 9v0jm+ZEqO2s0lYcHABFP6DH2LsLYWSMDZ0+iBbuyKVRv1jvrP810CNeenkg5JVhGp9e r4BEymK5UYsd/5muPctR06okjd3l14WrqxMQX3XYX7ESQgAWiqUz7u76sUll0ZmdDjx4 hfqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bdHIWtOi; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dx19si1848450ejb.535.2020.11.25.12.47.36; Wed, 25 Nov 2020 12:48:13 -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=@kernel.org header.s=default header.b=bdHIWtOi; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731845AbgKYPvh (ORCPT + 99 others); Wed, 25 Nov 2020 10:51:37 -0500 Received: from mail.kernel.org ([198.145.29.99]:34178 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731840AbgKYPvh (ORCPT ); Wed, 25 Nov 2020 10:51:37 -0500 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 31D04205CB; Wed, 25 Nov 2020 15:51:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606319496; bh=ggNsVrCyQtbsTEL+kuTFOQsecsY7pAs6/oMUkc19NOw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bdHIWtOiue29cx6/dYEAyJcEbWsHshwrdBLRy9aawhXnzNCNcD8jvlPvkki4FeGX7 JvU3T4C/OwziNdu8rKuz8FBKf9wMjDPN/rrztBnudXHDYwRe8he8GFCehWR0jEmpjF f1Mn2J0ZaBinFF6QYQ1rtsoSRqTurXGEZjgc7ki8= Date: Wed, 25 Nov 2020 15:51:30 +0000 From: Will Deacon To: Konrad Rzeszutek Wilk 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: <20201125155130.GA16839@willie-the-truck> References: <20201125014124.4070776-1-baolu.lu@linux.intel.com> <160630605367.4096500.10722779964348157570.b4-ty@kernel.org> <20201125154153.GA29929@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201125154153.GA29929@localhost.localdomain> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Konrad, On Wed, Nov 25, 2020 at 10:41:53AM -0500, Konrad Rzeszutek Wilk wrote: > 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. FWIW, I did check with Thomas before I picked it up. I know it looks weird going via arm64, but that's only because I'm temporarily handling the IOMMU tree there (including vt-d changes) while Joerg is away. Since this fixes a vt-d regression, I thought I'd pick it up along with the other IOMMU fixes I have queued for -rc6. That said, if you insist, then I can revert it. I'm really only trying to help here. Will