Hi Cyril, On Wed, Aug 01, 2012 at 12:04:36AM +0100, Cyril Chemparathy wrote: > This series is a follow on to the RFC series posted earlier (archived at [1]). > The major change introduced here is the modification to the kernel patching > mechanism for phys_to_virt/virt_to_phys, in order to support LPAE platforms > that require late patching. In addition to these changes, we've updated the > series based on feedback from the earlier posting.
One thing I've noticed going through this code and also looking at the rest of the LPAE code in mainline is that it's not at all clear what is the maximum physical address we can support for memory. We currently have the following restrictions: ARM architecture: 40 bits ARCH_PGD_SHIFT : 38 bits swapfile : 36 bits (I posted some patches for this. We could extend to 37 bits if we complicate the code) SPARSEMEM : 36 bits (due to limited number of page-flags) It would be nice if we could define a 36-bit memory limit across the kernel for LPAE whilst allowing higher addresses to be used for peripherals. This also matches x86 PAE, so the common code will also work correctly. Otherwise I worry that we will see platforms with memory right at the top of the physical map and these will be incredibly painful to support. Will -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/