Skip to content
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

res-lock-arena #8613

Open
wants to merge 3 commits into
base: bpf-next_base
Choose a base branch
from

Conversation

kkdwivedi
Copy link
Contributor

No description provided.

@kkdwivedi kkdwivedi closed this Mar 5, 2025
@kkdwivedi kkdwivedi reopened this Mar 5, 2025
@kkdwivedi kkdwivedi force-pushed the res-lock-arena branch 2 times, most recently from 157301d to 8f0fed9 Compare March 5, 2025 04:27
@kernel-patches-daemon-bpf kernel-patches-daemon-bpf bot force-pushed the bpf-next_base branch 4 times, most recently from 9bdb3c5 to 762f3e0 Compare March 6, 2025 02:24
@kernel-patches-daemon-bpf kernel-patches-daemon-bpf bot force-pushed the bpf-next_base branch 9 times, most recently from b7965ce to 084fae2 Compare March 11, 2025 00:01
@kkdwivedi kkdwivedi closed this Mar 11, 2025
@kkdwivedi kkdwivedi reopened this Mar 11, 2025
@kkdwivedi kkdwivedi force-pushed the res-lock-arena branch 7 times, most recently from 0a84181 to 759f206 Compare March 11, 2025 16:44
@kkdwivedi kkdwivedi force-pushed the res-lock-arena branch 2 times, most recently from a8c385c to 9675f3b Compare March 11, 2025 17:41
Similar to how support for x86 JIT was done in commit
2cb0a52 ("bpf, x86: Add x86 JIT support for timed may_goto"),
do a similar change for arm64 JIT. We use the same calling convention
of using BPF_REG_AX (x9) as the first argument and return value from
arch_bpf_timed_may_goto. Context for timed may_goto support is available
in [0].

This change will allow arena_spin_lock primitives to be reliably used on
arm64 machines without concerns around premature loop expiration under
contention.

Adjust the selftests again and now match on correct may_goto output
only for s390.

 [0]: https://lore.kernel.org/bpf/[email protected]

Cc: Xu Kuohai <[email protected]>
Cc: Puranjay Mohan <[email protected]>
Signed-off-by: Kumar Kartikeya Dwivedi <[email protected]>
Signed-off-by: Kumar Kartikeya Dwivedi <[email protected]>
@kernel-patches-daemon-bpf kernel-patches-daemon-bpf bot force-pushed the bpf-next_base branch 2 times, most recently from 44c3a1d to 720c696 Compare March 12, 2025 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant