From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Subject: Re: [PATCH] arm64, vmcoreinfo : Append 'MAX_USER_VA_BITS' and 'MAX_PHYSMEM_BITS' to vmcoreinfo References: <1548850991-11879-1-git-send-email-bhsharma@redhat.com> <239cdca4-1c7d-f236-f4a9-a0a3fe98f966@arm.com> <86c0dd9f-a55b-8ce8-69ca-893f63087d1a@redhat.com> From: Robin Murphy Message-ID: <2d14484d-743e-080a-daf6-a07b0a659c3d@arm.com> Date: Mon, 4 Feb 2019 15:31:59 +0000 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "kexec" Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: Bhupesh Sharma , James Morse Cc: Mark Rutland , ard.biesheuvel@linaro.org, catalin.marinas@arm.com, kexec@lists.infradead.org, Will Deacon , AKASHI Takahiro , bhupesh.linux@gmail.com, linux-arm-kernel@lists.infradead.org On 04/02/2019 14:35, Bhupesh Sharma wrote: [...] >> Also hardcoding the PTE calculation to use the high address bit mask >> always will break the backward compatibility with older kernels (which >> don't support 52-bit address space extensions). No it won't. There's no difference between an old kernel, a new kernel on a CPU without ARMv8.2-LPA, or a new kernel on a CPU with ARMv8.2-LPA in a system which happens to have less than 49 bits of physical memory map - in all those cases the relevant bits are either RES0 or just actually 0 in the PTE, so replacing 4 bits of zeros with 4 bits of other zeros in the final physical address has no effect whatsoever other than taking a couple of extra instructions to perform. If you're running a 64K page kernel on a system with an SMMU, note how that's already been "broken" for nearly a year now ;) https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/iommu/io-pgtable-arm.c#n211 Robin. _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec