Received: by 2002:ac8:678b:0:b0:405:464a:c27a with SMTP id b11csp3361qtp; Tue, 1 Aug 2023 11:46:49 -0700 (PDT) X-Google-Smtp-Source: APBJJlFL0HlYfcVBlQwdwOMSw27utMbRqJNgTouelpZWRi9b7ZmpEqd2fVJR1v0B66uM1nG9l4vt X-Received: by 2002:a17:902:ce86:b0:1b6:797d:33fb with SMTP id f6-20020a170902ce8600b001b6797d33fbmr15019862plg.64.1690915608932; Tue, 01 Aug 2023 11:46:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690915608; cv=none; d=google.com; s=arc-20160816; b=Ix4twoiBarjkVxqBW/JPtlE90Ug8+fMl3Qfbz9Zut1aB+017nBWbFXWGPmYwfQclxX oHLz/7yA8yG8yKrBuidva71xcUT0XM7a3Ksu0cTuoWE5+t97Gq4nQ8dNMi8yLFtKlXKe g9Cug0KIjncbx1Y0Nrayo5iJtPLIXhErNsPjusGLlSI4yob5J4vaGWAj+Ry4WHTtONZS nrH2lzYjcLvDRik0GjHPC7C1Y7PhXxPwkUsTM7tSOx+9XcuhCCoam2/R4QNEqfadKqdF ywz3aEf9lLKXTjvI2Zn2OHHhf61wzr2vLk/2Ix/UgaWiKFTprfHXMho9rhfLuwi0pXmT mKzA== 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=i+VrwHHMRJts9+iHVxIvYXgFIgYys90GItYu405TW4w=; fh=KLkO201Qm2gU6u/FDoyoYRdSM0Gtjc6otY1/2M/Tw/A=; b=mhqv9lOFG5ZLH2AqIt3X/my93mgUzZAxx3xmq6zjylECaESEERSrsTU1U+iEOz22iz 2vNaCaQcj2axE29a1uPzTxpG89ca0yFQ1DwD0J7kL+6xrJT4xsh5XsEZYgGCGa74jpKB A1jpPD6GrBUYpeUp5YC+Z6XKkCFviwKa1zyqXzK3vHe/yRu9DJg2r+CF9TfXdIkIBxvd LR7gZf9kQ2my/0ycmSSkKmfJbiqvtLgT1X70NEtsB+QM5XIjByWNRpD2n4pj6BvCsp1v bdSy4Hy0bnf4LK7t9IfgRyxNMvUyikFJlZCm2cqHfqwPf2fk1W7H0DxwbLMdjnQynn2M WmLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=N5LVZ7LD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lc12-20020a170902fa8c00b001b9e38b8167si9286237plb.169.2023.08.01.11.46.11; Tue, 01 Aug 2023 11:46:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@kernel.org header.s=k20201202 header.b=N5LVZ7LD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229636AbjHASbP (ORCPT + 99 others); Tue, 1 Aug 2023 14:31:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230252AbjHASbN (ORCPT ); Tue, 1 Aug 2023 14:31:13 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 704EF1FFC; Tue, 1 Aug 2023 11:31:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id EE05E61680; Tue, 1 Aug 2023 18:31:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DB89AC433C7; Tue, 1 Aug 2023 18:31:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690914671; bh=Z6iZx1MnTkv+z0S9RMruiULP5AWXR+HZFjpUnj/UERQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=N5LVZ7LDQp9HZ+iARzkaUjXd/VCMsWt8Jbz0Vel41HptW9Wd0B92SfnMtueHunSq3 vSfaca7LlT3VFnnwIpht+3GkkspvAfpgWoJ7Mye7No4vB4QdzaLLnDE1ZigLN63Nh5 XkOPEGTSXZtsLTW+cP7OZplKGglZdgjiR68Uolpc2zYbBpEsnMmE18UG97elC12Zao Ne+YBLfJWQnZw3s2OHKugQgdWiY+KR1zQt+VW9HWLDssASnbmj8gBNcaRpsIU8SbwE F8wSyL0yKoUIirWrbZnFQGkfPbq/REDNlPMq0nO6eUhSRZVyI2c2X9GjuqydS2UDnf U4jJ9pRhCeJUw== Date: Wed, 2 Aug 2023 00:01:07 +0530 From: Vinod Koul To: sunran001@208suo.com Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dmaengine: idxd: No need to clear memory after a dma_alloc_coherent() call Message-ID: References: <20230721073440.5402-1-xujianghui@cdjrlc.com> <0bd20a5f09b3419e1d4d8c2b6786e886@208suo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0bd20a5f09b3419e1d4d8c2b6786e886@208suo.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,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-kernel@vger.kernel.org On 21-07-23, 07:35, sunran001@208suo.com wrote: > dma_alloc_coherent() already clear the allocated memory, there is no need > to explicitly call memset(). Please fix the sender name and resend. it should match s-o-b name > > Signed-off-by: Ran Sun > --- > drivers/dma/idxd/device.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/dma/idxd/device.c b/drivers/dma/idxd/device.c > index 7c74bc60f582..72330876d40a 100644 > --- a/drivers/dma/idxd/device.c > +++ b/drivers/dma/idxd/device.c > @@ -792,7 +792,6 @@ static int idxd_device_evl_setup(struct idxd_device > *idxd) > evl->log_size = size; > evl->bmap = bmap; > > - memset(&evlcfg, 0, sizeof(evlcfg)); > evlcfg.bits[0] = dma_addr & GENMASK(63, 12); > evlcfg.size = evl->size; -- ~Vinod