Re: [PATCH 3/6] RISC-V: KVM: Forward SBI DBCN extension to user-space

2023-10-11 Thread Greg Kroah-Hartman
On Wed, Oct 11, 2023 at 12:02:30PM +0530, Anup Patel wrote: > On Tue, Oct 10, 2023 at 10:45 PM Greg Kroah-Hartman > wrote: > > > > On Tue, Oct 10, 2023 at 10:35:00PM +0530, Anup Patel wrote: > > > The SBI DBCN extension needs to be emulated in user-space > > > > Why? > > The SBI debug console is

Re: [PATCH 2/6] RISC-V: KVM: Change the SBI specification version to v2.0

2023-10-11 Thread Greg Kroah-Hartman
On Wed, Oct 11, 2023 at 11:49:14AM +0530, Anup Patel wrote: > On Tue, Oct 10, 2023 at 10:43 PM Greg Kroah-Hartman > wrote: > > > > On Tue, Oct 10, 2023 at 10:34:59PM +0530, Anup Patel wrote: > > > We will be implementing SBI DBCN extension for KVM RISC-V so let > > > us change the KVM RISC-V SBI s

Re: [PATCH v3 0/7] sysctl: Remove sentinel elements from arch

2023-10-11 Thread Joel Granados
On Tue, Oct 10, 2023 at 03:22:34PM -0700, Luis Chamberlain wrote: > On Mon, Oct 02, 2023 at 01:30:35PM +0200, Joel Granados via B4 Relay wrote: > > V3: > > * Removed the ia64 patch to avoid conflicts with the ia64 removal > > * Rebased onto v6.6-rc4 > > * Kept/added the trailing comma for the ctl_t

Re: [PATCH] powerpc/paravirt: Improve vcpu_is_preempted

2023-10-11 Thread Shrikanth Hegde
On 10/9/23 10:47 AM, Srikar Dronamraju wrote: Hi Srikar. This is an interesting patch. > PowerVM Hypervisor dispatches on a whole core basis. In a shared LPAR, a s/whole/big Can we mention that a big core consist of two small cores. and w.r.t linux a core is at small core. Hence there is mi

Re: [PATCHv8 1/5] powerpc/setup : Enable boot_cpu_hwid for PPC32

2023-10-11 Thread Sourabh Jain
Hello Pingfan, With this patch series applied, the kdump kernel fails to boot on powerpc with nr_cpus=1. Console logs: --- [root]# echo c > /proc/sysrq-trigger [   74.783235] sysrq: Trigger a crash [   74.783244] Kernel panic - not syncing: sysrq triggered crash [   74.783252] CP

[powerpc:next-test] BUILD SUCCESS c7e0d9bb9154c6e6b2ac8746faba27b53393f25e

2023-10-11 Thread kernel test robot
allnoconfig gcc arc allyesconfig gcc arc defconfig gcc arc randconfig-001-20231010 gcc arc randconfig-001-20231011 gcc arm

[powerpc:fixes] BUILD SUCCESS 5ea0bbaa32e8f54e9a57cfee4a3b8769b80be0d2

2023-10-11 Thread kernel test robot
arc allnoconfig gcc arc allyesconfig gcc arc defconfig gcc arc randconfig-001-20231010 gcc arc randconfig-001-20231011 gcc arm

Re: [PATCH 3/6] RISC-V: KVM: Forward SBI DBCN extension to user-space

2023-10-11 Thread Anup Patel
On Wed, Oct 11, 2023 at 12:56 PM Greg Kroah-Hartman wrote: > > On Wed, Oct 11, 2023 at 12:02:30PM +0530, Anup Patel wrote: > > On Tue, Oct 10, 2023 at 10:45 PM Greg Kroah-Hartman > > wrote: > > > > > > On Tue, Oct 10, 2023 at 10:35:00PM +0530, Anup Patel wrote: > > > > The SBI DBCN extension need

Re: [PATCH 2/6] RISC-V: KVM: Change the SBI specification version to v2.0

2023-10-11 Thread Anup Patel
On Wed, Oct 11, 2023 at 12:57 PM Greg Kroah-Hartman wrote: > > On Wed, Oct 11, 2023 at 11:49:14AM +0530, Anup Patel wrote: > > On Tue, Oct 10, 2023 at 10:43 PM Greg Kroah-Hartman > > wrote: > > > > > > On Tue, Oct 10, 2023 at 10:34:59PM +0530, Anup Patel wrote: > > > > We will be implementing SBI

[powerpc:fixes-test] BUILD SUCCESS 8e8a12ecbc86700b5e1a3596ce2b3c43dafad336

2023-10-11 Thread kernel test robot
allnoconfig gcc arc allyesconfig gcc arc defconfig gcc arc randconfig-001-20231010 gcc arc randconfig-001-20231011 gcc arm

[powerpc:next] BUILD SUCCESS 0ebc7feae79ac07772a20382eebd8c3503313714

2023-10-11 Thread kernel test robot
allnoconfig gcc arc allyesconfig gcc arc defconfig gcc arc randconfig-001-20231010 gcc arc randconfig-001-20231011 gcc arm allmodconfig gcc arm

[PATCH v3 1/2] ASoC: dt-bindings: sound-card-common: List DAPM endpoints ignoring system suspend

2023-10-11 Thread Chancel Liu
Add a property to list DAPM endpoints which mark paths between these endpoints should not be disabled when system enters in suspend state. LPA means low power audio case. For example on asymmetric multiprocessor, there are Cortex-A core and Cortex-M core, Linux is running on Cortex-A core, RTOS or

[PATCH v3 2/2] ASoC: imx-rpmsg: Force codec power on in low power audio mode

2023-10-11 Thread Chancel Liu
Low power audio mode requires binding codec still power on while Acore enters into suspend so Mcore can continue playback music. ASoC machine driver acquires DAPM endpoints through reading "lpa-widgets" property from DT and then forces the path between these endpoints ignoring suspend. If the rpm

Re: [PATCH] powerpc/paravirt: Improve vcpu_is_preempted

2023-10-11 Thread Srikar Dronamraju
* Shrikanth Hegde [2023-10-11 14:33:34]: > On 10/9/23 10:47 AM, Srikar Dronamraju wrote: > > Hi Srikar. This is an interesting patch. > > > PowerVM Hypervisor dispatches on a whole core basis. In a shared LPAR, a > s/whole/big > > Can we mention that a big core consist of two small cores. and

Re: [PATCH] powerpc/mm: Allow ARCH_FORCE_MAX_ORDER up to 12

2023-10-11 Thread Christophe Leroy
Le 24/08/2023 à 14:28, Michael Ellerman a écrit : > Christophe reported that the change to ARCH_FORCE_MAX_ORDER to limit the > range to 10 had broken his ability to configure hugepages: > ># echo 1 > /sys/kernel/mm/hugepages/hugepages-8192kB/nr_hugepages >sh: write error: Invalid argumen

Re: [PATCH 2/6] RISC-V: KVM: Change the SBI specification version to v2.0

2023-10-11 Thread Greg Kroah-Hartman
On Wed, Oct 11, 2023 at 04:32:22PM +0530, Anup Patel wrote: > On Wed, Oct 11, 2023 at 12:57 PM Greg Kroah-Hartman > wrote: > > > > On Wed, Oct 11, 2023 at 11:49:14AM +0530, Anup Patel wrote: > > > On Tue, Oct 10, 2023 at 10:43 PM Greg Kroah-Hartman > > > wrote: > > > > > > > > On Tue, Oct 10, 202

Re: [PATCH 2/6] RISC-V: KVM: Change the SBI specification version to v2.0

2023-10-11 Thread Anup Patel
On Wed, Oct 11, 2023 at 8:56 PM Greg Kroah-Hartman wrote: > > On Wed, Oct 11, 2023 at 04:32:22PM +0530, Anup Patel wrote: > > On Wed, Oct 11, 2023 at 12:57 PM Greg Kroah-Hartman > > wrote: > > > > > > On Wed, Oct 11, 2023 at 11:49:14AM +0530, Anup Patel wrote: > > > > On Tue, Oct 10, 2023 at 10:4

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

2023-10-11 Thread Nathan Lynch
Haren Myneni writes: >> 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

Re: [PATCH v3 1/2] ASoC: dt-bindings: sound-card-common: List DAPM endpoints ignoring system suspend

2023-10-11 Thread Mark Brown
On Wed, Oct 11, 2023 at 07:47:58PM +0800, Chancel Liu wrote: > + lpa-widgets: > +$ref: /schemas/types.yaml#/definitions/non-unique-string-array > +description: | > + A list of DAPM endpoints which mark paths between these endpoints > should > + not be disabled when system enter

Re: [Bisected] PowerMac G5 fails booting kernel 6.6-rc3 (BUG: Unable to handle kernel data access at 0xfeffbb62ffec65fe)

2023-10-11 Thread Michael Ellerman
Erhard Furtner writes: > Greetings! > > Kernel 6.5.5 boots fine on my PowerMac G5 11,2 but kernel 6.6-rc3 > fails to boot with following dmesg shown on the OpenFirmware console > (transcribed screenshot): Thanks for transcribing all that :) I don't see this crash on my quad G5. I notice that yo

Re: [net-next v3 1/5] netdev: replace simple napi_schedule_prep/__napi_schedule to napi_schedule

2023-10-11 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net-next.git (main) by Jakub Kicinski : On Mon, 9 Oct 2023 15:37:50 +0200 you wrote: > Replace drivers that still use napi_schedule_prep/__napi_schedule > with napi_schedule helper as it does the same exact check and call. > > Signed-off-by: Christian Ma

Re: [RFC v3 0/2] CPU-Idle latency selftest framework

2023-10-11 Thread Aboorva Devarajan
On Mon, 2023-09-25 at 10:36 +0530, Aboorva Devarajan wrote: Gentle ping to check if there are any feedback or comments on this patch-set. Thanks Aboorva > On Mon, 2023-09-11 at 11:06 +0530, Aboorva Devarajan wrote: > > CC'ing CPUidle lists and maintainers, > > Patch Summary: > > The patchset

[PATCH v2 0/8] RISC-V SBI debug console extension support

2023-10-11 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 adds

[PATCH v2 1/8] RISC-V: Add defines for SBI debug console extension

2023-10-11 Thread Anup Patel
We add SBI debug console extension related defines/enum to the asm/sbi.h header. Signed-off-by: Anup Patel --- arch/riscv/include/asm/sbi.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/riscv/include/asm/sbi.h b/arch/riscv/include/asm/sbi.h index 5b4a1bf5f439..12dfda6bb924 1006

[PATCH v2 2/8] RISC-V: KVM: Change the SBI specification version to v2.0

2023-10-11 Thread Anup Patel
We will be implementing SBI DBCN extension for KVM RISC-V so let us change the KVM RISC-V SBI specification version to v2.0. Signed-off-by: Anup Patel --- arch/riscv/include/asm/kvm_vcpu_sbi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/include/asm/kvm_vcpu_sbi

[PATCH v2 3/8] RISC-V: KVM: Allow some SBI extensions to be disabled by default

2023-10-11 Thread Anup Patel
Currently, all SBI extensions are enabled by default which is problematic for SBI extensions (such as DBCN) which are forwarded to the KVM user-space because we might have an older KVM user-space which is not aware/ready to handle newer SBI extensions. Ideally, the SBI extensions forwarded to the K

[PATCH v2 4/8] RISC-V: KVM: Forward SBI DBCN extension to user-space

2023-10-11 Thread Anup Patel
The frozen SBI v2.0 specification defines the SBI debug console (DBCN) extension which replaces the legacy SBI v0.1 console functions namely sbi_console_getchar() and sbi_console_putchar(). The SBI DBCN extension needs to be emulated in the KVM user-space (i.e. QEMU-KVM or KVMTOOL) so we forward S

[PATCH v2 5/8] RISC-V: Add inline version of sbi_console_putchar/getchar() functions

2023-10-11 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 inline version of these functions to avoid "#ifdef" on user side. Signed-off-by: Anup Patel --- arch/riscv/include/asm/sbi.h | 5 + 1 file changed, 5 insertions(+

[PATCH v2 6/8] tty/serial: Add RISC-V SBI debug console based earlycon

2023-10-11 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 --- drivers/tty/serial/Kconfig | 2 +- drivers/tty/serial/earlycon-riscv-sbi.c | 32 + 2 files changed, 29 insertions(+), 5 deleti

[PATCH v2 7/8] tty: Add SBI debug console support to HVC SBI driver

2023-10-11 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 | 76 +

[PATCH v2 8/8] RISC-V: Enable SBI based earlycon support

2023-10-11 Thread Anup Patel
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 --- arch/riscv/configs/defconfig | 1 + arch/riscv/configs/rv32_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/riscv/config

Re: [PATCHv8 3/5] powerpc/setup: Handle the case when boot_cpuid greater than nr_cpus

2023-10-11 Thread Hari Bathini
On 11/10/23 8:35 am, Pingfan Liu wrote: On Tue, Oct 10, 2023 at 01:56:13PM +0530, Hari Bathini wrote: On 09/10/23 5:00 pm, Pingfan Liu wrote: If the boot_cpuid is smaller than nr_cpus, it requires extra effort to ensure the boot_cpu is in cpu_present_mask. This can be achieved by reserving