Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4550863pxb; Tue, 22 Feb 2022 00:56:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJzQkfGUO+WYfvDpTAm518uZg9qfQJjRWlZNrOErT5z+dsjSVsK+NE4NFn4PLUCPaFrppTH8 X-Received: by 2002:a63:4005:0:b0:373:9ac7:fec1 with SMTP id n5-20020a634005000000b003739ac7fec1mr18874813pga.12.1645520213500; Tue, 22 Feb 2022 00:56:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645520213; cv=none; d=google.com; s=arc-20160816; b=HI8C1JIbFG63N1SfhsQD8Xg1pYOFN35baoj1PN02LKhCVbXP3q3xq0oy1l2xP6e/gc S2E/5YbLUcy4NA582FQbboaiojeqIeYTdhmKxBDrnZeYk2RHCvQqy1fb/NrgsLXsevAp 6q+5UYLwUkzhmiRjL5TBQ2UwuqS1psTPA7MXJC8i5qQxC+alOcTpIDlBWZHCSoSlzVOf v6S3NNT4Hua2CualbU7YZi3iRtylMzgGoigVFj119eiNPl7nM+SAt1ghyhahgVdAaBsA Gmmlba8DfQjXnNbMLkht2x90vUclpgjRfOkVhcUX/8dfaetxRBkNaotPIMYM1rAbEUtv 6b5A== 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=dHxl6B6+XbTngOcgKi6s56rqLKZCwSZ4gI4OYReTXrE=; b=AKbp/W21m8CPBkozeptcj7xCXDQ2TiZ5CWAmQ94skP4IFeSASBc74j4o6laj8yFhIZ EWLL1LcQ/yhDRGcdMsT7Tj9mH9Cio6op9jkqfigR+p7XPDadOvL9GJNk8JbnzlF+MQvg vnsjXtfaz0+1eQ1kUmadSARAF+BouhC1htozqNb3+v5mMWnVPHJKnr6vNv8myZahlU0L +nb+zOzZj4/I9YRI4HDMVtOOgHeMX2zyD3zaoDnNbOaxZq0PSim/5z1n1QBQGXUctxDp St7extCuCraTIWQw93qY4zMS6euFpf7tHzcruPkN9PrK/yHIjcoDxQQ52LjB7Zmrgrm7 BLeQ== 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 t23-20020a17090aba9700b001bc44a64713si1401363pjr.112.2022.02.22.00.56.39; Tue, 22 Feb 2022 00:56:53 -0800 (PST) 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 S229922AbiBVIqB (ORCPT + 99 others); Tue, 22 Feb 2022 03:46:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229528AbiBVIp7 (ORCPT ); Tue, 22 Feb 2022 03:45:59 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58E95159298; Tue, 22 Feb 2022 00:45:34 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id BE08D68B05; Tue, 22 Feb 2022 09:45:30 +0100 (CET) Date: Tue, 22 Feb 2022 09:45:30 +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: <20220222084530.GA6210@lst.de> References: <20220219005221.634-1-bhe@redhat.com> <20220219005221.634-22-bhe@redhat.com> <20220219071730.GG26711@lst.de> <20220220084044.GC93179@MiWiFi-R3L-srv> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220220084044.GC93179@MiWiFi-R3L-srv> 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 Sun, Feb 20, 2022 at 04:40:44PM +0800, Baoquan He wrote: > On 02/19/22 at 08:17am, Christoph Hellwig wrote: > > On Sat, Feb 19, 2022 at 08:52:20AM +0800, Baoquan He wrote: > > > if (request_dma(dma, DRIVER_NAME)) > > > goto err; > > > > > > + dma_set_mask_and_coherent(mmc_dev(host->mmc), DMA_BIT_MASK(24)); > > > > This also sets the streaming mask, but the driver doesn't seem to make > > use of that. Please document it in the commit log. > > Thanks for reviewing. I will change it to dma_set_mask(), and describe > this change in patch log. 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.