Re: [PATCH v1 26/55] KVM: PPC: Book3S HV: Change dec_expires to be relative to guest timebase

2021-08-07 Thread Michael Ellerman
Nicholas Piggin writes: > Change dec_expires to be relative to the guest timebase, and allow > it to be moved into low level P9 guest entry functions, to improve > SPR access scheduling. > > Signed-off-by: Nicholas Piggin > --- > arch/powerpc/include/asm/kvm_book3s.h | 6 +++ >

Re: Debian SID kernel doesn't boot on PowerBook 3400c

2021-08-07 Thread Stan Johnson
On 8/7/21 8:35 AM, Christophe Leroy wrote: > > > Le 07/08/2021 à 15:09, Stan Johnson a écrit : >> On 8/6/21 10:08 PM, Finn Thain wrote: >>> >>> On Fri, 6 Aug 2021, Stan Johnson wrote: >>> $ egrep '(CONFIG_PPC_KUAP|CONFIG_VMAP_STACK)' .config CONFIG_PPC_KUAP=y

Re: Debian SID kernel doesn't boot on PowerBook 3400c

2021-08-07 Thread Stan Johnson
On 8/6/21 10:08 PM, Finn Thain wrote: > > On Fri, 6 Aug 2021, Stan Johnson wrote: > >> $ egrep '(CONFIG_PPC_KUAP|CONFIG_VMAP_STACK)' .config >> CONFIG_PPC_KUAP=y >> CONFIG_PPC_KUAP_DEBUG=y >> CONFIG_VMAP_STACK=y >> $ strings vmlinux | fgrep "Linux version" >> Linux version

Re: Debian SID kernel doesn't boot on PowerBook 3400c

2021-08-07 Thread Christophe Leroy
Le 07/08/2021 à 18:26, Stan Johnson a écrit : On 8/7/21 8:35 AM, Christophe Leroy wrote: Le 07/08/2021 à 15:09, Stan Johnson a écrit : On 8/6/21 10:08 PM, Finn Thain wrote: On Fri, 6 Aug 2021, Stan Johnson wrote: $ egrep '(CONFIG_PPC_KUAP|CONFIG_VMAP_STACK)' .config CONFIG_PPC_KUAP=y

Re: [PATCH v4 1/2] tty: hvc: pass DMA capable memory to put_chars()

2021-08-07 Thread Xianting Tian
在 2021/8/6 下午10:51, Arnd Bergmann 写道: On Fri, Aug 6, 2021 at 5:01 AM Xianting Tian wrote: @@ -163,6 +155,13 @@ static void hvc_console_print(struct console *co, const char *b, if (vtermnos[index] == -1) return; + list_for_each_entry(hp, _structs, next) +

Re: Debian SID kernel doesn't boot on PowerBook 3400c

2021-08-07 Thread Christophe Leroy
Le 07/08/2021 à 15:09, Stan Johnson a écrit : On 8/6/21 10:08 PM, Finn Thain wrote: On Fri, 6 Aug 2021, Stan Johnson wrote: $ egrep '(CONFIG_PPC_KUAP|CONFIG_VMAP_STACK)' .config CONFIG_PPC_KUAP=y CONFIG_PPC_KUAP_DEBUG=y CONFIG_VMAP_STACK=y $ strings vmlinux | fgrep "Linux version" Linux

Re: [PATCH v2 0/6] PCI: Drop duplicated tracking of a pci_dev's bound driver

2021-08-07 Thread Uwe Kleine-König
On Fri, Aug 06, 2021 at 04:24:52PM -0500, Bjorn Helgaas wrote: > On Fri, Aug 06, 2021 at 08:46:23AM +0200, Uwe Kleine-König wrote: > > On Thu, Aug 05, 2021 at 06:42:34PM -0500, Bjorn Helgaas wrote: > > > > I looked at all the bus_type.probe() methods, it looks like pci_dev is > > > not the only

[PATCH] powerpc: use strscpy to replace strlcpy

2021-08-07 Thread Jason Wang
The strlcpy should not be used because it doesn't limit the source length. As linus says, it's a completely useless function if you can't implicitly trust the source string - but that is almost always why people think they should use it! All in all the BSD function will lead some potential bugs.

[PATCH v2] powerpc/xive: Do not skip CPU-less nodes when creating the IPIs

2021-08-07 Thread Cédric Le Goater
On PowerVM, CPU-less nodes can be populated with hot-plugged CPUs at runtime. Today, the IPI is not created for such nodes, and hot-plugged CPUs use a bogus IPI, which leads to soft lockups. We can not directly allocate and request the IPI on demand because bringup_up() is called under the IRQ

Re: [PATCH v2 3/4] powerpc: Optimize register usage for dear register

2021-08-07 Thread Christophe Leroy
Le 07/08/2021 à 03:02, sxwj...@me.com a écrit : From: Xiongwei Song Create an anonymous union for dar and dear regsiters, we can reference dear to get the effective address when CONFIG_4xx=y or CONFIG_BOOKE=y. Otherwise, reference dar. This makes code more clear. Signed-off-by: Xiongwei

Re: [PATCH v2 1/4] powerpc: Optimize register usage for esr register

2021-08-07 Thread Christophe Leroy
Le 07/08/2021 à 03:02, sxwj...@me.com a écrit : From: Xiongwei Song Create an anonymous union for dsisr and esr regsiters, we can reference esr to get the exception detail when CONFIG_4xx=y or CONFIG_BOOKE=y. Otherwise, reference dsisr. This makes code more clear. Signed-off-by: Xiongwei