Received: by 10.223.185.116 with SMTP id b49csp2861741wrg; Mon, 5 Mar 2018 09:51:16 -0800 (PST) X-Google-Smtp-Source: AG47ELtW7+2NBW6y3ngI6KSh3/6D95FYSiWIjr6gSb3X2B5fyfPikTbi0Y6zIkvp3hJSo1pwBE3+ X-Received: by 10.99.173.3 with SMTP id g3mr13227230pgf.213.1520272276755; Mon, 05 Mar 2018 09:51:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520272276; cv=none; d=google.com; s=arc-20160816; b=gvSvyxcmx9kY6HDkEkII+41Vd5ulpHV6cOomVmjDE0nMK4eWE/ld12leChRpeu/TQG eQ7CZlKya9s9n/RSmcGavaahZ9DUGtE415bFIwzsP2m1yb/50/p/u7bLNqDdjRzRlQQM 8hi+gFspQ/Vnr5UWBTk6koZfK9H3Qu4O5gE9lSbWmnxd3Jkcqs6oEzIh6nHpNLzAzcxl QKpyrenG4o4GUXH/idiKe6GPz2b0jaz4c3zn2hfeuTkUqaSC20uUYCy3VvZDE+gLjbea jWbvlpA28Dxz2Q7xDF4XQiKDOMds1sdRdBczXHe7DuiaIcCnQ2YnXfZdynFeLV18jPxh o2og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=RDcDsET774rhXdIT3gqmlFr45bSunhfM/8zmUyPQfo0=; b=V/XWZwVzPQ6V+VijKCTtM8+hDnZWPOUV3OkWZIPdU67r3E5cw6T/0FRvQZcPyljRwU Jqm7FiV1WhtVkA7NYJRZWxB2xjNxvlhiXDtqn3wxlfMoYXLVO2YIWU6/PGRrKPG+lmo7 jycqXu7nIfGhNMNEIlvFFK/sCUmNe3x0pYHmnyX+i2cKeEWA640kQpzG5LFvHAg3tpLN jDm6Hy9hYN+i8LJjaxLl7QDSMIbjk9lPSooszFusiocrtJrrfQvFGf7gacK+kebS59ID bHP2VtabuBIChvZgWDD62DyyBm0UNO3/FUSMoWTlXmFcKmHVwby3pfCbqGFDa8/NMbFR /o/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=NYUUrDcH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w62si8598604pgd.573.2018.03.05.09.51.01; Mon, 05 Mar 2018 09:51:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=NYUUrDcH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752689AbeCERrQ (ORCPT + 99 others); Mon, 5 Mar 2018 12:47:16 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:60194 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751723AbeCERrN (ORCPT ); Mon, 5 Mar 2018 12:47:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=RDcDsET774rhXdIT3gqmlFr45bSunhfM/8zmUyPQfo0=; b=NYUUrDcHrsDfhHsmDZ4SfEvAm SuaII+3iLoO56n3TjO77mnb2UtclFaKE3pRWqcew9rvlh/9vjE6qTRn+6wrI+KTzrmXNHgaFSFqIZ faU4J89OnxeTp4o6UxDNpw0flCwV3NoH154CVyfNixOwx7RLWp4GJg6VKyYZLonVekqgZt/8HP7v+ bmHsXvZ7zPF+QsVLHSR/zmgAO0NZ7yOvr4bZVXTxTHAWCy6cR8AgC3Bf2KkwNPn0HbW8kGfT/wbwd HN6qem/XBHUdE0ZraNWhmPpwFKk1lzsxMZJjkPFiYGoTj6DJyr6E3Pi/L+jZU2vN9vegMRranUFl3 8qp5yegGg==; Received: from [209.116.154.70] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.89 #1 (Red Hat Linux)) id 1esuCO-0002qj-I7; Mon, 05 Mar 2018 17:46:56 +0000 From: Christoph Hellwig To: x86@kernel.org Cc: Konrad Rzeszutek Wilk , Tom Lendacky , David Woodhouse , Muli Ben-Yehuda , Jon Mason , Joerg Roedel , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: use generic dma-direct and swiotlb code for x86 Date: Mon, 5 Mar 2018 09:46:42 -0800 Message-Id: <20180305174655.9878-1-hch@lst.de> X-Mailer: git-send-email 2.14.2 X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, this series switches the x86 code the the dma-direct implementation for direct (non-iommu) dma and the generic swiotlb ops. This includes getting rid of the special ops for the AMD memory encryption case and the STA2x11 SOC. The generic implementations are based on the x86 code, so they provide the same functionality.