[PATCH] PCI: Test for bit underflow in pcie_set_readrq()

2025-09-04 Thread Kees Cook
After commit cbc654d18d37 ("bitops: Add __attribute_const__ to generic ffs()-family implementations"), which allows GCC's value range tracker to see past ffs(), GCC 8 on ARM thinks that it might be possible that "ffs(rq) - 8" used here: v = FIELD_PREP(PCI_EXP_DEVCTL_READRQ, ffs(rq) - 8);

[PATCH v1 1/1] ARM: dts: aspeed: yosemite4: allocate ramoops for kernel panic

2025-09-04 Thread Delphine CC Chiu
From: Zane Li Reserve a ramoops memory region in the Yosemite4 device tree so that kernel panic logs can be preserved across reboots. This helps with post-mortem debugging and crash analysis. Signed-off-by: Zane Li --- .../dts/aspeed/aspeed-bmc-facebook-yosemite4.dts | 14 ++ 1 f

Re: [PATCH][next] virtio_net: Fix alignment and avoid -Wflex-array-member-not-at-end warning

2025-09-04 Thread Michael S. Tsirkin
On Wed, Sep 03, 2025 at 09:36:13PM +0200, Gustavo A. R. Silva wrote: > -Wflex-array-member-not-at-end was introduced in GCC-14, and we are > getting ready to enable it, globally. > > Use the new TRAILING_OVERLAP() helper to fix the following warning: > > drivers/net/virtio_net.c:429:46: warning:

Re: [PATCH][next] virtio_net: Fix alignment and avoid -Wflex-array-member-not-at-end warning

2025-09-04 Thread Michael S. Tsirkin
On Thu, Sep 04, 2025 at 08:53:31PM +0200, Gustavo A. R. Silva wrote: > > > On 9/4/25 11:13, Simon Horman wrote: > > On Wed, Sep 03, 2025 at 09:36:13PM +0200, Gustavo A. R. Silva wrote: > > > -Wflex-array-member-not-at-end was introduced in GCC-14, and we are > > > getting ready to enable it, glob

Re: [PATCH][next] virtio_net: Fix alignment and avoid -Wflex-array-member-not-at-end warning

2025-09-04 Thread Gustavo A. R. Silva
On 9/4/25 11:13, Simon Horman wrote: On Wed, Sep 03, 2025 at 09:36:13PM +0200, Gustavo A. R. Silva wrote: -Wflex-array-member-not-at-end was introduced in GCC-14, and we are getting ready to enable it, globally. Use the new TRAILING_OVERLAP() helper to fix the following warning: drivers/net

Re: [PATCH][next] scsi: pm80xx: Avoid -Wflex-array-member-not-at-end warning

2025-09-04 Thread Gustavo A. R. Silva
On 9/4/25 14:39, James Bottomley wrote: On Thu, 2025-09-04 at 07:52 +0100, John Garry wrote: On 03/09/2025 19:44, Gustavo A. R. Silva wrote: diff --git a/drivers/scsi/pm8001/pm8001_hwi.h b/drivers/scsi/pm8001/pm8001_hwi.h index fc2127dcb58d..7dc7870a8f86 100644 --- a/drivers/scsi/pm8001/pm80

Re: [PATCH v15 0/5] rust: adds Bitmap API, ID pool and bindings

2025-09-04 Thread Yury Norov
On Thu, Sep 04, 2025 at 04:50:04PM +, Burak Emir wrote: > This series adds a Rust bitmap API for porting the approach from > commit 15d9da3f818c ("binder: use bitmap for faster descriptor lookup") > to Rust. The functionality in dbitmap.h makes use of bitmap and bitops. Added in bitmap-for-nex

RE: [PATCH V2 2/2] i3c: master: Add AMD I3C bus controller driver

2025-09-04 Thread Guntupalli, Manikanta
[Public] Hi, > -Original Message- > From: Frank Li > Sent: Wednesday, September 3, 2025 7:58 PM > To: Guntupalli, Manikanta > Cc: git (AMD-Xilinx) ; Simek, Michal ; > alexandre.bell...@bootlin.com; r...@kernel.org; krzk...@kernel.org; > conor...@kernel.org; k...@kernel.org; gustavo...@k

Re: [PATCH][next] scsi: pm80xx: Avoid -Wflex-array-member-not-at-end warning

2025-09-04 Thread Jinpu Wang
On Wed, Sep 3, 2025 at 8:44 PM Gustavo A. R. Silva wrote: > > -Wflex-array-member-not-at-end was introduced in GCC-14, and we are > getting ready to enable it, globally. > > Move the conflicting declarations to the end of the corresponding > structures. Notice that `struct ssp_response_iu` is a fl

[PATCH v15 2/5] rust: add bindings for bitops.h

2025-09-04 Thread Burak Emir
Makes atomic set_bit and clear_bit inline functions as well as the non-atomic variants __set_bit and __clear_bit available to Rust. Adds a new MAINTAINERS section BITOPS API BINDINGS [RUST]. Suggested-by: Alice Ryhl Suggested-by: Yury Norov Signed-off-by: Burak Emir Reviewed-by: Alice Ryhl Ack

[PATCH v15 3/5] rust: add bitmap API.

2025-09-04 Thread Burak Emir
Provides an abstraction for C bitmap API and bitops operations. This commit enables a Rust implementation of an Android Binder data structure from commit 15d9da3f818c ("binder: use bitmap for faster descriptor lookup"), which can be found in drivers/android/dbitmap.h. It is a step towards upstream

[PATCH v15 1/5] rust: add bindings for bitmap.h

2025-09-04 Thread Burak Emir
Makes the bitmap_copy_and_extend inline function available to Rust. Adds F: to existing MAINTAINERS section BITMAP API BINDINGS [RUST]. Suggested-by: Alice Ryhl Suggested-by: Yury Norov Signed-off-by: Burak Emir Reviewed-by: Alice Ryhl Acked-by: Yury Norov [NVIDIA] - --- MAINTAINERS

[PATCH v15 5/5] rust: add dynamic ID pool abstraction for bitmap

2025-09-04 Thread Burak Emir
This is a port of the Binder data structure introduced in commit 15d9da3f818c ("binder: use bitmap for faster descriptor lookup") to Rust. Like drivers/android/dbitmap.h, the ID pool abstraction lets clients acquire and release IDs. The implementation uses a bitmap to know what IDs are in use, and

[PATCH v15 4/5] rust: add find_bit_benchmark_rust module.

2025-09-04 Thread Burak Emir
Microbenchmark protected by a config FIND_BIT_BENCHMARK_RUST, following `find_bit_benchmark.c` but testing the Rust Bitmap API. We add a fill_random() method protected by the config in order to maintain the abstraction. The sample output from the benchmark, both C and Rust version: find_bit_benc

[PATCH v15 0/5] rust: adds Bitmap API, ID pool and bindings

2025-09-04 Thread Burak Emir
This series adds a Rust bitmap API for porting the approach from commit 15d9da3f818c ("binder: use bitmap for faster descriptor lookup") to Rust. The functionality in dbitmap.h makes use of bitmap and bitops. The Rust bitmap API provides a safe abstraction to underlying bitmap and bitops operation

Re: [PATCH][next] scsi: pm80xx: Avoid -Wflex-array-member-not-at-end warning

2025-09-04 Thread John Garry
On 03/09/2025 19:44, Gustavo A. R. Silva wrote: -Wflex-array-member-not-at-end was introduced in GCC-14, and we are getting ready to enable it, globally. Move the conflicting declarations to the end of the corresponding structures. Notice that `struct ssp_response_iu` is a flexible structure, th

Re: [PATCH][next] scsi: pm80xx: Avoid -Wflex-array-member-not-at-end warning

2025-09-04 Thread John Garry
On 04/09/2025 13:39, James Bottomley wrote: On Thu, 2025-09-04 at 07:52 +0100, John Garry wrote: On 03/09/2025 19:44, Gustavo A. R. Silva wrote: diff --git a/drivers/scsi/pm8001/pm8001_hwi.h b/drivers/scsi/pm8001/pm8001_hwi.h index fc2127dcb58d..7dc7870a8f86 100644 --- a/drivers/scsi/pm8001/pm8

Re: [PATCH V3 2/2] i3c: master: Add AMD I3C bus controller driver

2025-09-04 Thread kernel test robot
Hi Manikanta, kernel test robot noticed the following build warnings: [auto build test WARNING on robh/for-next] [also build test WARNING on linus/master v6.17-rc4 next-20250904] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use

Re: [PATCH][next] scsi: pm80xx: Avoid -Wflex-array-member-not-at-end warning

2025-09-04 Thread James Bottomley
On Thu, 2025-09-04 at 07:52 +0100, John Garry wrote: > On 03/09/2025 19:44, Gustavo A. R. Silva wrote: > > diff --git a/drivers/scsi/pm8001/pm8001_hwi.h > > b/drivers/scsi/pm8001/pm8001_hwi.h > > index fc2127dcb58d..7dc7870a8f86 100644 > > --- a/drivers/scsi/pm8001/pm8001_hwi.h > > +++ b/drivers/sc

Re: [PATCH V3 2/2] i3c: master: Add AMD I3C bus controller driver

2025-09-04 Thread kernel test robot
Hi Manikanta, kernel test robot noticed the following build errors: [auto build test ERROR on robh/for-next] [also build test ERROR on linus/master v6.17-rc4 next-20250904] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use

Re: [PATCH][next] virtio_net: Fix alignment and avoid -Wflex-array-member-not-at-end warning

2025-09-04 Thread Simon Horman
On Wed, Sep 03, 2025 at 09:36:13PM +0200, Gustavo A. R. Silva wrote: > -Wflex-array-member-not-at-end was introduced in GCC-14, and we are > getting ready to enable it, globally. > > Use the new TRAILING_OVERLAP() helper to fix the following warning: > > drivers/net/virtio_net.c:429:46: warning: