Received: by 10.213.65.68 with SMTP id h4csp1418101imn; Mon, 19 Mar 2018 03:44:33 -0700 (PDT) X-Google-Smtp-Source: AG47ELtOSxY9ViGWVWKIPqkrjVcbyXMXrZsHeBTgaGlWpQOQn/17U3O225Ss/6cLW5/5J5wAs6GS X-Received: by 2002:a17:902:a713:: with SMTP id w19-v6mr11679839plq.246.1521456273428; Mon, 19 Mar 2018 03:44:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521456273; cv=none; d=google.com; s=arc-20160816; b=xrnZpoM2ZA0WGMxHr04dSrhN+U3eyHxq85Kq90/aUEjUJenb7Y/3mdyz0UldiX7P75 TTHOQlGCApHJQVD3snZLzojV5hKy5fjp81XRExPv+NGVEPORfXJxeojBRFd0K9SOAkfk qA9UuhFc5TzmEw1bFjG+/twwx7i1GGzUZE0cMtj3m3CpzDG703dxE1HqMGiW/7qByAs9 UThl5CYZUOWLLY9N/8eju92IpvTnqvnH3RtB28NlD6qulOJSDPcL6j+d1aamEW/Mo3im Wh5AyiJb4BPrk31YMRZ5Le6IGHicu/OBvBRyk0HKqIAElu2p643AtLpfTzWYBRQ16drF BmTg== 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=wQ0vant354SeucfrYix+wZTODvXXFTV5uM/6OO/GLNE=; b=PglWK7/nxJ52lcK9vKxON4epTcUS66daquHfRiC1k0HR1BHh1tOmHo+J8kL/xXlXZI SfJtMafXf2WJimCpw6G9bATM/DbZ9AdxUxrNxzc1RT+D46tPhBTn6JwOcnTx55QR7+wf OBP6MIQf25LyiepD2jdA2InTIhQ+KG22h4TJwE2B8uPYCXsv6ewUVUDqqJJamwUtxI43 m/lyTVzCOKgOyGXdOUqDyD0bX8t+WoTh44StdHH6hRFF2Xdmaz0qJdPluchv3b5YHPI7 1RKqkPIrEPNZjlo9vtlYWZe4B84McuyvsAoGm5B20D2Zt3e1QU5Ua9ULe0HNgM3WRtK5 FyBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=UnC3PNcu; 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 n5si2905757pgv.639.2018.03.19.03.44.19; Mon, 19 Mar 2018 03:44:33 -0700 (PDT) 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=UnC3PNcu; 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 S932793AbeCSKio (ORCPT + 99 others); Mon, 19 Mar 2018 06:38:44 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:54980 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932415AbeCSKin (ORCPT ); Mon, 19 Mar 2018 06:38:43 -0400 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=wQ0vant354SeucfrYix+wZTODvXXFTV5uM/6OO/GLNE=; b=UnC3PNcu4v0mnP6qOU2b3YZG9 b0livK6U8H8vJ72Ex3fg8XeC0/HW09BX3A/OQrt/druN0qkaBEhs1ism4qf+EZ0rJo651ZKoTApSf 5J807TQk22GvcxWVWFVTztNcSLXfB0nfUGZlLTinsgushmit94MK3JXPqH/aLwAoFdF09wM0KV+o7 ANZ53bCgJvlaN0HID8Pd9CXZVuilAKW+SCEd18oC2A3yO47X9JWC/WatWP+AN+xTJmShMYn65pnHd pze2CXOMWwVnoeXVrGkLzCh/mtMyL/CoUbyHv8OXSrnJCyztSZHFhFB1+5jXKybQQB8cifXfkGK/b Sl3SQdB/w==; Received: from 178.114.187.156.wireless.dyn.drei.com ([178.114.187.156] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1exsBR-0005l4-Eg; Mon, 19 Mar 2018 10:38:29 +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 V3 Date: Mon, 19 Mar 2018 11:38:12 +0100 Message-Id: <20180319103826.12853-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. Changes since V2: - minor changelog tweaks - made is_sta2x11 a plain bool Changes since V1: - fix the length in the set_memory_decrypted call - fix the SEV case