Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp399247pxu; Wed, 25 Nov 2020 06:08:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJzw7Uhg2oHIR3Bn6PpsvpdHmqmLKLU1FqBR8cqgU9OmmM/5lQT/h93/95neA5sHT+N40EdJ X-Received: by 2002:a50:9fc5:: with SMTP id c63mr3602577edf.224.1606313310994; Wed, 25 Nov 2020 06:08:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606313310; cv=none; d=google.com; s=arc-20160816; b=xAkLjSrjxKwF5mPoB6vTSYrBKhnZWAYeP5NBKpW/Ay6i3ECyRB4hVTlenn8T1crkEB 9bpTJ8OLoCLawni2kLFU8eKxOxSZ3sDIW5FxM9KC0bzO9evixvMC8pYmRW8COgU+mDKE QeOLsVsHLdF4dlth44IV7mEWk8RmMo1Sk/QlDq38Pa6s4JMZLkxogs91AgfGJxadwQFk +T6jfI6w8VQnluQ84b7/Ql9vOjsITXnBQYiX8jZdBl23S2KEMQCNNgJXFyu9q4OlaBOT 0AsF15W7AQVU2RQIOD1f6x8YsHCdL9DPXc5J0pgiC1YqqTR3Y5jn7rCrgR0f4feCmrIf 1RPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=yBGqqrrUQHkFNcC0unR37ox7oftA/Fqp5fhEi0pKFXo=; b=V4otfeA1OsqdAf4tdZEiozpiMLLxMpgh60x6bvpwO/BCj1BCiElWomutbDPSTZlYK4 NFKxjuW4UCPovJXc4yPUlYoZ7Hmhmcs6FNZvdG1Yeib4VH7BQmUILMV0m6njcPnDMwTT 3t9jFC8UHBl0qCGEUefwKWtkXMb5LapjHiliUL/FbTNYtpS2ukoypojVzqj6mnsw9sIZ nb3hncbm+0czjQsCDKwArvVJ9405y0tuGNY2jlA3ofqvh6chU1Y7fNOS05ESPMaI2NRz FmE/E1+83G7NB204F0FZPZb8sHHajIcNMmE3PN1+lvTKUkHrsMncucFCWS8hsqJedoz+ R4Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=G8DCxn5J; 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 c21si1297519edw.37.2020.11.25.06.08.08; Wed, 25 Nov 2020 06:08:30 -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=G8DCxn5J; 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 S1729740AbgKYOF1 (ORCPT + 99 others); Wed, 25 Nov 2020 09:05:27 -0500 Received: from mail.kernel.org ([198.145.29.99]:36186 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725792AbgKYOF1 (ORCPT ); Wed, 25 Nov 2020 09:05:27 -0500 Received: from localhost.localdomain (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BBAF3206D4; Wed, 25 Nov 2020 14:05:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606313126; bh=o/3qU9yUVsMRXBPb0/qlY5lVdmNZJsg8udd9M106/9M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G8DCxn5J/JaU/e93TuntnK4oh0Kn/xsPcKugLOLB+XfEZqAVNtLJt4J7FrmsO4IUe goFFx0ywrjqH6A070RdD+kHWfNDB9KqRmCXZzG3UiO/RNLy4yPLrCG3ChyEIX6BWsF s0CfmZ/VDxamoqXudWTtMmtU4s03HAkWJG3iAXH8= From: Will Deacon To: Lu Baolu , Thomas Gleixner , Ingo Molnar , Ning Sun , Joerg Roedel , Borislav Petkov Cc: catalin.marinas@arm.com, kernel-team@android.com, Will Deacon , 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 Date: Wed, 25 Nov 2020 14:05:15 +0000 Message-Id: <160630605367.4096500.10722779964348157570.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201125014124.4070776-1-baolu.lu@linux.intel.com> References: <20201125014124.4070776-1-baolu.lu@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev