Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751988AbcCAWVn (ORCPT ); Tue, 1 Mar 2016 17:21:43 -0500 Received: from ozlabs.org ([103.22.144.67]:52420 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751200AbcCAWVV (ORCPT ); Tue, 1 Mar 2016 17:21:21 -0500 X-powerpc-patch-notification: thanks X-powerpc-patch-commit: 5c3c7ede2bdcb85fa2fd51c8147cdf70ebc17fcb In-Reply-To: <1454988763-5580-5-git-send-email-david@gibson.dropbear.id.au> To: David Gibson , paulus@samba.org, benh@kernel.crashing.org From: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, David Gibson Subject: Re: [4/4] powerpc/mm: Split hash page table sizing heuristic into a helper Message-Id: <20160301222119.D4717140326@ozlabs.org> Date: Wed, 2 Mar 2016 09:21:19 +1100 (AEDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1042 Lines: 31 On Tue, 2016-09-02 at 03:32:43 UTC, David Gibson wrote: > htab_get_table_size() either retrieve the size of the hash page table (HPT) > from the device tree - if the HPT size is determined by firmware - or > uses a heuristic to determine a good size based on RAM size if the kernel > is responsible for allocating the HPT. > > To support a PAPR extension allowing resizing of the HPT, we're going to > want the memory size -> HPT size logic elsewhere, so split it out into a > helper function. > > Signed-off-by: David Gibson > Reviewed-by: Aneesh Kumar K.V Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/5c3c7ede2bdcb85fa2fd51c814 I reworded one comment a little, from: /* 2^11 PTEGS / 2^18 bytes is the minimum htab size permitted * by the architecture */ to: /* * 2^11 PTEGS of 128 bytes each, ie. 2^18 bytes is the minimum htab * size permitted by the architecture. */ To avoid any confusion about the "/" referring to division. cheers