[PATCH] powerpc/mm: Correct process and partition table max size

Balbir Singh bsingharora at gmail.com
Thu Nov 10 11:30:56 AEDT 2016



On 09/11/16 16:36, Suraj Jitindar Singh wrote:
> Version 3.00 of the ISA states that the PATS (partition table size) field
> of the PTCR (partition table control register) and the PRTS (process table
> size) field of the partition table entry must both be less than or equal
> to 24. However the actual size of the partition and process tables is equal
> to 2 to the power of 12 plus the PATS and PRTS fields, respectively. This
> means that the max allowable size of each of these tables is 2^36 or 64GB
> for both.
> 
> Thus when checking the size shift for each we should be checking for values
> of greater than 36 instead of the current check for shifts larger than 24
> and 23.
> 

I looked at the ISA and the patch seems reasonable to me. It has no functional
impact other than when we decide to increase the size of PA(R)TB_SIZE_SHIFT

Reviewed-by: Balbir Singh <bsingharora at gmail.com>


More information about the Linuxppc-dev mailing list