Re: [External] Re: [PATCH bpf-next v2 1/9] bpf: tracing: add support to record and check the accessed args

2024-03-29 Thread 梦龙董
On Sat, Mar 30, 2024 at 7:28 AM Andrii Nakryiko wrote: > > On Thu, Mar 28, 2024 at 8:10 AM Steven Rostedt wrote: > > > > On Thu, 28 Mar 2024 22:43:46 +0800 > > 梦龙董 wrote: > > > > > I have done a simple benchmark on creating 1000 > > > trampolines. It is slow, quite slow, which consume up to > >

Re: [External] Re: [PATCH bpf-next v2 1/9] bpf: tracing: add support to record and check the accessed args

2024-03-29 Thread 梦龙董
On Fri, Mar 29, 2024 at 7:17 AM Alexei Starovoitov wrote: > > On Thu, Mar 28, 2024 at 8:10 AM Steven Rostedt wrote: > > > > On Thu, 28 Mar 2024 22:43:46 +0800 > > 梦龙董 wrote: > > > > > I have done a simple benchmark on creating 1000 > > > trampolines. It is slow, quite slow, which consume up to

Re: [External] Re: [PATCH bpf-next v2 1/9] bpf: tracing: add support to record and check the accessed args

2024-03-29 Thread 梦龙董
On Thu, Mar 28, 2024 at 11:11 PM Steven Rostedt wrote: > > On Thu, 28 Mar 2024 22:43:46 +0800 > 梦龙董 wrote: > > > I have done a simple benchmark on creating 1000 > > trampolines. It is slow, quite slow, which consume up to > > 60s. We can't do it this way. > > > > Now, I have a bad idea. How

Re: [External] Re: [PATCH bpf-next v2 1/9] bpf: tracing: add support to record and check the accessed args

2024-03-29 Thread Andrii Nakryiko
On Thu, Mar 28, 2024 at 8:10 AM Steven Rostedt wrote: > > On Thu, 28 Mar 2024 22:43:46 +0800 > 梦龙董 wrote: > > > I have done a simple benchmark on creating 1000 > > trampolines. It is slow, quite slow, which consume up to > > 60s. We can't do it this way. > > > > Now, I have a bad idea. How about

Re: [RFC PATCH bpf-next 0/3] bpf: freeze a task cgroup from bpf

2024-03-29 Thread Alexei Starovoitov
On Fri, Mar 29, 2024 at 2:39 PM Tejun Heo wrote: > > Hello, > > On Fri, Mar 29, 2024 at 02:22:28PM +0100, Djalal Harouni wrote: > > It would be easy at least for me if I just start with cgroupv2 and > > ensure that it has same available filenames as if we go through kernfs. > > Not a root cgroup

Re: [GIT PULL] KUnit fixes update for Linux 6.9-rc2

2024-03-29 Thread pr-tracker-bot
The pull request you sent on Fri, 29 Mar 2024 13:39:36 -0600: > git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest > tags/linux_kselftest-kunit-fixes-6.9-rc2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/a2ad5d9e65474f7a06038f5a91fb4d8c973cbea2

Re: [GIT PULL] Kselftest fixes update for Linux 6.9-rc2

2024-03-29 Thread pr-tracker-bot
The pull request you sent on Fri, 29 Mar 2024 14:19:52 -0600: > git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest > tags/linux_kselftest-fixes-6.9-rc2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/1ab5c8a338c470ceda8221e3a00ad0fc0a3be55b Thank

Re: [PATCH v1 bpf-next 1/8] selftests/bpf: Introduce sock_addr_testmod

2024-03-29 Thread Andrii Nakryiko
On Fri, Mar 29, 2024 at 12:20 PM Jordan Rife wrote: > > sock_addr_testmod provides a mechanism for the sock_addr_kern prog_test > to drive socket operations in kernel space. On init, one of the > following socket operations is performed based on the module parameters: > kernel_bind(),

Re: [RFC PATCH bpf-next 0/3] bpf: freeze a task cgroup from bpf

2024-03-29 Thread Tejun Heo
Hello, On Fri, Mar 29, 2024 at 02:22:28PM +0100, Djalal Harouni wrote: > It would be easy at least for me if I just start with cgroupv2 and > ensure that it has same available filenames as if we go through kernfs. > Not a root cgroup node and maybe only freeze and kill for now that are > part of

Re: [PATCH] selftests/mm: import strings.h for ffsl

2024-03-29 Thread Edward Liaw
On Fri, Mar 29, 2024 at 12:32 PM Muhammad Usama Anjum wrote: > > On 3/29/24 10:42 PM, Edward Liaw wrote: > > Got a compilation error for ffsl after 91b80cc5b39f ("selftests: mm: fix > > map_hugetlb failure on 64K page size systems") imported vm_util.h. > > > > Fixes: af605d26a8f2 ("selftests/mm:

[GIT PULL] Kselftest fixes update for Linux 6.9-rc2

2024-03-29 Thread Shuah Khan
Hi Linus, Please pull the following kselftest fixes update for Linux 6.9rc2. This kselftest fixes update for Linux 6.9-rc2 consists of fixes to seccomp and ftrace tests and a change to add config file for dmabuf-heap test to increase coverage. diff is attached. thanks, -- Shuah

Re: [PATCH] selftests: cgroup: skip test_cgcore_lesser_ns_open when cgroup2 mounted without nsdelegate

2024-03-29 Thread Muhammad Usama Anjum
On 3/27/24 7:44 AM, Tianchen Ding wrote: > The test case test_cgcore_lesser_ns_open only tasks effect when cgroup2 > is mounted with "nsdelegate" mount option. If it misses this option, or > is remounted without "nsdelegate", the test case will fail. For example, > running bpf/test_cgroup_storage

Re: [PATCH v2 25/25] KVM: selftests: Add fred exception tests

2024-03-29 Thread Muhammad Usama Anjum
On 2/7/24 10:26 PM, Xin Li wrote: > Add tests for FRED event data and VMX nested-exception. > > FRED is designed to save a complete event context in its stack frame, > e.g., FRED saves the faulting linear address of a #PF into a 64-bit > event data field defined in FRED stack frame. As such,

Re: [PATCH v1 3/3] KVM: selftests: Add a test case for KVM_X86_DISABLE_EXITS_HLT

2024-03-29 Thread Muhammad Usama Anjum
On 3/27/24 10:42 AM, Manali Shukla wrote: > By default, HLT instruction executed by guest is intercepted by hypervisor. > However, KVM_CAP_X86_DISABLE_EXITS capability can be used to not intercept > HLT by setting KVM_X86_DISABLE_EXITS_HLT. > > Add a test case to test KVM_X86_DISABLE_EXITS_HLT

Re: [PATCH v3 17/30] selftests: ntsync: Add some tests for semaphore state.

2024-03-29 Thread Muhammad Usama Anjum
On 3/29/24 5:06 AM, Elizabeth Figura wrote: > Wine has tests for its synchronization primitives, but these are more > accessible > to kernel developers, and also allow us to test some edge cases that Wine does > not care about. > > This patch adds tests for semaphore-specific ioctls

Re: [PATCH v2 27/27] kselftest/riscv: kselftest for user mode cfi

2024-03-29 Thread Deepak Gupta
On Fri, Mar 29, 2024 at 12:50 PM Muhammad Usama Anjum wrote: > > On 3/29/24 9:44 AM, Deepak Gupta wrote: > > Adds kselftest for RISC-V control flow integrity implementation for user > > mode. There is not a lot going on in kernel for enabling landing pad for > > user mode. Thus kselftest simply

Re: [PATCH v3] kselftest/clone3: Make test names for set_tid test stable

2024-03-29 Thread Shuah Khan
On 3/26/24 14:27, Mark Brown wrote: On Tue, Mar 26, 2024 at 02:20:08PM -0600, Shuah Khan wrote: I am seeing the following compile warnings. Please fix and send patch on top pf linux-kselftest fixes. Which toolchain and architecture are you using? These compile cleanly for me. This is what

Re: [PATCH v3] selftests/mm: Fix ARM related issue with fork after pthread_create

2024-03-29 Thread Muhammad Usama Anjum
On 3/26/24 12:40 AM, Edward Liaw wrote: > Following issue was observed while running the uffd-unit-tests selftest > on ARM devices. On x86_64 no issues were detected: > > pthread_create followed by fork caused deadlock in certain cases > wherein fork required some work to be completed by the

Re: [PATCH v2 27/27] kselftest/riscv: kselftest for user mode cfi

2024-03-29 Thread Muhammad Usama Anjum
On 3/29/24 9:44 AM, Deepak Gupta wrote: > Adds kselftest for RISC-V control flow integrity implementation for user > mode. There is not a lot going on in kernel for enabling landing pad for > user mode. Thus kselftest simply enables landing pad for the binary and > a signal handler is registered

Re: [RFC PATCH v3 8/8] mm: test system-wide workingset reporting

2024-03-29 Thread Muhammad Usama Anjum
Please add selftest tag in the subject in selftest patches. On 3/28/24 2:31 AM, Yuanchu Xie wrote: > A basic test that verifies the working set size of a simple memory > accessor. It should work with or without the aging thread. > > Question: I don't know how to best test file memory in

[GIT PULL] KUnit fixes update for Linux 6.9-rc2

2024-03-29 Thread Shuah Khan
Hi Linus, Please pull the following kunit fixes update for Linux 6.9rc2. This kunit update for Linux 6.9-rc2 consists of one urgent fix for --alltests build failure related to renaming of CONFIG_DAMON_DBGFS to DAMON_DBGFS_DEPRECATED to the missing config option. This is one of the two fixes to

Re: [PATCH net] selftests: reuseaddr_conflict: add missing new line at the end of the output

2024-03-29 Thread Muhammad Usama Anjum
On 3/29/24 9:05 PM, Jakub Kicinski wrote: > The netdev CI runs in a VM and captures serial, so stdout and > stderr get combined. Because there's a missing new line in > stderr the test ends up corrupting KTAP: > > # Successok 1 selftests: net: reuseaddr_conflict > > which should have been: >

Re: [PATCH] selftests/mm: import strings.h for ffsl

2024-03-29 Thread Muhammad Usama Anjum
On 3/29/24 10:42 PM, Edward Liaw wrote: > Got a compilation error for ffsl after 91b80cc5b39f ("selftests: mm: fix > map_hugetlb failure on 64K page size systems") imported vm_util.h. > > Fixes: af605d26a8f2 ("selftests/mm: merge util.h into vm_util.h") Why do you think this Fixes tag is needed?

[PATCH v1 bpf-next 8/8] selftests/bpf: Fix bind program for big endian systems

2024-03-29 Thread Jordan Rife
Without this fix, the bind4 and bind6 programs will reject bind attempts on big endian systems. This patch ensures that CI tests pass for the s390x architecture. Signed-off-by: Jordan Rife --- .../testing/selftests/bpf/progs/bind4_prog.c | 18 ++

[PATCH v1 bpf-next 7/8] selftests/bpf: Add sock_addr_kern prog_test

2024-03-29 Thread Jordan Rife
The sock_addr_kern test program leverages the sock_addr_testmod kernel module to test the interaction between kernel socket operations and BPF sockaddr hooks. It focuses on operations that may modify an input address, namely connect, bind, and sendmsg to add regression test coverage for - commit

[PATCH v1 bpf-next 6/8] selftests/bpf: Add setup/cleanup subcommands

2024-03-29 Thread Jordan Rife
Add optional setup/cleanup subcommands to test_sock_addr.sh to allow those phases to be driven externally by the sock_addr_kern test program. Signed-off-by: Jordan Rife --- tools/testing/selftests/bpf/test_sock_addr.sh | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git

[PATCH v1 bpf-next 5/8] selftests/bpf: Factor out load_path and defines from test_sock_addr

2024-03-29 Thread Jordan Rife
Factor out useful defines and load_path() from the test_sock_addr self test to use them in sock_addr_kern. Signed-off-by: Jordan Rife --- tools/testing/selftests/bpf/Makefile | 34 + .../testing/selftests/bpf/sock_addr_helpers.c | 46 +++

[PATCH v1 bpf-next 4/8] selftests/bpf: Add recv_msg_from_client to network helpers

2024-03-29 Thread Jordan Rife
Copy recv_msg_from_client helper from test_sock_addr self test in order to use it in the sock_addr_kern test program. Signed-off-by: Jordan Rife --- tools/testing/selftests/bpf/network_helpers.c | 31 +++ tools/testing/selftests/bpf/network_helpers.h | 1 + 2 files changed, 32

[PATCH v1 bpf-next 3/8] selftests/bpf: Factor out cmp_addr

2024-03-29 Thread Jordan Rife
Factor out cmp_addr into network_helpers.c to so that it can be used by the sock_addr_kern test program. Signed-off-by: Jordan Rife --- tools/testing/selftests/bpf/network_helpers.c | 34 +++ tools/testing/selftests/bpf/network_helpers.h | 4 +++

[PATCH v1 bpf-next 2/8] selftests/bpf: Add module load helpers

2024-03-29 Thread Jordan Rife
This patch introduces a helpers used by the sock_addr_kern test program that allow it to load and unload sock_addr_testmod. Signed-off-by: Jordan Rife --- tools/testing/selftests/bpf/testing_helpers.c | 44 ++- tools/testing/selftests/bpf/testing_helpers.h | 2 + 2 files

[PATCH v1 bpf-next 1/8] selftests/bpf: Introduce sock_addr_testmod

2024-03-29 Thread Jordan Rife
sock_addr_testmod provides a mechanism for the sock_addr_kern prog_test to drive socket operations in kernel space. On init, one of the following socket operations is performed based on the module parameters: kernel_bind(), kernel_connect(), or sock_sendmsg()/kernel_sendmsg() and results are

[PATCH v1 bpf-next 0/8] selftests/bpf: Add sockaddr tests for kernel networking

2024-03-29 Thread Jordan Rife
In a follow up to these patches, - commit 0bdf399342c5("net: Avoid address overwrite in kernel_connect") - commit 86a7e0b69bd5("net: prevent rewrite of msg_name in sock_sendmsg()") - commit c889a99a21bf("net: prevent address rewrite in kernel_bind()") - commit 01b2885d9415("net: Save and restore

[PATCH v2] selftests/mm: include strings.h for ffsl

2024-03-29 Thread Edward Liaw
Got a compilation error on Android for ffsl after 91b80cc5b39f ("selftests: mm: fix map_hugetlb failure on 64K page size systems") included vm_util.h. Fixes: af605d26a8f2 ("selftests/mm: merge util.h into vm_util.h") Signed-off-by: Edward Liaw --- v2: s/import/include and clarified that

[PATCH] selftests/mm: import strings.h for ffsl

2024-03-29 Thread Edward Liaw
Got a compilation error for ffsl after 91b80cc5b39f ("selftests: mm: fix map_hugetlb failure on 64K page size systems") imported vm_util.h. Fixes: af605d26a8f2 ("selftests/mm: merge util.h into vm_util.h") Signed-off-by: Edward Liaw --- tools/testing/selftests/mm/vm_util.h | 2 +- 1 file

Re: [RFC PATCH v3 0/8] mm: workingset reporting

2024-03-29 Thread Gregory Price
On Wed, Mar 27, 2024 at 03:53:39PM -0700, Yuanchu Xie wrote: > On Wed, Mar 27, 2024 at 2:44 PM Gregory Price > wrote: > > > > Please note that this proposed interface (move_phys_pages) is very > > unlikely to be received upstream due to side channel concerns. Instead, > > it's more likely that

[PATCH net] selftests: reuseaddr_conflict: add missing new line at the end of the output

2024-03-29 Thread Jakub Kicinski
The netdev CI runs in a VM and captures serial, so stdout and stderr get combined. Because there's a missing new line in stderr the test ends up corrupting KTAP: # Successok 1 selftests: net: reuseaddr_conflict which should have been: # Success ok 1 selftests: net: reuseaddr_conflict

Re: [PATCH v2 12/14] sh: Add support for suppressing warning backtraces

2024-03-29 Thread Guenter Roeck
On Wed, Mar 27, 2024 at 07:39:20PM +, Simon Horman wrote: [ ... ] > > > > > > Hi Guenter, > > > > > > a minor nit from my side: this change results in a Kernel doc warning. > > > > > > .../bug.h:29: warning: expecting prototype for _EMIT_BUG_ENTRY(). > > > Prototype was for

Re: [PATCH v3] selftests: x86: skip the tests if prerequisites aren't fulfilled

2024-03-29 Thread Shuah Khan
On 3/29/24 01:36, Ingo Molnar wrote: * Shuah Khan wrote: On 3/27/24 05:17, Muhammad Usama Anjum wrote: Skip instead of failing when prerequisite conditions aren't fulfilled, such as invalid xstate values etc. This patch would make the tests show as skip when run by: make -C

pidfd_setns_test.c:428:nsfd_incremental_setns:Too many users - Failed to setns to time namespace of 31577 via nsfd 45

2024-03-29 Thread Paul Menzel
Dear Linux folks, Running the selftests in a QEMU q35 VM, they hang. ``` $ make kselftest […] ok 6 selftests: pidfd: pidfd_getfd_test # timeout set to 45 # selftests: pidfd: pidfd_setns_test # TAP version 13 # 1..7 # # Starting 7 tests from 2 test cases. # # RUN global.setns_einval

Re: [RFC PATCH bpf-next 0/3] bpf: freeze a task cgroup from bpf

2024-03-29 Thread Djalal Harouni
Hello Tejun, Alexei, On 3/28/24 22:01, Tejun Heo wrote: > Hello, > > On Thu, Mar 28, 2024 at 01:45:56PM -0700, Alexei Starovoitov wrote: >> On Thu, Mar 28, 2024 at 1:02 PM Tejun Heo wrote: >>> >>> There's also cgroup.kill which would be useful for similar use cases. We can >>> add interface for

[PATCH net 2/2] selftests: mptcp: join: fix dev in check_endpoint

2024-03-29 Thread Matthieu Baerts (NGI0)
From: Geliang Tang There's a bug in pm_nl_check_endpoint(), 'dev' didn't be parsed correctly. If calling it in the 2nd test of endpoint_tests() too, it fails with an error like this: creation [FAIL] expected '10.0.2.2 id 2 subflow dev dev' \ found '10.0.2.2 id 2 subflow

[PATCH net 1/2] mptcp: don't account accept() of non-MPC client as fallback to TCP

2024-03-29 Thread Matthieu Baerts (NGI0)
From: Davide Caratti Current MPTCP servers increment MPTcpExtMPCapableFallbackACK when they accept non-MPC connections. As reported by Christoph, this is "surprising" because the counter might become greater than MPTcpExtMPCapableSYNRX. MPTcpExtMPCapableFallbackACK counter's name suggests it

[PATCH net 0/2] mptcp: fix fallback MIB counter and wrong var in selftests

2024-03-29 Thread Matthieu Baerts (NGI0)
: 20240329-upstream-net-20240329-fallback-mib-b0fec9c6189b Best regards, -- Matthieu Baerts (NGI0)

[PATCH] selftests: default to host arch for LLVM builds

2024-03-29 Thread Valentin Obst
Align the behavior for gcc and clang builds by interpreting unset `ARCH` and `CROSS_COMPILE` variables in `LLVM` builds as a sign that the user wants to build for the host architecture. This patch preserves the properties that setting the `ARCH` variable to an unknown value will trigger an error

Re: [PATCH RFC 02/11] dt-bindings: riscv: Add Sdtrig optional CSRs existence on DT

2024-03-29 Thread Conor Dooley
On Fri, Mar 29, 2024 at 05:26:18PM +0800, Max Hsu wrote: > The mcontext/hcontext/scontext CSRs are optional in the Sdtrig extension, > to prevent RW operations to the missing CSRs, which will cause > illegal instructions. > > As a solution, we have proposed the dt format for these CSRs. As I

Re: [PATCH RFC 05/11] riscv: cpufeature: Add Sdtrig optional CSRs checks

2024-03-29 Thread Conor Dooley
On Fri, Mar 29, 2024 at 05:26:21PM +0800, Max Hsu wrote: > Sdtrig extension introduce two optional CSRs [hcontext/scontext], > that will be storing PID/Guest OS ID for the debug feature. > > The availability of these two CSRs will be determined by > DTS and Smstateen extension [h/s]stateen0 CSR

[PATCH RFC 11/11] KVM: riscv: selftests: Add Sdtrig Extension to get-reg-list test

2024-03-29 Thread Max Hsu
From: Yong-Xuan Wang Update the get-reg-list test to test the Sdtrig Extension is available for guest OS. Signed-off-by: Yong-Xuan Wang Co-developed-by: Max Hsu Signed-off-by: Max Hsu --- tools/testing/selftests/kvm/riscv/get-reg-list.c | 27 1 file changed, 27

[PATCH RFC 10/11] riscv: KVM: Add hcontext support

2024-03-29 Thread Max Hsu
From: Yong-Xuan Wang hcontext CSR store the ID of the currently running machine status. When a virtual machine is initialized, it will obtain and utilize the first available ID. It will be updated to VM ID when switch to a virtual machine, and updated to 0 when switch back to host machine.

[PATCH RFC 09/11] riscv: KVM: Add scontext to ONE_REG

2024-03-29 Thread Max Hsu
From: Yong-Xuan Wang Updte the ONE_REG interface to allow the scontext CSR can be accessed from user space. Signed-off-by: Yong-Xuan Wang Co-developed-by: Max Hsu Signed-off-by: Max Hsu --- arch/riscv/include/uapi/asm/kvm.h | 8 + arch/riscv/kvm/vcpu_onereg.c | 62

[PATCH RFC 08/11] riscv: KVM: Add Sdtrig Extension Support for Guest/VM

2024-03-29 Thread Max Hsu
From: Yong-Xuan Wang We extend the KVM ISA extension ONE_REG interface to allow VMM tools to detect and enable Sdtrig extension for Guest/VM. We also save/restore the scontext CSR for guest VCPUs and set the HSCONTEXT bit in hstateen0 CSR if the scontext CSR is available for Guest/VM when the

[PATCH RFC 07/11] riscv: Add task switch support for scontext CSR

2024-03-29 Thread Max Hsu
Write the next task PID to the scontext CSR if the use_scontext static branch is enabled by the detection of the cpufeature.c The scontext CSR needs to be saved and restored when entering a non-retentive idle state so that when resuming the CPU, the task's PID on the scontext CSR will be correct.

[PATCH RFC 06/11] riscv: suspend: add Smstateen CSRs save/restore

2024-03-29 Thread Max Hsu
>From Smstateen extension: the values of the [h/s]stateen CSRs will be lost when entering a non-retentive idle state. Therefore, these CSRs values need to be restored to ensure that the corresponding functionality remains enabled. Signed-off-by: Max Hsu --- arch/riscv/include/asm/suspend.h | 6

[PATCH RFC 05/11] riscv: cpufeature: Add Sdtrig optional CSRs checks

2024-03-29 Thread Max Hsu
Sdtrig extension introduce two optional CSRs [hcontext/scontext], that will be storing PID/Guest OS ID for the debug feature. The availability of these two CSRs will be determined by DTS and Smstateen extension [h/s]stateen0 CSR bit 57. If all CPUs hcontext/scontext checks are satisfied, it will

[PATCH RFC 04/11] riscv: Add Sdtrig CSRs definition, Smstateen bit to access Sdtrig CSRs

2024-03-29 Thread Max Hsu
Add hcontext/scontext CSRs definition to csr.h As riscv-state-enable [1] Smstateen extension spec: Sdtrig CSRs: hcontext/scontext availability are controlled by bit 57 of Smstateen CSRs. Link: https://github.com/riscvarchive/riscv-state-enable/releases/download/v1.0.0/Smstateen.pdf [1]

[PATCH RFC 03/11] riscv: Add ISA extension parsing for Sdtrig

2024-03-29 Thread Max Hsu
Add ISA extension parsing for Sdtrig as introduced in riscv-debug-spec [1] Chapter 5 Link: https://github.com/riscv/riscv-debug-spec/releases/download/ar20231208/riscv-debug-stable.pdf [1] Signed-off-by: Max Hsu --- arch/riscv/include/asm/hwcap.h | 1 + arch/riscv/kernel/cpufeature.c | 1 + 2

[PATCH RFC 02/11] dt-bindings: riscv: Add Sdtrig optional CSRs existence on DT

2024-03-29 Thread Max Hsu
The mcontext/hcontext/scontext CSRs are optional in the Sdtrig extension, to prevent RW operations to the missing CSRs, which will cause illegal instructions. As a solution, we have proposed the dt format for these CSRs. Signed-off-by: Max Hsu ---

[PATCH RFC 01/11] dt-bindings: riscv: Add Sdtrig ISA extension

2024-03-29 Thread Max Hsu
As riscv-debug-spec [1] Chapter 5 introduce Sdtrig extension. Add an entry for the Sdtrig extension to the riscv,isa-extensions property. Link: https://github.com/riscv/riscv-debug-spec/releases/download/ar20231208/riscv-debug-stable.pdf [1] Signed-off-by: Max Hsu ---

[PATCH RFC 00/11] riscv: support Sdtrig extension hcontext/scontext CSRs

2024-03-29 Thread Max Hsu
: 317c7bc0ef035d8ebfc3e55c5dde0566fd5fb171 change-id: 20240329-dev-maxh-lin-452-6-9-c6209e6db67f Best regards, -- Max Hsu

Re: [PATCH v3] selftests: x86: skip the tests if prerequisites aren't fulfilled

2024-03-29 Thread Ingo Molnar
* Shuah Khan wrote: > On 3/27/24 05:17, Muhammad Usama Anjum wrote: > > Skip instead of failing when prerequisite conditions aren't fulfilled, > > such as invalid xstate values etc. This patch would make the tests show > > as skip when run by: > >make -C tools/testing/selftests/

Re: [PATCH v2 04/27] riscv: zicfiss/zicfilp enumeration

2024-03-29 Thread Conor Dooley
On Thu, Mar 28, 2024 at 09:44:36PM -0700, Deepak Gupta wrote: > Adds description in dt-bindings (extensions.yaml) > > This patch adds support for detecting zicfiss and zicfilp. zicfiss and zicfilp > stands for unprivleged integer spec extension for shadow stack and branch > tracking on indirect