Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1347071 > unrolled thread

Re: [4/4] powerpc/mm: Split hash page table sizing heuristic into a helper

Started byMichael Ellerman <mpe@ellerman.id.au>
First post2016-03-01 23:30 +0100
Last post2016-03-02 00:30 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [4/4] powerpc/mm: Split hash page table sizing heuristic into a helper Michael Ellerman <mpe@ellerman.id.au> - 2016-03-01 23:30 +0100
    Re: [4/4] powerpc/mm: Split hash page table sizing heuristic into a  helper David Gibson <david@gibson.dropbear.id.au> - 2016-03-02 00:30 +0100

#1347071 — Re: [4/4] powerpc/mm: Split hash page table sizing heuristic into a helper

FromMichael Ellerman <mpe@ellerman.id.au>
Date2016-03-01 23:30 +0100
SubjectRe: [4/4] powerpc/mm: Split hash page table sizing heuristic into a helper
Message-ID<r80XN-6Zi-43@gated-at.bofh.it>
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 <david@gibson.dropbear.id.au>
> Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>

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

[toc] | [next] | [standalone]


#1347090 — Re: [4/4] powerpc/mm: Split hash page table sizing heuristic into a helper

FromDavid Gibson <david@gibson.dropbear.id.au>
Date2016-03-02 00:30 +0100
SubjectRe: [4/4] powerpc/mm: Split hash page table sizing heuristic into a helper
Message-ID<r81TP-7Bj-13@gated-at.bofh.it>
In reply to#1347071

[Multipart message — attachments visible in raw view] — view raw

On Wed, Mar 02, 2016 at 09:21:19AM +1100, Michael Ellerman wrote:
> 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 <david@gibson.dropbear.id.au>
> > Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
> 
> 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.

Good call, thanks.

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web