Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp322323pxb; Wed, 13 Apr 2022 01:39:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0BWw9Jv3pfHuPQwyd0PBUmjVyzevNEzlGw/qYPgEjc+Tt0RGo8aE2jsseEKeY/WpiuwtZ X-Received: by 2002:a17:902:cf02:b0:14f:e0c2:1514 with SMTP id i2-20020a170902cf0200b0014fe0c21514mr41208581plg.90.1649839142097; Wed, 13 Apr 2022 01:39:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649839142; cv=none; d=google.com; s=arc-20160816; b=PI2nsXsYhvm6qpm1qa2xuLvuEGlyy25WLXlBmlgosrXJuRkaZz+Sb0mfwUH2WvLh8a i0hLtl3jcIOHXWiiseia79k4h6lxuOudI5jN75BMvFESsuWo7lKQLrRfOFC06J/lD0gm ovvw0VwSI7wBXwZOR+77p5x+jdTvLyN3eLzU9tJH7tBOrSi2SPolLoq1IOpg7rcdVxCB jo9vySj5d1VVNFInwoPMn4TAfK8ggMnxGuOdk3H89v8rRrnOZxOn9bZKP6R510VdZ2mB 2j0vIGY4iDcg+JLEiCr2JGbkydTs/medLUADylomB8IfALX0taIE0FxO5H2ORKFpXnB9 rQgA== 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 :dkim-signature; bh=IrNsHOC0jQhqTNGVvI4WqlFCg4JXfzht0G6G+u7v/NM=; b=agWuhDdY1X8IuvpxMz/Z9n2TWksEedg7EbGywwo+7gvM25VQYZU9NlD7md6hdOwEco eogWJ0nfNBU0O0wQDLyYoo3p2pHJQIih3xetDenwDeRud1RS+u608o6isZw4SRSJXr9/ K8Ug/C2c+GHKcFftNOzDZbmsZSq8cDoCkmwUsjlV4dt4POgOrY4vv5QpPSOK33nj+8oi q/aZCliOXSZkbF+jsU9MdacedondznfWqJDRb9UeGK0WXzdsTOcXoVXhDOkGrzIt9RPv /Rnqv4QbsKzX1rFqJRyESdOgh1Q1YUXFRwJuUhZDOlV9+gjBQJnqFy2BwwZm4dRLpk53 tL6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=cMx0dTcg; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t16-20020a170902e85000b00153b2d164d0si15197453plg.216.2022.04.13.01.38.49; Wed, 13 Apr 2022 01:39:02 -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; dkim=pass header.i=@intel.com header.s=Intel header.b=cMx0dTcg; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232585AbiDMFsf (ORCPT + 99 others); Wed, 13 Apr 2022 01:48:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232193AbiDMFsc (ORCPT ); Wed, 13 Apr 2022 01:48:32 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 187424FC53 for ; Tue, 12 Apr 2022 22:46:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649828773; x=1681364773; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=IrNsHOC0jQhqTNGVvI4WqlFCg4JXfzht0G6G+u7v/NM=; b=cMx0dTcgULv/NaG16mAMWwM3jAtlSifluRvE8MD6kR6HPC/M8QZwJTQ4 YmW8COqPemgBVOx2e8BrmxkFqYsgJtGuwuAfnyblSyCgVrIRZenv1V01W G9FrHbEpHGK+hjmmNWq39nXJQ76XmhnHh3f4t6n03L4/UJan10tlU+MRX eZ2uUtQuirJaAfzjy4m4aBrGmIxh4PWr6uMKCKexDcmJEQl/8tCt4mTxO sSVeK72SRY+PA1SjjPyGSgWkXp2BgmWqG3gH+yEmBy2r4cpcCiPhGr5W/ BA7RWYP0LaOrqlHBI6drFTALqgEhuUM/MHmRIHfBwF/XB+zpTeQi1LJsU Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10315"; a="249869305" X-IronPort-AV: E=Sophos;i="5.90,255,1643702400"; d="scan'208";a="249869305" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2022 22:46:12 -0700 X-IronPort-AV: E=Sophos;i="5.90,255,1643702400"; d="scan'208";a="552060313" Received: from gao-cwp.sh.intel.com (HELO gao-cwp) ([10.239.159.23]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2022 22:46:10 -0700 Date: Wed, 13 Apr 2022 13:46:06 +0800 From: Chao Gao To: Christoph Hellwig Cc: 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: <20220413054600.GA23023@gao-cwp> References: <20220412113805.3210-1-chao.gao@intel.com> <20220413010157.GA10502@gao-cwp> <20220413045958.GA31209@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220413045958.GA31209@lst.de> User-Agent: Mutt/1.9.4 (2018-02-28) X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 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? Fixes: 55897af63091 ("dma-direct: merge swiotlb_dma_ops into the dma_direct code")