Re: [PATCH] usb: gadget: fsl_qe_udc: validate endpoint index for ch9 udc

2023-06-28 Thread Christophe Leroy
Le 28/06/2023 à 23:10, Leo Li a écrit : > > >> -Original Message- >> From: Christophe Leroy >> Sent: Wednesday, June 28, 2023 2:40 PM >> To: Leo Li ; Ma Ke >> Cc: gre...@linuxfoundation.org; linux-...@vger.kernel.org; linuxppc- >> d...@lists.ozlabs.org; linux-ker...@vger.kernel.org

Re: [PATCH v2 07/12] s390: add pte_free_defer() for pgtables sharing page

2023-06-28 Thread Hugh Dickins
On Wed, 28 Jun 2023, Gerald Schaefer wrote: > > As discussed in the other thread, we would rather go with less complexity, > possibly switching to an approach w/o the list and fragment re-use in the > future. For now, as a first step in that direction, we can try with not > adding fragments back

[FSL P50x0] [PASEMI] The Access to partitions on disks with an Amiga partition table doesn't work anymore after the block updates 2023-06-23

2023-06-28 Thread Christian Zigotzky
Hello, The access  to partitions on disks with an Amiga partition table (via the Rigid Disk Block RDB) doesn't work anymore on my Cyrus+ board with a FSL P50x0 PowerPC SoC [1] and on my P.A. Semi Nemo board [2] after the block updates 2023-06-23 [3]. parted -l Model: ATA ST2000DM001-9YN1

[PATCH 2/6] ASoC: fsl_asrc: define functions for memory to memory usage

2023-06-28 Thread Shengjiu Wang
ASRC can be used on memory to memory case, define several functions for m2m usage. m2m_start_part_one: first part of the start steps m2m_start_part_two: second part of the start steps m2m_stop_part_one: first part of stop steps m2m_stop_part_two: second part of stop steps m2m_check_format: check

[PATCH 4/6] ASoC: fsl_asrc: Add memory to memory driver

2023-06-28 Thread Shengjiu Wang
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 feature can be shared by ASRC and EASRC drivers

[PATCH 5/6] ASoC: fsl_asrc: enable memory to memory function

2023-06-28 Thread Shengjiu Wang
Intergrate memory to memory feature to ASRC driver, call m2m probe(), remove(), suspend() and resume() in different callback. Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_asrc.c | 37 +++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git

[PATCH 6/6] ASoC: fsl_easrc: enable memory to memory function

2023-06-28 Thread Shengjiu Wang
Intergrate memory to memory feature to EASRC driver. call m2m probe(), remove(), suspend() and resume() in different callback. Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_easrc.c | 41 +-- 1 file changed, 39 insertions(+), 2 deletions(-) diff --git

[PATCH 3/6] ASoC: fsl_easrc: define functions for memory to memory usage

2023-06-28 Thread Shengjiu Wang
ASRC can be used on memory to memory case, define several functions for m2m usage and export them as function pointer. Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_easrc.c | 214 ++ sound/soc/fsl/fsl_easrc.h | 6 ++ 2 files changed, 220 insertions(+)

[PATCH 1/6] media: v4l2: Add audio capture and output support

2023-06-28 Thread Shengjiu Wang
Audio signal processing has the requirement for memory to memory similar as Video. This patch is to add this support in v4l2 framework, defined new buffer type V4L2_BUF_TYPE_AUDIO_CAPTURE and V4L2_BUF_TYPE_AUDIO_OUTPUT, defined new format v4l2_audio_format for audio case usage. The created audio

[PATCH 0/6] Add audio support in v4l2 framework

2023-06-28 Thread Shengjiu Wang
Audio signal processing has the requirement for memory to memory similar as Video. This patch is to add this support in v4l2 framework, defined new buffer type V4L2_BUF_TYPE_AUDIO_CAPTURE and V4L2_BUF_TYPE_AUDIO_OUTPUT, defined new format v4l2_audio_format for audio case usage. The created audio

Re: [PATCH net-next 00/10] Remove unnecessary (void*) conversions

2023-06-28 Thread yunchuan
On 2023/6/28 22:39, Andrew Lunn wrote: On Wed, Jun 28, 2023 at 04:37:43PM +0200, Andrew Lunn wrote: Hi, Hao Lan, Sorry for that, I just compiled these patches in the mainline branch. I know now, it's also necessary to compile patches in net and net-next branch. Thanks for your reply! net-next

Re: [PATCH] ASoC: imx-pcm-rpmsg: Set PCM hardware parameters separately

2023-06-28 Thread Shengjiu Wang
On Sun, Jun 25, 2023 at 2:54 PM Chancel Liu wrote: > Different PCM devices may have different PCM hardware parameters. It > requires PCM hardware parameters set separately if there is more than > one rpmsg sound card. > > Signed-off-by: Chancel Liu > Acked-by: Shengjiu Wang Best regards Wang

Re: [PATCH] syscalls: Cleanup references to sys_lookup_dcookie()

2023-06-28 Thread Randy Dunlap
On 6/28/23 16:09, Sohil Mehta wrote: > commit 'be65de6b03aa ("fs: Remove dcookies support")' removed the > syscall definition for lookup_dcookie. However, syscall tables still > point to the old sys_lookup_dcookie() definition. Update syscall tables > of all architectures to directly point to

[PATCH] syscalls: Cleanup references to sys_lookup_dcookie()

2023-06-28 Thread Sohil Mehta
commit 'be65de6b03aa ("fs: Remove dcookies support")' removed the syscall definition for lookup_dcookie. However, syscall tables still point to the old sys_lookup_dcookie() definition. Update syscall tables of all architectures to directly point to sys_ni_syscall() instead. Signed-off-by: Sohil

Re: [PATCH v9 2/4] tpm: of: Make of-tree specific function commonly available

2023-06-28 Thread Jarkko Sakkinen
On Fri, 2023-06-09 at 14:49 -0400, Stefan Berger wrote: > > On 6/9/23 14:18, Jarkko Sakkinen wrote: > > On Thu May 25, 2023 at 1:56 AM EEST, Jerry Snitselaar wrote: > > > On Tue, Apr 18, 2023 at 09:44:07AM -0400, Stefan Berger wrote: > > > > Simplify tpm_read_log_of() by moving reusable parts of

Re: [PATCH v3 11/13] riscv/kexec: refactor for kernel/Kconfig.kexec

2023-06-28 Thread Eric DeVolder
On 6/28/23 03:20, Conor Dooley wrote: Hey Eric, On Mon, Jun 26, 2023 at 12:13:30PM -0400, Eric DeVolder wrote: The kexec and crash kernel options are provided in the common kernel/Kconfig.kexec. Utilize the common options and provide the ARCH_SUPPORTS_ and ARCH_SELECTS_ entries to recreate

RE: [PATCH] usb: gadget: fsl_qe_udc: validate endpoint index for ch9 udc

2023-06-28 Thread Leo Li
> -Original Message- > From: Christophe Leroy > Sent: Wednesday, June 28, 2023 2:40 PM > To: Leo Li ; Ma Ke > Cc: gre...@linuxfoundation.org; linux-...@vger.kernel.org; linuxppc- > d...@lists.ozlabs.org; linux-ker...@vger.kernel.org > Subject: Re: [PATCH] usb: gadget: fsl_qe_udc:

Re: [PATCH] usb: gadget: fsl_qe_udc: validate endpoint index for ch9 udc

2023-06-28 Thread Christophe Leroy
Le 28/06/2023 à 19:04, Leo Li a écrit : > > >> -Original Message- >> From: Ma Ke >> Sent: Wednesday, June 28, 2023 3:15 AM >> To: Leo Li >> Cc: gre...@linuxfoundation.org; linux-...@vger.kernel.org; linuxppc- >> d...@lists.ozlabs.org; linux-ker...@vger.kernel.org; Ma Ke >> >>

Re: [PATCH v2 07/12] s390: add pte_free_defer() for pgtables sharing page

2023-06-28 Thread Gerald Schaefer
On Tue, 20 Jun 2023 00:51:19 -0700 (PDT) Hugh Dickins wrote: > Add s390-specific pte_free_defer(), to call pte_free() via call_rcu(). > pte_free_defer() will be called inside khugepaged's retract_page_tables() > loop, where allocating extra memory cannot be relied upon. This precedes > the

Re: [PATCH v6 00/33] Split ptdesc from struct page

2023-06-28 Thread Matthew Wilcox
On Wed, Jun 28, 2023 at 09:41:18AM +0200, David Hildenbrand wrote: > I'm not a friend of these "overlays"; it all only really makes sense to me > once we actually allocate the descriptors dynamically. Maybe some of the > existing/ongoing conversions were different (that's why I was asking for the

Re: [PATCH v2 1/4] KVM: selftests: Move pgd_created check into virt_pgd_alloc

2023-06-28 Thread Sean Christopherson
On Sat, Apr 08, 2023, Nicholas Piggin wrote: > virt_arch_pgd_alloc all do the same test and set of pgd_created. Move > this into common code. Can you give virt_arch_dump() and addr_gva2gpa() the same treatment? E.g. either in one patch or in separate patches: ---

Re: [PATCH v2 2/4] KVM: selftests: Add aligned guest physical page allocator

2023-06-28 Thread Sean Christopherson
On Sat, Apr 08, 2023, Nicholas Piggin wrote: > powerpc will require this to allocate MMU tables in guest memory that > are aligned and larger than the base page size. > > Signed-off-by: Nicholas Piggin > --- > .../selftests/kvm/include/kvm_util_base.h | 2 + >

Re: [PATCH] KVM: PPC: Update MAINTAINERS

2023-06-28 Thread Sean Christopherson
On Thu, Jun 08, 2023, Nicholas Piggin wrote: > Michael is merging KVM PPC patches via the powerpc tree and KVM topic > branches. He doesn't necessarily have time to be across all of KVM so > is reluctant to call himself maintainer, but for the mechanics of how > patches flow upstream, it is

RE: [PATCH] usb: gadget: fsl_qe_udc: validate endpoint index for ch9 udc

2023-06-28 Thread Leo Li
> -Original Message- > From: Ma Ke > Sent: Wednesday, June 28, 2023 3:15 AM > To: Leo Li > Cc: gre...@linuxfoundation.org; linux-...@vger.kernel.org; linuxppc- > d...@lists.ozlabs.org; linux-ker...@vger.kernel.org; Ma Ke > > Subject: [PATCH] usb: gadget: fsl_qe_udc: validate endpoint

Re: [PATCH v2 0/9] Introduce SMT level and add PowerPC support

2023-06-28 Thread Sachin Sant
> On 28-Jun-2023, at 3:35 PM, Laurent Dufour wrote: > > I'm taking over the series Michael sent previously [1] which is smartly > reviewing the initial series I sent [2]. This series is addressing the > comments sent by Thomas and me on the Michael's one. > > Here is a short introduction to

Re: [PATCH net-next 00/10] Remove unnecessary (void*) conversions

2023-06-28 Thread Andrew Lunn
> Hi, Hao Lan, > > Sorry for that, I just compiled these patches in the mainline branch. > I know now, it's also necessary to compile patches in net and net-next > branch. > Thanks for your reply! net-next is also closed at the moment due to the merge window. Please wait two weeks before

Re: [PATCH net-next 00/10] Remove unnecessary (void*) conversions

2023-06-28 Thread Andrew Lunn
On Wed, Jun 28, 2023 at 04:37:43PM +0200, Andrew Lunn wrote: > > Hi, Hao Lan, > > > > Sorry for that, I just compiled these patches in the mainline branch. > > I know now, it's also necessary to compile patches in net and net-next > > branch. > > Thanks for your reply! > > net-next is also

[PATCH] usb: gadget: fsl_qe_udc: validate endpoint index for ch9 udc

2023-06-28 Thread Ma Ke
We should verify the bound of the array to assure that host may not manipulate the index to point past endpoint array. Signed-off-by: Ma Ke --- drivers/usb/gadget/udc/fsl_qe_udc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/gadget/udc/fsl_qe_udc.c

Re: [PATCH v3 11/13] riscv/kexec: refactor for kernel/Kconfig.kexec

2023-06-28 Thread Conor Dooley
Hey Eric, On Mon, Jun 26, 2023 at 12:13:30PM -0400, Eric DeVolder wrote: > The kexec and crash kernel options are provided in the common > kernel/Kconfig.kexec. Utilize the common options and provide > the ARCH_SUPPORTS_ and ARCH_SELECTS_ entries to recreate the > equivalent set of KEXEC and

Re: [PATCH net-next 00/10] Remove unnecessary (void*) conversions

2023-06-28 Thread Hao Lan
On 2023/6/28 10:41, wuych wrote: > Remove (void*) conversions under "drivers/net" directory. > According to the suggestion[1] of Jakub Kicinski, send these patches > in series of 10. > > wuych (10): > net: dsa: ar9331: remove unnecessary (void*) conversions > net: dsa: qca8k: remove

Re: [PATCH v3 06/19] arch/loongarch: Implement with generic helpers

2023-06-28 Thread WANG Xuerui
Hi, On 2023/4/17 20:56, Thomas Zimmermann wrote: Replace the architecture's fbdev helpers with the generic ones from . No functional changes. v2: * use default implementation for fb_pgprotect() (Arnd) Signed-off-by: Thomas Zimmermann Cc: Huacai Chen Cc: WANG Xuerui ---

Re: [v3,17/19] arch/sparc: Implement fb_is_primary_device() in source file

2023-06-28 Thread Arnd Bergmann
On Sat, Jun 24, 2023, at 16:21, Arnd Bergmann wrote: > On Sat, Jun 24, 2023, at 15:26, Guenter Roeck wrote: >> On 6/24/23 02:27, Arnd Bergmann wrote: >>> On Sat, Jun 24, 2023, at 03:55, Guenter Roeck wrote: ERROR: modpost: "__xchg_called_with_bad_pointer" [lib/atomic64_test.ko]

[PATCH v2 0/9] Introduce SMT level and add PowerPC support

2023-06-28 Thread Laurent Dufour
I'm taking over the series Michael sent previously [1] which is smartly reviewing the initial series I sent [2]. This series is addressing the comments sent by Thomas and me on the Michael's one. Here is a short introduction to the issue this series is addressing: When a new CPU is added, the

[PATCH v2 7/9] powerpc/pseries: Initialise CPU hotplug callbacks earlier

2023-06-28 Thread Laurent Dufour
From: Michael Ellerman As part of the generic HOTPLUG_SMT code, there is support for disabling secondary SMT threads at boot time, by passing "nosmt" on the kernel command line. The way that is implemented is the secondary threads are brought partly online, and then taken back offline again.

[PATCH v2 4/9] cpu/SMT: Remove topology_smt_supported()

2023-06-28 Thread Laurent Dufour
Since the maximum number of threads is now passed to cpu_smt_set_num_threads(), checking that value is enough to know if SMT is supported. Cc: Michael Ellerman Suggested-by: Thomas Gleixner Signed-off-by: Laurent Dufour --- arch/x86/include/asm/topology.h | 2 -- arch/x86/kernel/smpboot.c

[PATCH v2 2/9] cpu/SMT: Move smt/control simple exit cases earlier

2023-06-28 Thread Laurent Dufour
From: Michael Ellerman Move the simple exit cases, ie. which don't depend on the value written, earlier in the function. That makes it clearer that regardless of the input those states can not be transitioned out of. That does have a user-visible effect, in that the error returned will now

[PATCH v2 9/9] powerpc/pseries: Honour current SMT state when DLPAR onlining CPUs

2023-06-28 Thread Laurent Dufour
From: Michael Ellerman Integrate with the generic SMT support, so that when a CPU is DLPAR onlined it is brought up with the correct SMT mode. Signed-off-by: Michael Ellerman --- arch/powerpc/platforms/pseries/hotplug-cpu.c | 8 1 file changed, 8 insertions(+) diff --git

[PATCH v2 3/9] cpu/SMT: Store the current/max number of threads

2023-06-28 Thread Laurent Dufour
From: Michael Ellerman Some architectures allows partial SMT states at boot time, ie. when not all SMT threads are brought online. To support that the SMT code needs to know the maximum number of SMT threads, and also the currently configured number. The architecture code knows the max number

[PATCH v2 8/9] powerpc: Add HOTPLUG_SMT support

2023-06-28 Thread Laurent Dufour
From: Michael Ellerman Add support for HOTPLUG_SMT, which enables the generic sysfs SMT support files in /sys/devices/system/cpu/smt, as well as the "nosmt" boot parameter. Implement the recently added hooks to allow partial SMT states, allow any number of threads per core. Tie the config

[PATCH v2 5/9] cpu/SMT: Create topology_smt_thread_allowed()

2023-06-28 Thread Laurent Dufour
From: Michael Ellerman Some architectures allows partial SMT states, ie. when not all SMT threads are brought online. To support that, add an architecture helper which checks whether a given CPU is allowed to be brought online depending on how many SMT threads are currently enabled. Since this

[PATCH v2 1/9] cpu/SMT: Move SMT prototypes into cpu_smt.h

2023-06-28 Thread Laurent Dufour
From: Michael Ellerman In order to export the cpuhp_smt_control enum as part of the interface between generic and architecture code, the architecture code needs to include asm/topology.h. But that leads to circular header dependencies. So split the enum and related declarations into a separate

[PATCH v2 6/9] cpu/SMT: Allow enabling partial SMT states via sysfs

2023-06-28 Thread Laurent Dufour
From: Michael Ellerman Add support to the /sys/devices/system/cpu/smt/control interface for enabling a specified number of SMT threads per core, including partial SMT states where not all threads are brought online. The current interface accepts "on" and "off", to enable either 1 or all SMT

Re: [PATCH net-next 00/10] Remove unnecessary (void*) conversions

2023-06-28 Thread yunchuan
On 2023/6/28 15:41, Hao Lan wrote: On 2023/6/28 10:41, wuych wrote: Remove (void*) conversions under "drivers/net" directory. According to the suggestion[1] of Jakub Kicinski, send these patches in series of 10. wuych (10): net: dsa: ar9331: remove unnecessary (void*) conversions net:

Re: [PATCH 17/17] powerpc/ftrace: Create a dummy stackframe to fix stack unwind

2023-06-28 Thread Naveen N Rao
Christophe Leroy wrote: Le 19/06/2023 à 11:47, Naveen N Rao a écrit : With ppc64 -mprofile-kernel and ppc32 -pg, profiling instructions to call into ftrace are emitted right at function entry. The instruction sequence used is minimal to reduce overhead. Crucially, a stackframe is not created

Re: [PATCH v6 00/33] Split ptdesc from struct page

2023-06-28 Thread David Hildenbrand
On 27.06.23 22:13, Hugh Dickins wrote: On Tue, 27 Jun 2023, David Hildenbrand wrote: On 27.06.23 06:44, Hugh Dickins wrote: On Mon, 26 Jun 2023, Vishal Moola (Oracle) wrote: The MM subsystem is trying to shrink struct page. This patchset introduces a memory descriptor for page table tracking

Re: [PATCH 16/17] powerpc/ftrace: Add support for -fpatchable-function-entry

2023-06-28 Thread Naveen N Rao
Christophe Leroy wrote: Le 19/06/2023 à 11:47, Naveen N Rao a écrit : GCC v13.1 updated support for -fpatchable-function-entry on ppc64le to emit nops after the local entry point, rather than before it. This allows us to use this in the kernel for ftrace purposes. A new script is added under

Re: [PATCH 07/17] powerpc/ftrace: Consolidate ftrace support into fewer files

2023-06-28 Thread Naveen N Rao
Hi Christophe, Christophe Leroy wrote: Le 19/06/2023 à 11:47, Naveen N Rao a écrit : ftrace_low.S has just the _mcount stub and return_to_handler(). Merge this back into ftrace_mprofile.S and ftrace_64_pg.S to keep all ftrace code together, and to allow those to evolve independently.