Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp998576ybi; Tue, 16 Jul 2019 08:11:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqwUDYse+vSqqAKc6rwTI4q7bPPycWl9O5o8XCMYHIriwA++TqiALnFvfZtTQq82vG/XzgSi X-Received: by 2002:a17:90a:372a:: with SMTP id u39mr37248857pjb.2.1563289862054; Tue, 16 Jul 2019 08:11:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563289862; cv=none; d=google.com; s=arc-20160816; b=Hd7SfDyi7Y/7Ia+Nd4UTs86fau7zxIr3YplS1v2tn/9g7glb4Y3KufuyIHzW+YiEJe Y75L07IFGxPOG1xB5bjG0lzf1ASIGTjrJsJn79CEF/mVq4N6cmSTDyA3kAZwChe8d8Bg ynrCV1B5hVML3cyOfTO9krFD+1wuOv+dk45iAf15hC1mO4K+5LyzsQubbvrpXKm+rfaF uf3f/bgDtbu17FAmbyYzC2WSBlBRgJxpH51I3JTD4xZKXsbTA9x/ATrwPEgf6oVqwJL0 ZGGXVuL+d70spR/2Jg9GTIpYXlutqpXltTWX+udahGsNE2kLomICe0LM2rErIwDTMKiJ qgsg== 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:from:references:cc:to:subject :dkim-signature; bh=qEfT8d9aELBzR5Fle87l/kOkZefP5IX7fZ9TFqlLeC8=; b=YmyJiJOk85KyOiZZ262fhjOYKjIFfvzXSEf1B9BtW/rA49csiTIwRckug09CePALkH qqjZcGr9byM6vFZkaAgUTASl1pnzTn3zywAl6FV0bVjc/EqC3GRY78bHImmrAGPZdjTY EMa6uV/6k+NdLUpLaOHs4/kgmjITcNIC4KRa+VGKTsSVbOkKDSvOvxak1v0sbjOwIwhv WAzGhPWgvw/fN8m2c7dPBbncRMvdbb4MFqoc4pF5EStNJhmy9F8wiqcok0AHeyNALr/I gVh4KLIVPlDS8ChfzwhOfCP/Phg2hP8jD1soC+vcWXBMaPqgwJGKrApTTJ7YmwzTBEzn ZOPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cA0qN5tF; 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=pass (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 t135si20721705pfc.251.2019.07.16.08.10.45; Tue, 16 Jul 2019 08:11:02 -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=pass header.i=@kernel.org header.s=default header.b=cA0qN5tF; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387883AbfGPPKT (ORCPT + 99 others); Tue, 16 Jul 2019 11:10:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:38654 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728384AbfGPPKS (ORCPT ); Tue, 16 Jul 2019 11:10:18 -0400 Received: from [10.84.150.84] (unknown [167.220.148.84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D79052173B; Tue, 16 Jul 2019 15:10:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563289817; bh=qsVYG/AAKfZqvM/AL48HHkboJVYj6AAMTA3FfuN1840=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=cA0qN5tFZBu+I0MkNLY1rdU6KqOdCmjmgBZqfB3AYRCy+6Cx+1bm4YhjQvkbyzmvD HunhvZyLo8l2aLhfLvSgNC/rgeU95ST08kkJkAJB5nUfQk3aTdvW70dMweVgXFYDcf TC4WiUmbxp4t1zcUxnICgEl+WIfag5taN+tPq2p8= Subject: Re: [PATCH v3 04/24] dmaengine: qcom_hidma: Remove call to memset after dmam_alloc_coherent To: Robin Murphy , Fuqian Huang Cc: Andy Gross , David Brown , Vinod Koul , linux-arm Mailing List , linux-arm-msm@vger.kernel.org, dmaengine@vger.kernel.org, Linux Kernel Mailing List , Christoph Hellwig References: <20190715031723.6375-1-huangfq.daxian@gmail.com> <72c45b14-f0c0-9d1c-0953-eea70ce513a0@kernel.org> <245ffd79-316c-e985-d1da-2ccea6d29636@kernel.org> <9ea5f97f-5963-5836-6ab2-dc30628c6820@arm.com> From: Sinan Kaya 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+4LAFcFAlztcAoCGwMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQvG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u6FzJ7Y L+s0nPaNMKwv/Xhhm6Y= Message-ID: Date: Tue, 16 Jul 2019 11:10:15 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <9ea5f97f-5963-5836-6ab2-dc30628c6820@arm.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/16/2019 7:35 AM, Robin Murphy wrote: > On 15/07/2019 16:17, Sinan Kaya wrote: >> On 7/15/2019 1:43 AM, Fuqian Huang wrote: >>> Should I rewrite the commit log? Just mention that dma_alloc_coherent >>> has already >>> zeroed the memory and not to reference the commit? >> >> I'd like to hear from Robin Murphy that arm smmu driver follows this as >> well. > > I'd be lying if I said it did. > > ...but only because that's never been part of the SMMU driver's > responsibility either way. The iommu-dma layer however, and thus the > respective arm64 iommu_dma_ops, has always zeroed allocations right from > its inception. > > 518a2f1925c3 was just cleaning up the last of the stragglers which > *weren't* already clearing buffers anyway, such that we could formalise > that behaviour into the API. Thanks for confirming the behavior for arm64 arch. Acked-by: Sinan Kaya