Skip to content

Commit

Permalink
arm64: demand paging is supported
Browse files Browse the repository at this point in the history
Test configs for UP and SMP are also included.

(cherry picked from commit c99371e)

Original-Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
GitOrigin-RevId: c99371e
Cr-Build-Id: 8736917283475341809
Cr-Build-Url: https://cr-buildbucket.appspot.com/build/8736917283475341809
Copybot-Job-Name: zephyr-main-copybot-downstream
Change-Id: If3b58a067f11a9a4d233f73bfe5de0dcb79eb6d5
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5856313
Commit-Queue: Keith Short <keithshort@chromium.org>
Tested-by: ChromeOS Prod (Robot) <chromeos-ci-prod@chromeos-bot.iam.gserviceaccount.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
  • Loading branch information
Nicolas Pitre authored and Chromeos LUCI committed Sep 13, 2024
1 parent cbcf796 commit fa7b306
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 1 deletion.
2 changes: 2 additions & 0 deletions arch/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ config ARM64
select IRQ_OFFLOAD_NESTED if IRQ_OFFLOAD
select BARRIER_OPERATIONS_ARCH
select ARCH_HAS_DIRECTED_IPIS
select ARCH_HAS_DEMAND_PAGING
select ARCH_HAS_DEMAND_MAPPING
help
ARM64 (AArch64) architecture

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright (c) 2024 BayLibre SAS
# SPDX-License-Identifier: Apache-2.0

CONFIG_BACKING_STORE_RAM=y
CONFIG_BACKING_STORE_RAM_PAGES=24
CONFIG_SRAM_SIZE=400
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copyright (c) 2024 BayLibre SAS
# SPDX-License-Identifier: Apache-2.0

CONFIG_BACKING_STORE_RAM=y
CONFIG_BACKING_STORE_RAM_PAGES=24
CONFIG_SRAM_SIZE=450
CONFIG_DEMAND_PAGING_ALLOW_IRQ=y
1 change: 1 addition & 0 deletions tests/kernel/mem_protect/demand_paging/prj.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CONFIG_ZTEST=y
CONFIG_DEMAND_PAGING=y
CONFIG_DEMAND_PAGING_STATS=y
CONFIG_DEMAND_PAGING_THREAD_STATS=y
CONFIG_DEMAND_PAGING_TIMING_HISTOGRAM=y
Expand Down
5 changes: 4 additions & 1 deletion tests/kernel/mem_protect/demand_paging/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ tests:
- kernel
- mmu
- demand_paging
platform_allow: qemu_x86_tiny
platform_allow:
- qemu_cortex_a53
- qemu_cortex_a53/qemu_cortex_a53/smp
- qemu_x86_tiny
extra_configs:
- CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=0
kernel.demand_paging.timing_funcs:
Expand Down

0 comments on commit fa7b306

Please sign in to comment.