Re: [PATCH] selftest: drivers: Add support to check duplicate hwirq

2024-12-01 Thread Thomas Gleixner
On Fri, Nov 22 2024 at 11:54, Bjorn Helgaas wrote: > On Mon, Nov 11, 2024 at 03:21:36PM +0800, Joseph Jang wrote: >> We could not detect the duplicated hwirq number (0xc800) in this >> case. > > Again, this is really out of my area, but based on > Documentation/core-api/irq/irq-domain.rst, I as

[PATCH] vdpa/vp_vdpa: implement kick_vq_with_data callback

2024-12-01 Thread Yuxue Liu yuxue....@jaguarmicro.com
From: Yuxue Liu Implement the kick_vq_with_data vDPA callback. On kick, we pass the next available data to the hardware by writing it in the kick offset. Signed-off-by: Yuxue Liu --- drivers/vdpa/virtio_pci/vp_vdpa.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/vdpa/vir

Re: [RFC PATCH 15/39] KVM: guest_memfd: hugetlb: allocate and truncate from hugetlb

2024-12-01 Thread Peter Xu
On Tue, Sep 10, 2024 at 11:43:46PM +, Ackerley Tng wrote: > +static struct folio *kvm_gmem_hugetlb_alloc_folio(struct hstate *h, > + struct hugepage_subpool > *spool) > +{ > + bool memcg_charge_was_prepared; > + struct mem_cgroup *memcg; >

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

2024-12-01 Thread Peter Xu
On Tue, Sep 10, 2024 at 11:43:45PM +, Ackerley Tng wrote: > +/** > + * Removes folios in range [@lstart, @lend) from page cache of inode, updates > + * inode metadata and hugetlb reservations. > + */ > +static void kvm_gmem_hugetlb_truncate_folios_range(struct inode *inode, > +

Re: [PATCH net-next v11 09/23] ovpn: implement basic RX path (UDP)

2024-12-01 Thread Antonio Quartulli
On 29/11/2024 17:10, Sabrina Dubroca wrote: Related to that topic, I'm not sure what's keeping a reference on the peer to guarantee it doesn't get freed before we're done with peer->tcp.tx_work at the end of ovpn_tcp_socket_detach. Maybe all this tcp stuff should move from the peer to ovpn_socket

Re: [PATCH] vdpa/vp_vdpa: implement kick_vq_with_data callback

2024-12-01 Thread Jason Wang
On Mon, Dec 2, 2024 at 11:36 AM Yuxue Liu yuxue@jaguarmicro.com wrote: > > From: Yuxue Liu > > Implement the kick_vq_with_data vDPA callback. > On kick, we pass the next available data to the hardware by writing it in > the kick offset. > > Signed-off-by: Yuxue Liu > --- Acked-by: Jason Wan

Re: [PATCH] virtio_net: drain unconsumed tx completions if any before dql_reset

2024-12-01 Thread Jason Wang
On Sat, Nov 30, 2024 at 11:18 PM Koichiro Den wrote: > > On Fri, Nov 29, 2024 at 10:18:04AM +0800, Jason Wang wrote: > > On Thu, Nov 28, 2024 at 12:25 PM Koichiro Den > > wrote: > > > > > > On Thu, Nov 28, 2024 at 10:57:01AM +0800, Jason Wang wrote: > > > > On Wed, Nov 27, 2024 at 12:08 PM Koichi

[PATCH] selftests: kselftest: Fix the wrong format specifier

2024-12-01 Thread zhangjiao2
From: zhang jiao The format specifier of "unsigned int" in printf() should be "%u", not "%d". Signed-off-by: zhang jiao --- tools/testing/selftests/kselftest.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/kselftest.h b/tools/testing/selftests/kse

[PATCH] remoteproc: mtk_scp: Only populate devices SCP cores

2024-12-01 Thread Chen-Yu Tsai
When multi-core SCP support was added, the driver was made to populate platform devices for all the sub-nodes. This ended up adding platform devices for the rpmsg sub-nodes as well, which never actually get used, since rpmsg devices are registered through the rpmsg interface. Limit of_platform_pop

[PATCH] openrisc: place exception table at the head of vmlinux

2024-12-01 Thread Masahiro Yamada
Since commit 0043ecea2399 ("vmlinux.lds.h: Adjust symbol ordering in text output section"), the exception table in arch/openrisc/kernel/head.S is no longer positioned at the very beginning of the kernel image, which causes a boot failure. Currently, the exception table resides in the regular .text

Re: [PATCH net-next] virtio_net: drop netdev_tx_reset_queue() from virtnet_enable_queue_pair()

2024-12-01 Thread Jason Wang
On Sun, Dec 1, 2024 at 2:18 AM Koichiro Den wrote: > > When virtnet_close is followed by virtnet_open, some TX completions can > possibly remain unconsumed, until they are finally processed during the > first NAPI poll after the netdev_tx_reset_queue(), resulting in a crash > [1]. Commit b96ed2c97

[PATCH] selftests/ipc: Remove unused variables

2024-12-01 Thread zhangjiao2
From: zhang jiao Delete variables "msg" and "pid" that have never been used. Signed-off-by: zhang jiao --- tools/testing/selftests/ipc/msgque.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/ipc/msgque.c b/tools/testing/selftests/ipc/msgque.c index

Re: [PATCH] remoteproc: mtk_scp: Only populate devices SCP cores

2024-12-01 Thread Chen-Yu Tsai
On Mon, Dec 2, 2024 at 2:28 PM Chen-Yu Tsai wrote: > Oops. The subject should read "Only populate devices for SCP cores". I'll let this one sit for a couple days before sending a new version. ChenYu > When multi-core SCP support was added, the driver was made to populate > platform devices for

Re: [PATCH v2 02/13] media: i2c: imx214: Use subdev active state

2024-12-01 Thread André Apitzsch
Hi, Am Mittwoch, dem 30.10.2024 um 12:36 +0100 schrieb Ricardo Ribalda Delgado: > Hi > > It looks good to me, but I would like Sakari to review it. I am not > sure if it is ok to keep the cur_mode variable. > > On Mon, Oct 21, 2024 at 12:14 AM André Apitzsch via B4 Relay > wrote: > > > > From:

Re: [PATCH v2 09/13] media: i2c: imx214: Extract format and crop settings

2024-12-01 Thread André Apitzsch
Hi, I'll drop this patch for now. The changes included are not needed to make imx214 work with libcamera. And with [1] the patch might need a rework anyway. Best regards, André [1] https://lore.kernel.org/linux-media/20241129095142.87196-1-sakari.ai...@linux.intel.com/ Am Montag, dem 21.10.2024

Re: [PATCH net-next v11 09/23] ovpn: implement basic RX path (UDP)

2024-12-01 Thread Antonio Quartulli
On 29/11/2024 17:10, Sabrina Dubroca wrote: 2024-11-26, 02:32:38 +0200, Sergey Ryazanov wrote: On 15.11.2024 17:02, Antonio Quartulli wrote: On 11/11/2024 02:54, Sergey Ryazanov wrote: [...] +    skb_reset_transport_header(skb); +    skb_probe_transport_header(skb); +    skb_reset_inner_header

Re: [PATCH net-next v11 18/23] ovpn: implement peer add/get/dump/delete via netlink

2024-12-01 Thread Antonio Quartulli
On 29/11/2024 18:00, Sabrina Dubroca wrote: 2024-11-14, 11:32:36 +0100, Antonio Quartulli wrote: On 13/11/2024 12:05, Sabrina Dubroca wrote: 2024-11-12, 15:26:59 +0100, Antonio Quartulli wrote: On 11/11/2024 16:41, Sabrina Dubroca wrote: 2024-10-29, 11:47:31 +0100, Antonio Quartulli wrote: +

Re: [PATCH net-next v11 09/23] ovpn: implement basic RX path (UDP)

2024-12-01 Thread Antonio Quartulli
On 29/11/2024 14:20, Sabrina Dubroca wrote: 2024-11-27, 02:40:02 +0100, Antonio Quartulli wrote: On 26/11/2024 09:49, Antonio Quartulli wrote: [...] The potential issue is tricky since we create it patch-by-patch. Up to this patch the socket releasing procedure looks solid and reliable. E.g.

[PATCH v2 1/6] lib: math: Move kunit tests into tests/ subdir

2024-12-01 Thread David Gow
From: Luis Felipe Hernandez This patch is a follow-up task from a discussion stemming from point 3 in a recent patch introducing the int_pow kunit test [1] and documentation regarding kunit test style and nomenclature [2]. Colocate all kunit test suites in lib/math/tests/ and follow recommended

[PATCH v2 0/6] [PATCH 0/6] KUnit test moves / renames

2024-12-01 Thread David Gow
As discussed in [1], the KUnit test naming scheme has changed to avoid name conflicts (and tab-completion woes) with the files being tested. These renames and moves have caused a nasty set of merge conflicts, so this series collates and rebases them all on top of v6.13-rc1, to be applied minimising

[PATCH v2 5/6] unicode: kunit: refactor selftest to kunit tests

2024-12-01 Thread David Gow
From: Gabriela Bittencourt Refactoring 'test' functions into kunit tests, to test utf-8 support in unicode subsystem. This allows the utf8 tests to be run alongside the KUnit test suite using kunit-tool, quickly compiling and running all desired tests as part of the KUnit test suite, instead of

[PATCH v2 3/6] lib: Move KUnit tests into tests/ subdirectory

2024-12-01 Thread David Gow
From: Kees Cook Following from the recent KUnit file naming discussion[1], move all KUnit tests in lib/ into lib/tests/. Link: https://lore.kernel.org/lkml/20240720165441.it.320-k...@kernel.org/ [1] Signed-off-by: Kees Cook Acked-by: "Steven Rostedt (Google)" Acked-by: Jakub Kicinski Acked-by

[PATCH v2 2/6] lib/math: Add int_log test suite

2024-12-01 Thread David Gow
From: Bruno Sobreira França This commit introduces KUnit tests for the intlog2 and intlog10 functions, which compute logarithms in base 2 and base 10, respectively. The tests cover a range of inputs to ensure the correctness of these functions across common and edge cases. Signed-off-by: Bruno S

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

2024-12-01 Thread David Gow
From: Diego Vieira 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 (previously at lib/list-test.c) [1]. Note that

[PATCH v2 6/6] unicode: kunit: change tests filename and path

2024-12-01 Thread David Gow
From: Gabriela Bittencourt Change utf8 kunit test filename and path to follow the style convention on Documentation/dev-tools/kunit/style.rst Co-developed-by: Pedro Orlando Signed-off-by: Pedro Orlando Co-developed-by: Danilo Pereira Signed-off-by: Danilo Pereira Signed-off-by: Gabriela Bitt

Re: [PATCH] selftests/ipc: Remove unused variables

2024-12-01 Thread Muhammad Usama Anjum
On 12/2/24 9:58 AM, zhangjiao2 wrote: > From: zhang jiao > > Delete variables "msg" and "pid" that have never been used. > > Signed-off-by: zhang jiao Reviewed-by: Muhammad Usama Anjum > --- > tools/testing/selftests/ipc/msgque.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > d