Re: [PATCH] selftests: Makefile: create OUTPUT dir

2024-10-01 Thread Anders Roxell
On Wed, 25 Sept 2024 at 19:26, Shuah Khan wrote: > > On 9/20/24 04:38, Jakub Kicinski wrote: > > On Thu, 19 Sep 2024 09:51:47 -0600 Shuah Khan wrote: > >>> @@ -261,6 +261,7 @@ ifdef INSTALL_PATH > >>> @ret=1; \ > >>> for TARGET in $(TARGETS) $(INSTALL_DEP_TARGETS); do \ > >>> B

Re: [PATCH v2] selftests/powerpc: Remove the path after initialization.

2024-10-01 Thread IBM
zhangjiao2 writes: > From: zhang jiao > > If there were no anamolies noted, then we can > simply remove the log file and return, after the path variable has been initialized. (minor nit) > > Signed-off-by: zhang jiao > --- > v1->v2: > Remove the path after initialization. > > to

[PATCH net v5] selftests: net: no_forwarding: fix VID for $swp2 in one_bridge_two_pvids() test

2024-10-01 Thread Kacper Ludwinski
Currently, the second bridge command overwrites the first one. Fix this by adding this VID to the interface behind $swp2. The one_bridge_two_pvids() test intends to check that there is no leakage of traffic between bridge ports which have a single VLAN - the PVID VLAN. Because of a typo, port $sw

Re: [PATCH v13 00/12] Initial Marvell PXA1908 support

2024-10-01 Thread Rob Herring (Arm)
+ > 21 files changed, 1299 insertions(+), 57 deletions(-) > --- > base-commit: 9852d85ec9d492ebef56dc5f229416c925758edc > change-id: 20230803-pxa1908-lkml-6830e8da45c7 > > Best regards, > -- > Duje Mihanović > > My bot found new DTB warnings on the .dts files added or

[RFC PATCH 2/4] Documentation: RCU: Refer to ptr_eq()

2024-10-01 Thread Mathieu Desnoyers
Refer to ptr_eq() in the rcu_dereference() documentation. ptr_eq() is a mechanism that preserves address dependencies when comparing pointers, and should be favored when comparing a pointer obtained from rcu_dereference() against another pointer. Signed-off-by: Mathieu Desnoyers Acked-by: Alan S

[RFC PATCH 3/4] hp: Implement Hazard Pointers

2024-10-01 Thread Mathieu Desnoyers
This API provides existence guarantees of objects through Hazard Pointers (HP). Each HP domain defines a fixed number of hazard pointer slots (nr_cpus) across the entire system. Its main benefit over RCU is that it allows fast reclaim of HP-protected pointers without needing to wait for a grace p

[RFC PATCH 0/4] sched+mm: Track lazy active mm existence with hazard pointers

2024-10-01 Thread Mathieu Desnoyers
Hazard pointers appear to be a good fit for replacing refcount based lazy active mm tracking. Highlight: will-it-scale context_switch1_threads nr threads (-t) speedup 24+3% 48 +12% 96 +21% 192 +28% I'm curious to see w

[RFC PATCH 4/4] sched+mm: Use hazard pointers to track lazy active mm existence

2024-10-01 Thread Mathieu Desnoyers
Replace lazy active mm existence tracking with hazard pointers. This removes the following implementations and their associated config options: - MMU_LAZY_TLB_REFCOUNT - MMU_LAZY_TLB_SHOOTDOWN - This removes the call_rcu delayed mm drop for RT. It leverages the fact that each CPU only ever have a

[RFC PATCH 1/4] compiler.h: Introduce ptr_eq() to preserve address dependency

2024-10-01 Thread Mathieu Desnoyers
Compiler CSE and SSA GVN optimizations can cause the address dependency of addresses returned by rcu_dereference to be lost when comparing those pointers with either constants or previously loaded pointers. Introduce ptr_eq() to compare two addresses while preserving the address dependencies for l

Re: [PATCH bpf-next v3 1/2] bpf: verifier: Support eliding map lookup nullness

2024-10-01 Thread Daniel Xu
On Wed, Sep 25, 2024 at 10:24:01AM GMT, Alexei Starovoitov wrote: > On Tue, Sep 24, 2024 at 12:40 PM Daniel Xu wrote: > > > > + > > +/* Returns constant key value if possible, else -1 */ > > +static long get_constant_map_key(struct bpf_verifier_env *env, > > +struct

Re: [PATCH bpf-next v3 1/2] bpf: verifier: Support eliding map lookup nullness

2024-10-01 Thread Daniel Xu
Hit send too early. On Tue, Oct 1, 2024, at 5:07 PM, Daniel Xu wrote: > On Wed, Sep 25, 2024 at 10:24:01AM GMT, Alexei Starovoitov wrote: >> On Tue, Sep 24, 2024 at 12:40 PM Daniel Xu wrote: >> > >> > + >> > +/* Returns constant key value if possible, else -1 */ >> > +static long get_constant_map

Re: [PATCH RFT v9 4/8] fork: Add shadow stack support to clone3()

2024-10-01 Thread Edgecombe, Rick P
On Tue, 2024-10-01 at 18:33 +0100, Mark Brown wrote: > > > A shadow stack size is more symmetric on the surface, but I'm not sure it > > > will > > > be easier for userspace to handle. So I think we should just have a > > > pointer to > > > the token. But it will be a usable implementation either w

Re: [RFC PATCH 14/39] KVM: guest_memfd: hugetlb: initialization and cleanup

2024-10-01 Thread Ackerley Tng
Vishal Annapurve writes: > On Wed, Sep 11, 2024 at 1:44 AM Ackerley Tng wrote: >> >> ... >> +} >> + >> +static void kvm_gmem_evict_inode(struct inode *inode) >> +{ >> + u64 flags = (u64)inode->i_private; >> + >> + if (flags & KVM_GUEST_MEMFD_HUGETLB) >> + kvm_gmem_huget

Re: [PATCH 1/2] compiler.h: Introduce ptr_eq() to preserve address dependency

2024-10-01 Thread 'Alan Stern'
On Tue, Oct 01, 2024 at 05:11:05PM +, David Laight wrote: > From: Alan Stern > > Sent: 30 September 2024 19:53 > > > > On Mon, Sep 30, 2024 at 07:05:06PM +0200, Jonas Oberhauser wrote: > > > > > > > > > Am 9/30/2024 um 6:43 PM schrieb Alan Stern: > > > > On Mon, Sep 30, 2024 at 01:26:53PM +020

[v6 PATCH 2/2] selftests: arm64: add hugetlb mte tests

2024-10-01 Thread Yang Shi
The tests cover mmap, mprotect hugetlb with MTE prot and COW. Signed-off-by: Yang Shi --- .../arm64/mte/check_hugetlb_options.c | 285 ++ 1 file changed, 285 insertions(+) create mode 100644 tools/testing/selftests/arm64/mte/check_hugetlb_options.c diff --git a/tools/te

[v6 PATCH 1/2] hugetlb: arm64: add mte support

2024-10-01 Thread Yang Shi
Enable MTE support for hugetlb. The MTE page flags will be set on the folio only. When copying hugetlb folio (for example, CoW), the tags for all subpages will be copied when copying the first subpage. When freeing hugetlb folio, the MTE flags will be cleared. Reviewed-by: Catalin Marinas Revi

Re: [PATCH v3 10/20] gendwarfksyms: Expand structure types

2024-10-01 Thread Sami Tolvanen
On Tue, Oct 1, 2024 at 2:16 PM Petr Pavlu wrote: > > On 9/23/24 20:18, Sami Tolvanen wrote: > > +static void process_variant_type(struct state *state, struct die *cache, > > + Dwarf_Die *die) > > +{ > > + process_list_comma(state, cache); > > + process(cache, "

Re: [PATCH] remoteproc: qcom: Fix NULL pointer in glink_subdev_stop()

2024-10-01 Thread Bjorn Andersson
On Tue, Oct 01, 2024 at 12:06:17PM +0530, Mukesh Ojha wrote: > On Fri, Sep 27, 2024 at 02:59:09PM -0700, Bjorn Andersson wrote: > > On Sat, Sep 28, 2024 at 01:07:43AM +0530, Mukesh Ojha wrote: > > > On Wed, Sep 25, 2024 at 08:41:55PM -0700, Bjorn Andersson wrote: > > > > On Wed, Sep 25, 2024 at 04:

Re: [PATCH v2 1/1] lib/tests/kfifo_kunit.c: add tests for the kfifo structure

2024-10-01 Thread Rae Moar
On Tue, Sep 3, 2024 at 5:38 PM Diego Vieira wrote: > > Add KUnit tests for the kfifo data structure. > They test the vast majority of macros defined in the kfifo > header (include/linux/kfifo.h). > > These are inspired by the existing tests for the doubly > linked list in lib/tests/list-test.c (pr

Re: [PATCH v3 06/20] gendwarfksyms: Add a cache for processed DIEs

2024-10-01 Thread Sami Tolvanen
On Tue, Oct 1, 2024 at 2:10 PM Petr Pavlu wrote: > > On 9/23/24 20:18, Sami Tolvanen wrote: > > +static void update_fqn(struct die *cache, Dwarf_Die *die) > > +{ > > + if (!cache->fqn) > > + cache->fqn = get_fqn(die) ?: ""; > > +} > > When is update_fqn() called with cache->fqn bei

Re: [PATCH v3 04/20] gendwarfksyms: Add address matching

2024-10-01 Thread Sami Tolvanen
On Tue, Oct 1, 2024 at 2:06 PM Petr Pavlu wrote: > > On 9/23/24 20:18, Sami Tolvanen wrote: > > - for_each(name, get_symbol, &sym); > > + for_each(name, false, get_symbol, &sym); > > return sym; > > } > > What is the reason that the for_each() call in symbol_get() is invoked > with

Re: [PATCH v3 03/20] tools: Add gendwarfksyms

2024-10-01 Thread Sami Tolvanen
Hi Petr, On Tue, Oct 1, 2024 at 2:04 PM Petr Pavlu wrote: > > On 9/23/24 20:18, Sami Tolvanen wrote: > > + if (dwfl_getmodules(dwfl, &process_module, NULL, 0)) { > > + error("dwfl_getmodules failed for '%s'", argv[n]); > > + return -1; > > +

Re: [PATCH v3 1/2] exec: fix up /proc/pid/comm in the execveat(AT_EMPTY_PATH) case

2024-10-01 Thread Aleksa Sarai
On 2024-10-01, Aleksa Sarai wrote: > On 2024-10-01, Tycho Andersen wrote: > > From: Tycho Andersen > > > > Zbigniew mentioned at Linux Plumber's that systemd is interested in > > switching to execveat() for service execution, but can't, because the > > contents of /proc/pid/comm are the file de

Re: [PATCH v2 06/19] iommufd/viommu: Add IOMMU_VIOMMU_SET/UNSET_VDEV_ID ioctl

2024-10-01 Thread Nicolin Chen
On Tue, Oct 01, 2024 at 10:46:20AM -0300, Jason Gunthorpe wrote: > On Tue, Oct 01, 2024 at 01:54:05AM -0700, Nicolin Chen wrote: > > On Thu, Sep 05, 2024 at 10:38:23AM -0700, Nicolin Chen wrote: > > > On Thu, Sep 05, 2024 at 01:03:53PM -0300, Jason Gunthorpe wrote: > > > > On Tue, Aug 27, 2024 at 0

Re: [PATCH v3 1/2] exec: fix up /proc/pid/comm in the execveat(AT_EMPTY_PATH) case

2024-10-01 Thread Aleksa Sarai
On 2024-10-01, Tycho Andersen wrote: > From: Tycho Andersen > > Zbigniew mentioned at Linux Plumber's that systemd is interested in > switching to execveat() for service execution, but can't, because the > contents of /proc/pid/comm are the file descriptor which was used, > instead of the path t

Re: [PATCH v2 00/19] iommufd: Add VIOMMU infrastructure (Part-1)

2024-10-01 Thread Nicolin Chen
On Tue, Oct 01, 2024 at 10:48:15AM -0300, Jason Gunthorpe wrote: > On Sun, Sep 29, 2024 at 03:19:42PM +0800, Yi Liu wrote: > > > So their viommu HW concepts come along with a requirement that there > > > be a fixed translation for the VM, which we model by attaching a S2 > > > HWPT to the VIOMMU ob

[PATCH net-next v19 01/14] mm: page_frag: add a test module for page_frag

2024-10-01 Thread Yunsheng Lin
The testing is done by ensuring that the fragment allocated from a frag_frag_cache instance is pushed into a ptr_ring instance in a kthread binded to a specified cpu, and a kthread binded to a specified cpu will pop the fragment from the ptr_ring and free the fragment. CC: Alexander Duyck Signed-

Re: [PATCH net v4] selftests: net: no_forwarding: fix VID for $swp2 in one_bridge_two_pvids() test

2024-10-01 Thread Vladimir Oltean
On Mon, Sep 30, 2024 at 03:35:43PM +0900, Kacper Ludwinski wrote: > This typo has an impact on results of the test results, > potentially leading to wrong conclusions regarding > the functionality of a network device. Did you test this? You are effectively introducing a new test. Could you include

Re: [PATCH v3 2/2] cgroup/rstat: Selftests for niced CPU statistics

2024-10-01 Thread Joshua Hahn
> My motivation comes from debugging cgroup selftests when strace is quite > useful and your implementation adds the unnecessary fork which makes the > strace (slightly) less readable. This makes sense, thank you for the context. I hadn't considered debugging considerations much, but I can imagine

Re: [PATCH RFT v9 4/8] fork: Add shadow stack support to clone3()

2024-10-01 Thread Mark Brown
On Tue, Oct 01, 2024 at 05:12:38PM +0200, Christian Brauner wrote: > On Fri, Sep 27, 2024 at 03:21:59PM GMT, Edgecombe, Rick P wrote: > > Did you catch that a token can be at a different offsets location on the > > stack > > depending on args passed to map_shadow_stack? So userspace will need >

RE: [PATCH 1/2] compiler.h: Introduce ptr_eq() to preserve address dependency

2024-10-01 Thread David Laight
From: Alan Stern > Sent: 30 September 2024 19:53 > > On Mon, Sep 30, 2024 at 07:05:06PM +0200, Jonas Oberhauser wrote: > > > > > > Am 9/30/2024 um 6:43 PM schrieb Alan Stern: > > > On Mon, Sep 30, 2024 at 01:26:53PM +0200, Jonas Oberhauser wrote: > > > > > > > > > > > > Am 9/28/2024 um 4:49 PM sch

Re: Re: [PATCH] virtio: Make vring_new_virtqueue support for packed vring

2024-10-01 Thread Michael S. Tsirkin
On Tue, Oct 01, 2024 at 05:30:51PM +0800, Wenyu Huang wrote: > It used for testing in tools/virtio/vringh_test.c. > If vring_new_virtqueue supports packed vring, we can add support for > packed vring to vringh and test it. Pls say this in the commit log.

Re: [PATCH] rcu/kvfree: Refactor kvfree_rcu_queue_batch()

2024-10-01 Thread Vlastimil Babka
On 9/30/24 13:37, Uladzislau Rezki (Sony) wrote: > Improve readability of kvfree_rcu_queue_batch() function > in away that, after a first batch queuing, the loop is break > and success value is returned to a caller. > > There is no reason to loop and check batches further as all > outstanding obje

Re: [PATCH v1 0/2] selftests/mm: hugetlb_fault_after_madv improvements

2024-10-01 Thread Mario Casquero
This series has been successfully tested. Now when executing the hugetlb_fault_after_madv selftest the benefits of both patches could be observed. # ./hugetlb_fault_after_madv TAP version 13 1..1 # [INFO] detected default hugetlb page size: 1024 KiB ok 1 SIGBUS behavior # Totals: pass:1 fail:0 xfai

Re: [RFC PATCH 0/3] introduce PIDFD_SELF

2024-10-01 Thread Christian Brauner
On Mon, Sep 30, 2024 at 03:32:25PM GMT, Lorenzo Stoakes wrote: > On Mon, Sep 30, 2024 at 04:21:23PM GMT, Aleksa Sarai wrote: > > On 2024-09-30, Lorenzo Stoakes wrote: > > > On Mon, Sep 30, 2024 at 02:34:33PM GMT, Christian Brauner wrote: > > > > On Mon, Sep 30, 2024 at 11:39:49AM GMT, Lorenzo Stoa

Re: [PATCH v3 2/2] cgroup/rstat: Selftests for niced CPU statistics

2024-10-01 Thread Michal Koutný
On Mon, Sep 30, 2024 at 02:07:22PM GMT, Joshua Hahn wrote: > The reason I used a fork in the testing is so that I could isolate the niced > portion of the test to only the CPU hog. If I were to nice(1) --> cg_hog() > in a single process without forking, this would mean that the cleanup portion >

[PATCH net-next v19 11/14] mm: page_frag: add testing for the newly added prepare API

2024-10-01 Thread Yunsheng Lin
Add testing for the newly added prepare API, for both aligned and non-aligned API, also probe API is also tested along with prepare API. CC: Alexander Duyck Signed-off-by: Yunsheng Lin --- .../selftests/mm/page_frag/page_frag_test.c | 66 +-- tools/testing/selftests/mm/run_vmt

[PATCH slab hotfixes v2 2/2] slub/kunit: skip test_kfree_rcu when the slub kunit test is built-in

2024-10-01 Thread Vlastimil Babka
Guenter Roeck reports that the new slub kunit tests added by commit 4e1c44b3db79 ("kunit, slub: add test_kfree_rcu() and test_leak_destroy()") cause a lockup on boot on several architectures when the kunit tests are configured to be built-in and not modules. The test_kfree_rcu test invokes kfree_r

[PATCH slab hotfixes v2 0/2] slub kunit tests fixes for 6.12

2024-10-01 Thread Vlastimil Babka
The SLUB changes for 6.12 included new kunit tests that resulted in noisy warnings, which we normally suppress, and a boot lockup in some configurations in case the kunit tests are built-in. The warnings are addressed in Patch 1. The lockups I couldn't reproduce, but inspecting boot initializatio

[PATCH net-next v19 04/14] mm: page_frag: avoid caller accessing 'page_frag_cache' directly

2024-10-01 Thread Yunsheng Lin
Use appropriate frag_page API instead of caller accessing 'page_frag_cache' directly. CC: Alexander Duyck Signed-off-by: Yunsheng Lin Reviewed-by: Alexander Duyck Acked-by: Chuck Lever --- drivers/vhost/net.c | 2 +- include/linux/page_frag_cache.h

[PATCH net-next v19 02/14] mm: move the page fragment allocator from page_alloc into its own file

2024-10-01 Thread Yunsheng Lin
Inspired by [1], move the page fragment allocator from page_alloc into its own c file and header file, as we are about to make more change for it to replace another page_frag implementation in sock.c As this patchset is going to replace 'struct page_frag' with 'struct page_frag_cache' in sched.h,

Re: Re: [PATCH] virtio: Make vring_new_virtqueue support for packed vring

2024-10-01 Thread Wenyu Huang
It used for testing in tools/virtio/vringh_test.c. If vring_new_virtqueue supports packed vring, we can add support for packed vring to vringh and test it.

Re: [PATCH RFT v9 4/8] fork: Add shadow stack support to clone3()

2024-10-01 Thread Christian Brauner
On Fri, Sep 27, 2024 at 03:21:59PM GMT, Edgecombe, Rick P wrote: > On Fri, 2024-09-27 at 10:50 +0200, Christian Brauner wrote: > > The legacy clone system call had required userspace to know in which > > direction the stack was growing and then pass down the stack pointer > > appropriately (e.g., p

Re: [PATCH v3 2/2] selftests/exec: add a test to enforce execveat()'s comm

2024-10-01 Thread Shuah Khan
On 10/1/24 07:49, Tycho Andersen wrote: From: Tycho Andersen We want to ensure that /proc/self/comm stays useful for execveat() callers. This commit message is vague? What does staying useful mean? Elaborate on the staying useful and the tests added to ensure. Add test results as well. Sig

Re: [PATCH] KVM: selftests: Fix build on architectures other than x86_64

2024-10-01 Thread Paolo Bonzini
On Mon, Sep 30, 2024 at 8:10 PM Mark Brown wrote: > > The recent addition of support for testing with the x86 specific quirk > KVM_X86_QUIRK_SLOT_ZAP_ALL disabled in the generic memslot tests broke the > build of the KVM selftests for all other architectures: > > In file included from include/kvm_

Re: [PATCH 1/1] remoteproc: Use iommu_paging_domain_alloc()

2024-10-01 Thread Jason Gunthorpe
On Mon, Sep 30, 2024 at 10:40:30AM -0600, Mathieu Poirier wrote: > On Mon, Aug 12, 2024 at 03:28:11PM +0800, Lu Baolu wrote: > > An iommu domain is allocated in rproc_enable_iommu() and is attached to > > rproc->dev.parent in the same function. > > > > Use iommu_paging_domain_alloc() to make it ex

Re: [PATCH v3 03/20] tools: Add gendwarfksyms

2024-10-01 Thread Petr Pavlu
On 9/23/24 20:18, Sami Tolvanen wrote: > Add a basic DWARF parser, which uses libdw to traverse the debugging > information in an object file and looks for functions and variables. > In follow-up patches, this will be expanded to produce symbol versions > for CONFIG_MODVERSIONS from DWARF. > > Sig

Re: [PATCH v2 06/19] iommufd/viommu: Add IOMMU_VIOMMU_SET/UNSET_VDEV_ID ioctl

2024-10-01 Thread Nicolin Chen
On Thu, Sep 05, 2024 at 10:38:23AM -0700, Nicolin Chen wrote: > On Thu, Sep 05, 2024 at 01:03:53PM -0300, Jason Gunthorpe wrote: > > On Tue, Aug 27, 2024 at 09:59:43AM -0700, Nicolin Chen wrote: > > > Introduce a pair of new ioctls to set/unset a per-viommu virtual device id > > > that should be li

Re: [PATCH] selftest: hid: add missing run-hid-tools-tests.sh

2024-10-01 Thread Shuah Khan
On 9/30/24 20:43, luyun wrote: 在 2024/10/1 04:57, Shuah Khan 写道: On 9/30/24 02:38, Benjamin Tissoires wrote: On Sep 29 2024, Yun Lu wrote: The HID test cases actually run tests using the run-hid-tools-tests.sh script. However, if installed with "make install", the run-hid-tools-tests.sh scrip

[PATCH v13 04/12] dt-bindings: clock: Add Marvell PXA1908 clock bindings

2024-10-01 Thread Duje Mihanović via B4 Relay
From: Duje Mihanović Add dt bindings and documentation for the Marvell PXA1908 clock controller. Reviewed-by: Conor Dooley Reviewed-by: Stephen Boyd Signed-off-by: Duje Mihanović --- .../devicetree/bindings/clock/marvell,pxa1908.yaml | 48 include/dt-bindings/clock/marvell,pxa19

[PATCH v13 07/12] clk: mmp: Add Marvell PXA1908 APMU driver

2024-10-01 Thread Duje Mihanović via B4 Relay
From: Duje Mihanović Add driver for the APMU controller block found on Marvell's PXA1908 SoC. This driver is incomplete, lacking support for (at least) GPU, VPU, DSI and CCIC (camera related) clocks. Signed-off-by: Duje Mihanović --- drivers/clk/mmp/Makefile | 2 +- drivers/clk/mmp

[PATCH v13 10/12] arm64: Kconfig.platforms: Add config for Marvell PXA1908 platform

2024-10-01 Thread Duje Mihanović via B4 Relay
From: Duje Mihanović Add ARCH_MMP configuration option for Marvell PXA1908 SoC. Signed-off-by: Duje Mihanović --- arch/arm64/Kconfig.platforms | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index 6c6d11536b42ec6e878db8d3

Re: [PATCH v2 06/19] iommufd/viommu: Add IOMMU_VIOMMU_SET/UNSET_VDEV_ID ioctl

2024-10-01 Thread Jason Gunthorpe
On Tue, Oct 01, 2024 at 01:54:05AM -0700, Nicolin Chen wrote: > On Thu, Sep 05, 2024 at 10:38:23AM -0700, Nicolin Chen wrote: > > On Thu, Sep 05, 2024 at 01:03:53PM -0300, Jason Gunthorpe wrote: > > > On Tue, Aug 27, 2024 at 09:59:43AM -0700, Nicolin Chen wrote: > > > > Introduce a pair of new ioct

[PATCH v13 09/12] dt-bindings: marvell: Document PXA1908 SoC and samsung,coreprimevelte

2024-10-01 Thread Duje Mihanović via B4 Relay
From: Duje Mihanović Add dt bindings for the Marvell PXA1908 SoC and the Samsung Galaxy Core Prime VE LTE phone (model number SM-G361F) using the SoC. The SoC comes with 4 Cortex-A53 cores clocked up to ~1.2GHz and a Vivante GC7000UL GPU. The phone also has a 4.5" 480x800 touchscreen, 8GB eMMC a

[PATCH v13 03/12] pinctrl: single: add marvell,pxa1908-padconf compatible

2024-10-01 Thread Duje Mihanović via B4 Relay
From: Duje Mihanović Add the "marvell,pxa1908-padconf" compatible to allow migrating to a separate pinctrl driver later. Acked-by: Linus Walleij Signed-off-by: Duje Mihanović --- drivers/pinctrl/pinctrl-single.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/pinctrl-singl

[PATCH v13 12/12] MAINTAINERS: add myself as Marvell PXA1908 maintainer

2024-10-01 Thread Duje Mihanović via B4 Relay
From: Duje Mihanović Add myself as the maintainer for Marvell PXA1908 SoC support. Signed-off-by: Duje Mihanović --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index c27f3190737f8b85779bde5489639c8b899f4fd8..8d50cb7457924e3290810eaf7d3c4

[PATCH v3 2/2] selftests/exec: add a test to enforce execveat()'s comm

2024-10-01 Thread Tycho Andersen
From: Tycho Andersen We want to ensure that /proc/self/comm stays useful for execveat() callers. Signed-off-by: Tycho Andersen --- tools/testing/selftests/exec/execveat.c | 25 + 1 file changed, 25 insertions(+) diff --git a/tools/testing/selftests/exec/execveat.c b/t

[PATCH v13 11/12] arm64: dts: Add DTS for Marvell PXA1908 and samsung,coreprimevelte

2024-10-01 Thread Duje Mihanović via B4 Relay
From: Duje Mihanović Add DTS for Marvell PXA1908 SoC and Samsung Galaxy Core Prime Value Edition LTE, a smartphone based on said SoC. Signed-off-by: Duje Mihanović --- arch/arm64/boot/dts/marvell/Makefile | 3 + .../dts/marvell/pxa1908-samsung-coreprimevelte.dts | 336 +

[PATCH v13 08/12] clk: mmp: Add Marvell PXA1908 MPMU driver

2024-10-01 Thread Duje Mihanović via B4 Relay
From: Duje Mihanović Add driver for the MPMU controller block on Marvell's PXA1908 SoC. The driver is incomplete, currently only supporting the fixed PLL1; dynamic PLLs 2-4 and CPU/DDR/AXI clock support is missing. Signed-off-by: Duje Mihanović --- drivers/clk/mmp/Makefile | 2 +-

[PATCH v13 05/12] clk: mmp: Add Marvell PXA1908 APBC driver

2024-10-01 Thread Duje Mihanović via B4 Relay
From: Duje Mihanović Add driver for the APBC controller block found on Marvell's PXA1908 SoC. Signed-off-by: Duje Mihanović --- drivers/clk/mmp/Makefile | 2 +- drivers/clk/mmp/clk-pxa1908-apbc.c | 130 + 2 files changed, 131 insertions(+), 1 del

[PATCH v13 06/12] clk: mmp: Add Marvell PXA1908 APBCP driver

2024-10-01 Thread Duje Mihanović via B4 Relay
From: Duje Mihanović Add driver for the APBCP controller block found on Marvell's PXA1908 SoC. Signed-off-by: Duje Mihanović --- drivers/clk/mmp/Makefile| 2 +- drivers/clk/mmp/clk-pxa1908-apbcp.c | 82 + 2 files changed, 83 insertions(+), 1 del

[PATCH v13 02/12] dt-bindings: pinctrl: pinctrl-single: add marvell,pxa1908-padconf compatible

2024-10-01 Thread Duje Mihanović via B4 Relay
From: Duje Mihanović Add the "marvell,pxa1908-padconf" compatible to allow migrating to a separate pinctrl driver later. Reviewed-by: Rob Herring Acked-by: Linus Walleij Signed-off-by: Duje Mihanović --- Documentation/devicetree/bindings/pinctrl/pinctrl-single.yaml | 4 1 file changed,

[PATCH v13 00/12] Initial Marvell PXA1908 support

2024-10-01 Thread Duje Mihanović via B4 Relay
Hello, This series adds initial support for the Marvell PXA1908 SoC and "samsung,coreprimevelte", a smartphone using the SoC. USB works and the phone can boot a rootfs from an SD card, but there are some warnings in the dmesg: During SMP initialization: [0.006519] CPU features: SANITY CHECK:

[PATCH v13 01/12] clk: mmp: Switch to use struct u32_fract instead of custom one

2024-10-01 Thread Duje Mihanović via B4 Relay
From: Andy Shevchenko The struct mmp_clk_factor_tbl repeats the generic struct u32_fract. Kill the custom one and use the generic one instead. Signed-off-by: Andy Shevchenko Tested-by: Duje Mihanović Reviewed-by: Linus Walleij Reviewed-by: Stephen Boyd Signed-off-by: Duje Mihanović --- dri

[PATCH v3 1/2] exec: fix up /proc/pid/comm in the execveat(AT_EMPTY_PATH) case

2024-10-01 Thread Tycho Andersen
From: Tycho Andersen Zbigniew mentioned at Linux Plumber's that systemd is interested in switching to execveat() for service execution, but can't, because the contents of /proc/pid/comm are the file descriptor which was used, instead of the path to the binary. This makes the output of tools like

[PATCH HID v3 6/9] selftests/hid: cleanup C tests by adding a common struct uhid_device

2024-10-01 Thread Benjamin Tissoires
Allows to have an abstract class uhid_device which handles all of the uhid part without having to mess up with individual fds. struct attach_prog_args is now never used in hid_bpf.c, so drop it as well Signed-off-by: Benjamin Tissoires --- no changes in v3 no changes in v2 --- tools/testing/

Re: [PATCH slab hotfixes 2/2] kunit: move call to kunit_run_all_tests() after rcu_end_inkernel_boot()

2024-10-01 Thread Vlastimil Babka
On 10/1/24 1:55 AM, Guenter Roeck wrote: > On 9/30/24 11:50, Guenter Roeck wrote: >> On 9/30/24 01:37, Vlastimil Babka wrote: >>> Guenter Roeck reports that the new slub kunit tests added by commit >>> 4e1c44b3db79 ("kunit, slub: add test_kfree_rcu() and >>> test_leak_destroy()") cause a lockup on

Re: [RFC PATCH 0/3] introduce PIDFD_SELF

2024-10-01 Thread Lorenzo Stoakes
On Tue, Oct 01, 2024 at 12:21:32PM GMT, Christian Brauner wrote: > On Mon, Sep 30, 2024 at 03:32:25PM GMT, Lorenzo Stoakes wrote: > > On Mon, Sep 30, 2024 at 04:21:23PM GMT, Aleksa Sarai wrote: [snip] > > > Sorry to bike-shed, but to match /proc/self and /proc/thread-self, maybe > > > they should

[PATCH HID v3 8/9] HID: add per device quirk to force bind to hid-generic

2024-10-01 Thread Benjamin Tissoires
We already have the possibility to force not binding to hid-generic and rely on a dedicated driver, but we couldn't do the other way around. This is useful for BPF programs where we are fixing the report descriptor and the events, but want to avoid a specialized driver to come after BPF which woul

Re: [PATCH v3 06/20] gendwarfksyms: Add a cache for processed DIEs

2024-10-01 Thread Petr Pavlu
On 9/23/24 20:18, Sami Tolvanen wrote: > Basic types in DWARF repeat frequently and traversing the DIEs using > libdw is relatively slow. Add a simple hashtable based cache for the > processed DIEs. > > Signed-off-by: Sami Tolvanen > --- > scripts/gendwarfksyms/Makefile| 1 + > scripts

Re: [PATCH v3 04/20] gendwarfksyms: Add address matching

2024-10-01 Thread Petr Pavlu
On 9/23/24 20:18, Sami Tolvanen wrote: > The compiler may choose not to emit type information in DWARF for all > aliases, but it's possible for each alias to be exported separately. > To ensure we find type information for the aliases as well, read > {section, address} tuples from the symbol table

[PATCH HID v3 7/9] selftests/hid: allow to parametrize bus/vid/pid/rdesc on the test device

2024-10-01 Thread Benjamin Tissoires
This will be useful to introduce variants in tests to test the interactions between HID-BPF and some kernel modules. Reviewed-by: Peter Hutterer Signed-off-by: Benjamin Tissoires --- no changes in v3 no changes in v2 --- tools/testing/selftests/hid/hid_bpf.c| 2 +- tools/testing/selftes

[PATCH HID v3 5/9] selftests/hid: add dependency on hid_common.h

2024-10-01 Thread Benjamin Tissoires
Allows to recompile the C tests when that file changes Reviewed-by: Peter Hutterer Signed-off-by: Benjamin Tissoires --- no changes in v3 no changes in v2 --- tools/testing/selftests/hid/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/hid/

[PATCH HID v3 1/9] HID: bpf: move HID-BPF report descriptor fixup earlier

2024-10-01 Thread Benjamin Tissoires
Currently, hid_bpf_rdesc_fixup() is called once the match between the HID device and the driver is done. This can be problematic in case the driver selected by the kernel would change the report descriptor after the fact. To give a chance for hid_bpf_rdesc_fixup() to provide hints on to how to sel

[PATCH HID v3 4/9] HID: bpf: allow write access to quirks field in struct hid_device

2024-10-01 Thread Benjamin Tissoires
This allows to give more control from BPF during report descriptor fixup. We already reset the quirks before calling ->probe(), so now we reset it once before calling hid_bpf_rdesc_fixup(). Reviewed-by: Peter Hutterer Signed-off-by: Benjamin Tissoires --- no changes in v3 new in v2 --- drive

[PATCH HID v3 3/9] HID: core: remove one more kmemdup on .probe()

2024-10-01 Thread Benjamin Tissoires
That last kmemdup while opening the report descriptor was required to have a common kfree() on it. Move that kmemdup in the only special case it's required (if there is a .report_fixup()), and add a more elaborated check before freeing hdev->rdesc, to avoid a double free. Reviewed-by: Peter Hutte

[PATCH HID v3 2/9] HID: core: save one kmemdup during .probe()

2024-10-01 Thread Benjamin Tissoires
Turns out the first kmemdup is only required for the .report_fixup() driver callback. There is no need to do two kmemdup() in a row in case .report_fixup() is not present. Reviewed-by: Peter Hutterer Signed-off-by: Benjamin Tissoires --- no changes in v3 new in v2 --- drivers/hid/hid-core.c

Re: [PATCH v2 00/19] iommufd: Add VIOMMU infrastructure (Part-1)

2024-10-01 Thread Jason Gunthorpe
On Tue, Oct 01, 2024 at 03:06:57PM +1000, Alexey Kardashevskiy wrote: > I've just read in this thread that "it should be generally restricted to the > number of pIOMMUs, although likely (not 100% sure) we could do multiple > vIOMMUs on a single-pIOMMU system. Any reason for doing that?"? thought "w

Re: [PATCH v2 1/2] exec: add a flag for "reasonable" execveat() comm

2024-10-01 Thread Tycho Andersen
On Mon, Sep 30, 2024 at 03:10:29PM -0500, Eric W. Biederman wrote: > "Eric W. Biederman" writes: > > > Kees Cook writes: > > >> I'm not super comfortable doing this regardless of bprm->fdpath; that > >> seems like too many cases getting changed. Can we just leave it as > >> depending on bprm->f

Re: [PATCH v2 00/19] iommufd: Add VIOMMU infrastructure (Part-1)

2024-10-01 Thread Jason Gunthorpe
On Sun, Sep 29, 2024 at 03:19:42PM +0800, Yi Liu wrote: > > So their viommu HW concepts come along with a requirement that there > > be a fixed translation for the VM, which we model by attaching a S2 > > HWPT to the VIOMMU object which get's linked into the IOMMU HW as > > the translation for the

Re: [PATCH v3 09/20] gendwarfksyms: Expand array_type

2024-10-01 Thread Petr Pavlu
On 9/23/24 20:18, Sami Tolvanen wrote: > Add support for expanding DW_TAG_array_type, and the subrange type > indicating array size. > > Example source code: > > const char *s[34]; > > Output with --dump-dies: > > variable array_type[34] { > pointer_type { > const_type { >

Re: [PATCH v3 10/20] gendwarfksyms: Expand structure types

2024-10-01 Thread Petr Pavlu
On 9/23/24 20:18, Sami Tolvanen wrote: > Recursively expand DWARF structure types, i.e. structs, unions, and > enums. Also include relevant DWARF attributes in type strings to > encode structure layout, for example. > > Example output with --dump-dies: > > subprogram ( > formal_parameter st

Re: [PATCH v3 07/20] gendwarfksyms: Expand type modifiers and typedefs

2024-10-01 Thread Petr Pavlu
On 9/23/24 20:18, Sami Tolvanen wrote: > Add support for expanding DWARF type modifiers, such as pointers, > const values etc., and typedefs. These types all have DW_AT_type > attribute pointing to the underlying type, and thus produce similar > output. > > Also add linebreaks and indentation to d

Re: [PATCH v3 08/20] gendwarfksyms: Expand subroutine_type

2024-10-01 Thread Petr Pavlu
On 9/23/24 20:18, Sami Tolvanen wrote: > Add support for expanding DW_TAG_subroutine_type and the parameters > in DW_TAG_formal_parameter. Use this to also expand subprograms. > > Example output with --dump-dies: > > subprogram ( > formal_parameter pointer_type { > const_type { >

Re: [PATCH v3 05/20] gendwarfksyms: Expand base_type

2024-10-01 Thread Petr Pavlu
On 9/23/24 20:18, Sami Tolvanen wrote: > Start making gendwarfksyms more useful by adding support for > expanding DW_TAG_base_type types and basic DWARF attributes. > > Example: > > $ echo loops_per_jiffy | \ > scripts/gendwarfksyms/gendwarfksyms \ > --debug --dump-dies vmlinux.o

Re: [PATCH v1] nvdimm: Correct some typos in comments

2024-10-01 Thread Pankaj Gupta
> Fixed some confusing typos that were currently identified with codespell, > the details are as follows: > > -in the code comments: > drivers/nvdimm/nd_virtio.c:100: repsonse ==> response > drivers/nvdimm/pfn_devs.c:542: namepace ==> namespace > drivers/nvdimm/pmem.c:319: reenable ==> re-enable >

Re: ARM64 Livepatch based on SFrame

2024-10-01 Thread Praveen Kumar
On 27-09-2024 13:11, Weinan Liu wrote: > We from Google are working on implementing SFrame unwinder for the Linux > kernel, > And we will be happy to collaborate with others for adding arm64 livepatch > support > Good to know Weinan! Happy to collaborate, please let me know what I can focus o