Re: [PATCH v5 1/3] powerpc: make fadump resilient with memory add/remove events

2023-11-23 Thread Sourabh Jain
Hello Michael, On 22/11/23 18:22, Michael Ellerman wrote: Sourabh Jain writes: On 22/11/23 10:47, Michael Ellerman wrote: Aneesh Kumar K V writes: ... I am not sure whether we need to add all the complexity to enable supporting different fadump kernel version. Is that even a possible use

Re: [PATCH RFC 06/12] mm/gup: Drop folio_fast_pin_allowed() in hugepd processing

2023-11-23 Thread Christophe Leroy
Le 23/11/2023 à 20:37, Peter Xu a écrit : > On Thu, Nov 23, 2023 at 06:22:33PM +, Christophe Leroy wrote: >>> For fast-gup I think the hugepd code is in use, however for walk_page_* >>> apis hugepd code shouldn't be reached iiuc as we have the hugetlb specific >>> handling

Re: [PATCH v2 2/7] kexec_file: print out debugging message if required

2023-11-23 Thread Joe Perches
On Fri, 2023-11-24 at 11:36 +0800, Baoquan He wrote: > Replace pr_debug() with the newly added kexec_dprintk() in kexec_file > loading related codes. trivia for pr_debug -> kexec_dprintk conversions for the entire patch set: > diff --git a/kernel/crash_core.c b/kernel/crash_core.c [] > @@ -551,9

[PATCH v5 5/5] RISC-V: Enable SBI based earlycon support

2023-11-23 Thread Anup Patel
Let us enable SBI based earlycon support in defconfig for both RV32 and RV64 so that "earlycon=sbi" can be used again. Signed-off-by: Anup Patel Reviewed-by: Andrew Jones --- arch/riscv/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/configs/defconfig

[PATCH v5 4/5] tty: Add SBI debug console support to HVC SBI driver

2023-11-23 Thread Anup Patel
From: Atish Patra RISC-V SBI specification supports advanced debug console support via SBI DBCN extension. Extend the HVC SBI driver to support it. Signed-off-by: Atish Patra Signed-off-by: Anup Patel --- drivers/tty/hvc/Kconfig | 2 +- drivers/tty/hvc/hvc_riscv_sbi.c | 37

[PATCH v5 3/5] tty/serial: Add RISC-V SBI debug console based earlycon

2023-11-23 Thread Anup Patel
We extend the existing RISC-V SBI earlycon support to use the new RISC-V SBI debug console extension. Signed-off-by: Anup Patel Reviewed-by: Andrew Jones --- drivers/tty/serial/Kconfig | 2 +- drivers/tty/serial/earlycon-riscv-sbi.c | 27 ++--- 2 files

[PATCH v5 2/5] RISC-V: Add SBI debug console helper routines

2023-11-23 Thread Anup Patel
Let us provide SBI debug console helper routines which can be shared by serial/earlycon-riscv-sbi.c and hvc/hvc_riscv_sbi.c. Signed-off-by: Anup Patel Reviewed-by: Andrew Jones --- arch/riscv/include/asm/sbi.h | 5 +++ arch/riscv/kernel/sbi.c | 66 2

[PATCH v5 1/5] RISC-V: Add stubs for sbi_console_putchar/getchar()

2023-11-23 Thread Anup Patel
The functions sbi_console_putchar() and sbi_console_getchar() are not defined when CONFIG_RISCV_SBI_V01 is disabled so let us add stub of these functions to avoid "#ifdef" on user side. Signed-off-by: Anup Patel Reviewed-by: Andrew Jones --- arch/riscv/include/asm/sbi.h | 5 + 1 file

[PATCH v5 0/5] RISC-V SBI debug console extension support

2023-11-23 Thread Anup Patel
The SBI v2.0 specification is now frozen. The SBI v2.0 specification defines SBI debug console (DBCN) extension which replaces the legacy SBI v0.1 functions sbi_console_putchar() and sbi_console_getchar(). (Refer v2.0-rc5 at https://github.com/riscv-non-isa/riscv-sbi-doc/releases) This series

Re: [PATCH RFC 06/12] mm/gup: Drop folio_fast_pin_allowed() in hugepd processing

2023-11-23 Thread IBM
Peter Xu writes: > On Thu, Nov 23, 2023 at 06:22:33PM +, Christophe Leroy wrote: >> > For fast-gup I think the hugepd code is in use, however for walk_page_* >> > apis hugepd code shouldn't be reached iiuc as we have the hugetlb specific >> > handling (walk_hugetlb_range()), so anything

Re: [PATCH v5 1/3] powerpc: make fadump resilient with memory add/remove events

2023-11-23 Thread Sourabh Jain
Hello Aneesh, On 22/11/23 17:50, Aneesh Kumar K V wrote: On 11/22/23 4:05 PM, Sourabh Jain wrote: Hello Michael, On 22/11/23 10:47, Michael Ellerman wrote: Aneesh Kumar K V writes: ... I am not sure whether we need to add all the complexity to enable supporting different fadump kernel

Re: [RFC] UBUNTU: [Config] y2038: Disable COMPAT and COMPAT_32BIT_TIME on ppc64le

2023-11-23 Thread Michael Ellerman
Dimitri John Ledkov writes: > BugLink: https://bugs.launchpad.net/bugs/2038587 > > ppc64le is exclusively little endian and 64-bit, thus there is no need > for COMPAT_32BIT_TIME, nor COMPAT. To be pedantic, the ppc64le kernel does support running 32-bit little endian userspace in compat mode

[PATCH v2 6/7] kexec_file, power: print out debugging message if required

2023-11-23 Thread Baoquan He
Replace pr_debug() with the newly added kexec_dprintk() in kexec_file loading related codes. Signed-off-by: Baoquan He --- arch/powerpc/kexec/elf_64.c | 8 arch/powerpc/kexec/file_load_64.c | 14 +++--- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git

[PATCH v2 7/7] kexec_file, parisc: print out debugging message if required

2023-11-23 Thread Baoquan He
Replace pr_debug() with the newly added kexec_dprintk() in kexec_file loading related codes. Signed-off-by: Baoquan He --- arch/parisc/kernel/kexec_file.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/parisc/kernel/kexec_file.c b/arch/parisc/kernel/kexec_file.c

[PATCH v2 5/7] kexec_file, ricv: print out debugging message if required

2023-11-23 Thread Baoquan He
Replace pr_debug() with the newly added kexec_dprintk() in kexec_file loading related codes. And also remove kexec_image_info() because the content has been printed out in generic code. Signed-off-by: Baoquan He --- arch/riscv/kernel/elf_kexec.c | 9 +

[PATCH v2 4/7] kexec_file, arm64: print out debugging message if required

2023-11-23 Thread Baoquan He
Replace pr_debug() with the newly added kexec_dprintk() in kexec_file loading related codes. And also remove the kimage->segment[] printing because the generic code has done the printing. Signed-off-by: Baoquan He --- arch/arm64/kernel/kexec_image.c| 2 +-

[PATCH v2 3/7] kexec_file, x86: print out debugging message if required

2023-11-23 Thread Baoquan He
Replace pr_debug() with the newly added kexec_dprintk() in kexec_file loading related codes. And also print out e820 memmap passed to 2nd kernel just as kexec_load interface has been doing. Signed-off-by: Baoquan He --- arch/x86/kernel/crash.c | 2 +-

[PATCH v2 2/7] kexec_file: print out debugging message if required

2023-11-23 Thread Baoquan He
Replace pr_debug() with the newly added kexec_dprintk() in kexec_file loading related codes. And also print out type/start/head of kimage and flags to help debug. Signed-off-by: Baoquan He --- kernel/crash_core.c| 5 - kernel/kexec_file.c| 7 ++-

[PATCH v2 1/7] kexec_file: add kexec_file flag to control debug printing

2023-11-23 Thread Baoquan He
When specifying 'kexec -c -d', kexec_load interface will print loading information, e.g the regions where kernel/initrd/purgatory/cmdline are put, the memmap passed to 2nd kernel taken as system RAM ranges, and printing all contents of struct kexec_segment, etc. These are very helpful for

[PATCH v2 0/7] kexec_file: print out debugging message if required

2023-11-23 Thread Baoquan He
Currently, specifying '-d' will print a lot of debugging information about kexec/kdump loading with kexec_load interface. However, kexec_file_load prints nothing even though '-d' is specified. It's very inconvenient to debug or analyze the kexec/kdump loading when something wrong happened with

Re: [PATCH v2 2/4] eventfd: simplify eventfd_signal()

2023-11-23 Thread Andrew Donnellan
On Wed, 2023-11-22 at 13:48 +0100, Christian Brauner wrote: > Ever since the evenfd type was introduced back in 2007 in commit > e1ad7468c77d ("signal/timer/event: eventfd core") the > eventfd_signal() > function only ever passed 1 as a value for @n. There's no point in > keeping that additional

Re: [PATCH v3] powerpc: Adjust config HOTPLUG_CPU dependency

2023-11-23 Thread Michael Ellerman
Hi Vishal, I think our wires got crossed here somewhere :) Vishal Chourasia writes: > Changed HOTPLUG_CPU dependency to SMP and either ARCH_HIBERNATION_POSSIBLE or > ARCH_SUSPEND_POSSIBLE, aligning with systems' suspend/hibernation > capabilities. > This update link CPU hotplugging more

Re: [PATCH 2/7] kexec_file: print out debugging message if required

2023-11-23 Thread b...@redhat.com
On 11/24/23 at 09:18am, Yujie Liu wrote: > On Thu, Nov 23, 2023 at 09:49:20PM +0800, b...@redhat.com wrote: > > On 11/17/23 at 10:01pm, Baoquan He wrote: > > > On 11/17/23 at 09:37am, Liu, Yujie wrote: > > > > Hi Baoquan, > > > > > > > > On Fri, 2023-11-17 at 17:14 +0800, Baoquan He wrote: > > >

Re: [PATCH 2/7] kexec_file: print out debugging message if required

2023-11-23 Thread b...@redhat.com
On 11/23/23 at 08:41am, Nathan Chancellor wrote: > On Thu, Nov 23, 2023 at 09:49:20PM +0800, b...@redhat.com wrote: > > On 11/17/23 at 10:01pm, Baoquan He wrote: > > > On 11/17/23 at 09:37am, Liu, Yujie wrote: > > > > Hi Baoquan, > > > > > > > > On Fri, 2023-11-17 at 17:14 +0800, Baoquan He

Re: [PATCH 2/7] kexec_file: print out debugging message if required

2023-11-23 Thread Yujie Liu
On Thu, Nov 23, 2023 at 09:49:20PM +0800, b...@redhat.com wrote: > On 11/17/23 at 10:01pm, Baoquan He wrote: > > On 11/17/23 at 09:37am, Liu, Yujie wrote: > > > Hi Baoquan, > > > > > > On Fri, 2023-11-17 at 17:14 +0800, Baoquan He wrote: > > > > Hi, > > > > > > > > On 11/16/23 at 05:04am, kernel

Re: [PATCH RFC 06/12] mm/gup: Drop folio_fast_pin_allowed() in hugepd processing

2023-11-23 Thread Michael Ellerman
Peter Xu writes: > On Wed, Nov 22, 2023 at 12:00:24AM -0800, Christoph Hellwig wrote: >> On Tue, Nov 21, 2023 at 10:59:35AM -0500, Peter Xu wrote: ... >> >> If dropping the check is the right thing for now (and I think the ppc >> maintainers and willy as the large folio guy might have a more

[RFC] UBUNTU: [Config] y2038: Disable COMPAT and COMPAT_32BIT_TIME on ppc64le

2023-11-23 Thread Dimitri John Ledkov
BugLink: https://bugs.launchpad.net/bugs/2038587 ppc64le is exclusively little endian and 64-bit, thus there is no need for COMPAT_32BIT_TIME, nor COMPAT. diffconfig result of these changes is: -ARCH_MMAP_RND_COMPAT_BITS 13 -ARCH_WANT_COMPAT_IPC_PARSE_VERSION y -ARCH_WANT_OLD_COMPAT_IPC y

Re: [PATCH v2] powerpc: Don't clobber fr0/vs0 during fp|altivec register save

2023-11-23 Thread Timothy Pearson
- Original Message - > From: "Michael Ellerman" > To: "Timothy Pearson" > Cc: "Jens Axboe" , "regressions" > , "npiggin" , > "christophe leroy" , "linuxppc-dev" > > Sent: Tuesday, November 21, 2023 11:01:50 PM > Subject: Re: [PATCH v2] powerpc: Don't clobber fr0/vs0 during

Re: [PATCH v2 0/4] eventfd: simplify signal helpers

2023-11-23 Thread Jens Axboe
On 11/22/23 5:48 AM, Christian Brauner wrote: > Hey everyone, > > This simplifies the eventfd_signal() and eventfd_signal_mask() helpers > significantly. They can be made void and not take any unnecessary > arguments. > > I've added a few more simplifications based on Sean's suggestion. > >

Re: [powerpc] Lockups seen during/just after boot (bisected)

2023-11-23 Thread Chengming Zhou
On 2023/11/23 19:27, Sachin Sant wrote: > While booting recent -next kernel on IBM Power server, I have observed lockups > either during boot or just after. > > [ 3631.015775] watchdog: CPU 3 self-detected hard LOCKUP @ > __update_freelist_slow+0x74/0x90 Sorry, the bug can be fixed by this

Re: [PATCH v2 2/4] eventfd: simplify eventfd_signal()

2023-11-23 Thread Christian Brauner
> > * eventfd_signal - Adds @n to the eventfd counter. > > This still refers to @n here, and in patch 4. Fixed and folded. Thanks!

Re: [PATCH v2 1/4] i915: make inject_virtual_interrupt() void

2023-11-23 Thread Christian Brauner
> > + if (!vgpu->msi_trigger) > > + return; > > + eventfd_signal(vgpu->msi_trigger, 1); > > } > > I think it's a little simpler to write as > if (vgpu->msi_trigger) > eventfd_signal(vgpu->msi_trigger, 1); Good point. I folded that suggestion into the patch.

Re: Potential config regression after 89cde455 ("kexec: consolidate kexec and crash options into kernel/Kconfig.kexec")

2023-11-23 Thread Baoquan He
On 11/22/23 at 09:47am, Ignat Korchagin wrote: > On Wed, Nov 22, 2023 at 9:34 AM Baoquan He wrote: > > > > On 11/21/23 at 09:43am, Ignat Korchagin wrote: > > > On Tue, Nov 21, 2023 at 7:53 AM Ignat Korchagin > > > wrote: > > > > > > > > On Tue, Nov 21, 2023 at 1:50 AM Baoquan He wrote: > > > >

Re: [PATCH 00/17] tty: small cleanups and fixes

2023-11-23 Thread Greg KH
On Tue, Nov 21, 2023 at 10:22:41AM +0100, Jiri Slaby (SUSE) wrote: > This is a series to fix/clean up some obvious issues I revealed during > u8+size_t conversions (to be posted later). I applied most of these except the last few, as I think you were going to reorder them, right? thanks, greg

Re: [PATCH RFC 06/12] mm/gup: Drop folio_fast_pin_allowed() in hugepd processing

2023-11-23 Thread Peter Xu
On Thu, Nov 23, 2023 at 07:11:19PM +, Ryan Roberts wrote: > Hi, > > I'm not sure I've 100% understood the crossover between this series and my > work > to support arm64's contpte mappings generally for anonymous and file-backed > memory. No worry, there's no confliction. If you worked on

Re: [PATCH RFC 06/12] mm/gup: Drop folio_fast_pin_allowed() in hugepd processing

2023-11-23 Thread Peter Xu
On Thu, Nov 23, 2023 at 06:22:33PM +, Christophe Leroy wrote: > > For fast-gup I think the hugepd code is in use, however for walk_page_* > > apis hugepd code shouldn't be reached iiuc as we have the hugetlb specific > > handling (walk_hugetlb_range()), so anything within walk_pgd_range() to

Re: [PATCH RFC 06/12] mm/gup: Drop folio_fast_pin_allowed() in hugepd processing

2023-11-23 Thread Ryan Roberts
On 23/11/2023 17:22, Peter Xu wrote: > On Thu, Nov 23, 2023 at 03:47:49PM +, Matthew Wilcox wrote: >> It looks like ARM (in the person of Ryan) are going to add support for >> something equivalent to hugepd. > > If it's about arm's cont_pte, then it looks ideal because this series > didn't

Re: [PATCH RFC 06/12] mm/gup: Drop folio_fast_pin_allowed() in hugepd processing

2023-11-23 Thread Christophe Leroy
Le 22/11/2023 à 16:22, Peter Xu a écrit : > On Wed, Nov 22, 2023 at 12:00:24AM -0800, Christoph Hellwig wrote: >> On Tue, Nov 21, 2023 at 10:59:35AM -0500, Peter Xu wrote: What prevents us from ever using hugepd with file mappings? I think it would naturally fit in with how large

Re: [PATCH RFC 06/12] mm/gup: Drop folio_fast_pin_allowed() in hugepd processing

2023-11-23 Thread Peter Xu
On Thu, Nov 23, 2023 at 03:47:49PM +, Matthew Wilcox wrote: > It looks like ARM (in the person of Ryan) are going to add support for > something equivalent to hugepd. If it's about arm's cont_pte, then it looks ideal because this series didn't yet touch cont_pte, assuming it'll just work.

Re: [PATCH] ASoC: fsl_xcvr: refine the requested phy clock frequency

2023-11-23 Thread Mark Brown
On Thu, 23 Nov 2023 09:14:53 +0800, Shengjiu Wang wrote: > As the input phy clock frequency will divided by 2 by default > on i.MX8MP with the implementation of clk-imx8mp-audiomix driver, > So the requested frequency need to be updated. > > The relation of phy clock is: > sai_pll_ref_sel >

Re: [PATCH RFC 06/12] mm/gup: Drop folio_fast_pin_allowed() in hugepd processing

2023-11-23 Thread Peter Xu
On Wed, Nov 22, 2023 at 11:21:50PM -0800, Christoph Hellwig wrote: > That alone sounds like a good reason to not bother. So unless more > qualified people have a different opinion I'm fine with this patch > as long as you leave a comment in place, and ammend the commit message > with some of the

[PATCH V4] tools/perf: Add perf binary dependent rule for shellcheck log in Makefile.perf

2023-11-23 Thread Athira Rajeev
Add rule in new Makefile "tests/Makefile.tests" for running shellcheck on shell test scripts. This automates below shellcheck into the build. $ for F in $(find tests/shell/ -perm -o=x -name '*.sh'); do shellcheck -S warning $F; done Condition for shellcheck is added in Makefile.perf to

[PATCH] perf vendor events: Update datasource event name to fix duplicate events

2023-11-23 Thread Athira Rajeev
Running "perf list" on powerpc fails with segfault as below: ./perf list Segmentation fault (core dumped) This happens because of duplicate events in the json list. The powerpc Json event list contains some event with same event name, but different event code. They are: -

Re: [PATCH v2 29/37] powerpc/nohash: Replace pte_user() by pte_read()

2023-11-23 Thread Christophe Leroy
Le 13/11/2023 à 11:23, Aneesh Kumar K.V a écrit : > Christophe Leroy writes: > >> Le 07/11/2023 à 14:34, Aneesh Kumar K.V a écrit : >>> Christophe Leroy writes: >>> Le 31/10/2023 à 11:15, Aneesh Kumar K.V a écrit : > Christophe Leroy writes: > > > >>> >>> >>> We are adding

Re: [PATCH RFC 06/12] mm/gup: Drop folio_fast_pin_allowed() in hugepd processing

2023-11-23 Thread Matthew Wilcox
On Wed, Nov 22, 2023 at 12:00:24AM -0800, Christoph Hellwig wrote: > > The other option is I can always add a comment above gup_huge_pd() > > explaining this special bit, so that when someone is adding hugepd support > > to file large folios we'll hopefully not forget it? But then that > >

Re: [PATCH 2/7] kexec_file: print out debugging message if required

2023-11-23 Thread Nathan Chancellor
On Thu, Nov 23, 2023 at 09:49:20PM +0800, b...@redhat.com wrote: > On 11/17/23 at 10:01pm, Baoquan He wrote: > > On 11/17/23 at 09:37am, Liu, Yujie wrote: > > > Hi Baoquan, > > > > > > On Fri, 2023-11-17 at 17:14 +0800, Baoquan He wrote: > > > > Hi, > > > > > > > > On 11/16/23 at 05:04am, kernel

Re: [PATCH] powerpc/lib: Avoid array bounds warnings in vec ops

2023-11-23 Thread Gustavo A. R. Silva
To be honest I don't know how paranoid we want to get, we could end up putting WARN's all over the kernel :) In this case I guess if the size is too large we overflow the buffer on the kernel stack, so we should at least check the size. But does it need a WARN? I'm not sure. If we had a case

Re: [PATCH v4 1/5] RISC-V: Add stubs for sbi_console_putchar/getchar()

2023-11-23 Thread Samuel Holland
Hi Anup, On 2023-11-23 4:38 AM, Anup Patel wrote: > On Wed, Nov 22, 2023 at 4:06 AM Samuel Holland > wrote: >> On 2023-11-17 9:38 PM, Anup Patel wrote: >>> The functions sbi_console_putchar() and sbi_console_getchar() are >>> not defined when CONFIG_RISCV_SBI_V01 is disabled so let us add >>>

Re: [PATCH 2/7] kexec_file: print out debugging message if required

2023-11-23 Thread b...@redhat.com
On 11/17/23 at 10:01pm, Baoquan He wrote: > On 11/17/23 at 09:37am, Liu, Yujie wrote: > > Hi Baoquan, > > > > On Fri, 2023-11-17 at 17:14 +0800, Baoquan He wrote: > > > Hi, > > > > > > On 11/16/23 at 05:04am, kernel test robot wrote: > > > > Hi Baoquan, > > > > > > > > kernel test robot noticed

Re: [PATCH v2 1/2] resource: add walk_system_ram_res_rev()

2023-11-23 Thread Baoquan He
Hi Andrew, On 11/15/23 at 09:00pm, Baoquan He wrote: > This function, being a variant of walk_system_ram_res() introduced in > commit 8c86e70acead ("resource: provide new functions to walk through > resources"), walks through a list of all the resources of System RAM > in reversed order, i.e.,

Re: [PATCH v2 0/5] MODVERSIONS + RUST Redux

2023-11-23 Thread Greg KH
On Thu, Nov 23, 2023 at 08:38:45PM +0900, Masahiro Yamada wrote: > On Thu, Nov 23, 2023 at 6:05 PM Greg KH wrote: > > > > On Wed, Nov 22, 2023 at 01:04:09PM -0800, Matthew Maurer wrote: > > > > So, even if you enable CONFIG_MODVERSIONS, > > > > nothing is checked for Rust. > > > > Genksyms

Re: [PATCH v2 0/5] MODVERSIONS + RUST Redux

2023-11-23 Thread Masahiro Yamada
On Thu, Nov 23, 2023 at 6:05 PM Greg KH wrote: > > On Wed, Nov 22, 2023 at 01:04:09PM -0800, Matthew Maurer wrote: > > > So, even if you enable CONFIG_MODVERSIONS, > > > nothing is checked for Rust. > > > Genksyms computes a CRC from "int foo", and > > > the module subsystem confirms it is a

[powerpc] Lockups seen during/just after boot (bisected)

2023-11-23 Thread Sachin Sant
While booting recent -next kernel on IBM Power server, I have observed lockups either during boot or just after. [ 3631.015775] watchdog: CPU 3 self-detected hard LOCKUP @ __update_freelist_slow+0x74/0x90 [ 3631.015783] watchdog: CPU 3 TB:7766577908812231, last heartbeat TB:7766572528409444

Re: [PATCH v1] powerpc: Add PVN support for HeXin C2000 processor

2023-11-23 Thread Michael Ellerman
Greg KH writes: > On Thu, Nov 23, 2023 at 05:36:11PM +0800, Zhao Ke wrote: >> HeXin Tech Co. has applied for a new PVN from the OpenPower Community >> for its new processor C2000. The OpenPower has assigned a new PVN >> and this newly assigned PVN is 0x0066, add pvr register related >> support

[PATCH v2 3/3] powerpc: powermac: mark smp_psurge_{give,take}_timebase static

2023-11-23 Thread Arnd Bergmann
From: Arnd Bergmann These functions are only called locally and should be static like the other corresponding functions are: arch/powerpc/platforms/powermac/smp.c:416:13: error: no previous prototype for 'smp_psurge_take_timebase' [-Werror=missing-prototypes] 416 | void __init

[PATCH v2 2/3] powerpc: pasemi: mark pas_shutdown() static

2023-11-23 Thread Arnd Bergmann
From: Arnd Bergmann Allmodconfig builds show a warning about one function that is accidentally marked global: arch/powerpc/platforms/pasemi/setup.c:67:6: error: no previous prototype for 'pas_shutdown' [-Werror=missing-prototypes] Fixes: 656fdf3ad8e0 ("powerpc/pasemi: Add Nemo board device

[PATCH v2 1/3] powerpc: ps3: move udbg_shutdown_ps3gelic prototype

2023-11-23 Thread Arnd Bergmann
From: Arnd Bergmann Allmodconfig kernels produce a missing-prototypes warning: arch/powerpc/platforms/ps3/gelic_udbg.c:239:6: error: no previous prototype for 'udbg_shutdown_ps3gelic' [-Werror=missing-prototypes] Move the declaration from a local header to asm/ps3.h where it can be seen from

[PATCH v2 0/3] powerpc: -Wmissing-prototypes fixes

2023-11-23 Thread Arnd Bergmann
From: Arnd Bergmann Most of the other fixes I sent have been picked up in other trees in linux-next already, but I saw the powerpc ones were still missing. I've folded the fixup for the ps3gelic patch in, the other two patches are unchanged. Please apply, or ignore if you already have them in

Re: [PATCH v4 2/5] RISC-V: Add SBI debug console helper routines

2023-11-23 Thread Anup Patel
On Mon, Nov 20, 2023 at 1:35 PM Andrew Jones wrote: > > On Sat, Nov 18, 2023 at 09:08:56AM +0530, Anup Patel wrote: > > Let us provide SBI debug console helper routines which can be > > shared by serial/earlycon-riscv-sbi.c and hvc/hvc_riscv_sbi.c. > > > > Signed-off-by: Anup Patel > > --- > >

Re: [PATCH v4 2/5] RISC-V: Add SBI debug console helper routines

2023-11-23 Thread Anup Patel
On Wed, Nov 22, 2023 at 4:15 AM Samuel Holland wrote: > > Hi Anup, > > On 2023-11-17 9:38 PM, Anup Patel wrote: > > Let us provide SBI debug console helper routines which can be > > shared by serial/earlycon-riscv-sbi.c and hvc/hvc_riscv_sbi.c. > > > > Signed-off-by: Anup Patel > > --- > >

Re: [PATCH v4 3/5] tty/serial: Add RISC-V SBI debug console based earlycon

2023-11-23 Thread Anup Patel
On Wed, Nov 22, 2023 at 4:11 AM Samuel Holland wrote: > > Hi Anup, > > On 2023-11-17 9:38 PM, Anup Patel wrote: > > We extend the existing RISC-V SBI earlycon support to use the new > > RISC-V SBI debug console extension. > > > > Signed-off-by: Anup Patel > > Reviewed-by: Andrew Jones > > --- >

Re: [PATCH v4 5/5] RISC-V: Enable SBI based earlycon support

2023-11-23 Thread Anup Patel
On Wed, Nov 22, 2023 at 4:18 AM Samuel Holland wrote: > > Hi Anup, > > On 2023-11-17 9:38 PM, Anup Patel wrote: > > Let us enable SBI based earlycon support in defconfigs for both RV32 > > and RV64 so that "earlycon=sbi" can be used again. > > > > Signed-off-by: Anup Patel > > Reviewed-by:

Re: [PATCH v4 1/5] RISC-V: Add stubs for sbi_console_putchar/getchar()

2023-11-23 Thread Anup Patel
On Wed, Nov 22, 2023 at 4:06 AM Samuel Holland wrote: > > Hi Anup, > > On 2023-11-17 9:38 PM, Anup Patel wrote: > > The functions sbi_console_putchar() and sbi_console_getchar() are > > not defined when CONFIG_RISCV_SBI_V01 is disabled so let us add > > stub of these functions to avoid "#ifdef"

Re: (subset) [PATCH 1/2] ASoC: fsl: mpc8610_hpcd: Remove unused driver

2023-11-23 Thread Mark Brown
On Wed, 22 Nov 2023 17:27:11 +1100, Michael Ellerman wrote: > The mpc8610_hpcd.c driver depends on CONFIG_MPC8610_HPCD which was > removed in commit 248667f8bbde ("powerpc: drop HPCD/MPC8610 evaluation > platform support"). That makes the driver unbuildable and unusable, so > remove it. > >

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

2023-11-23 Thread Herve Codina
Hi Li, Qiang, This series is waiting for some feedback from your side in order to be merged. This block the entire series. The patches related to the PowerPC QUICC ENGINE QMC and TSA are: - patches 1 to 6 - patches 9 to 19 The patch 7 is a HDLC driver that uses the QMC and the patch 20 improves

[PATCH v1] powerpc: Add PVN support for HeXin C2000 processor

2023-11-23 Thread Zhao Ke
HeXin Tech Co. has applied for a new PVN from the OpenPower Community for its new processor C2000. The OpenPower has assigned a new PVN and this newly assigned PVN is 0x0066, add pvr register related support for this PVN. Signed-off-by: Zhao Ke Link:

Re: [PATCH v1] powerpc: Add PVN support for HeXin C2000 processor

2023-11-23 Thread Greg KH
On Thu, Nov 23, 2023 at 05:36:11PM +0800, Zhao Ke wrote: > HeXin Tech Co. has applied for a new PVN from the OpenPower Community > for its new processor C2000. The OpenPower has assigned a new PVN > and this newly assigned PVN is 0x0066, add pvr register related > support for this PVN. > >

Re: [PATCH] ASoC: fsl_xcvr: refine the requested phy clock frequency

2023-11-23 Thread Iuliana Prodan
On 11/23/2023 3:14 AM, Shengjiu Wang wrote: As the input phy clock frequency will divided by 2 by default on i.MX8MP with the implementation of clk-imx8mp-audiomix driver, So the requested frequency need to be updated. The relation of phy clock is: sai_pll_ref_sel sai_pll

Re: [PATCH v2 0/5] MODVERSIONS + RUST Redux

2023-11-23 Thread Greg KH
On Wed, Nov 22, 2023 at 01:04:09PM -0800, Matthew Maurer wrote: > > So, even if you enable CONFIG_MODVERSIONS, > > nothing is checked for Rust. > > Genksyms computes a CRC from "int foo", and > > the module subsystem confirms it is a "int" > > variable. > > > > We know this check always succeeds.