Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1699939rdb; Thu, 25 Jan 2024 03:41:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IEpnu8tqcjJRslm8oqT9pxSygF+lUeb1FqrZNqwV2vdmK3xNbT1W9lXu/zkgxnh8Rg3vXK3 X-Received: by 2002:a0d:d4c2:0:b0:5ff:516c:4e7d with SMTP id w185-20020a0dd4c2000000b005ff516c4e7dmr540982ywd.20.1706182911504; Thu, 25 Jan 2024 03:41:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706182911; cv=pass; d=google.com; s=arc-20160816; b=qSPW2YoCewYY8Q3b3ZSAGBsjqmq4rAbQdhQmoDZwInJ/ft9o7jmvBC9omQunAs2RkT BQD2v4/Vh4Iy9Pnjvj07NSk0ByMUhrZ3+Yisfx7QT4I24Wn8B2eySJhRuqypTQfsdmyC sX4wdxQCpF+nP9XbFoYwDyBqQWb/xdT6Rx4BjsJwxSVt+w+tSQthKtZRcXMC3nEY3s0t yUPYd+xCMMD7XJiD99E9WPb+YBzqMFWMVz1ig7cnGiuuoFrIbRotGV2X/ysfb7n/2GGr APazGUZ2ps4EY2Ab09JGH/jNJcEcnpSgCr9BbMT2dxvOs7/Iz2diH4xHKHrs5ogr39PD UFhA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=YMkcj1RxCg+F1BWhddjI9Ycc7Uwgy8pidxj0zAVT/dw=; fh=kRJCCZqK5Ini92JiPOEDvwBf5s3PVFirbeKONr+cWOE=; b=Jma6ulF0O/ALhscZpYtbUnDVA6qccfIemW0chgjVEh6lnV4XcW3HSDBDhsFdsBbHZz AzS3JAKs3X1mtIhjrwa16cI262QEtWaad3yZmKLLlMfszQCxCdstB6S1XXtH8gNcwq3b 4kRsx1/EY66X9TR3BeuGtVFzjaf85+NvUUVNrUkVXAQTgUYsIZfL07cxn1NdsjmSI8Iq acQyMriyvEf/mXUcI0MKc5pVUa/AvIqOvLzKBgVMd89qvQDcWs1pV9aLBfl1Y8UOlTkG k5fVfpOepqFZalS3u1PuO/mfzCqyY+4ndKZX4hq7bu1RW2j3KYWskYG/uF5YnGY2FJYU ljMA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SEqL56Hb; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-38536-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38536-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id b18-20020a0ccd12000000b00681993a0b3asi12254085qvm.265.2024.01.25.03.41.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 03:41:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-38536-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SEqL56Hb; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-38536-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38536-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 62C771C228AE for ; Thu, 25 Jan 2024 11:41:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8CE9A2FE2D; Thu, 25 Jan 2024 11:41:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SEqL56Hb" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AF0202C68A; Thu, 25 Jan 2024 11:41:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706182887; cv=none; b=PKqW/SB3yaUgBFQOF3LPVdbLQMTN1LTq0ba94y4fYeJKaHzizJNKph2MitxTkRLyTowhJNPt4/cXAOJRGnMIEZMh0KgpyJwotE1qoymslgVrwikvMNIFRrYorC3gr0XbXOFkDqGbOHoAjY/tkqcWIgzYHSa6zsjMFclqMZVvdf4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706182887; c=relaxed/simple; bh=2UzSqM8F9c6/TN1nA4iesswlEyFVZxzf7xU7GhWbgpk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VK7AuAnfxyId+L4kYOGJwCYCBQrTPHhxAxn8z61quwuefGNFs9D007Tb0l9fIFKLdumCbdOnM1JYFCeH/HCeHgFBEdftzkx4to8Sym6+DY40IrFD28Cwzf+eV7LBYlRjCIpxL9oVj57fcPkGR1X3CJyVgLO7wKXUbKiNJDwJ/VA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SEqL56Hb; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C8FDC433F1; Thu, 25 Jan 2024 11:41:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706182887; bh=2UzSqM8F9c6/TN1nA4iesswlEyFVZxzf7xU7GhWbgpk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SEqL56HbfgFWQYZWtFveo2Asmt+joabM+0CwoMkWkrKE7g8dZLIdFnsb3R8RXi1rF shsYXpKCw0dGfMbiICEALxlUUW8U2LwWBP8lIH2RUX0KQQRMbprWNV0AgFL0K9yMYb svhpmElf4DYufeqyU//Qfz8CVaYiifEOiRK3KpmpUrppYJVg5yGCnq5SVwpiY9f1jU V/xp49v90bSVjsnbWtAK/ooKHytdJO8pS4eDRa1Q3c4SeJPVVpqxfvIgaBKehtMMEn 8rEGVhiXgUVSX9d1tzfLYlPfSLIWelonaI+kUTUNdAfD4EMby9q0B8UFlWdjMealeK /Y3w5OvB3VlLQ== Date: Thu, 25 Jan 2024 11:41:22 +0000 From: Simon Horman To: Ratheesh Kannoth Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, sgoutham@marvell.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, sbhatta@marvell.com, gakula@marvell.com, hkelam@marvell.com, bcreeley@amd.com, sumang@marvell.com Subject: Re: [PATCH net v1] octeontx2-af: Initialize bitmap arrays. Message-ID: <20240125114122.GA362264@kernel.org> References: <20240125063414.3930526-1-rkannoth@marvell.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240125063414.3930526-1-rkannoth@marvell.com> On Thu, Jan 25, 2024 at 12:04:14PM +0530, Ratheesh Kannoth wrote: > kmalloc_array() without __GFP_ZERO flag does not initializes > memory to zero. This causes issues with bitmap. Use __GFP_ZERO > to fix the issue. > > Fixes: dd7842878633 ("octeontx2-af: Add new devlink param to configure maximum usable NIX block LFs") > Signed-off-by: Ratheesh Kannoth > > ChangeLogs: > v0 -> v1: Removed devm_kcalloc()._ Hi Ratheesh, sorry for missing this in my first review, but perhaps it is better to use bitmap_zalloc() and bitmap_free() as suggested by Brett Creeley. Link: https://lore.kernel.org/all/cf035125-d7fb-4423-8f64-a5be7505243d@amd.com/