linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to get the supported page sizes of aarch64? (and possible other architectures)
@ 2022-01-04 23:44 Qu Wenruo
  2022-01-07 11:46 ` Alex Bennée
  0 siblings, 1 reply; 2+ messages in thread
From: Qu Wenruo @ 2022-01-04 23:44 UTC (permalink / raw)
  To: qemu-arm, Linux Kernel Mailing List

Hi,

Recently I'm trying to boot a kernel with 16K page size, but edk2
firmware failed to load the kernel on my CM4, with unsupported message:

  Failed to execute Archlinux ARM (\Image-custom): Unsupported

While 4K and 64K page sized kernels are fine to boot.

A quick search shows that Cortex A processors support 4K and 64K page
size, and 16K page size is not a mandatory requirement.

On the other hand, other aarch64 processors, like Apple M1 only supports
4K and 16K page size, no 64K page size support.


Although ARM documents show ID_AA64MMFR0_EL1 would report such info, is
there any user space tool or kernel messages to show an
end-user-friendly output about what page sizes are support?

Thanks,
Qu

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to get the supported page sizes of aarch64? (and possible other architectures)
  2022-01-04 23:44 How to get the supported page sizes of aarch64? (and possible other architectures) Qu Wenruo
@ 2022-01-07 11:46 ` Alex Bennée
  0 siblings, 0 replies; 2+ messages in thread
From: Alex Bennée @ 2022-01-07 11:46 UTC (permalink / raw)
  To: Qu Wenruo; +Cc: qemu-arm, Linux Kernel Mailing List


Qu Wenruo <quwenruo.btrfs@gmx.com> writes:

> Hi,
>
> Recently I'm trying to boot a kernel with 16K page size, but edk2
> firmware failed to load the kernel on my CM4, with unsupported message:
>
>  Failed to execute Archlinux ARM (\Image-custom): Unsupported
>
> While 4K and 64K page sized kernels are fine to boot.
>
> A quick search shows that Cortex A processors support 4K and 64K page
> size, and 16K page size is not a mandatory requirement.
>
> On the other hand, other aarch64 processors, like Apple M1 only supports
> 4K and 16K page size, no 64K page size support.
>
>
> Although ARM documents show ID_AA64MMFR0_EL1 would report such info, is
> there any user space tool or kernel messages to show an
> end-user-friendly output about what page sizes are support?

Not that I'm aware of but a chunk of the ID registers are exposed to
user space to read (although some bits are masked). I think the kernel
hides the translation granules support and I think only exposes the page
size the kernel has booted into.

I guess you could hack the kernel to dump the real ID register value in
dmesg or something like that?

>
> Thanks,
> Qu


-- 
Alex Bennée

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-07 12:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-04 23:44 How to get the supported page sizes of aarch64? (and possible other architectures) Qu Wenruo
2022-01-07 11:46 ` Alex Bennée

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).