[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b1fe7008d2f230dd89be6d2541b7cf07ed2514e3.camel@linux.ibm.com>
Date: Tue, 12 Aug 2025 11:07:08 +1000
From: Andrew Donnellan <ajd@...ux.ibm.com>
To: Yury Norov <yury.norov@...il.com>,
"Jiri Slaby (SUSE)"
<jirislaby@...nel.org>,
Madhavan Srinivasan <maddy@...ux.ibm.com>,
Michael
Ellerman <mpe@...erman.id.au>,
Nicholas Piggin <npiggin@...il.com>,
Christophe Leroy <christophe.leroy@...roup.eu>,
Thomas Gleixner
<tglx@...utronix.de>,
Frederic Barrat <fbarrat@...ux.ibm.com>, linuxppc-dev@...ts.ozlabs.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 1/2] powerpc: pci-ioda: use bitmap_alloc() in
pnv_ioda_pick_m64_pe()
On Mon, 2025-08-11 at 12:51 -0400, Yury Norov wrote:
> - /* Allocate bitmap */
> - size = ALIGN(phb->ioda.total_pe_num / 8, sizeof(unsigned long));
> - pe_alloc = kzalloc(size, GFP_KERNEL);
> + pe_alloc = bitmap_alloc(phb->ioda.total_pe_num, GFP_KERNEL);
I haven't checked whether or not this has practical impact given what we later
do with the bitmap - does this need to be bitmap_zalloc() to match the existing
use of kzalloc()?
--
Andrew Donnellan OzLabs, ADL Canberra
ajd@...ux.ibm.com IBM Australia Limited
Powered by blists - more mailing lists