Re: [PATCH] powerpc: Enhance pmem DMA bypass handling

2021-10-27 Thread Brian King
On 10/26/21 12:39 AM, Alexey Kardashevskiy wrote: > > > On 10/26/21 01:40, Brian King wrote: >> On 10/23/21 7:18 AM, Alexey Kardashevskiy wrote: >>> >>> >>> On 23/10/2021 07:18, Brian King wrote: On 10/22/21 7:24 AM, Alexey Kardashevskiy wrote: > > > On 22/10/2021 04:44, Brian

Re: [PATCH 2/3] fbdev: rework backlight dependencies

2021-10-27 Thread Randy Dunlap
On 10/27/21 6:27 AM, Arnd Bergmann wrote: From: Arnd Bergmann Rather than having CONFIG_FB_BACKLIGHT select CONFIG_BACKLIGHT_CLASS_DEVICE, make any driver that needs it have a dependency on the class device being available, to prevent circular dependencies. This is the same way that the

[PATCH v2 12/45] csky: Use do_kernel_power_off()

2021-10-27 Thread Dmitry Osipenko
Kernel now supports chained power-off handlers. Use do_kernel_power_off() that invokes chained power-off handlers. It also invokes legacy pm_power_off() for now, which will be removed once all drivers will be converted to the new power-off API. Signed-off-by: Dmitry Osipenko ---

[PATCH v2 10/45] ARM: Use do_kernel_power_off()

2021-10-27 Thread Dmitry Osipenko
Kernel now supports chained power-off handlers. Use do_kernel_power_off() that invokes chained power-off handlers. It also invokes legacy pm_power_off() for now, which will be removed once all drivers will be converted to the new power-off API. Signed-off-by: Dmitry Osipenko ---

[PATCH v2 11/45] arm64: Use do_kernel_power_off()

2021-10-27 Thread Dmitry Osipenko
Kernel now supports chained power-off handlers. Use do_kernel_power_off() that invokes chained power-off handlers. It also invokes legacy pm_power_off() for now, which will be removed once all drivers will be converted to the new power-off API. Signed-off-by: Dmitry Osipenko ---

[PATCH v2 16/45] parisc: Use do_kernel_power_off()

2021-10-27 Thread Dmitry Osipenko
Kernel now supports chained power-off handlers. Use do_kernel_power_off() that invokes chained power-off handlers. It also invokes legacy pm_power_off() for now, which will be removed once all drivers will be converted to the new power-off API. Signed-off-by: Dmitry Osipenko ---

[PATCH v2 15/45] nds32: Use do_kernel_power_off()

2021-10-27 Thread Dmitry Osipenko
Kernel now supports chained power-off handlers. Use do_kernel_power_off() that invokes chained power-off handlers. It also invokes legacy pm_power_off() for now, which will be removed once all drivers will be converted to the new power-off API. Signed-off-by: Dmitry Osipenko ---

[PATCH v2 32/45] mfd: retu: Use devm_register_simple_power_off_handler()

2021-10-27 Thread Dmitry Osipenko
Use devm_register_simple_power_off_handler() that replaces global pm_power_off variable and allows to register multiple power-off handlers. Signed-off-by: Dmitry Osipenko --- drivers/mfd/retu-mfd.c | 31 --- 1 file changed, 16 insertions(+), 15 deletions(-) diff

[PATCH v2 33/45] mfd: rk808: Use devm_register_simple_power_off_handler()

2021-10-27 Thread Dmitry Osipenko
Use devm_register_simple_power_off_handler() that replaces global pm_power_off variable and allows to register multiple power-off handlers. Signed-off-by: Dmitry Osipenko --- drivers/mfd/rk808.c | 23 +++ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git

[PATCH v2 35/45] mfd: max8907: Use devm_register_simple_power_off_handler()

2021-10-27 Thread Dmitry Osipenko
Use devm_register_simple_power_off_handler() that replaces global pm_power_off variable and allows to register multiple power-off handlers. Signed-off-by: Dmitry Osipenko --- drivers/mfd/max8907.c | 22 +++--- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git

[PATCH v2 34/45] mfd: palmas: Use devm_register_simple_power_off_handler()

2021-10-27 Thread Dmitry Osipenko
Use devm_register_simple_power_off_handler() that replaces global pm_power_off variable and allows to register multiple power-off handlers. Signed-off-by: Dmitry Osipenko --- drivers/mfd/palmas.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git

Re: [PATCH] mm/migrate.c: Remove MIGRATE_PFN_LOCKED

2021-10-27 Thread Alistair Popple
On Tuesday, 26 October 2021 11:57:06 AM AEDT Ralph Campbell wrote: > > On 10/24/21 21:16, Alistair Popple wrote: > > MIGRATE_PFN_LOCKED is used to indicate to migrate_vma_prepare() that a > > source page was already locked during migrate_vma_collect(). If it > > wasn't then the a second attempt

Re: instruction storage exception handling

2021-10-27 Thread Nicholas Piggin
Excerpts from Jacques de Laval's message of October 27, 2021 10:03 pm: > On Wednesday, October 27th, 2021 at 9:52 AM, Christophe Leroy > wrote: > >> Le 27/10/2021 à 09:47, Nicholas Piggin a écrit : >> >> > You're right. In that case it shouldn't change anything unless there >> > >> > was a BO

[PATCH v2 1/5] rtc: gamecube: Add a RTC driver for the GameCube, Wii and Wii U

2021-10-27 Thread Emmanuel Gil Peyrot
These three consoles share a device, the MX23L4005, which contains a clock and 64 bytes of SRAM storage, and is exposed on the EXI bus (similar to SPI) on channel 0, device 1. This driver allows it to be used as a Linux RTC device, where time can be read and set. The hardware also exposes two

[PATCH v2 2/5] rtc: gamecube: Report low battery as invalid data

2021-10-27 Thread Emmanuel Gil Peyrot
I haven’t been able to test this patch as all of my consoles have a working RTC battery, but according to the documentation it should work like that. Signed-off-by: Emmanuel Gil Peyrot --- drivers/rtc/rtc-gamecube.c | 30 ++ 1 file changed, 30 insertions(+) diff

[PATCH v2 3/5] powerpc: wii.dts: Expose HW_SRNPROT on this platform

2021-10-27 Thread Emmanuel Gil Peyrot
This Hollywood register isn’t properly understood, but can allow or reject access to the SRAM, which we need to set for RTC usage if it isn’t previously set correctly beforehand. See https://wiibrew.org/wiki/Hardware/Hollywood_Registers#HW_SRNPROT Signed-off-by: Emmanuel Gil Peyrot ---

[PATCH v2 14/45] mips: Use do_kernel_power_off()

2021-10-27 Thread Dmitry Osipenko
Kernel now supports chained power-off handlers. Use do_kernel_power_off() that invokes chained power-off handlers. It also invokes legacy pm_power_off() for now, which will be removed once all drivers will be converted to the new power-off API. Signed-off-by: Dmitry Osipenko ---

[PATCH v2 13/45] ia64: Use do_kernel_power_off()

2021-10-27 Thread Dmitry Osipenko
Kernel now supports chained power-off handlers. Use do_kernel_power_off() that invokes chained power-off handlers. It also invokes legacy pm_power_off() for now, which will be removed once all drivers will be converted to the new power-off API. Signed-off-by: Dmitry Osipenko ---

[PATCH v2 24/45] regulator: pfuze100: Use devm_register_power_handler()

2021-10-27 Thread Dmitry Osipenko
Use devm_register_power_handler() that replaces global pm_power_off_prepare variable and allows to register multiple power-off handlers. Signed-off-by: Dmitry Osipenko --- drivers/regulator/pfuze100-regulator.c | 39 ++ 1 file changed, 15 insertions(+), 24 deletions(-)

[PATCH v2 26/45] soc/tegra: pmc: Utilize power-handler API to power off Nexus 7 properly

2021-10-27 Thread Dmitry Osipenko
Nexus 7 Android tablet can be turned off using a special bootloader command which is conveyed to bootloader by putting magic value into specific scratch register and then rebooting normally. This power-off method should be invoked if USB cable is connected. Bootloader then will display battery

[PATCH v2 25/45] reboot: Remove pm_power_off_prepare()

2021-10-27 Thread Dmitry Osipenko
All pm_power_off_prepare() users were converted to power-handler API. Remove the obsolete callback. Signed-off-by: Dmitry Osipenko --- include/linux/pm.h | 1 - kernel/reboot.c| 11 --- 2 files changed, 12 deletions(-) diff --git a/include/linux/pm.h b/include/linux/pm.h index

Re: [PATCH] mm/migrate.c: Remove MIGRATE_PFN_LOCKED

2021-10-27 Thread Alistair Popple
On Wednesday, 27 October 2021 3:09:57 AM AEDT Felix Kuehling wrote: > Am 2021-10-25 um 12:16 a.m. schrieb Alistair Popple: > > MIGRATE_PFN_LOCKED is used to indicate to migrate_vma_prepare() that a > > source page was already locked during migrate_vma_collect(). If it > > wasn't then the a second

[PATCH v2 08/45] kernel: Add combined power-off+restart handler call chain API

2021-10-27 Thread Dmitry Osipenko
SoC platforms often have multiple options of how to perform system's power-off and restart operations. Meanwhile today's kernel is limited to a single option. Add combined power-off+restart handler call chain API, which is inspired by the restart API. The new API provides both power-off and

[PATCH v2 07/45] reboot: Remove extern annotation from function prototypes

2021-10-27 Thread Dmitry Osipenko
There is no need to annotate function prototypes with 'extern', it makes code less readable. Remove unnecessary annotations from . Signed-off-by: Dmitry Osipenko --- include/linux/reboot.h | 38 +++--- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git

[PATCH v2 09/45] xen/x86: Use do_kernel_power_off()

2021-10-27 Thread Dmitry Osipenko
Kernel now supports chained power-off handlers. Use do_kernel_power_off() that invokes chained power-off handlers. It also invokes legacy pm_power_off() for now, which will be removed once all drivers will be converted to the new power-off API. Signed-off-by: Dmitry Osipenko ---

[PATCH v2 39/45] mfd: dm355evm_msp: Use devm_register_trivial_power_off_handler()

2021-10-27 Thread Dmitry Osipenko
Use devm_register_trivial_power_off_handler() that replaces global pm_power_off variable and allows to register multiple power-off handlers. Signed-off-by: Dmitry Osipenko --- drivers/mfd/dm355evm_msp.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git

[PATCH v2 03/45] notifier: Add atomic/blocking_notifier_has_unique_priority()

2021-10-27 Thread Dmitry Osipenko
Add atomic/blocking_notifier_has_unique_priority() helpers which return true if given handler has unique priority. Signed-off-by: Dmitry Osipenko --- include/linux/notifier.h | 5 +++ kernel/notifier.c| 74 2 files changed, 79 insertions(+)

[PATCH v2 04/45] reboot: Correct typo in a comment

2021-10-27 Thread Dmitry Osipenko
Correct s/implemenations/implementations/ in . Signed-off-by: Dmitry Osipenko --- include/linux/reboot.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/reboot.h b/include/linux/reboot.h index af907a3d68d1..7c288013a3ca 100644 --- a/include/linux/reboot.h +++

[PATCH v2 02/45] notifier: Add blocking_notifier_call_chain_empty()

2021-10-27 Thread Dmitry Osipenko
Add blocking_notifier_call_chain_empty() that returns true if call chain is empty. Signed-off-by: Dmitry Osipenko --- include/linux/notifier.h | 2 ++ kernel/notifier.c| 14 ++ 2 files changed, 16 insertions(+) diff --git a/include/linux/notifier.h

[PATCH v2 21/45] m68k: Switch to new power-handler API

2021-10-27 Thread Dmitry Osipenko
Kernel now supports chained power-off handlers. Use register_power_off_handler() that registers power-off handlers and do_kernel_power_off() that invokes chained power-off handlers. Legacy pm_power_off() will be removed once all drivers will be converted to the new power-off API. Normally arch

[PATCH v2 20/45] x86: Use do_kernel_power_off()

2021-10-27 Thread Dmitry Osipenko
Kernel now supports chained power-off handlers. Use do_kernel_power_off() that invokes chained power-off handlers. It also invokes legacy pm_power_off() for now, which will be removed once all drivers will be converted to the new power-off API. Signed-off-by: Dmitry Osipenko ---

[PATCH v2 29/45] mfd: acer-a500: Use devm_register_power_handler()

2021-10-27 Thread Dmitry Osipenko
Use devm_register_power_handler() that replaces global pm_power_off variable and allows to register multiple power-off handlers. It also provides restart-handler support, i.e. all in one API. Signed-off-by: Dmitry Osipenko --- drivers/mfd/acer-ec-a500.c | 52

[PATCH v2 30/45] mfd: ene-kb3930: Use devm_register_power_handler()

2021-10-27 Thread Dmitry Osipenko
Use devm_register_power_handler() that replaces global pm_power_off variable and allows to register multiple power-off handlers. It also provides restart-handler support, i.e. all in one API. Signed-off-by: Dmitry Osipenko --- drivers/mfd/ene-kb3930.c | 45

[PATCH v2 31/45] mfd: axp20x: Use register_simple_power_off_handler()

2021-10-27 Thread Dmitry Osipenko
Use register_simple_power_off_handler() that replaces global pm_power_off variable and allows to register multiple power-off handlers. Signed-off-by: Dmitry Osipenko --- drivers/mfd/axp20x.c | 22 +++--- include/linux/mfd/axp20x.h | 1 + 2 files changed, 12 insertions(+),

[PATCH v2 4/5] powerpc: gamecube_defconfig: Enable the RTC driver

2021-10-27 Thread Emmanuel Gil Peyrot
This selects the rtc-gamecube driver, which provides a real-time clock on this platform. Signed-off-by: Emmanuel Gil Peyrot --- arch/powerpc/configs/gamecube_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/configs/gamecube_defconfig

[PATCH] scsi: ibmvfc: replace scnprintf in show functions with sysfs_emit

2021-10-27 Thread cgel . zte
From: Changcheng Deng Fix the coccicheck warning: WARNING: use scnprintf or sprintf Use sysfs_emit instead of scnprintf or sprintf makes more sense. Reported-by: Zeal Robot Signed-off-by: Changcheng Deng --- drivers/scsi/ibmvscsi/ibmvfc.c | 16 ++-- 1 file changed, 6

[PATCH v2 18/45] riscv: Use do_kernel_power_off()

2021-10-27 Thread Dmitry Osipenko
Kernel now supports chained power-off handlers. Use do_kernel_power_off() that invokes chained power-off handlers. It also invokes legacy pm_power_off() for now, which will be removed once all drivers will be converted to the new power-off API. Signed-off-by: Dmitry Osipenko ---

[PATCH v2 19/45] sh: Use do_kernel_power_off()

2021-10-27 Thread Dmitry Osipenko
Kernel now supports chained power-off handlers. Use do_kernel_power_off() that invokes chained power-off handlers. It also invokes legacy pm_power_off() for now, which will be removed once all drivers will be converted to the new power-off API. Signed-off-by: Dmitry Osipenko ---

[PATCH v2 17/45] powerpc: Use do_kernel_power_off()

2021-10-27 Thread Dmitry Osipenko
Kernel now supports chained power-off handlers. Use do_kernel_power_off() that invokes chained power-off handlers. It also invokes legacy pm_power_off() for now, which will be removed once all drivers will be converted to the new power-off API. Signed-off-by: Dmitry Osipenko ---

[PATCH v2 40/45] mfd: twl4030: Use devm_register_trivial_power_off_handler()

2021-10-27 Thread Dmitry Osipenko
Use devm_register_trivial_power_off_handler() that replaces global pm_power_off variable and allows to register multiple power-off handlers. Signed-off-by: Dmitry Osipenko --- drivers/mfd/twl4030-power.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git

Re: [oss-security] Linux kernel: powerpc: KVM guest can trigger host crash on Power8

2021-10-27 Thread Salvatore Bonaccorso
Hi, On Mon, Oct 25, 2021 at 10:18:54PM +1100, Michael Ellerman wrote: > The Linux kernel for powerpc since v5.2 has a bug which allows a > malicious KVM guest to crash the host, when the host is running on > Power8. > > Only machines using Linux as the hypervisor, aka. KVM, powernv or bare >

Re: [PATCH v2 18/45] riscv: Use do_kernel_power_off()

2021-10-27 Thread Palmer Dabbelt
On Wed, 27 Oct 2021 14:16:48 PDT (-0700), dig...@gmail.com wrote: Kernel now supports chained power-off handlers. Use do_kernel_power_off() that invokes chained power-off handlers. It also invokes legacy pm_power_off() for now, which will be removed once all drivers will be converted to the new

[PATCH v2 0/5] rtc: nintendo: Add a RTC driver for the GameCube, Wii and Wii U

2021-10-27 Thread Emmanuel Gil Peyrot
These three consoles share a device, the MX23L4005, which contains a clock and 64 bytes of SRAM storage, and is exposed on the EXI bus (similar to SPI) on channel 0, device 1. This driver allows it to be used as a Linux RTC device, where time can be read and set. The hardware also exposes two

[PATCH v2 5/5] powerpc: wii_defconfig: Enable the RTC driver

2021-10-27 Thread Emmanuel Gil Peyrot
This selects the rtc-gamecube driver, which provides a real-time clock on this platform. Signed-off-by: Emmanuel Gil Peyrot --- arch/powerpc/configs/wii_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/configs/wii_defconfig

[PATCH v2 00/45] Introduce power-off+restart call chain API

2021-10-27 Thread Dmitry Osipenko
Problem --- SoC devices require power-off call chaining functionality from kernel. We have a widely used restart chaining provided by restart notifier API, but nothing for power-off. Solution Introduce new API that provides both restart and power-off call chains. Why combine

[PATCH v2 01/45] notifier: Remove extern annotation from function prototypes

2021-10-27 Thread Dmitry Osipenko
There is no need to annotate function prototypes with 'extern', it makes code less readable. Remove unnecessary annotations from . Signed-off-by: Dmitry Osipenko --- include/linux/notifier.h | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git

[PATCH v2 28/45] mfd: rn5t618: Use devm_register_power_handler()

2021-10-27 Thread Dmitry Osipenko
Use devm_register_power_handler() that replaces global pm_power_off variable and allows to register multiple power-off handlers. It also provides restart-handler support, i.e. all in one API. Signed-off-by: Dmitry Osipenko --- drivers/mfd/rn5t618.c | 56

[PATCH v2 27/45] mfd: ntxec: Use devm_register_power_handler()

2021-10-27 Thread Dmitry Osipenko
Use devm_register_power_handler() that replaces global pm_power_off variable and allows to register multiple power-off handlers. It also provides restart-handler support, i.e. all in one API. Signed-off-by: Dmitry Osipenko --- drivers/mfd/ntxec.c | 50

Re: [PATCH] powerpc/security: Use a mutex for interrupt exit code patching

2021-10-27 Thread Nicholas Piggin
Excerpts from Russell Currey's message of October 27, 2021 5:24 pm: > The mitigation-patching.sh script in the powerpc selftests toggles > all mitigations on and off simultaneously, revealing that rfi_flush > and stf_barrier cannot safely operate at the same time due to races > in updating the

[PATCH v2 05/45] reboot: Warn if restart handler has duplicated priority

2021-10-27 Thread Dmitry Osipenko
Add sanity check which ensures that there are no two restart handlers registered with the same priority. Normally it's a direct sign of a problem if two handlers use the same priority. Signed-off-by: Dmitry Osipenko --- kernel/reboot.c | 15 ++- 1 file changed, 14 insertions(+), 1

[PATCH v2 06/45] reboot: Warn if unregister_restart_handler() fails

2021-10-27 Thread Dmitry Osipenko
Emit warning if unregister_restart_handler() fails since it never should fail. This will ease further API development by catching mistakes early. Signed-off-by: Dmitry Osipenko --- kernel/reboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/reboot.c

[PATCH v2 22/45] memory: emif: Use kernel_can_power_off()

2021-10-27 Thread Dmitry Osipenko
Replace legacy pm_power_off with kernel_can_power_off() helper that is aware about chained power-off handlers. Signed-off-by: Dmitry Osipenko --- drivers/memory/emif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/memory/emif.c b/drivers/memory/emif.c index

[PATCH v2 23/45] ACPI: power: Switch to power-handler API

2021-10-27 Thread Dmitry Osipenko
Switch to power-handler API that replaces legacy pm_power_off callbacks. Signed-off-by: Dmitry Osipenko --- drivers/acpi/sleep.c | 25 +++-- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/drivers/acpi/sleep.c b/drivers/acpi/sleep.c index

[PATCH v2 38/45] mfd: max77620: Use devm_register_simple_power_off_handler()

2021-10-27 Thread Dmitry Osipenko
Use devm_register_simple_power_off_handler() that replaces global pm_power_off variable and allows to register multiple power-off handlers. Nexus 7 Android tablet can be powered off using MAX77663 PMIC and using a special bootloader command. At first the bootloader option should be tried, it will

[PATCH v2 37/45] mfd: tps65910: Use devm_register_simple_power_off_handler()

2021-10-27 Thread Dmitry Osipenko
Use devm_register_simple_power_off_handler() that replaces global pm_power_off variable and allows to register multiple power-off handlers. Signed-off-by: Dmitry Osipenko --- drivers/mfd/tps65910.c | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git

[PATCH v2 36/45] mfd: tps6586x: Use devm_register_simple_power_off_handler()

2021-10-27 Thread Dmitry Osipenko
Use devm_register_simple_power_off_handler() that replaces global pm_power_off variable and allows to register multiple power-off handlers. Signed-off-by: Dmitry Osipenko --- drivers/mfd/tps6586x.c | 21 ++--- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git

Re: [PATCH 2/3] powerpc/book3e: Fix set_memory_x() and set_memory_nx()

2021-10-27 Thread Nicholas Piggin
Excerpts from Christophe Leroy's message of October 27, 2021 3:50 pm: > > > Le 27/10/2021 à 07:27, Nicholas Piggin a écrit : >> Excerpts from Christophe Leroy's message of October 27, 2021 2:55 pm: >>> >>> >>> Le 27/10/2021 à 06:44, Nicholas Piggin a écrit : Excerpts from Christophe Leroy's

[PATCH] powerpc/security: Use a mutex for interrupt exit code patching

2021-10-27 Thread Russell Currey
The mitigation-patching.sh script in the powerpc selftests toggles all mitigations on and off simultaneously, revealing that rfi_flush and stf_barrier cannot safely operate at the same time due to races in updating the static key. On some systems, the static key code throws a warning and the

Re: instruction storage exception handling

2021-10-27 Thread Nicholas Piggin
Excerpts from Christophe Leroy's message of October 27, 2021 3:51 pm: > > > Le 27/10/2021 à 07:25, Nicholas Piggin a écrit : >> Excerpts from Christophe Leroy's message of October 27, 2021 3:00 pm: >>> >>> >>> Le 27/10/2021 à 06:10, Nicholas Piggin a écrit : Excerpts from Jacques de Laval's

Re: [PATCH 1/2] powerpc/watchdog: prevent printk and send IPI while holding the wd lock

2021-10-27 Thread Nicholas Piggin
Excerpts from Laurent Dufour's message of October 27, 2021 6:14 pm: > Le 27/10/2021 à 05:29, Nicholas Piggin a écrit : >> Excerpts from Laurent Dufour's message of October 27, 2021 2:27 am: >>> When handling the Watchdog interrupt, long processing should not be done >>> while holding the

Re: [PATCH 1/2] powerpc/watchdog: prevent printk and send IPI while holding the wd lock

2021-10-27 Thread Laurent Dufour
Le 27/10/2021 à 05:29, Nicholas Piggin a écrit : Excerpts from Laurent Dufour's message of October 27, 2021 2:27 am: When handling the Watchdog interrupt, long processing should not be done while holding the __wd_smp_lock. This prevents the other CPUs to grab it and to process Watchdog timer

Re: instruction storage exception handling

2021-10-27 Thread Christophe Leroy
Le 27/10/2021 à 09:47, Nicholas Piggin a écrit : Excerpts from Christophe Leroy's message of October 27, 2021 3:51 pm: Le 27/10/2021 à 07:25, Nicholas Piggin a écrit : Excerpts from Christophe Leroy's message of October 27, 2021 3:00 pm: Le 27/10/2021 à 06:10, Nicholas Piggin a écrit :

[PATCH] MAINTAINERS: Update powerpc KVM entry

2021-10-27 Thread Michael Ellerman
Paul is no longer handling patches for kvmppc. Instead we'll treat them as regular powerpc patches, taking them via the powerpc tree, using the topic/ppc-kvm branch when necessary. Also drop the web reference, it doesn't have any information specifically relevant to powerpc KVM. Signed-off-by:

Re: [PATCH][next] powerpc/vas: Fix potential NULL pointer dereference

2021-10-27 Thread Michael Ellerman
"Gustavo A. R. Silva" writes: > On Wed, Oct 27, 2021 at 09:30:53AM +1100, Michael Ellerman wrote: > [..] >> > I think I'll take this in my tree. >> >> I've already put it in powerpc/next: >> >> >>

Re: Linux kernel: powerpc: KVM guest can trigger host crash on Power8

2021-10-27 Thread John Paul Adrian Glaubitz
Hi Michael! On 10/27/21 07:30, Michael Ellerman wrote: > I did test the repro case you gave me before (in the bugzilla), which > was building glibc, that passes for me with a patched host. Did you manage to crash the unpatched host? If the unpatched host crashes for you but the patched doesn't,

[PATCH] serial: cpm_uart: Protect udbg definitions by CONFIG_SERIAL_CPM_CONSOLE

2021-10-27 Thread Geert Uytterhoeven
If CONFIG_CONSOLE_POLL=y, and CONFIG_SERIAL_CPM=m (hence CONFIG_SERIAL_CPM_CONSOLE=n): drivers/tty/serial/cpm_uart/cpm_uart_core.c:1109:12: warning: ‘udbg_cpm_getc’ defined but not used [-Wunused-function] 1109 | static int udbg_cpm_getc(void) |^

[PATCH] usb: gadget: Mark USB_FSL_QE broken on 64-bit

2021-10-27 Thread Geert Uytterhoeven
On 64-bit: drivers/usb/gadget/udc/fsl_qe_udc.c: In function ‘qe_ep0_rx’: drivers/usb/gadget/udc/fsl_qe_udc.c:842:13: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] 842 | vaddr = (u32)phys_to_virt(in_be32(>buf)); | ^

Re: [PATCH] usb: gadget: Mark USB_FSL_QE broken on 64-bit

2021-10-27 Thread Arnd Bergmann
On Wed, Oct 27, 2021 at 10:08 AM Geert Uytterhoeven wrote: > > On 64-bit: > > drivers/usb/gadget/udc/fsl_qe_udc.c: In function ‘qe_ep0_rx’: > drivers/usb/gadget/udc/fsl_qe_udc.c:842:13: error: cast from pointer to > integer of different size [-Werror=pointer-to-int-cast] > 842 |

Re: Linux kernel: powerpc: KVM guest can trigger host crash on Power8

2021-10-27 Thread Michael Ellerman
John Paul Adrian Glaubitz writes: > Hi Michael! > > On 10/27/21 07:30, Michael Ellerman wrote: >> I did test the repro case you gave me before (in the bugzilla), which >> was building glibc, that passes for me with a patched host. > > Did you manage to crash the unpatched host? Yes, the parallel

Re: linux-next: manual merge of the audit tree with the powerpc tree

2021-10-27 Thread Michael Ellerman
Paul Moore writes: > On Tue, Oct 26, 2021 at 6:55 AM Michael Ellerman wrote: >> Stephen Rothwell writes: >> > Hi all, >> > >> > Today's linux-next merge of the audit tree got conflicts in: >> > >> > arch/powerpc/kernel/audit.c >> > arch/powerpc/kernel/compat_audit.c >> > >> > between

Re: [PATCH] locking: remove spin_lock_flags() etc

2021-10-27 Thread Michael Ellerman
Peter Zijlstra writes: > On Mon, Oct 25, 2021 at 03:06:24PM +0200, Arnd Bergmann wrote: >> On Mon, Oct 25, 2021 at 11:57 AM Peter Zijlstra wrote: >> > On Sat, Oct 23, 2021 at 06:04:57PM +0200, Arnd Bergmann wrote: >> > > On Sat, Oct 23, 2021 at 3:37 AM Waiman Long wrote: >> > > >> On 10/22/21

Re: [PATCH] MAINTAINERS: Update powerpc KVM entry

2021-10-27 Thread Paolo Bonzini
On 27/10/21 08:16, Michael Ellerman wrote: Paul is no longer handling patches for kvmppc. Instead we'll treat them as regular powerpc patches, taking them via the powerpc tree, using the topic/ppc-kvm branch when necessary. Also drop the web reference, it doesn't have any information

Re: Linux kernel: powerpc: KVM guest can trigger host crash on Power8

2021-10-27 Thread John Paul Adrian Glaubitz
Hi Michael! On 10/27/21 13:06, Michael Ellerman wrote: > John Paul Adrian Glaubitz writes: >> Hi Michael! >> >> On 10/27/21 07:30, Michael Ellerman wrote: >>> I did test the repro case you gave me before (in the bugzilla), which >>> was building glibc, that passes for me with a patched host. >>

Re: [PATCH 1/2] powerpc/watchdog: prevent printk and send IPI while holding the wd lock

2021-10-27 Thread Nicholas Piggin
Excerpts from Nicholas Piggin's message of October 27, 2021 1:29 pm: > Excerpts from Laurent Dufour's message of October 27, 2021 2:27 am: >> When handling the Watchdog interrupt, long processing should not be done >> while holding the __wd_smp_lock. This prevents the other CPUs to grab it >> and

Re: linux-next: manual merge of the audit tree with the powerpc tree

2021-10-27 Thread Christophe Leroy
Le 27/10/2021 à 13:29, Michael Ellerman a écrit : Paul Moore writes: On Tue, Oct 26, 2021 at 6:55 AM Michael Ellerman wrote: Stephen Rothwell writes: Hi all, Today's linux-next merge of the audit tree got conflicts in: arch/powerpc/kernel/audit.c

Re: [PATCH 2/3] fbdev: rework backlight dependencies

2021-10-27 Thread Miguel Ojeda
On Wed, Oct 27, 2021 at 3:28 PM Arnd Bergmann wrote: > > Rather than having CONFIG_FB_BACKLIGHT select CONFIG_BACKLIGHT_CLASS_DEVICE, > make any driver that needs it have a dependency on the class device > being available, to prevent circular dependencies. Acked-by: Miguel Ojeda Cheers, Miguel

[PATCH v3] KVM: PPC: Tick accounting should defer vtime accounting 'til after IRQ handling

2021-10-27 Thread Nicholas Piggin
From: Laurent Vivier Commit 112665286d08 ("KVM: PPC: Book3S HV: Context tracking exit guest context before enabling irqs") moved guest_exit() into the interrupt protected area to avoid wrong context warning (or worse). The problem is that tick-based time accounting has not yet been updated at

[PATCH 2/3] fbdev: rework backlight dependencies

2021-10-27 Thread Arnd Bergmann
From: Arnd Bergmann Rather than having CONFIG_FB_BACKLIGHT select CONFIG_BACKLIGHT_CLASS_DEVICE, make any driver that needs it have a dependency on the class device being available, to prevent circular dependencies. This is the same way that the backlight is already treated for the DRM

Re: [PATCH] powerpc/xmon: fix task state output

2021-10-27 Thread Denis Kirjanov
On 10/27/21, Michael Ellerman wrote: > Denis Kirjanov writes: >> p_state is unsigned since the commit 2f064a59a11f >> >> The patch also uses TASK_RUNNING instead of null. >> >> Fixes: 2f064a59a11f ("sched: Change task_struct::state") >> Signed-off-by: Denis Kirjanov >> --- >>

Re: linux-next: manual merge of the audit tree with the powerpc tree

2021-10-27 Thread Paul Moore
On Wed, Oct 27, 2021 at 7:41 AM Christophe Leroy wrote: > Le 27/10/2021 à 13:29, Michael Ellerman a écrit : > > Paul Moore writes: > >> On Tue, Oct 26, 2021 at 6:55 AM Michael Ellerman > >> wrote: > >>> Stephen Rothwell writes: > Hi all, > > Today's linux-next merge of the

Re: instruction storage exception handling

2021-10-27 Thread Jacques de Laval
On Wednesday, October 27th, 2021 at 9:52 AM, Christophe Leroy wrote: > Le 27/10/2021 à 09:47, Nicholas Piggin a écrit : > > > Excerpts from Christophe Leroy's message of October 27, 2021 3:51 pm: > > > > > Le 27/10/2021 à 07:25, Nicholas Piggin a écrit : > > > > > > > Excerpts from Christophe

Re: [PATCH] usb: gadget: Mark USB_FSL_QE broken on 64-bit

2021-10-27 Thread Li Yang
On Wed, Oct 27, 2021 at 5:25 AM Geert Uytterhoeven wrote: > > On 64-bit: > > drivers/usb/gadget/udc/fsl_qe_udc.c: In function ‘qe_ep0_rx’: > drivers/usb/gadget/udc/fsl_qe_udc.c:842:13: error: cast from pointer to > integer of different size [-Werror=pointer-to-int-cast] > 842 |

Re: [PATCH 09/12] sh: Use of_get_cpu_hwid()

2021-10-27 Thread Rich Felker
On Wed, Oct 06, 2021 at 11:43:29AM -0500, Rob Herring wrote: > Replace open coded parsing of CPU nodes' 'reg' property with > of_get_cpu_hwid(). > > Cc: Yoshinori Sato > Cc: Rich Felker > Cc: linux...@vger.kernel.org > Signed-off-by: Rob Herring > --- > arch/sh/boards/of-generic.c | 5 ++--- >

[PATCH v1 1/1] soc: fsl: Replace kernel.h with the necessary inclusions

2021-10-27 Thread Andy Shevchenko
When kernel.h is used in the headers it adds a lot into dependency hell, especially when there are circular dependencies are involved. Replace kernel.h inclusion with the list of what is really being used. Signed-off-by: Andy Shevchenko --- include/soc/fsl/dpaa2-fd.h| 3 ++-