Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3742814ybi; Sun, 14 Jul 2019 21:19:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqybpkXrSnwpPb/0QvKcMqFe3V4UYwkucN0XDXZPquc9lLr+mDJxjibWNmGkcWfpZBrCX+YX X-Received: by 2002:a63:f118:: with SMTP id f24mr25468616pgi.322.1563164340420; Sun, 14 Jul 2019 21:19:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563164340; cv=none; d=google.com; s=arc-20160816; b=BUJLg6O/ICcVxlBlfTgnvz4LU52PVJvZXQyiWA47qS7jP5gXYf+TQryhUsrKf02y75 60FCa2zwrVNLh87SZQUXR/SwR5ZLKf37iFRu3Artc/ea76o7PxsFP6yLE4S/IQQfTYrU j3RUiywKxH+AkFIt3QfYe/SnCN+kgSiZ1wDa8PmD/eqDbvD2yZFyMTYd5zerMbPpURpG dIIgOCflB+MN+RSIpjaMSzn0bJZEW/NUJU7KCFXuLe4BYQLoVNSagaPNj3bBsGBmL8mO AkkP4kfyfnks0+dGfQeqJyE7BrHtrWtSuBmC6TISAb0PB566yu+tocfCIpIvdgfFoJu3 ddrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:references:cc:to:subject:from :dkim-signature; bh=ZU+N+jdHFGLm83s+Rk1MKxPtLrSDeM3IVCQzNfaWkQc=; b=b2V3PTyr81R7zsjBVo3BKubrNPAAXAYyre+Xy6fnEfVBatfCw0p3D/FregkxOpJ8p1 nwtSDRdY9fajHpgEDg3SASUWdSN6fFTkXLT9c7feJ7/hk1hbQepK2mdQwykUzBZwCABd IgnOxDQA3A3rqddVwCHEeaNbFTfy/8Vhg+riRoUtSPkBewW3hfLDmz11g9sqoBidNor2 1UPdfgCDPx1WpfiWDYeh+E6kgdncS9s6jU7kudphtmJj4JiVAWFkT967kBRUEeWv5mH8 ZanBsPqt2cAc/6wBMTKGPKAEKlTGgylGq/Dd6S4c4MJZQ9U4k5LYZurSidfNIboK+ZNc J87g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=tH0GJeQ0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 72si14675366plb.177.2019.07.14.21.18.17; Sun, 14 Jul 2019 21:19:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=tH0GJeQ0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726292AbfGOERb (ORCPT + 99 others); Mon, 15 Jul 2019 00:17:31 -0400 Received: from mail-yw1-f66.google.com ([209.85.161.66]:34908 "EHLO mail-yw1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725385AbfGOERa (ORCPT ); Mon, 15 Jul 2019 00:17:30 -0400 Received: by mail-yw1-f66.google.com with SMTP id g19so6312446ywe.2; Sun, 14 Jul 2019 21:17:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:subject:to:cc:references:openpgp:autocrypt:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ZU+N+jdHFGLm83s+Rk1MKxPtLrSDeM3IVCQzNfaWkQc=; b=tH0GJeQ0Qsos4Kd3Jn1sI+2rqlqRqd78CBBlGmEY08eAsMLyduNekysuXcKb3uFlwa KLYQaZzNdRkvHKmcpZhJ/GHR1aq6jpvFJgW/+OVF0J4HvDHcGpVp0Ot5WkCE5bkMatkE e0jY5TSrHfe2LGdgzwMearR6W5AOtCtWyFg9qPY9ATC+HwtVfQCPanaXoXb4zAKu9IYQ 6ZprZsP7CR2eMNZUY6rK1ZmWrIz9AumuIuxA10MYnigbkdh1L0vjOIBmfC16lKulHw7E QC8EJDT2XVlnfd9CdqMbEquokiGhNglfDRjYsdflw+LPxSXKO6gxgTqJWF0fR4FCmCoi U3jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:subject:to:cc:references:openpgp :autocrypt:message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=ZU+N+jdHFGLm83s+Rk1MKxPtLrSDeM3IVCQzNfaWkQc=; b=sJp59MKitXa3TEDz45rpwEwRBvqriJp1cHdnftXpbztsOHDNJ7Ecrl6e0iDv1Bdqmj EADg1p4On6VtJvZqUGbOzsNTJAHasWGpjx/RyQCkofqJbdZTIGh0kT5K+0Y97Zprr8Ky 1yeMpvU2Rnm7ANJhrBtYhYjLhnGEhY62KDBOdUxDL0M6izXh3bjxNfurY6ybw7bboILF mYzaflSsrkZc2NQgRj06YhMfNYJbk4ialKhVdlXIadWBHQX5Z39ElP2KzDumz6CpkYaR T+b09oA6vYt/zb6aLP5eecxLccxgu1GUlFEP5Gsa3mkyJcEpuUsxYcZ8pZzNQW+7qnBj 25QQ== X-Gm-Message-State: APjAAAXePZcnl54RWLUw8i5I6KMrL/1NLDyYd2ZMFzdgFGNEEAwqBl6c NA3Kzchf6zpLl7WzckDTaoA= X-Received: by 2002:a81:ae0e:: with SMTP id m14mr15251245ywh.308.1563164249752; Sun, 14 Jul 2019 21:17:29 -0700 (PDT) Received: from [192.168.1.74] (75-58-59-55.lightspeed.rlghnc.sbcglobal.net. [75.58.59.55]) by smtp.gmail.com with ESMTPSA id 206sm4035932ywu.34.2019.07.14.21.17.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 14 Jul 2019 21:17:28 -0700 (PDT) From: Sinan Kaya X-Google-Original-From: Sinan Kaya Subject: Re: [PATCH v3 04/24] dmaengine: qcom_hidma: Remove call to memset after dmam_alloc_coherent To: Fuqian Huang Cc: Andy Gross , David Brown , Vinod Koul , linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, Robin Murphy , Christoph Hellwig References: <20190715031723.6375-1-huangfq.daxian@gmail.com> Openpgp: preference=signencrypt Autocrypt: addr=okaya@kernel.org; keydata= mQENBFrnOrUBCADGOL0kF21B6ogpOkuYvz6bUjO7NU99PKhXx1MfK/AzK+SFgxJF7dMluoF6 uT47bU7zb7HqACH6itTgSSiJeSoq86jYoq5s4JOyaj0/18Hf3/YBah7AOuwk6LtV3EftQIhw 9vXqCnBwP/nID6PQ685zl3vH68yzF6FVNwbDagxUz/gMiQh7scHvVCjiqkJ+qu/36JgtTYYw 8lGWRcto6gr0eTF8Wd8f81wspmUHGsFdN/xPsZPKMw6/on9oOj3AidcR3P9EdLY4qQyjvcNC V9cL9b5I/Ud9ghPwW4QkM7uhYqQDyh3SwgEFudc+/RsDuxjVlg9CFnGhS0nPXR89SaQZABEB AAG0HVNpbmFuIEtheWEgPG9rYXlhQGtlcm5lbC5vcmc+iQFOBBMBCAA4FiEEYdOlMSE+a7/c ckrQvGF4I+4LAFcFAlztcAoCGwMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQvGF4I+4L AFfidAf/VKHInxep0Z96iYkIq42432HTZUrxNzG9IWk4HN7c3vTJKv2W+b9pgvBF1SmkyQSy 8SJ3Zd98CO6FOHA1FigFyZahVsme+T0GsS3/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ozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190715031723.6375-1-huangfq.daxian@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/14/2019 11:17 PM, Fuqian Huang wrote: > In commit 518a2f1925c3 > ("dma-mapping: zero memory returned from dma_alloc_*"), > dma_alloc_coherent has already zeroed the memory. > So memset is not needed. > > Signed-off-by: Fuqian Huang I don't see SWIO or ARM64 IOMMU drivers getting impacted by the mentioned change above (518a2f1925c3). arch/alpha/kernel/pci_iommu.c | 2 +- arch/arc/mm/dma.c | 2 +- arch/c6x/mm/dma-coherent.c | 5 ++++- arch/m68k/kernel/dma.c | 2 +- arch/microblaze/mm/consistent.c | 2 +- arch/openrisc/kernel/dma.c | 2 +- arch/parisc/kernel/pci-dma.c | 4 ++-- arch/s390/pci/pci_dma.c | 2 +- arch/sparc/kernel/ioport.c | 2 +- arch/sparc/mm/io-unit.c | 2 +- arch/sparc/mm/iommu.c | 2 +- arch/xtensa/kernel/pci-dma.c | 2 +- drivers/misc/mic/host/mic_boot.c | 2 +- kernel/dma/virt.c | 2 +- 14 files changed, 18 insertions(+), 15 deletions(-) How does this new behavior apply globally?