Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp265941pxb; Mon, 16 Aug 2021 05:09:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqLa4RQF42j46sNNO0CsN4MXxkXSJb28Et1nXQWH3gEfPa9UlEfXevZpcji4ymbUOAP5PW X-Received: by 2002:a92:c542:: with SMTP id a2mr4961004ilj.191.1629115763337; Mon, 16 Aug 2021 05:09:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629115763; cv=none; d=google.com; s=arc-20160816; b=SIzOUq/Rq1zy54LdQKm1cc/59dYm1gRA2OalLEvud8A3x2ZAfYDRhEKu+D1ZdAeXCW MsT9EMjG7ChqVzE2bZq4eNO4QWmggLnU65Zz0VR1FD3Z5zmggQ/3WKJaE60BCQh7hhnB ExBbvISkaDkf2qLvSr7lHBLvV3pTk9pN4MaKw9Mi4CkLzha/DFR3tgYtKf76/zpFb4SL sMgmOqWIF5IdsenAN0kEptZmZ9awUvsz884O0CEfFzFApwJlK3QgTZdk321c2SVds7xG B/VXQ3TolDDmWpIE837Pp6dQQt5SCWh059/mXAyD0s1duf2kAyblQFSjSE7GuzxtNFKr X/+Q== 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=7ZVL5ZOU1X/D8DJ9tDm01FqBWHyaM0SF82B4pdPGAoI=; b=Ml8ohYNRL5eKqsJb7SB6fGNnqVUyRpmocXYWiUajSc8bRPDXWIo3oBbUXHG4YXQ1eC zNGn567KQ5k3geRYZKWCXZhFfCIwX0+Pl+xkUTjWkms6QyPb74LNtrOA1o1wTHh0dAk8 9nxrzTg4scVupUMwjylxOib0fTrJnIySwVlRRjQ5TM9fyR5UblzPkkc35dDxQ4B9JJPI zvJcuSFzroYSPpORvh3+IRY5rXqzZxCuIZEHeWvnitXEwtzCLnzmdB6o/yrKpBajHGNx FQD5Rzh9mK72vyj+zoySNH2lcwqNsHkCucSZysSqUUJ8eD8xaheMh7BfAeCgJuBK1qLQ IiSQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o1si11553172ill.7.2021.08.16.05.09.11; Mon, 16 Aug 2021 05:09:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233130AbhHPMHt (ORCPT + 99 others); Mon, 16 Aug 2021 08:07:49 -0400 Received: from verein.lst.de ([213.95.11.211]:54145 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235091AbhHPMHr (ORCPT ); Mon, 16 Aug 2021 08:07:47 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 5E8D66736F; Mon, 16 Aug 2021 14:07:14 +0200 (CEST) Date: Mon, 16 Aug 2021 14:07:14 +0200 From: Christoph Hellwig To: David Stevens Cc: Robin Murphy , Christoph Hellwig , Joerg Roedel , Will Deacon , Lu Baolu , Tom Murphy , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 4/7] dma-iommu: fold _swiotlb helpers into callers Message-ID: <20210816120714.GC15860@lst.de> References: <20210816025755.2906695-1-stevensd@google.com> <20210816025755.2906695-5-stevensd@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210816025755.2906695-5-stevensd@google.com> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > + if (!(attrs & DMA_ATTR_SKIP_CPU_SYNC) && > + (dir == DMA_TO_DEVICE || > + dir == DMA_BIDIRECTIONAL)) { Nit: the two dire checks easily fit onto a single line and are easier to follow that way. Otherwise looks good: Reviewed-by: Christoph Hellwig