[PATCH] drm/qxl: fix NULL dereference in qxl_add_mode

2024-03-01 Thread Aleksandr Burakov
Return value of a function 'drm_cvt_mode' is dereferenced without checking for NULL but drm_mode_create() in drm_cvt_mode() may return NULL value in case of memory allocation error. Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: 1b043677d4be ("drm/qxl: add qxl_add_mode h

Re: [PATCH] drm/qxl: fix NULL dereference in qxl_add_mode

2024-03-01 Thread Gerd Hoffmann
On Fri, Mar 01, 2024 at 11:55:11AM +0300, Aleksandr Burakov wrote: > Return value of a function 'drm_cvt_mode' is dereferenced without > checking for NULL but drm_mode_create() in drm_cvt_mode() may > return NULL value in case of memory allocation error. > > Found by Linux Verification Center (lin

RE: [PATCH net-next v2 3/3] tun: AF_XDP Tx zero-copy support

2024-03-01 Thread wangyunjian
> -Original Message- > From: Paolo Abeni [mailto:pab...@redhat.com] > Sent: Thursday, February 29, 2024 7:13 PM > To: wangyunjian ; m...@redhat.com; > willemdebruijn.ker...@gmail.com; jasow...@redhat.com; k...@kernel.org; > bj...@kernel.org; magnus.karls...@intel.com; maciej.fijalkow...@int

Re: [PATCH net-next v2 3/3] tun: AF_XDP Tx zero-copy support

2024-03-01 Thread Michael S. Tsirkin
On Fri, Mar 01, 2024 at 11:45:52AM +, wangyunjian wrote: > > -Original Message- > > From: Paolo Abeni [mailto:pab...@redhat.com] > > Sent: Thursday, February 29, 2024 7:13 PM > > To: wangyunjian ; m...@redhat.com; > > willemdebruijn.ker...@gmail.com; jasow...@redhat.com; k...@kernel.org

[PATCH v2] drm/qxl: fix NULL dereference in qxl_add_mode

2024-03-01 Thread Aleksandr Burakov
Return value of a function 'drm_cvt_mode' is dereferenced without checking for NULL but drm_mode_create() in drm_cvt_mode() may return NULL value in case of memory allocation error. Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: 1b043677d4be ("drm/qxl: add qxl_add_mode h

Re: [PATCH 1/4] iommu: constify pointer to bus_type

2024-03-01 Thread Joerg Roedel
On Fri, Feb 16, 2024 at 03:40:24PM +0100, Krzysztof Kozlowski wrote: Applied all, thanks.

Re: [PATCH v2 1/6] fuse: limit the length of ITER_KVEC dio by max_pages

2024-03-01 Thread Miklos Szeredi
On Wed, 28 Feb 2024 at 15:40, Hou Tao wrote: > So instead of limiting both the values of max_read and max_write in > kernel, capping the maximal length of kvec iter IO by using max_pages in > fuse_direct_io() just like it does for ubuf/iovec iter IO. Now the max > value for max_pages is 256, so o

Re: [PATCH net-next v2 3/3] tun: AF_XDP Tx zero-copy support

2024-03-01 Thread Maciej Fijalkowski
On Wed, Feb 28, 2024 at 07:05:56PM +0800, Yunjian Wang wrote: > This patch set allows TUN to support the AF_XDP Tx zero-copy feature, > which can significantly reduce CPU utilization for XDP programs. Why no Rx ZC support though? What will happen if I try rxdrop xdpsock against tun with this patch

Re: [PATCH v2 3/6] virtiofs: factor out more common methods for argbuf

2024-03-01 Thread Miklos Szeredi
On Wed, 28 Feb 2024 at 15:41, Hou Tao wrote: > > From: Hou Tao > > Factor out more common methods for bounce buffer of fuse args: > > 1) virtio_fs_argbuf_setup_sg: set-up sgs for bounce buffer > 2) virtio_fs_argbuf_copy_from_in_arg: copy each in-arg to bounce buffer > 3) virtio_fs_argbuf_out_args

Re: [PATCH] ring-buffer: use READ_ONCE() to read cpu_buffer->commit_page in concurrent environment

2024-03-01 Thread Steven Rostedt
On Fri, 1 Mar 2024 13:37:18 +0800 linke wrote: > > So basically you are worried about read-tearing? > > > > That wasn't mentioned in the change log. > > Yes. Sorry for making this confused, I am not very familiar with this and > still learning. No problem. We all have to learn this anyway.

[ANNOUNCE] 5.10.210-rt102

2024-03-01 Thread Luis Claudio R. Goncalves
Hello RT-list! I'm pleased to announce the 5.10.210-rt102 stable release. This release is just an update to the new stable 5.10.210 version and no RT-specific changes have been performed. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stab

Re: [PATCH] ring-buffer: use READ_ONCE() to read cpu_buffer->commit_page in concurrent environment

2024-03-01 Thread Mathieu Desnoyers
On 2024-03-01 10:49, Steven Rostedt wrote: On Fri, 1 Mar 2024 13:37:18 +0800 linke wrote: So basically you are worried about read-tearing? That wasn't mentioned in the change log. Yes. Sorry for making this confused, I am not very familiar with this and still learning. No problem. We all

[PATCH 0/3] remoteproc: introduce Arm remoteproc support

2024-03-01 Thread abdellatif . elkhlifi
From: Abdellatif El Khlifi Some Arm heterogeneous System-On-Chips feature remote processors that can be controlled with a reset control register and a reset status register to start or stop the processor. This patchset adds support for these processors by providing the following: 1) A remotepro

[PATCH 1/3] remoteproc: Add Arm remoteproc driver

2024-03-01 Thread abdellatif . elkhlifi
From: Abdellatif El Khlifi introduce remoteproc support for Arm remote processors The supported remote processors are those that come with a reset control register and a reset status register. The driver allows to switch on or off the remote processor. The current use case is Corstone-1000 Exte

[PATCH 2/3] arm64: dts: Add corstone1000 external system device node

2024-03-01 Thread abdellatif . elkhlifi
From: Abdellatif El Khlifi add device tree node for the external system core in Corstone-1000 Signed-off-by: Abdellatif El Khlifi --- arch/arm64/boot/dts/arm/corstone1000.dtsi | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/arm/corstone1000.dts

[PATCH 3/3] dt-bindings: remoteproc: Add Arm remoteproc

2024-03-01 Thread abdellatif . elkhlifi
From: Abdellatif El Khlifi introduce the bindings for Arm remoteproc support. Signed-off-by: Abdellatif El Khlifi --- .../bindings/remoteproc/arm,rproc.yaml| 69 +++ MAINTAINERS | 1 + 2 files changed, 70 insertions(+) create mode 100

[RESEND PATCH v5 1/5] input/touchscreen: imagis: Correct the maximum touch area value

2024-03-01 Thread Karel Balej
From: Markuss Broks As specified in downstream IST3038B driver and proved by testing, the correct maximum reported value of touch area is 16. Signed-off-by: Markuss Broks Signed-off-by: Karel Balej --- drivers/input/touchscreen/imagis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) d

[RESEND PATCH v5 0/5] input/touchscreen: imagis: add support for IST3032C

2024-03-01 Thread Karel Balej
From: Karel Balej Hello, this patch series generalizes the Imagis touchscreen driver to support other Imagis chips, namely IST3038B and IST3032C. The motivation for IST3032C is the samsung,coreprimevelte smartphone with which this series has been tested. However, the support for this device is

[RESEND PATCH v5 2/5] dt-bindings: input/touchscreen: Add compatible for IST3038B

2024-03-01 Thread Karel Balej
From: Markuss Broks Imagis IST3038B is a variant (firmware?) of Imagis IST3038 IC differing from IST3038C in its register interface. Add the compatible for it to the IST3038C bindings. Signed-off-by: Markuss Broks Acked-by: Conor Dooley [bal...@matfyz.cz: elaborate chip differences in the comm

[RESEND PATCH v5 3/5] input/touchscreen: imagis: Add support for Imagis IST3038B

2024-03-01 Thread Karel Balej
From: Markuss Broks Imagis IST3038B is another variant of Imagis IST3038 IC, which has a different register interface from IST3038C (possibly firmware defined). This should also work for IST3044B (though untested), however other variants using this interface/protocol(IST3026, IST3032, IST3026B, I

[RESEND PATCH v5 4/5] dt-bindings: input/touchscreen: imagis: add compatible for IST3032C

2024-03-01 Thread Karel Balej
From: Karel Balej IST3032C is a touchscreen IC which seems mostly compatible with IST3038C except that it reports a different chip ID value. Acked-by: Rob Herring Signed-off-by: Karel Balej --- Notes: v5: - Add Rob's trailer. v4: - Reword commit description to mention how this

[RESEND PATCH v5 5/5] input/touchscreen: imagis: add support for IST3032C

2024-03-01 Thread Karel Balej
From: Karel Balej IST3032C is a touchscreen chip used for instance in the samsung,coreprimevelte smartphone, with which this was tested. Add the chip specific information to the driver. Reviewed-by: Markuss Broks Signed-off-by: Karel Balej --- Notes: v4: * Change the WHOAMI definition

Re: [PATCH] ring-buffer: use READ_ONCE() to read cpu_buffer->commit_page in concurrent environment

2024-03-01 Thread Steven Rostedt
On Fri, 1 Mar 2024 11:37:54 -0500 Mathieu Desnoyers wrote: > On 2024-03-01 10:49, Steven Rostedt wrote: > > On Fri, 1 Mar 2024 13:37:18 +0800 > > linke wrote: > > > >>> So basically you are worried about read-tearing? > >>> > >>> That wasn't mentioned in the change log. > >> > >> Yes. Sorry

[PATCH v12 0/4] add zynqmp TCM bindings

2024-03-01 Thread Tanmay Shah
Tightly-Coupled Memories(TCMs) are low-latency memory that provides predictable instruction execution and predictable data load/store timing. Each Cortex-R5F processor contains exclusive two 64 KB memory banks on the ATCM and BTCM ports, for a total of 128 KB of memory. In lockstep mode, both 128KB

[PATCH v12 1/4] remoteproc: zynqmp: fix lockstep mode memory region

2024-03-01 Thread Tanmay Shah
In lockstep mode, r5 core0 uses TCM of R5 core1. Following is lockstep mode memory region as per hardware reference manual. | *TCM* | *R5 View* | *Linux view* | | R5_0 ATCM (128 KB) | 0x_ | 0xFFE0_ | | R5_0 BTCM (128 KB) | 0x0002_ | 0xFFE2_ | Howev

[PATCH v12 4/4] remoteproc: zynqmp: parse TCM from device tree

2024-03-01 Thread Tanmay Shah
ZynqMP TCM information was fixed in driver. Now ZynqMP TCM information is available in device-tree. Parse TCM information in driver as per new bindings. Signed-off-by: Tanmay Shah --- Changes in v12: - None Changes in v11: - Remove redundant initialization of the variable - return correct

[PATCH v12 2/4] dt-bindings: remoteproc: add Tightly Coupled Memory (TCM) bindings

2024-03-01 Thread Tanmay Shah
From: Radhey Shyam Pandey Introduce bindings for TCM memory address space on AMD-xilinx Zynq UltraScale+ platform. It will help in defining TCM in device-tree and make it's access platform agnostic and data-driven. Tightly-coupled memories(TCMs) are low-latency memory that provides predictable i

[PATCH v12 3/4] dts: zynqmp: add properties for TCM in remoteproc

2024-03-01 Thread Tanmay Shah
Add properties as per new bindings in zynqmp remoteproc node to represent TCM address and size. This patch also adds alternative remoteproc node to represent remoteproc cluster in split mode. By default lockstep mode is enabled and users should disable it before using split mode dts. Both device-t

Re: [PATCH net-next v2 3/3] tun: AF_XDP Tx zero-copy support

2024-03-01 Thread Willem de Bruijn
Maciej Fijalkowski wrote: > On Wed, Feb 28, 2024 at 07:05:56PM +0800, Yunjian Wang wrote: > > This patch set allows TUN to support the AF_XDP Tx zero-copy feature, > > which can significantly reduce CPU utilization for XDP programs. > > Why no Rx ZC support though? What will happen if I try rxdrop

Re: [PATCH 2/3] arm64: dts: Add corstone1000 external system device node

2024-03-01 Thread Krzysztof Kozlowski
On 01/03/2024 17:42, abdellatif.elkhl...@arm.com wrote: > From: Abdellatif El Khlifi > > add device tree node for the external system core in Corstone-1000 > > Signed-off-by: Abdellatif El Khlifi > --- > arch/arm64/boot/dts/arm/corstone1000.dtsi | 10 +- > 1 file changed, 9 insertions(

Re: [PATCH 3/3] dt-bindings: remoteproc: Add Arm remoteproc

2024-03-01 Thread Krzysztof Kozlowski
On 01/03/2024 17:42, abdellatif.elkhl...@arm.com wrote: > From: Abdellatif El Khlifi > > introduce the bindings for Arm remoteproc support. > > Signed-off-by: Abdellatif El Khlifi > --- > .../bindings/remoteproc/arm,rproc.yaml| 69 +++ > MAINTAINERS

Re: [PATCH RFC ftrace] Chose RCU Tasks based on TASKS_RCU rather than PREEMPTION

2024-03-01 Thread Paul E. McKenney
On Wed, Feb 28, 2024 at 01:16:04PM -0800, Paul E. McKenney wrote: > On Wed, Feb 28, 2024 at 03:22:36PM -0500, Steven Rostedt wrote: > > On Wed, 28 Feb 2024 11:38:29 -0800 > > "Paul E. McKenney" wrote: > > > > > The advent of CONFIG_PREEMPT_AUTO, AKA lazy preemption, will mean that > > > even kern

Re: [PATCH RFC ftrace] Chose RCU Tasks based on TASKS_RCU rather than PREEMPTION

2024-03-01 Thread Steven Rostedt
On Fri, 1 Mar 2024 12:25:10 -0800 "Paul E. McKenney" wrote: > > That would work for me. If there are no objections, I will make this > > change. > > But I did check the latency of synchronize_rcu_tasks_rude() (about 100ms) > and synchronize_rcu() (about 20ms). This is on a 80-hardware-thread

Re: [PATCH RFC ftrace] Chose RCU Tasks based on TASKS_RCU rather than PREEMPTION

2024-03-01 Thread Paul E. McKenney
On Fri, Mar 01, 2024 at 03:30:01PM -0500, Steven Rostedt wrote: > On Fri, 1 Mar 2024 12:25:10 -0800 > "Paul E. McKenney" wrote: > > > > That would work for me. If there are no objections, I will make this > > > change. > > > > But I did check the latency of synchronize_rcu_tasks_rude() (about

Re: [PATCH v5 3/6] LoongArch: KVM: Add cpucfg area for kvm hypervisor

2024-03-01 Thread maobibo
On 2024/2/27 下午6:19, WANG Xuerui wrote: On 2/27/24 18:12, maobibo wrote: On 2024/2/27 下午5:10, WANG Xuerui wrote: On 2/27/24 11:14, maobibo wrote: On 2024/2/27 上午4:02, Jiaxun Yang wrote: 在2024年2月26日二月 上午8:04,maobibo写道: On 2024/2/26 下午2:12, Huacai Chen wrote: On Mon, Feb 26, 2024 at 1

[PATCH v2] ring-buffer: use READ_ONCE() to read cpu_buffer->commit_page in concurrent environment

2024-03-01 Thread linke li
In function ring_buffer_iter_empty(), cpu_buffer->commit_page is read while other threads may change it. It may cause the time_stamp that read in the next line come from a different page. Use READ_ONCE() to avoid having to reason about compiler optimizations now and in future. Signed-off-by: linke