Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: "Gaël PORTAY" <gael.portay@rtone.fr>
Cc: Martin Bark <martin@barkynet.com>,
	Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
	Julien Grossholtz <julien.grossholtz@openest.io>,
	buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH v2 1/2] arch: add support 16k page size on ARM64
Date: Fri, 19 Jan 2024 21:24:54 +0100	[thread overview]
Message-ID: <ZaralvfR-l5QW00p@landeda> (raw)
In-Reply-To: <20231211155951.4079886-2-gael.portay@rtone.fr>

Gaël, All,

On 2023-12-11 16:59 +0100, Gaël PORTAY spake thusly:
> The BCM2712 of the RaspberryPi 5 supports for 16KB page size.
> 
> This adds support for 16 KB on ARM64.
> 
> Signed-off-by: Gaël PORTAY <gael.portay@rtone.fr>

Applied to master, thanks.

Regards,
Yann E. MORIN.

> ---
>  arch/Config.in.arm | 4 ++++
>  arch/arch.mk       | 2 +-
>  linux/linux.mk     | 4 ++++
>  3 files changed, 9 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/Config.in.arm b/arch/Config.in.arm
> index 78621e321c..b44a164e03 100644
> --- a/arch/Config.in.arm
> +++ b/arch/Config.in.arm
> @@ -781,6 +781,9 @@ choice
>  config BR2_ARM64_PAGE_SIZE_4K
>  	bool "4KB"
>  
> +config BR2_ARM64_PAGE_SIZE_16K
> +	bool "16KB"
> +
>  config BR2_ARM64_PAGE_SIZE_64K
>  	bool "64KB"
>  
> @@ -789,6 +792,7 @@ endchoice
>  config BR2_ARM64_PAGE_SIZE
>  	string
>  	default "4K" if BR2_ARM64_PAGE_SIZE_4K
> +	default "16K" if BR2_ARM64_PAGE_SIZE_16K
>  	default "64K" if BR2_ARM64_PAGE_SIZE_64K
>  
>  config BR2_ARCH
> diff --git a/arch/arch.mk b/arch/arch.mk
> index 2e737b92ac..4174d33df5 100644
> --- a/arch/arch.mk
> +++ b/arch/arch.mk
> @@ -23,7 +23,7 @@ ifeq ($(BR2_ARC_PAGE_SIZE_4K)$(BR2_ARM64_PAGE_SIZE_4K),y)
>  ARCH_TOOLCHAIN_WRAPPER_OPTS += -Wl,-z,max-page-size=4096 -Wl,-z,common-page-size=4096
>  else ifeq ($(BR2_ARC_PAGE_SIZE_8K),y)
>  ARCH_TOOLCHAIN_WRAPPER_OPTS += -Wl,-z,max-page-size=8192 -Wl,-z,common-page-size=8192
> -else ifeq ($(BR2_ARC_PAGE_SIZE_16K),y)
> +else ifeq ($(BR2_ARC_PAGE_SIZE_16K)$(BR2_ARM64_PAGE_SIZE_16K),y)
>  ARCH_TOOLCHAIN_WRAPPER_OPTS += -Wl,-z,max-page-size=16384 -Wl,-z,common-page-size=16384
>  else ifeq ($(BR2_ARM64_PAGE_SIZE_64K),y)
>  ARCH_TOOLCHAIN_WRAPPER_OPTS += -Wl,-z,max-page-size=65536 -Wl,-z,common-page-size=65536
> diff --git a/linux/linux.mk b/linux/linux.mk
> index 1db5c6046d..53e2ad6d48 100644
> --- a/linux/linux.mk
> +++ b/linux/linux.mk
> @@ -411,6 +411,10 @@ define LINUX_KCONFIG_FIXUP_CMDS
>  		$(call KCONFIG_ENABLE_OPT,CONFIG_ARM64_4K_PAGES)
>  		$(call KCONFIG_DISABLE_OPT,CONFIG_ARM64_16K_PAGES)
>  		$(call KCONFIG_DISABLE_OPT,CONFIG_ARM64_64K_PAGES))
> +	$(if $(BR2_ARM64_PAGE_SIZE_16K),
> +		$(call KCONFIG_DISABLE_OPT,CONFIG_ARM64_4K_PAGES)
> +		$(call KCONFIG_ENABLE_OPT,CONFIG_ARM64_16K_PAGES)
> +		$(call KCONFIG_DISABLE_OPT,CONFIG_ARM64_64K_PAGES))
>  	$(if $(BR2_ARM64_PAGE_SIZE_64K),
>  		$(call KCONFIG_DISABLE_OPT,CONFIG_ARM64_4K_PAGES)
>  		$(call KCONFIG_DISABLE_OPT,CONFIG_ARM64_16K_PAGES)
> -- 
> 2.43.0
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2024-01-19 20:25 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-11 15:59 [Buildroot] [PATCH v2 0/2] Add support for Pi5 Gaël PORTAY
2023-12-11 15:59 ` [Buildroot] [PATCH v2 1/2] arch: add support 16k page size on ARM64 Gaël PORTAY
2024-01-19 20:24   ` Yann E. MORIN [this message]
2023-12-11 15:59 ` [Buildroot] [PATCH v2 2/2] configs: add raspberrypi 5 defconfig Gaël PORTAY
2024-01-19 20:35   ` Yann E. MORIN
2024-01-20  3:11     ` Adam Duskett
2024-01-20  8:01       ` Gaël PORTAY
2024-01-20  8:53         ` Yann E. MORIN
2024-01-19 20:13 ` [Buildroot] [PATCH v2 0/2] Add support for Pi5 Yann E. MORIN
2024-01-20  8:10   ` Gaël PORTAY
2024-01-20  8:57     ` Yann E. MORIN

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=ZaralvfR-l5QW00p@landeda \
    --to=yann.morin.1998@free.fr \
    --cc=buildroot@buildroot.org \
    --cc=gael.portay@rtone.fr \
    --cc=julien.grossholtz@openest.io \
    --cc=martin@barkynet.com \
    --cc=thomas.petazzoni@bootlin.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox