Re: [PATCH v3] powerpc/pseries/vas: Migration suspend waits for no in-progress open windows

2023-10-25 Thread Nathan Lynch
Haren Myneni writes: > The hypervisor returns migration failure if all VAS windows are not > closed. During pre-migration stage, vas_migration_handler() sets > migration_in_progress flag and closes all windows from the list. > The allocate VAS window routine checks the migration flag, setup > the

Re: [PATCH v8 00/30] Add support for QMC HDLC, framer infrastructure and PEF2256 framer

2023-10-25 Thread Herve Codina
Hi All, Maintainers On Fri, 13 Oct 2023 16:46:47 -0700 Jakub Kicinski wrote: > On Wed, 11 Oct 2023 08:14:04 +0200 Herve Codina wrote: > > Compare to the previous iteration > > > > https://lore.kernel.org/linux-kernel/20230928070652.330429-1-herve.cod...@bootlin.com/ > > This v8 series: > >

Re: [PATCH v2 0/9] iommu: Convert dart & iommufd to the new domain_alloc_paging()

2023-10-25 Thread jgg
On Wed, Sep 27, 2023 at 08:47:30PM -0300, Jason Gunthorpe wrote: > Continue converting drivers to the new interface. Introduce > ops->blocked_domain to hold the global static BLOCKED domain and convert > all drivers supporting BLOCKED to use it. > > This makes it trivial for dart and iommufd to

Re: [PATCH 1/2] kexec: fix KEXEC_FILE dependencies

2023-10-25 Thread Eric DeVolder
On Wednesday, October 25, 2023 at 04:58:20 AM CDT, Baoquan He wrote: On 10/24/23 at 03:17pm, Arnd Bergmann wrote: > On Tue, Oct 24, 2023, at 14:44, Baoquan He wrote: > > Just add people and mailing list to CC since I didn't find this mail in > > my box, just drag it via 'b4 am'. > >

[PATCH 4/8] leds: mlxreg: explicitly unregister LEDs at module's shutdown

2023-10-25 Thread George Stark
LEDs are registered using devm_led_classdev_register() and automatically unregistered after module's remove(). led_classdev_unregister() calls led_set_brightness() to turn off the LEDs and module's appropriate callback uses resources those were destroyed already in module's remove(). So explicitly

Re: [PATCH v8 00/30] Add support for QMC HDLC, framer infrastructure and PEF2256 framer

2023-10-25 Thread Mark Brown
On Wed, Oct 25, 2023 at 12:32:15PM -0700, Jakub Kicinski wrote: > On Wed, 25 Oct 2023 17:00:51 +0200 Herve Codina wrote: > > > Which way will those patches go? Via some FSL SoC tree? > > This series seems mature now. > > What is the plan next in order to have it applied ? > > Don't hesitate to

[PATCH 7/8] leds: lp3952: explicitly unregister LEDs at module's shutdown

2023-10-25 Thread George Stark
LEDs are registered using devm_led_classdev_register() and automatically unregistered after module's remove(). led_classdev_unregister() calls led_set_brightness() to turn off the LEDs and module's appropriate callback uses resources those were destroyed already in module's remove(). So explicitly

Re: [PATCH v6 1/3] PCI/AER: Factor out interrupt toggling into helpers

2023-10-25 Thread Bjorn Helgaas
On Fri, May 12, 2023 at 08:00:12AM +0800, Kai-Heng Feng wrote: > There are many places that enable and disable AER interrupt, so move > them into helpers. > > Reviewed-by: Mika Westerberg > Reviewed-by: Kuppuswamy Sathyanarayanan > > Reviewed-by: Jonathan Cameron > Signed-off-by: Kai-Heng

[powerpc:merge] BUILD SUCCESS 4d121328397f83465b6c1f60c5fad93bda9bc90e

2023-10-25 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git merge branch HEAD: 4d121328397f83465b6c1f60c5fad93bda9bc90e Automatic merge of 'next' into merge (2023-10-23 20:42) elapsed time: 3247m configs tested: 129 configs skipped: 2 The following configs have been built

[PATCH 5/8] leds: aw200xx: explicitly unregister LEDs at module's shutdown

2023-10-25 Thread George Stark
LEDs are registered using devm_led_classdev_register() and automatically unregistered after module's remove(). led_classdev_unregister() calls led_set_brightness() to turn off the LEDs and module's appropriate callback uses resources those were destroyed already in module's remove(). So explicitly

[PATCH 1/8] leds: powernv: explicitly unregister LEDs at module's shutdown

2023-10-25 Thread George Stark
LEDs are registered using devm_led_classdev_register() and automatically unregistered after module's remove(). led_classdev_unregister() calls led_set_brightness() to turn off the LEDs and module's appropriate callback uses resources those were destroyed already in module's remove(). So explicitly

[PATCH 2/8] leds: nic78bx: explicitly unregister LEDs at module's shutdown

2023-10-25 Thread George Stark
LEDs are registered using devm_led_classdev_register() and automatically unregistered after module's remove(). led_classdev_unregister() calls led_set_brightness() to turn off the LEDs and module's appropriate callback uses resources those were destroyed already in module's remove(). So explicitly

Re: [PATCH v4 1/5] crypto: mxs-dcp: Add support for hardware-bound keys

2023-10-25 Thread Jarkko Sakkinen
On Tue Oct 24, 2023 at 7:20 PM EEST, David Gstir wrote: > DCP is capable of performing AES with two hardware-bound keys: > > - The one-time programmable (OTP) key which is burnt via on-chip fuses > - The unique key (UK) which is derived from the OTP key > > In addition to the two hardware-bound

Re: [PATCH v4 2/5] KEYS: trusted: Introduce NXP DCP-backed trusted keys

2023-10-25 Thread Jarkko Sakkinen
On Tue Oct 24, 2023 at 7:20 PM EEST, David Gstir wrote: > DCP (Data Co-Processor) is the little brother of NXP's CAAM IP. > Beside of accelerated crypto operations, it also offers support for > hardware-bound keys. Using this feature it is possible to implement a blob > mechanism similar to what

Re: [PATCH v8 00/30] Add support for QMC HDLC, framer infrastructure and PEF2256 framer

2023-10-25 Thread Jakub Kicinski
On Wed, 25 Oct 2023 17:00:51 +0200 Herve Codina wrote: > > Which way will those patches go? Via some FSL SoC tree? > > This series seems mature now. > What is the plan next in order to have it applied ? > > Don't hesitate to tell me if you prefer split series. FWIW we are happy to take the

[PATCH 3/8] leds: an30259a: explicitly unregister LEDs at module's shutdown

2023-10-25 Thread George Stark
LEDs are registered using devm_led_classdev_register() and automatically unregistered after module's remove(). led_classdev_unregister() calls led_set_brightness() to turn off the LEDs and module's appropriate callback uses resources those were destroyed already in module's remove(). So explicitly

[PATCH 0/8] devm_led_classdev_register() usage problem

2023-10-25 Thread George Stark
Lots of drivers use devm_led_classdev_register() to register their led objects and let the kernel free those leds at the driver's remove stage. It can lead to a problem due to led_classdev_unregister() implementation calls led_set_brightness() to turn off the led. led_set_brightness() may call one

[PATCH 6/8] leds: aw2013: explicitly unregister LEDs at module's shutdown

2023-10-25 Thread George Stark
LEDs are registered using devm_led_classdev_register() and automatically unregistered after module's remove(). led_classdev_unregister() calls led_set_brightness() to turn off the LEDs and module's appropriate callback uses resources those were destroyed already in module's remove(). So explicitly

[PATCH v3 02/10] powerpc/rtas: Facilitate high-level call sequences

2023-10-25 Thread Nathan Lynch via B4 Relay
From: Nathan Lynch On RTAS platforms there is a general restriction that the OS must not enter RTAS on more than one CPU at a time. This low-level serialization requirement is satisfied by holding a spin lock (rtas_lock) across most RTAS function invocations. However, some pseries RTAS

[PATCH v3 09/10] powerpc/selftests: Add test for papr-vpd

2023-10-25 Thread Nathan Lynch via B4 Relay
From: Nathan Lynch Add selftests for /dev/papr-vpd, exercising the common expected use cases: * Retrieve all VPD by passing an empty location code. * Retrieve the "system VPD" by passing a location code derived from DT root node properties, as done by the vpdupdate command. The tests also

[PATCH v3 07/10] powerpc/pseries/papr-sysparm: Validate buffer object lengths

2023-10-25 Thread Nathan Lynch via B4 Relay
From: Nathan Lynch The ability to get and set system parameters will be exposed to user space, so let's get a little more strict about malformed papr_sysparm_buf objects. * Create accessors for the length field of struct papr_sysparm_buf. The length is always stored in MSB order and this is

[PATCH v3 05/10] powerpc/uapi: Export papr-miscdev.h header

2023-10-25 Thread Nathan Lynch via B4 Relay
From: Nathan Lynch Allocate one identifying code (the first column of the ioctl-number table) for the collection of PAPR miscdev drivers to share. Signed-off-by: Nathan Lynch --- arch/powerpc/include/uapi/asm/papr-miscdev.h | 9 + 1 file changed, 9 insertions(+) diff --git

[PATCH v3 04/10] powerpc/rtas: Warn if per-function lock isn't held

2023-10-25 Thread Nathan Lynch via B4 Relay
From: Nathan Lynch If the function descriptor has a populated lock member, then callers are required to hold it across calls. Now that the firmware activation sequence is appropriately guarded, we can warn when the requirement isn't satisfied. __do_enter_rtas_trace() gets reorganized a bit as a

Re: [PATCH 10/10] [RFC] wifi: remove ipw2100/ipw2200 drivers

2023-10-25 Thread Witold Baryluk
> From: Arnd Bergmann > > These two drivers were used for the earliest "Centrino" branded Intel > laptops during the late 32-bit Pentium-M era, roughly 2003 to 2005, which > probably makes it the most modern platform that still uses the wireless > extension interface instead of cfg80211. Unlike

Re: [PATCH 10/10] [RFC] wifi: remove ipw2100/ipw2200 drivers

2023-10-25 Thread Philipp Hortmann
On 10/26/23 00:27, Witold Baryluk wrote: I might be interested in modernizing the driver, but I have no idea how much effort it would be (in terms of changed fraction of code). 20k LOC is neither small or big, and not obvious (a lot of it would be unchanged), if it is a week of work, or months

[PATCH v3 08/10] powerpc/pseries/papr-sysparm: Expose character device to user space

2023-10-25 Thread Nathan Lynch via B4 Relay
From: Nathan Lynch Until now the papr_sysparm APIs have been kernel-internal. But user space needs access to PAPR system parameters too. The only method available to user space today to get or set system parameters is using sys_rtas() and /dev/mem to pass RTAS-addressable buffers between user

[PATCH v3 00/10] powerpc/pseries: New character devices for system parameters and VPD

2023-10-25 Thread Nathan Lynch via B4 Relay
Add character devices that expose PAPR-specific system parameters and VPD to user space. The problem: important platform features are enabled on Linux VMs through the powerpc-specific rtas() syscall in combination with writeable mappings of /dev/mem. In typical usage, this is encapsulated behind

[PATCH v3 01/10] powerpc/rtas: Factor out function descriptor lookup

2023-10-25 Thread Nathan Lynch via B4 Relay
From: Nathan Lynch Move the function descriptor table lookup out of rtas_function_token() into a separate routine for use in new code to follow. No functional change. Signed-off-by: Nathan Lynch --- arch/powerpc/kernel/rtas.c | 31 +++ 1 file changed, 19

[PATCH v3 10/10] powerpc/selftests: Add test for papr-sysparm

2023-10-25 Thread Nathan Lynch via B4 Relay
From: Nathan Lynch Consistently testing system parameter access is a bit difficult by nature -- the set of parameters available depends on the model and system configuration, and updating a parameter should be considered a destructive operation reserved for the admin. So we validate some of the

[PATCH v3 06/10] powerpc/pseries: Add papr-vpd character driver for VPD retrieval

2023-10-25 Thread Nathan Lynch via B4 Relay
From: Nathan Lynch PowerVM LPARs may retrieve Vital Product Data (VPD) for system components using the ibm,get-vpd RTAS function. We can expose this to user space with a /dev/papr-vpd character device, where the programming model is: struct papr_location_code plc = { .str = "", }; /* obtain

[PATCH v3 03/10] powerpc/rtas: Serialize firmware activation sequences

2023-10-25 Thread Nathan Lynch via B4 Relay
From: Nathan Lynch Use the function lock API to prevent interleaving call sequences of the ibm,activate-firmware RTAS function, which typically requires multiple calls to complete the update. While the spec does not specifically prohibit interleaved sequences, there's almost certainly no

Re: [RFC PATCH v7 06/13] media: uapi: Add V4L2_CAP_AUDIO_M2M capability flag

2023-10-25 Thread Hans Verkuil
On 20/10/2023 11:30, Shengjiu Wang wrote: > V4L2_CAP_AUDIO_M2M is similar to V4L2_CAP_VIDEO_M2M flag. > > It is used for audio memory to memory case. > > Signed-off-by: Shengjiu Wang > --- > Documentation/userspace-api/media/v4l/vidioc-querycap.rst| 3 +++ >

Re: [RFC PATCH v7 09/13] media: uapi: Add V4L2_CTRL_CLASS_M2M_AUDIO

2023-10-25 Thread Hans Verkuil
On 20/10/2023 11:30, Shengjiu Wang wrote: > The Audio M2M class includes controls for audio memory-to-memory > use cases. The controls can be used for audio codecs, audio > preprocessing, audio postprocessing. > > Signed-off-by: Shengjiu Wang > --- > .../userspace-api/media/v4l/common.rst

Re: [RFC PATCH v7 10/13] media: uapi: Add V4L2_CTRL_TYPE_FIXED_POINT

2023-10-25 Thread Hans Verkuil
On 20/10/2023 11:30, Shengjiu Wang wrote: > Fixed point controls are used by the user to configure > a fixed point value in 64bits, which Q31.32 format. > > Signed-off-by: Shengjiu Wang > --- > Documentation/userspace-api/media/v4l/vidioc-queryctrl.rst | 6 ++ >

Re: [RFC PATCH v7 11/13] media: uapi: Add audio rate controls support

2023-10-25 Thread Hans Verkuil
On 20/10/2023 11:30, Shengjiu Wang wrote: > Add V4L2_CID_M2M_AUDIO_SOURCE_RATE and V4L2_CID_M2M_AUDIO_DEST_RATE > new IDs for rate control. > > Add V4L2_CID_M2M_AUDIO_SOURCE_RATE_OFFSET and > V4L2_CID_M2M_AUDIO_DEST_RATE_OFFSET for clock drift. > > Signed-off-by: Shengjiu Wang > --- >

Re: [RFC PATCH v7 12/13] media: imx-asrc: Add memory to memory driver

2023-10-25 Thread Hans Verkuil
On 20/10/2023 11:30, Shengjiu Wang wrote: > Implement the ASRC memory to memory function using > the v4l2 framework, user can use this function with > v4l2 ioctl interface. > > User send the output and capture buffer to driver and > driver store the converted data to the capture buffer. > > This

Re: [PATCH] cxl: make cxl_class constant

2023-10-25 Thread Frederic Barrat
On 24/10/2023 13:48, Greg Kroah-Hartman wrote: Now that the driver core allows for struct class to be in read-only memory, we should make all 'class' structures declared at build time placing them into read-only memory, instead of having to be dynamically allocated at runtime. Cc: Frederic

Re: [PATCH] cxl: make cxl_class constant

2023-10-25 Thread Greg Kroah-Hartman
On Wed, Oct 25, 2023 at 10:16:55AM +0200, Frederic Barrat wrote: > > > On 24/10/2023 13:48, Greg Kroah-Hartman wrote: > > Now that the driver core allows for struct class to be in read-only > > memory, we should make all 'class' structures declared at build time > > placing them into read-only

Re: [PATCH] ocxl: make ocxl_class constant

2023-10-25 Thread Frederic Barrat
On 24/10/2023 13:49, Greg Kroah-Hartman wrote: Now that the driver core allows for struct class to be in read-only memory, we should make all 'class' structures declared at build time placing them into read-only memory, instead of having to be dynamically allocated at runtime. Cc: Frederic

Re: [PATCH 1/2] kexec: fix KEXEC_FILE dependencies

2023-10-25 Thread Baoquan He
On 10/24/23 at 03:17pm, Arnd Bergmann wrote: > On Tue, Oct 24, 2023, at 14:44, Baoquan He wrote: > > Just add people and mailing list to CC since I didn't find this mail in > > my box, just drag it via 'b4 am'. > > > > On 10/23/23 at 01:01pm, Arnd Bergmann wrote: > > .. > > >> diff --git