-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RFC] test: Add arm64_high_addresses test #33631
[RFC] test: Add arm64_high_addresses test #33631
Conversation
Of course this is failing on CI because #33594 has not been merged yet (and this proves that this works ;) |
I wonder if `arch_allow: arm` won't let ARM32 through where this test is
definitely wrong.
And if we're going to have "low" addresses, I'd use something actually
low i.g. 0x400000 instead of 0x40000000.
|
The
Yup, makes sense. |
3c6df2a
to
4574afd
Compare
4574afd
to
cd3565e
Compare
This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time. |
@carlocaione - can you rebase? I see nothing wrong with additional tests. |
cd3565e
to
d50862e
Compare
@cfriedt can we merge this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks ok overall. Some comments about the CMakeLists.
d50862e
to
b8d4e59
Compare
Latel we have had several failures and regressions due to the setting of CONFIG_SRAM_BASE_ADDRESS to really high values (over the 4GB boundary). To try to catch these problems as early as possible we add a build-only test based on the hello_world_user sample that tries to compile the test using a combination of CONFIG_SRAM_BASE_ADDRESS and CONFIG_KERNEL_VM_BASE set to high values in memory. Signed-off-by: Carlo Caione <ccaione@baylibre.com>
b8d4e59
to
ad85dca
Compare
First of all I'm not exactly sure if this is the best way to tackle this problem but at least it's something. @nashif (or any other CI expert) please let me know if you think there is a better way to do this.
So, the problem is that in the past couple of months we hit several time several issues related to having the SRAM to high addresses in memory or when
SRAM_BASE_ADDRESS != KERNEL_VM_BASE
: see #33607, #33594, #33204, #32053.We do not have a practical way to actual test zephyr in emulation when the SRAM is mapped to high addresses but at least we can try to catch early problems at compile time that would have spared a bit of head-scratch in the past.
So this test is basically the build-only copy of the
hello_world_user
test but using high addresses forSRAM_BASE_ADDRESS
andKERNEL_VM_BASE
in several combinations.