On 11/07/2014 02:22 AM, Joshua Kinard wrote: [...]
So my guess is unless hugepages can happen in powers of 4,
Huge pages are currently only supported on MIPS64 for this reason. huge_page_mask_size = (normal_page_size/8 * normal_page_size) / 2; If you take log2 of everything you get huge_page_mask_bits = normal_page_bits - 3 + normal_page_bits - 1 = 2 * normal_page_bits - 4 (always even) So all page sizes result in huge pages that meet the power of 4 criterion.
they're not compatible w/ the R10K-series (and likely not the R5K/RM7K, either, since they all have the same 24:13 bits in the PageMask register). It seems the logical choice would be to remove 'select CPU_SUPPORTS_HUGEPAGES' from CPU_R5000, CPU_NEVADA, CPU_R10000, and CPU_RM7000 in arch/mips/Kconfig.