Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp5837pxm; Tue, 22 Feb 2022 05:18:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJx2chmFIFvBzzd0tVUK5ATSzYmytyzD664TD/H7qeZ9IB/g4KWnijT7OmrpVLqUEOyzdbOh X-Received: by 2002:a17:903:192:b0:14d:8b5a:5446 with SMTP id z18-20020a170903019200b0014d8b5a5446mr23209377plg.46.1645535917864; Tue, 22 Feb 2022 05:18:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645535917; cv=none; d=google.com; s=arc-20160816; b=VDsGcTYgn7k/3KLD+VczJTxT4oyz0ghlI6o5HPl/gMYxs8n2+VSQBLKACZ4d1NQ3PY usx6sM6X07NBZSgCDKsw2bF9Bm+qo9Uy5qC61Hg1g0p+P4NkMrW1LwOAJ1FFThL/P2xv xseVgDrvPw4vrQNiRKmg0lTBG9yB2itHGMN/O5PuLnE9r/YEnihfTD8GbB5anbnT6xuk EfQnjPla1oveZ08FYLLNTzL3vQWsPRKUy0bFYBhFGWxHvpFWtUpe93h28I1hL3dOZN5a SPjL/2AsNkqyWRS1/ATZ0TIze77d/8v+UhK+NVQdt6XSiO5+30FqS3dqmMo+8O1zUnr4 fHdw== 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=1bYnN7R5C8g/ApN4GsFCGk+y0dfmtcpNOmda16EVEMM=; b=Fyt+lDMKQkWCt8/t1X/5l5iJtrbvu1xlVHubDr9wy+dYLn33VvCaLjs3zPVY1OtZ7m 7frjbfROcZ0iEC+V1nOjMEAV+KhpFpNnS0lytN/rL0TthZcj4NAEJcG0fzoWCa2OPrSq DR/v9/mMFRicIQFstT8id9l03cWrl/XWzd5tQBjTI8cox371h9OqMDb1LZbssdZHef69 DB85Kr5zu3gFgLzawnWZE1L6SkgumEJ1YXSUslZU8T70O11pYPL8upfpKNU+v8nx1GbG Q6d+rEzRM1RrbhJgr/RpZNFsh9AavxwDqdNxDciAykC5VeQTayVkl0wbK684mqj3gjKq HjYg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-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 e21si5633163pgw.244.2022.02.22.05.18.15; Tue, 22 Feb 2022 05:18:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231589AbiBVNLv (ORCPT + 99 others); Tue, 22 Feb 2022 08:11:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231400AbiBVNLu (ORCPT ); Tue, 22 Feb 2022 08:11:50 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 202571520CF; Tue, 22 Feb 2022 05:11:25 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id 96D2668AFE; Tue, 22 Feb 2022 14:11:20 +0100 (CET) Date: Tue, 22 Feb 2022 14:11:20 +0100 From: Christoph Hellwig To: Baoquan He Cc: Christoph Hellwig , linux-kernel@vger.kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org, cl@linux.com, 42.hyeyoo@gmail.com, penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, vbabka@suse.cz, David.Laight@aculab.com, david@redhat.com, herbert@gondor.apana.org.au, davem@davemloft.net, linux-crypto@vger.kernel.org, steffen.klassert@secunet.com, netdev@vger.kernel.org, hca@linux.ibm.com, gor@linux.ibm.com, agordeev@linux.ibm.com, borntraeger@linux.ibm.com, svens@linux.ibm.com, linux-s390@vger.kernel.org, michael@walle.cc, linux-i2c@vger.kernel.org, wsa@kernel.org Subject: Re: [PATCH 21/22] mmc: wbsd: Use dma_alloc_noncoherent() for dma buffer Message-ID: <20220222131120.GB10093@lst.de> References: <20220219005221.634-1-bhe@redhat.com> <20220219005221.634-22-bhe@redhat.com> <20220219071730.GG26711@lst.de> <20220220084044.GC93179@MiWiFi-R3L-srv> <20220222084530.GA6210@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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-crypto@vger.kernel.org On Tue, Feb 22, 2022 at 05:14:16PM +0800, Baoquan He wrote: > > No, if you change it, it should be dma_set_coherent_mask only as it is > > not using streaming mappings. I suspect dma_set_mask_and_coherent is > > the right thing if the driver ever wants to use streaming mapping, > > it would just need to be documented in the commit message. > > It will serve dma_alloc_noncoherent() calling later, should be streaming > mapping? No, that also looks at the coherent mask. Which is a bit misnamed these days, it really should be the alloc mask.