All of lore.kernel.org
 help / color / mirror / Atom feed
From: Florian Weimer <fweimer@redhat.com>
To: linuxppc-dev@lists.ozlabs.org
Cc: Peter Bergner <bergner@linux.ibm.com>
Subject: Are 256K page sizes really a thing (on ppc64le in particular)?
Date: Sat, 28 Sep 2024 18:08:23 +0200	[thread overview]
Message-ID: <87cyknzrpk.fsf@oldenburg.str.redhat.com> (raw)

I'm working on adding a <sys/pagesize.h> header to glibc, so that
programmers can easily determine the range of possible page sizes for a
particular target, for things like pointer tagging and mapped file
alignment requirements.

I'm not familiar from the Kconfig system, but as far as I can tell, this
ensures that 256 KiB pages are only available on 44x machines:

arch/powerpc/Kconfig-config PPC_256K_PAGES
arch/powerpc/Kconfig-   bool "256k page size (Requires non-standard binutils settings)"
arch/powerpc/Kconfig-   depends on 44x && !PPC_47x
arch/powerpc/Kconfig:   select HAVE_PAGE_SIZE_256KB

And none of the 44x configurations set 64BIT, so it's all 32-bit.

Would it still make sense to recommend 256 KiB file alignment to
programmers on 32-bit PowerPC, or should <sys/pagesize.h> pretend
that the maximum page size is 64 KiB?

Thanks,
Florian



             reply	other threads:[~2024-09-28 16:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-28 16:08 Florian Weimer [this message]
2024-09-28 16:38 ` Are 256K page sizes really a thing (on ppc64le in particular)? LEROY Christophe
2024-09-29 11:24   ` Michael Ellerman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87cyknzrpk.fsf@oldenburg.str.redhat.com \
    --to=fweimer@redhat.com \
    --cc=bergner@linux.ibm.com \
    --cc=linuxppc-dev@lists.ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.