[RFC PATCH 0/2] arm64: Add support for 48-bit Physical Addresses
Radha Mohan
mohun106 at gmail.com
Tue Dec 10 11:53:24 EST 2013
On Thu, Dec 5, 2013 at 11:00 PM, Catalin Marinas
<catalin.marinas at arm.com> wrote:
> On Thu, Dec 05, 2013 at 02:35:52PM +0000, Radha Mohan wrote:
>> Before going for a next version of patch to fix breaking SMMU and KVM,
>> I would like to know about the best possible implementation.
>> Should I go for a compile time option? I am not in favor of this. What
>> are options if in future there's 16KB page support in the kernel.
>
> As I said in the other email, separate the shifts definitions (primarily
> page size dependent) from the type definitions (dependent on the number
> of levels).
>
> Just to understand your requirements better. Does your platform have
> more than 256GB of RAM? With the current configuration, the VA space is
> 39-bit with 4K (which would allow 512GB minus some vmalloc and modules
> space) and 42-bit with 64K pages (2TB minus vmalloc/modules).
Sorry for the delay in responding.
More than 256GB DRAM is a likely possibility. But I am unsure of the
exact page size that would be used. That is the reason for expanding
the VA bits to full and have flexibility for customers. As Marc
mentioned this is a rare requirement for now in ARMv8 processors, but
would be nice to have a plan for long term. I would prefer a runtime
support for this i.e reading the ID_AA64MMFR0_EL1.PARange value but I
think this would be a major rework.
At the least I plan to support this with current implementation i.e,
3-levels(4K) / 2-levels(64K) itself. This way it would need minimal
changes for a 48-bit PA.
>
> --
> Catalin
More information about the linux-arm-kernel
mailing list