Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp2812244pxb; Sun, 20 Feb 2022 01:07:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJy/zjuiJkfqKtSbCIz7lFtss8Yfz3pxjhuE0oKDc4O5G1/Ci1kYOkSE2Lj3grNiHDnVE5Zw X-Received: by 2002:a17:906:4752:b0:6ce:61d9:b632 with SMTP id j18-20020a170906475200b006ce61d9b632mr12639995ejs.694.1645348063082; Sun, 20 Feb 2022 01:07:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645348063; cv=none; d=google.com; s=arc-20160816; b=AytMEJ6gvX8zSNT90JIQweDos1GfKGpZz/KkMEJWANvcj03YYkinBCe/C+5n94Zd2D iBMVYOnLXtSOCkBlwxU8sZRaxRCoKaH0ZCRDvh+VGbiAzxi6AgruzAZ4zbs4zVWmWDMQ Lfm3Nb14nSXWDN0v9TQKOhbHHEWuAL7EK1TKZ8cvRPF+qX8YWDQTB09l0nNsPg606TJU npgWDMnH8EUM9BY4+xnze1YqKA9mvEiZu+0CWV/Jmjdp0/C6vNzDNcFGWSYl8oGMgF2G IuHM+r+oO+FXOHLp0TAL73+eS8kzfdHYQuX1rKIcj822GawGY+EJLGF5GHzA+QS05BnQ M79g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=rtANzgbU227sGJWD6YEoeMtzkQAILI2Pi3z0wKXXOmY=; b=rQ5Rx+YFavGuyP2nSeB+Ytqw0WTvveIVYmS3GCZVwkF9cQFix5oHIzBVvQgloetaC0 qETx7NxT2kD9Xhaj5jZXqGC3t03gdMWuB7bJi0kBbw9jNiU7ief8S0riepB1IiMsD3Ig tzpDjMtCB1BauCOkkMCdOnNSdmJ/JBGmA7by17jZS6RZBzlhlgPJ7psnO6d1iW7Va3a0 Uk4nq5wN4+0PpMuyQpNqUtnlueq3IZjyiTUb1K4TsXgKjRyNRA0ubTAIEh/ylitDdHEm vol/S7QdgE755gWUnMhrBdeo214tzaXG8UZVDpF6++hCDV5q78K9Qf45XVGM6IrfMQCk KwmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=esT3i3Tp; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h12si2371025edb.9.2022.02.20.01.07.18; Sun, 20 Feb 2022 01:07:43 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=esT3i3Tp; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235230AbiBTIlv (ORCPT + 99 others); Sun, 20 Feb 2022 03:41:51 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:52906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234119AbiBTIlt (ORCPT ); Sun, 20 Feb 2022 03:41:49 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5E45450B1F for ; Sun, 20 Feb 2022 00:41:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1645346484; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=rtANzgbU227sGJWD6YEoeMtzkQAILI2Pi3z0wKXXOmY=; b=esT3i3Tp6gxA19e85gal9aArFIdKqV2fLdaHA8uztHQIM3HyluhYf5c0lurgnJdwCiXaQc wKebiXALO1uy945bHrBho3QGLIqy65v3wZMdhXk+vrDgv9CDwYqu7RwlnKrgpce786NYfU /CGCGDKA1/QefvOOZEsMuPykl85lKfA= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-328-gop_Iyv3PYiVdI3VtWtraA-1; Sun, 20 Feb 2022 03:41:21 -0500 X-MC-Unique: gop_Iyv3PYiVdI3VtWtraA-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 0B0861091DA1; Sun, 20 Feb 2022 08:41:14 +0000 (UTC) Received: from localhost (ovpn-12-31.pek2.redhat.com [10.72.12.31]) by smtp.corp.redhat.com (Postfix) with ESMTPS id EC885418E; Sun, 20 Feb 2022 08:40:49 +0000 (UTC) Date: Sun, 20 Feb 2022 16:40:44 +0800 From: Baoquan He To: Christoph Hellwig Cc: 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: <20220220084044.GC93179@MiWiFi-R3L-srv> References: <20220219005221.634-1-bhe@redhat.com> <20220219005221.634-22-bhe@redhat.com> <20220219071730.GG26711@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220219071730.GG26711@lst.de> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, 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 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. > > Also setting smaller than 32 bit masks can fail, so this should have > error handling. OK, will check and add error handling.