Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3983136ybi; Mon, 15 Jul 2019 02:01:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqzHNqVAIYjwz55l4HVwZZtGMxbcKK84U8doojAnqcGYGhjchpxntEveo1elcyzbYc7RlMC7 X-Received: by 2002:a17:902:e30d:: with SMTP id cg13mr26965314plb.173.1563181299560; Mon, 15 Jul 2019 02:01:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563181299; cv=none; d=google.com; s=arc-20160816; b=0sfj2sKzfyIotAldQyGIIYUyeCAA1mymx3qjUoewxrNGuMDiMHymMeqm1b7jtqUyxs FccQRLivslLUksTZlQH3MXXYoC4xb62YcE3J5UFw3bczeL+8IGKbtO4Fu9LxHvoSGUW2 9Grj7FtxsUTyEAvZ4m9BXFUsdm1R5efeXWhMv6zPEleCOCvMNngb5FH8G42sh/c/jKkK unP6QtHBMMxWs/C2rKj2U6qXhb/0dG7VPXc1T6kCxZA+RkJHxCm23j+aJfvFoLKcGdt0 s+WD/d1cmrcjmC3da6vdBQeKC0UHGy0icEfeVzHqoAPrWJQTesOtNqMAB/QdNyJIunxH WXHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:cc:to:subject:dkim-signature :dkim-filter; bh=4Pc+fO1+/ZMl5J0ti/1yRmjXong6iDuRO9je3QCE9Q0=; b=FDS4pA4tvvYZsaQk03h+UZK7YEldBiEWUbDfnxBmmiDcTSiNhrzr/TpRIcCtPWCGZd AkWNxSSfHVM/JCAxlCFxBrqNgIF1VUW/5o2YZyXY7rDY0B4OjbGzs8lcGziRIPIiL/2X MPtbprtfREEuy1Re424/I00PhRqHOYpcS0GET5wuszD5RkGaOQvxdY0MYgWz/I/XLe9m PwygSDnAUFx5EDFOgEhFRpQsZnTNCsJvss0+PwOSCkFKKUTlPWpUxvaYsAgsRm/dgzNV s6I2bxTohZE0SYipvMK1zS0OK4xmOSwOK9faZFP5+E0yH2bGLd8IWUo/coVWS6hBZmO4 nZkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=u3ZMvk7j; 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=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b23si14500692pjp.62.2019.07.15.02.01.20; Mon, 15 Jul 2019 02:01:39 -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=@samsung.com header.s=mail20170921 header.b=u3ZMvk7j; 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=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729451AbfGOJA0 (ORCPT + 99 others); Mon, 15 Jul 2019 05:00:26 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:37654 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729377AbfGOJA0 (ORCPT ); Mon, 15 Jul 2019 05:00:26 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190715090024euoutp01a1be92244d918a28908f9c08ac8627ff~xiQqzZMZT1307213072euoutp01c for ; Mon, 15 Jul 2019 09:00:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190715090024euoutp01a1be92244d918a28908f9c08ac8627ff~xiQqzZMZT1307213072euoutp01c DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1563181224; bh=4Pc+fO1+/ZMl5J0ti/1yRmjXong6iDuRO9je3QCE9Q0=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=u3ZMvk7jnxyJLVLbr/+tv1MzHMvram7blahiR5CjL73c+nCMzAGpq/VqSdAa+cBLz xynNOxsr1UPT+hvgwI6ob0cVPnl5LNxhSn5WP/awFnkqgTzgEb5DWIaQRzMMkDcMA2 eX5DOSc1UTWVu+VeN3Tl7lfkwTadrzLZO5EyXrZI= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190715090024eucas1p26e6f7a1817078948ccb0674890a12909~xiQqMM2wy1153111531eucas1p2e; Mon, 15 Jul 2019 09:00:24 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 05.B3.04325.7A04C2D5; Mon, 15 Jul 2019 10:00:23 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190715090023eucas1p2ab541c5d4b4debe766295d3c6efbd1cd~xiQpaqaWs2765727657eucas1p2T; Mon, 15 Jul 2019 09:00:23 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190715090023eusmtrp1f100dd8f1e965e9836e58ab0e75d3a31~xiQpMgm-i2192721927eusmtrp1R; Mon, 15 Jul 2019 09:00:23 +0000 (GMT) X-AuditID: cbfec7f5-b75ff700000010e5-a4-5d2c40a78be5 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id FE.E3.04146.6A04C2D5; Mon, 15 Jul 2019 10:00:22 +0100 (BST) Received: from [106.120.51.75] (unknown [106.120.51.75]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190715090022eusmtip2c2db709b559c4ac92afa9b8002fb0a03~xiQoxN0U10255602556eusmtip2U; Mon, 15 Jul 2019 09:00:22 +0000 (GMT) Subject: Re: [PATCH v3 15/24] media: exynos4-is: Remove call to memset after dma_alloc_coherent To: Fuqian Huang Cc: Kyungmin Park , Mauro Carvalho Chehab , Kukjin Kim , Krzysztof Kozlowski , linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org From: Sylwester Nawrocki Message-ID: <37046e7b-fdde-c10f-4850-0b3efd4a00cd@samsung.com> Date: Mon, 15 Jul 2019 11:01:21 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20190715031851.6890-1-huangfq.daxian@gmail.com> Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrCKsWRmVeSWpSXmKPExsWy7djPc7rLHXRiDVbOMbBYduokq0X/49fM FufPb2C3ONv0ht1i0+NrrBaXd81hs+jZsJXVYsb5fUwWyzb9YXLg9Ng56y67x6ZVnWwem5fU e/RtWcXo8XmTXABrFJdNSmpOZllqkb5dAlfGmatXmAtmcVR0bXnD3MD4i62LkZNDQsBE4u71 y6xdjFwcQgIrGCWWrrsO5XxhlNg6azUjhPOZUWLGvbeMMC2f1i5lg0gsZ5T4uPs3E4TzllFi cU8rK0iVsECiRM+0L0wgtoiAtsTH0y3MIEXMAquZJDYeWA+2nU3AUKL3aB/YWF4BO4kJzdtY QGwWAVWJXdP/g8VFBSIkTh2ZxwJRIyhxcuYTIJuDg1PAVuL+RwuQMLOAuETTl5WsELa8xPa3 c8B2SQgcYpd4vegc1NkuEj29TSwQtrDEq+Nb2CFsGYnTk3tYIBqaGSV6dt9mh3AmMErcP74A qtta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3EKMHBrCTCa/sVKMSbklhZlVqUH19UmpNafIjRFOi3icxSosn5wPSQVxJvaGpo bmFpaG5sbmxmoSTO2yFwMEZIID2xJDU7NbUgtQimj4mDU6qBkf/Ym/VskxWjrjHe2x/S4prB HL1gYVX77W1lG8r/KBp7VjFs23rlW1Rroeketabd53huBTU/XlU6LZfLJrT8/fyCSylWH+fq 1AcWzaqI37lsu1r0hdoXAi/KNsatSE9ekTzre4jXgcVqlo9DX72PDNohJ/N3ddfD8oxP3BkT 3nnvFsw+862nS4mlOCPRUIu5qDgRAKgQjlbXAgAA X-CMS-MailID: 20190715090023eucas1p2ab541c5d4b4debe766295d3c6efbd1cd X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190715090023eucas1p2ab541c5d4b4debe766295d3c6efbd1cd X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190715090023eucas1p2ab541c5d4b4debe766295d3c6efbd1cd References: <20190715031851.6890-1-huangfq.daxian@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/15/19 05:18, 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 I can't see any changes in the above mentioned commit that would make dma_alloc_coherent() (arm_coherent_dma_alloc()) zeroing its returned memory. Maybe you need to add a reference to some other instead? > Signed-off-by: Fuqian Huang > drivers/media/platform/exynos4-is/fimc-is.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/media/platform/exynos4-is/fimc-is.c b/drivers/media/platform/exynos4-is/fimc-is.c > index e043d55133a3..77633e356305 100644 > --- a/drivers/media/platform/exynos4-is/fimc-is.c > +++ b/drivers/media/platform/exynos4-is/fimc-is.c > @@ -341,7 +341,6 @@ static int fimc_is_alloc_cpu_memory(struct fimc_is *is) > return -ENOMEM; > > is->memory.size = FIMC_IS_CPU_MEM_SIZE; > - memset(is->memory.vaddr, 0, is->memory.size); -- Thanks, Sylwester