Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp301881pxb; Wed, 13 Apr 2022 01:01:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbk2ONeEGz4bjaAjC51ASurAQZoUahiZ7uASP6y8MxBgBg2/MvIX0E1jecljYpcGFr/Z/S X-Received: by 2002:a17:902:d1cb:b0:158:a94b:965f with SMTP id g11-20020a170902d1cb00b00158a94b965fmr506096plb.96.1649836893266; Wed, 13 Apr 2022 01:01:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649836893; cv=none; d=google.com; s=arc-20160816; b=mwhaGd/XVrjHAlhY4t/G6cMEK6q9+llegeKMIyPU8gVD7JQV/n1WqF/tO4U6mFJ/7D bwsf6HaBNpYfgMZ911kcnR46/rKQi3rrtaHmrfCUuRxKpW0U30zLuSZC//I6FGsgfnkE 2PbgE+dbU7om7xJOjHE7srTBGuWIhRZ9z28V8yx1oiHmQHcK5Xp5J99RfMaz2R69NTLP SfIj9/xT8Gv3cvcCr12thoUO8aFYZLymtBUBlcdgrgvr6Fj8cOWd8e+xRMBXAocrvBob K6j3Q6/iP2WGCloFakGx5JlTkEsS8EjFwmmxJPlxNvmcAfDnL0U9JMRizZf0/6M9YBYg YHTQ== 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; bh=bCE8zQIljH1jRXgKGEXCQIPadVuUjLiBSpS2cxuSKGo=; b=SGCMSQ6iqevNAHtbZIUzhnZ1z2+xg4OfFiXJlG8SROCgP4k3+YN0P9ZqPVGresEsCV LgRwRoeSZ5SDRjGfTR4OGj6I32DxItSn89EfoReT83ZiN/sMBKZxYTMWIyCCcCEuy4mh HMMCPbF0Tuqqgyz3Q7ujPiUrUgBgxTRNULr2f4H86PXwBOKqjid2g987moRuwWu2HiGr f2AoIIjvf1P0eluWgb7gSgekEQstVyt4wcrAKyBf+ww/U3k7y1q6fTNq66N8vtP2ns6c LLC4Gg36pLzTg+WA3+yhJZ4rLCoFJp/LoNNhR/IAAP0UyM5Ic3uABEc61M8ZkPWByMnI gCZg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w16-20020a170902e89000b00153b2d164easi3799641plg.242.2022.04.13.01.01.19; Wed, 13 Apr 2022 01:01:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232590AbiDMFv7 (ORCPT + 99 others); Wed, 13 Apr 2022 01:51:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232604AbiDMFv5 (ORCPT ); Wed, 13 Apr 2022 01:51:57 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40AD51160 for ; Tue, 12 Apr 2022 22:49:37 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id AD46968B05; Wed, 13 Apr 2022 07:49:33 +0200 (CEST) Date: Wed, 13 Apr 2022 07:49:33 +0200 From: Christoph Hellwig To: Chao Gao Cc: Christoph Hellwig , Robin Murphy , linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, m.szyprowski@samsung.com, Wang Zhaoyang1 , Gao Liang , Kevin Tian Subject: Re: [PATCH] dma-direct: avoid redundant memory sync for swiotlb Message-ID: <20220413054933.GA32020@lst.de> References: <20220412113805.3210-1-chao.gao@intel.com> <20220413010157.GA10502@gao-cwp> <20220413045958.GA31209@lst.de> <20220413054600.GA23023@gao-cwp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220413054600.GA23023@gao-cwp> User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 13, 2022 at 01:46:06PM +0800, Chao Gao wrote: > On Wed, Apr 13, 2022 at 06:59:58AM +0200, Christoph Hellwig wrote: > >So for now I'd be happy with the one liner presented here, but > >eventually the whole area could use an overhaul. > > Thanks. Do you want me to post a new version with the Fixes tag or you > will take care of it? I can add the fixes tag. I'll wait another day or two for more feedback, though. > > Fixes: 55897af63091 ("dma-direct: merge swiotlb_dma_ops into the dma_direct code") ---end quoted text---