Received: by 10.213.65.68 with SMTP id h4csp1602821imn; Mon, 19 Mar 2018 08:29:46 -0700 (PDT) X-Google-Smtp-Source: AG47ELvB3LnzOaKPPD5XWaVPudHiGHJ1mN/7kkZ8Zw044fmqVaX6eQcNRo2v1f9t0SByWmDN6Wee X-Received: by 2002:a17:902:52e6:: with SMTP id a93-v6mr8462171pli.10.1521473386756; Mon, 19 Mar 2018 08:29:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521473386; cv=none; d=google.com; s=arc-20160816; b=RaVe8jHileB8c2QrHaMk5l5Se4IU3AoSOARkD1sUwDiBDpwWhJnglk9j74HOVkR9QH lVLeoVDj4aaW1p5DQ3YNnMDul+arsqnU2ZqLnxjMfntGTHwxoio6limp7ih+j441XcrR E80XDxi0utmgyZtcPdAqUuADA+W7CvP510Rm4A4Nsp8soqDAe0CCoSyQY8r3ndTli4oC 3zIwZKdEEk438TfWsUsMELxzC74EMTUCQUGNrVatIU6+k2PEC8m6pibwFyuiBoknHCr1 BWFEtNtokBK+gHCNi7+lBuUDj2Rj8QnszyKMxD10cpOxJuAYKGnutWKJq8YDJ7vOnHEU +VZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=DOvQGYeigUxOf97x1iTNeYys6W816r6/1fK8nj0BNus=; b=oFQcwbcpcRFZzQU3gEoyGfQCKCPMQ0d9DAreaAVVhMv4nRwrJA3yG7r6a0T/ezlegd B68ZWtcz1rAjM6EZfTXX4o4MqhI0pzwxXxRaQTjjQiAapQ2UiJccttQJtNzy3SZ5Vo4k cVCDIEweAm3yjrgQAB88WGnznGTJwBtFuPCVHd4Ky9fUDWWY6ycjbdo1xclBWG4JEwXk Pu7Dc79U+tQh/Ntp74+vUF0cqTnErY0NZo4wsvHJSH96vCy9mbMrVQ3uRJZBPX6EPTQ1 0h2QoeHeWmiLLtvmE5Ll2ItcolUBdEx+7fwYZgJu1Ryy+WBOayT9xUHQu6BtLbT/Z2zL IJew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=Z7X99V8z; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w123si156032pfd.14.2018.03.19.08.29.32; Mon, 19 Mar 2018 08:29:46 -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=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=Z7X99V8z; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755892AbeCSP2U (ORCPT + 99 others); Mon, 19 Mar 2018 11:28:20 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:57150 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755878AbeCSP2M (ORCPT ); Mon, 19 Mar 2018 11:28:12 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w2JFMtM8104397; Mon, 19 Mar 2018 15:27:40 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2017-10-26; bh=DOvQGYeigUxOf97x1iTNeYys6W816r6/1fK8nj0BNus=; b=Z7X99V8z1MoSu8q4jBMf1By/B3LZre4uyKVGd4vdzt9pgsXCndVwc+0Jb9BPUDRP5E8+ w4T+I7OCwlPgEGwTefFOw+SkjF1P9yJIyBCvOho3xVLb+B9WxaCNqbtxykY9RZ3WqiRk QmIz5bzBxuDW7pIVVZxZmLgSIMah5lxoK+UNd6RRAbJOHHhUdndPGrtx3hL1bDodG/vS 7KFvt0RePwFCc/E3EOE7PfbtNxX3PdKf7994f8cZlctXeOf3yswoAef/pXf9mCaoX3Mr IQNuX2ch+DCM7DHBcbN4PmaKuiTBoSRFSVbHL7ZbW845CGa3X9jSvE9wFxpZ+0B2Gb77 3A== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2120.oracle.com with ESMTP id 2gtfsvg17p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 19 Mar 2018 15:27:40 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w2JFRdRb003818 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 19 Mar 2018 15:27:39 GMT Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w2JFRdQZ026152; Mon, 19 Mar 2018 15:27:39 GMT Received: from char.us.oracle.com (/10.137.176.158) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 19 Mar 2018 08:27:38 -0700 Received: by char.us.oracle.com (Postfix, from userid 1000) id A9E4F6A008B; Mon, 19 Mar 2018 11:27:37 -0400 (EDT) Date: Mon, 19 Mar 2018 11:27:37 -0400 From: Konrad Rzeszutek Wilk To: Christoph Hellwig Cc: x86@kernel.org, Tom Lendacky , David Woodhouse , Muli Ben-Yehuda , Jon Mason , Joerg Roedel , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: use generic dma-direct and swiotlb code for x86 V3 Message-ID: <20180319152737.GK1110@char.us.oracle.com> References: <20180319103826.12853-1-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180319103826.12853-1-hch@lst.de> User-Agent: Mutt/1.8.3 (2017-05-23) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8836 signatures=668693 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=915 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1803190149 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 19, 2018 at 11:38:12AM +0100, Christoph Hellwig wrote: > 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. I need to test this on my baremertal and Xen setup - and I lost your git repo URL - any chance you mention point out to me so I can kick of a build? Thanks. > > 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