Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp2016069pxb; Fri, 18 Feb 2022 23:18:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJy+GEPFgb554qzeqQqmfRmlJmviGSwBuECojPgl33u+sUn1H4H4VZ1hCkw2ZdrZ4mjtUMHD X-Received: by 2002:aa7:d7c8:0:b0:3f9:3b65:f2b3 with SMTP id e8-20020aa7d7c8000000b003f93b65f2b3mr11519031eds.389.1645255082650; Fri, 18 Feb 2022 23:18:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645255082; cv=none; d=google.com; s=arc-20160816; b=mA/U3jPjQcZPwF7Fbj2FHn7BrjrPy+uC7+aDMjkp6RNOYDPZzYvsqRxe0ocufZgYMy GbyGSVxh7EHLTjeybtNmmkpqTBAXePc+CrGkfxSFURHDuERe3vDoGU2loQefT3nEUFCZ xKrYoARgWQaGA+uhiJNomNKSi6NHcz+OjwoiDLjPAkAA6o9MVYadoaACRl78yWZNlL0T qhXey98Wr1RmCiWUUeaxXkCDna/N6Dnt/EFvSFaD0qbrrpaz9LY91dULehI3ecwlhDqt KiuG8KFLQJloSGM3djLTbw1yXSg3+QrraYPJErNsttHbe7DJvNzr4N2P5wF/5YMcdx79 AVxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=2pwL3ayF0vFpdCvZEuEQM3AYO/LKt3t8PTd2FjbKSGQ=; b=pyB0rvePnCZifR/5NDGQigEDsSKwZ7xqaNpQW5iKWuUfeLetLQiyByp7FRns1eTmx3 jqjGiA502iw3Gjf5oYNg1aItSkrUW72/G6K82WYKe+jzehF5KPfYhBwwwiJY0bXOCPY2 5F+8fBTYTPcf1D9r3sIkgOQIGr5sn/OuSkPhgLrhG1jKtUjVHAH9PBxSGUPqrF0cqaou BVIYe/FQrKSUMhEo4Ucqf1ZykH49EEaUWujZrWLWiKPsPNn1I3eJVZSTtv5klLc/6B3w CZjmHfxVHBLeStxqcQjk/2j+rrjHPIqVrxY/UA0Iqz0ETAtCsGjesb2ZBmmQv1VofADV Tu/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=G4DCpdW3; 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 h22si2435678edr.166.2022.02.18.23.17.37; Fri, 18 Feb 2022 23:18:02 -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=G4DCpdW3; 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 S240676AbiBSAzH (ORCPT + 99 others); Fri, 18 Feb 2022 19:55:07 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:38762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240686AbiBSAzH (ORCPT ); Fri, 18 Feb 2022 19:55:07 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 515D52782A2 for ; Fri, 18 Feb 2022 16:54:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1645232088; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:in-reply-to:in-reply-to:references:references; bh=2pwL3ayF0vFpdCvZEuEQM3AYO/LKt3t8PTd2FjbKSGQ=; b=G4DCpdW3CFsLVSjtm16QGdEMjjtiHjyv2QHuKQRSBqAfNicoq4z731jwZy+aTjaNSWujrw jVSTXZ1ycjN0AvO0EThhAAlIMHk8lFYVpxadkTvvoljDXH/kp0mkSHYU1fulFA+qG8AQx9 wrlBdE9oHn04BW7ryJn47DbqCEy0DT4= 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-553-j7gk3TXHOaWbkr2GCBxMXw-1; Fri, 18 Feb 2022 19:54:43 -0500 X-MC-Unique: j7gk3TXHOaWbkr2GCBxMXw-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 4BE01814245; Sat, 19 Feb 2022 00:54:40 +0000 (UTC) Received: from MiWiFi-R3L-srv.redhat.com (ovpn-12-39.pek2.redhat.com [10.72.12.39]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2659C62D4E; Sat, 19 Feb 2022 00:54:25 +0000 (UTC) From: Baoquan He To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, akpm@linux-foundation.org, hch@lst.de, 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: [PATCH 10/22] uio: pruss: Don't use GFP_DMA when calling dma_alloc_coherent() Date: Sat, 19 Feb 2022 08:52:09 +0800 Message-Id: <20220219005221.634-11-bhe@redhat.com> In-Reply-To: <20220219005221.634-1-bhe@redhat.com> References: <20220219005221.634-1-bhe@redhat.com> 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=unavailable 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 dma_alloc_coherent() allocates dma buffer with device's addressing limitation in mind. It's redundent to specify GFP_DMA when calling dma_alloc_coherent(). [ 42.hyeyoo@gmail.com: Update changelog ] Signed-off-by: Baoquan He Acked-by: Hyeonggon Yoo <42.hyeyoo@gmail.com> --- drivers/uio/uio_pruss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/uio/uio_pruss.c b/drivers/uio/uio_pruss.c index e9096f53b4cc..1de39875d436 100644 --- a/drivers/uio/uio_pruss.c +++ b/drivers/uio/uio_pruss.c @@ -168,7 +168,7 @@ static int pruss_probe(struct platform_device *pdev) } gdev->ddr_vaddr = dma_alloc_coherent(dev, extram_pool_sz, - &(gdev->ddr_paddr), GFP_KERNEL | GFP_DMA); + &(gdev->ddr_paddr), GFP_KERNEL); if (!gdev->ddr_vaddr) { dev_err(dev, "Could not allocate external memory\n"); ret = -ENOMEM; -- 2.17.2