Re: Kernel 5.10-rc1 not mounting NAND flash (Bisected to d7157ff49a5b ("mtd: rawnand: Use the ECC framework user input parsing bits"))

2020-11-05 Thread Miquel Raynal
Hi Christophe, Christophe Leroy wrote on Wed, 4 Nov 2020 19:37:57 +0100: > Hi Miquel, > > Le 04/11/2020 à 18:38, Miquel Raynal a écrit : > > Hi Christophe, > > > > Christophe Leroy wrote on Wed, 04 Nov > > 2020 18:33:53 +0100: > > > >> Hi Miquel, > >> > >> I'm unable to boot 5.10-rc1 on my

Re: [PATCH v1 4/4] powernv/memtrace: don't abuse memory hot(un)plug infrastructure for memory allocations

2020-11-05 Thread David Hildenbrand
> Am 05.11.2020 um 03:53 schrieb Michael Ellerman : > > David Hildenbrand writes: >> Let's use alloc_contig_pages() for allocating memory and remove the >> linear mapping manually via arch_remove_linear_mapping(). Mark all pages >> PG_offline, such that they will definitely not get touched - e

Re: [PATCH 34/36] tty: serial: pmac_zilog: Make disposable variable __always_unused

2020-11-05 Thread Lee Jones
On Thu, 05 Nov 2020, Jiri Slaby wrote: > On 05. 11. 20, 8:04, Christophe Leroy wrote: > > > > > > Le 04/11/2020 à 20:35, Lee Jones a écrit : > > > Fixes the following W=1 kernel build warning(s): > > > > > >   drivers/tty/serial/pmac_zilog.h:365:58: warning: variable > > > ‘garbage’ set but not

Re: [PATCH 31/36] powerpc: asm: hvconsole: Move 'hvc_vio_init_early's prototype to shared location

2020-11-05 Thread Lee Jones
On Thu, 05 Nov 2020, Christophe Leroy wrote: > > > Le 04/11/2020 à 20:35, Lee Jones a écrit : > > Fixes the following W=1 kernel build warning(s): > > > > drivers/tty/hvc/hvc_vio.c:385:13: warning: no previous prototype for > > ‘hvc_vio_init_early’ [-Wmissing-prototypes] > > 385 | void __i

Re: [PATCH 31/36] powerpc: asm: hvconsole: Move 'hvc_vio_init_early's prototype to shared location

2020-11-05 Thread Lee Jones
On Thu, 05 Nov 2020, Michael Ellerman wrote: > Lee Jones writes: > > Fixes the following W=1 kernel build warning(s): > > > > drivers/tty/hvc/hvc_vio.c:385:13: warning: no previous prototype for > > ‘hvc_vio_init_early’ [-Wmissing-prototypes] > > 385 | void __init hvc_vio_init_early(void) > >

Re: [PATCH 34/36] tty: serial: pmac_zilog: Make disposable variable __always_unused

2020-11-05 Thread Jiri Slaby
On 05. 11. 20, 9:36, Lee Jones wrote: On Thu, 05 Nov 2020, Jiri Slaby wrote: On 05. 11. 20, 8:04, Christophe Leroy wrote: Le 04/11/2020 à 20:35, Lee Jones a écrit : Fixes the following W=1 kernel build warning(s):   drivers/tty/serial/pmac_zilog.h:365:58: warning: variable ‘garbage’ set b

Re: [PATCH 34/36] tty: serial: pmac_zilog: Make disposable variable __always_unused

2020-11-05 Thread Lee Jones
On Thu, 05 Nov 2020, Jiri Slaby wrote: > On 05. 11. 20, 9:36, Lee Jones wrote: > > On Thu, 05 Nov 2020, Jiri Slaby wrote: > > > > > On 05. 11. 20, 8:04, Christophe Leroy wrote: > > > > > > > > > > > > Le 04/11/2020 à 20:35, Lee Jones a écrit : > > > > > Fixes the following W=1 kernel build warn

Re: Kernel 5.10-rc1 not mounting NAND flash (Bisected to d7157ff49a5b ("mtd: rawnand: Use the ECC framework user input parsing bits"))

2020-11-05 Thread Christophe Leroy
Quoting Miquel Raynal : Hi Christophe, Christophe Leroy wrote on Wed, 4 Nov 2020 19:37:57 +0100: Hi Miquel, Le 04/11/2020 à 18:38, Miquel Raynal a écrit : > Hi Christophe, > > Christophe Leroy wrote on Wed, 04 Nov > 2020 18:33:53 +0100: > >> Hi Miquel, >> >> I'm unable to boot 5.10-rc1 o

Re: Kernel 5.10-rc1 not mounting NAND flash (Bisected to d7157ff49a5b ("mtd: rawnand: Use the ECC framework user input parsing bits"))

2020-11-05 Thread Miquel Raynal
Hi Christophe, Christophe Leroy wrote on Thu, 05 Nov 2020 10:06:51 +0100: > Quoting Miquel Raynal : > > > Hi Christophe, > > > > Christophe Leroy wrote on Wed, 4 Nov 2020 > > 19:37:57 +0100: > > > >> Hi Miquel, > >> > >> Le 04/11/2020 à 18:38, Miquel Raynal a écrit : > >> > Hi Christophe,

[Bug 209869] Kernel 5.10-rc1 fails to boot on a PowerMac G4 3,6 at an early stage

2020-11-05 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=209869 --- Comment #9 from Christophe Leroy (christophe.le...@csgroup.eu) --- Ok, what about 5.10-rc1 + KASAN without reverting the patch ? -- You are receiving this mail because: You are watching the assignee of the bug.

Re: Kernel panic from malloc() on SUSE 15.1?

2020-11-05 Thread Michael Ellerman
Carl Jacobsen writes: > The panic (on a call to malloc from static linked libcrypto) looks like > this: Thanks. This doesn't make a lot of sense. > Bad kernel stack pointer 7fffeac0 at 700 "at 700" is the regs->nip value, and suggests we're trying to handle a program check, which is either

Re: [PATCH v1 4/4] powernv/memtrace: don't abuse memory hot(un)plug infrastructure for memory allocations

2020-11-05 Thread Michael Ellerman
David Hildenbrand writes: >> Am 05.11.2020 um 03:53 schrieb Michael Ellerman : >> >> David Hildenbrand writes: >>> Let's use alloc_contig_pages() for allocating memory and remove the >>> linear mapping manually via arch_remove_linear_mapping(). Mark all pages >>> PG_offline, such that they will

Re: Kernel panic from malloc() on SUSE 15.1?

2020-11-05 Thread Segher Boessenkool
On Thu, Nov 05, 2020 at 09:19:22PM +1100, Michael Ellerman wrote: > Carl Jacobsen writes: > This doesn't make a lot of sense. > > > Bad kernel stack pointer 7fffeac0 at 700 > > "at 700" is the regs->nip value, and suggests we're trying to handle a > program check, which is either a trap or B

Re: [PATCH seccomp 3/8] powerpc: Enable seccomp architecture tracking

2020-11-05 Thread Michael Ellerman
YiFei Zhu writes: > On Wed, Nov 4, 2020 at 4:22 AM Michael Ellerman wrote: >> > +#ifdef __LITTLE_ENDIAN__ >> >> As Kees mentioned this should (must?!) match the configured endian. >> >> But I think it would still be better to use the CONFIG symbol, which is >> CONFIG_CPU_LITTLE_ENDIAN. > > My att

Re: [PATCH v4 1/4] mm: introduce debug_pagealloc_map_pages() helper

2020-11-05 Thread Mike Rapoport
On Wed, Nov 04, 2020 at 06:35:50PM +0100, Vlastimil Babka wrote: > On 11/3/20 5:20 PM, Mike Rapoport wrote: > > From: Mike Rapoport > > > > When CONFIG_DEBUG_PAGEALLOC is enabled, it unmaps pages from the kernel > > direct mapping after free_pages(). The pages than need to be mapped back > > befo

Re: [PATCH v4 2/4] PM: hibernate: make direct map manipulations more explicit

2020-11-05 Thread Mike Rapoport
On Wed, Nov 04, 2020 at 06:40:28PM +0100, Vlastimil Babka wrote: > On 11/3/20 5:20 PM, Mike Rapoport wrote: > > From: Mike Rapoport > > > > When DEBUG_PAGEALLOC or ARCH_HAS_SET_DIRECT_MAP is enabled a page may be > > not present in the direct map and has to be explicitly mapped before it > > coul

[powerpc:fixes-test] BUILD SUCCESS 1344a232016dbb0492be81f8517c4bf8fc1c6610

2020-11-05 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git fixes-test branch HEAD: 1344a232016dbb0492be81f8517c4bf8fc1c6610 powerpc: Use asm_goto_volatile for put_user() elapsed time: 742m configs tested: 122 configs skipped: 92 The following configs have been built succe

Re: [PATCH v4 3/4] arch, mm: restore dependency of __kernel_map_pages() of DEBUG_PAGEALLOC

2020-11-05 Thread Mike Rapoport
On Wed, Nov 04, 2020 at 07:02:20PM +0100, Vlastimil Babka wrote: > On 11/3/20 5:20 PM, Mike Rapoport wrote: > > From: Mike Rapoport > > Subject should have "on DEBUG_PAGEALLOC" ? > > > The design of DEBUG_PAGEALLOC presumes that __kernel_map_pages() must never > > fail. With this assumption is w

[powerpc:next-test] BUILD SUCCESS eeb96257fc7f7f820ad019b6e26d225aded059bf

2020-11-05 Thread kernel test robot
randconfig-a004-20201105 i386 randconfig-a006-20201105 i386 randconfig-a005-20201105 i386 randconfig-a001-20201105 i386 randconfig-a002-20201105 i386 randconfig-a003-20201105 x86_64

[PATCH 0/2] tty: Remove obsolete drivers

2020-11-05 Thread Lee Jones
As per the vendor's request. Lee Jones (2): tty: Remove redundant synclink driver tty: Remove redundant synclinkmp driver arch/powerpc/configs/ppc6xx_defconfig |2 - drivers/tty/Kconfig | 27 - drivers/tty/Makefile |2 - drivers/tty/synclink.c

[powerpc:merge] BUILD SUCCESS 58b9041431fcf9f3f87c8def87ca82dd54cf80dd

2020-11-05 Thread kernel test robot
onfig i386defconfig mips allyesconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig x86_64 randconfig-a004-20201105 x86_64 randconfig-a003-20201

Re: [PATCH seccomp 2/8] parisc: Enable seccomp architecture tracking

2020-11-05 Thread Helge Deller
On 11/3/20 2:42 PM, YiFei Zhu wrote: > From: YiFei Zhu > > To enable seccomp constant action bitmaps, we need to have a static > mapping to the audit architecture and system call table size. Add these > for parisc. > > Signed-off-by: YiFei Zhu I did compile- and boot-tested it, works on 32- and

[PATCH] KVM: PPC: Book3S HV: XIVE: Fix possible oops when accessing ESB page

2020-11-05 Thread Cédric Le Goater
When accessing the ESB page of a source interrupt, the fault handler will retrieve the page address from the XIVE interrupt 'xive_irq_data' structure. If the associated KVM XIVE interrupt is not valid, that is not allocated at the HW level for some reason, the fault handler will dereference a NULL

[PATCH 1/2] dt-bindings: misc: convert fsl, dpaa2-console from txt to YAML

2020-11-05 Thread Laurentiu Tudor
From: Ionut-robert Aron Convert fsl,dpaa2-console to YAML in order to automate the verification process of dts files. Signed-off-by: Ionut-robert Aron Signed-off-by: Laurentiu Tudor --- .../bindings/misc/fsl,dpaa2-console.txt | 11 - .../bindings/misc/fsl,dpaa2-console.yaml

[PATCH 2/2] dt-bindings: misc: convert fsl,qoriq-mc from txt to YAML

2020-11-05 Thread Laurentiu Tudor
From: Ionut-robert Aron Convert fsl,qoriq-mc to YAML in order to automate the verification process of dts files. In addition, update MAINTAINERS accordingly and, while at it, add some missing files. Signed-off-by: Ionut-robert Aron [laurentiu.tu...@nxp.com: update MINTAINERS, updates & fixes in

Re: [PATCH 0/2] tty: Remove obsolete drivers

2020-11-05 Thread Christophe Leroy
Hi, Le 05/11/2020 à 13:33, Lee Jones a écrit : As per the vendor's request. Is the vendor in copy of the patch ? What about the other synclink adapters, namely the synclink_gt ? And the synclink_cs in the drivers/char/pcmcia/ ? Christophe Lee Jones (2): tty: Remove redundant synclink

Re: [PATCH 0/2] tty: Remove obsolete drivers

2020-11-05 Thread Andrew Lunn
On Thu, Nov 05, 2020 at 12:33:55PM +, Lee Jones wrote: > As per the vendor's request. > > Lee Jones (2): > tty: Remove redundant synclink driver > tty: Remove redundant synclinkmp driver Hi Lee What exactly do you mean by redundant? That some other driver can be used? Or that nobody uses

Re: [PATCH 0/2] tty: Remove obsolete drivers

2020-11-05 Thread Lee Jones
On Thu, 05 Nov 2020, Christophe Leroy wrote: > Hi, > > Le 05/11/2020 à 13:33, Lee Jones a écrit : > > As per the vendor's request. > > Is the vendor in copy of the patch ? Not directly. Only interested parties as indicated by `get_maintainer.pl` were included. My assumption is that he'd pick

[PATCH 00/18] powerpc: interrupt wrappers

2020-11-05 Thread Nicholas Piggin
This is a slightly more polished and tested version. 64e seems to work okay even with context tracking, and 32s at least boots. This moves quite a bit more code and C function calls out from asm to C, it tightens up context tracking significantly on 64s, and generally moves things closer to the ge

[PATCH 02/18] powerpc: remove arguments from fault handler functions

2020-11-05 Thread Nicholas Piggin
Make mm fault handlers all just take the pt_regs * argument and load DAR/DSISR from that. Make those that return a value return long. This is done to make the function signatures match other handlers, which will help with a future patch to add wrappers. Explicit arguments could be added for perfor

[PATCH 01/18] powerpc/64s: move the last of the page fault handling logic to C

2020-11-05 Thread Nicholas Piggin
The page fault handling still has some complex logic particularly around hash table handling, in asm. Implement this in C instead. Signed-off-by: Nicholas Piggin --- arch/powerpc/include/asm/bug.h| 1 + arch/powerpc/kernel/exceptions-64s.S | 131 +- arch/powerp

[PATCH 03/18] powerpc: bad_page_fault, do_break get registers from regs

2020-11-05 Thread Nicholas Piggin
This also moves the 32s DABR match to C. Similar to the previous patch this makes interrupt handler function types more regular so they can be wrapped with the next patch. bad_page_fault and do_break are not performance critical. Signed-off-by: Nicholas Piggin --- arch/powerpc/include/asm/bug.

[PATCH 04/18] powerpc: interrupt handler wrapper functions

2020-11-05 Thread Nicholas Piggin
Add wrapper functions (derived from x86 macros) for interrupt handler functions. This allows interrupt entry code to be written in C. Signed-off-by: Nicholas Piggin --- arch/powerpc/include/asm/asm-prototypes.h | 29 arch/powerpc/include/asm/bug.h| 1 - arch/powerpc/include/a

[PATCH 05/18] powerpc: add interrupt wrapper entry / exit stub functions

2020-11-05 Thread Nicholas Piggin
These will be used by subsequent patches. Signed-off-by: Nicholas Piggin --- arch/powerpc/include/asm/interrupt.h | 52 1 file changed, 52 insertions(+) diff --git a/arch/powerpc/include/asm/interrupt.h b/arch/powerpc/include/asm/interrupt.h index 3292f5094085..c5f

[PATCH 06/18] powerpc: add interrupt_cond_local_irq_enable helper

2020-11-05 Thread Nicholas Piggin
Simple helper for synchronous interrupt handlers to use to enable interrupts if they were taken in interrupt-enabled context. Signed-off-by: Nicholas Piggin --- arch/powerpc/include/asm/interrupt.h | 7 +++ arch/powerpc/kernel/traps.c | 24 +++- arch/powerpc/mm/

[PATCH 07/18] powerpc/64: context tracking remove _TIF_NOHZ

2020-11-05 Thread Nicholas Piggin
Add context tracking to the system call handler explicitly, and remove _TIF_NOHZ. This saves 35 cycles on gettid system call cost on POWER9 with a CONFIG_NOHZ_FULL kernel. Signed-off-by: Nicholas Piggin --- arch/Kconfig | 6 -- arch/powerpc/Kconfig

[PATCH 08/18] powerpc/64: context tracking move to interrupt wrappers

2020-11-05 Thread Nicholas Piggin
This moves exception_enter/exit calls to wrapper functions for synchronous interrupts. More interrupt handlers are covered by this than previously. Signed-off-by: Nicholas Piggin --- arch/powerpc/include/asm/interrupt.h | 9 arch/powerpc/kernel/traps.c | 74 ++---

[PATCH 09/18] powerpc/64: add context tracking to asynchronous interrupts

2020-11-05 Thread Nicholas Piggin
Previously context tracking was not done for asynchronous interrupts, (those that run in interrupt context), and if those would cause a reschedule when they exit, then scheduling functions (schedule_user, preempt_schedule_irq) call exception_enter/exit to fix this up and exit user context. This is

[PATCH 10/18] powerpc/64s: move context tracking exit to interrupt exit path

2020-11-05 Thread Nicholas Piggin
The interrupt handler wrapper functions are not the ideal place to maintain context tracking because after they return, the low level exit code must then determine if there are interrupts to replay, or if the task should be preempted, etc. Those paths (e.g., schedule_user) include their own excepti

[PATCH 11/18] powerpc/64s: reconcile interrupts in C

2020-11-05 Thread Nicholas Piggin
There is no need for this to be in asm, use the new intrrupt entry wrapper. Signed-off-by: Nicholas Piggin --- arch/powerpc/include/asm/interrupt.h | 15 +++ arch/powerpc/kernel/exceptions-64s.S | 26 -- 2 files changed, 11 insertions(+), 30 deletions(-) diff

[PATCH 12/18] powerpc/64: move account_stolen_time into its own function

2020-11-05 Thread Nicholas Piggin
This will be used by interrupt entry as well. Signed-off-by: Nicholas Piggin --- arch/powerpc/include/asm/cputime.h | 15 +++ arch/powerpc/kernel/syscall_64.c | 10 +- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/arch/powerpc/include/asm/cputime.h b/arch

[PATCH 13/18] powerpc/64: entry cpu time accounting in C

2020-11-05 Thread Nicholas Piggin
There is no need for this to be in asm, use the new intrrupt entry wrapper. Signed-off-by: Nicholas Piggin --- arch/powerpc/include/asm/interrupt.h | 4 arch/powerpc/include/asm/ppc_asm.h | 24 arch/powerpc/kernel/exceptions-64e.S | 1 - arch/powerpc/kernel/exce

[PATCH 14/18] powerpc: move NMI entry/exit code into wrapper

2020-11-05 Thread Nicholas Piggin
This moves the common NMI entry and exit code into the interrupt handler wrappers. This changes the behaviour of soft-NMI (watchdog) and HMI interrupts, and also MCE interrupts on 64e, by adding missing parts of the NMI entry to them. It fixes a bug with sreset on pseries HPT guests which shouldn'

[PATCH 15/18] powerpc/64s: move NMI soft-mask handling to C

2020-11-05 Thread Nicholas Piggin
Saving and restoring soft-mask state can now be done in C using the interrupt handler wrapper functions. Signed-off-by: Nicholas Piggin --- arch/powerpc/include/asm/interrupt.h | 25 arch/powerpc/kernel/exceptions-64s.S | 60 2 files changed, 25 insertio

[PATCH 16/18] powerpc/64s: runlatch interrupt handling in C

2020-11-05 Thread Nicholas Piggin
There is no need for this to be in asm, use the new intrrupt entry wrapper. Signed-off-by: Nicholas Piggin --- arch/powerpc/include/asm/interrupt.h | 7 +++ arch/powerpc/kernel/exceptions-64s.S | 18 -- 2 files changed, 7 insertions(+), 18 deletions(-) diff --git a/arch/pow

[PATCH 18/18] powerpc/64s: move power4 idle entirely to C

2020-11-05 Thread Nicholas Piggin
Christophe asked about doing this, most of the code is still in asm but maybe it's slightly nicer? I don't know if it's worthwhile. --- arch/powerpc/kernel/idle.c| 25 - arch/powerpc/kernel/idle_book3s.S | 22 -- 2 files changed, 20 insertions(+)

[PATCH 17/18] powerpc/64s: power4 nap fixup in C

2020-11-05 Thread Nicholas Piggin
There is no need for this to be in asm, use the new intrrupt entry wrapper. Signed-off-by: Nicholas Piggin --- arch/powerpc/include/asm/interrupt.h | 15 + arch/powerpc/include/asm/processor.h | 1 + arch/powerpc/include/asm/thread_info.h | 6 arch/powerpc/kernel/exceptions-64

[Bug 209869] Kernel 5.10-rc1 fails to boot on a PowerMac G4 3,6 at an early stage

2020-11-05 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=209869 --- Comment #10 from Erhard F. (erhar...@mailbox.org) --- (In reply to Christophe Leroy from comment #9) > Ok, what about 5.10-rc1 + KASAN without reverting the patch ? Nope, does not boot. Same 5.10-rc1 .config + KASAN but without reverting the p

[PATCH] powerpc: topology.h: fix build when CONFIG_NUMA=n

2020-11-05 Thread Scott Cheloha
Add a non-NUMA definition for of_drconf_to_nid_single() to topology.h so we have one even if powerpc/mm/numa.c is not compiled. On a non-NUMA kernel the appropriate node id is always first_online_node. Signed-off-by: Scott Cheloha Reported-by: kernel test robot Fixes: 72cdd117c449 ("pseries/hot

Re: [PATCH] powerpc: topology.h: fix build when CONFIG_NUMA=n

2020-11-05 Thread Christophe Leroy
Le 05/11/2020 à 17:20, Scott Cheloha a écrit : Add a non-NUMA definition for of_drconf_to_nid_single() to topology.h so we have one even if powerpc/mm/numa.c is not compiled. On a non-NUMA kernel the appropriate node id is always first_online_node. Signed-off-by: Scott Cheloha Reported-by:

Re: [PATCH 1/2] dt-bindings: misc: convert fsl, dpaa2-console from txt to YAML

2020-11-05 Thread Rob Herring
On Thu, 05 Nov 2020 16:11:13 +0200, Laurentiu Tudor wrote: > From: Ionut-robert Aron > > Convert fsl,dpaa2-console to YAML in order to automate the > verification process of dts files. > > Signed-off-by: Ionut-robert Aron > Signed-off-by: Laurentiu Tudor > --- > .../bindings/misc/fsl,dpaa2-co

Re: [PATCH 2/2] dt-bindings: misc: convert fsl,qoriq-mc from txt to YAML

2020-11-05 Thread Rob Herring
On Thu, 05 Nov 2020 16:11:14 +0200, Laurentiu Tudor wrote: > From: Ionut-robert Aron > > Convert fsl,qoriq-mc to YAML in order to automate the verification > process of dts files. In addition, update MAINTAINERS accordingly > and, while at it, add some missing files. > > Signed-off-by: Ionut-rob

Re: [PATCH 2/2] dt-bindings: misc: convert fsl,qoriq-mc from txt to YAML

2020-11-05 Thread Rob Herring
On Thu, Nov 05, 2020 at 04:11:14PM +0200, Laurentiu Tudor wrote: > From: Ionut-robert Aron > > Convert fsl,qoriq-mc to YAML in order to automate the verification > process of dts files. In addition, update MAINTAINERS accordingly > and, while at it, add some missing files. > > Signed-off-by: Ion

Re: [PATCH 2/2] dt-bindings: misc: convert fsl,qoriq-mc from txt to YAML

2020-11-05 Thread Laurentiu Tudor
Hi Rob, On 11/5/2020 9:17 PM, Rob Herring wrote: > On Thu, Nov 05, 2020 at 04:11:14PM +0200, Laurentiu Tudor wrote: >> From: Ionut-robert Aron >> >> Convert fsl,qoriq-mc to YAML in order to automate the verification >> process of dts files. In addition, update MAINTAINERS accordingly >> and, whil

Re: [PATCH 03/18] powerpc: bad_page_fault, do_break get registers from regs

2020-11-05 Thread kernel test robot
Hi Nicholas, I love your patch! Yet something to improve: [auto build test ERROR on powerpc/next] [also build test ERROR on v5.10-rc2 next-20201105] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as doc

[PATCH v2 00/16] PCI: dwc: Another round of clean-ups

2020-11-05 Thread Rob Herring
Here's another batch of DWC PCI host refactoring. This series primarily moves more of the MSI, link up, and resource handling to the core code. Beyond a couple of minor fixes, new in this version is runtime detection of iATU regions instead of using DT properties. No doubt I've probably broken som

[PATCH v2 03/16] PCI: dwc: Move "dbi", "dbi2", and "addr_space" resource setup into common code

2020-11-05 Thread Rob Herring
Most DWC drivers use the common register resource names "dbi", "dbi2", and "addr_space", so let's move their setup into the DWC common code. This means 'dbi_base' in particular is setup later, but it looks like no drivers touch DBI registers before dw_pcie_host_init or dw_pcie_ep_init. Cc: Kishon

[PATCH v2 05/16] PCI: dwc: Ensure all outbound ATU windows are reset

2020-11-05 Thread Rob Herring
The Layerscape driver clears the ATU registers which may have been configured by the bootloader. Any driver could have the same issue and doing it for all drivers doesn't hurt, so let's move it into the common DWC code. Cc: Minghuan Lian Cc: Mingkai Hu Cc: Roy Zang Cc: Lorenzo Pieralisi Cc: Bj

[PATCH v2 09/16] PCI: dwc: Rework MSI initialization

2020-11-05 Thread Rob Herring
There are 3 possible MSI implementations for the DWC host. The first is using the built-in DWC MSI controller. The 2nd is a custom MSI controller as part of the PCI host (keystone only). The 3rd is an external MSI controller (typically GICv3 ITS). Currently, the last 2 are distinguished with a .msi

[PATCH v2 12/16] PCI: dwc: Move dw_pcie_setup_rc() to DWC common code

2020-11-05 Thread Rob Herring
All RC complex drivers must call dw_pcie_setup_rc(). The ordering of the call shouldn't be too important other than being after any RC resets. There's a few calls of dw_pcie_setup_rc() left as drivers implementing suspend/resume need it. Cc: Kishon Vijay Abraham I Cc: Lorenzo Pieralisi Cc: Bjor

[PATCH v2 13/16] PCI: dwc: Remove unnecessary wrappers around dw_pcie_host_init()

2020-11-05 Thread Rob Herring
Many calls to dw_pcie_host_init() are in a wrapper function with nothing else now. Let's remove the pointless extra layer. Cc: Richard Zhu Cc: Lucas Stach Cc: Lorenzo Pieralisi Cc: Bjorn Helgaas Cc: Shawn Guo Cc: Sascha Hauer Cc: Pengutronix Kernel Team Cc: Fabio Estevam Cc: NXP Linux Team

Re: [PATCH 01/18] powerpc/64s: move the last of the page fault handling logic to C

2020-11-05 Thread kernel test robot
Hi Nicholas, I love your patch! Perhaps something to improve: [auto build test WARNING on powerpc/next] [also build test WARNING on v5.10-rc2 next-20201105] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as

Re: [PATCH] KVM: PPC: Book3S HV: XIVE: Fix possible oops when accessing ESB page

2020-11-05 Thread Greg Kurz
On Thu, 5 Nov 2020 14:47:13 +0100 Cédric Le Goater wrote: > When accessing the ESB page of a source interrupt, the fault handler > will retrieve the page address from the XIVE interrupt 'xive_irq_data' > structure. If the associated KVM XIVE interrupt is not valid, that is > not allocated at the

Re: Kernel panic from malloc() on SUSE 15.1?

2020-11-05 Thread Carl Jacobsen
On Thu, Nov 5, 2020 at 2:19 AM Michael Ellerman wrote: > Carl Jacobsen writes: > > The panic (on a call to malloc from static linked libcrypto) looks like > > this: > > What hardware is this on? > Thank you for looking into this. The system that's panicking identifies like this: # uname -a

[PATCH v2] powerpc: topology.h: fix build when CONFIG_NUMA=n

2020-11-05 Thread Scott Cheloha
Add a non-NUMA definition for of_drconf_to_nid_single() to topology.h so we have one even if powerpc/mm/numa.c is not compiled. On a non-NUMA kernel the appropriate node id is always first_online_node. Signed-off-by: Scott Cheloha Reported-by: kernel test robot Fixes: 72cdd117c449 ("pseries/hot

[PATCH v2] kernel/watchdog: Fix watchdog_allowed_mask not used warning

2020-11-05 Thread Santosh Sivaraj
Define watchdog_allowed_mask only when SOFTLOCKUP_DETECTOR is enabled. Fixes: 7feeb9cd4f5b ("watchdog/sysctl: Clean up sysctl variable name space") Cc: Thomas Gleixner Cc: Andrew Morton Reviewed-by: Petr Mladek Signed-off-by: Santosh Sivaraj --- v2: Added Petr's reviewed-by from [1] and add fi

[PATCH 05/11 v3] kprobes/ftrace: Add recursion protection to the ftrace callback

2020-11-05 Thread VMware
From: "Steven Rostedt (VMware)" If a ftrace callback does not supply its own recursion protection and does not set the RECURSION_SAFE flag in its ftrace_ops, then ftrace will make a helper trampoline to do so before calling the callback instead of just calling the callback directly. The default

[PATCH 11/11 v3] ftrace: Add recording of functions that caused recursion

2020-11-05 Thread VMware
From: "Steven Rostedt (VMware)" This adds CONFIG_FTRACE_RECORD_RECURSION that will record to a file "recursed_functions" all the functions that caused recursion while a callback to the function tracer was running. Cc: Jonathan Corbet Cc: Guo Ren Cc: "James E.J. Bottomley" Cc: Helge Deller Cc

Re: [PATCH kernel v2] irq: Add reference counting to IRQ mappings

2020-11-05 Thread Alexey Kardashevskiy
Hi, This one seems to be broken in the domain associating part so please ignore it, I'll post v3 soon. Thanks, On 29/10/2020 22:01, Alexey Kardashevskiy wrote: PCI devices share 4 legacy INTx interrupts from the same PCI host bridge. Device drivers map/unmap hardware interrupts via irq_creat

Re: [PATCH] KVM: PPC: Book3S HV: XIVE: Fix possible oops when accessing ESB page

2020-11-05 Thread Michael Ellerman
Cédric Le Goater writes: > When accessing the ESB page of a source interrupt, the fault handler > will retrieve the page address from the XIVE interrupt 'xive_irq_data' > structure. If the associated KVM XIVE interrupt is not valid, that is > not allocated at the HW level for some reason, the faul

[PATCH] powerpc/64s: Remove MSR[ISF] bit

2020-11-05 Thread Nicholas Piggin
No supported processor implements this mode. Setting the bit in MSR values can be a bit confusing (and would prevent the bit from ever being reused). Remove it. Signed-off-by: Nicholas Piggin --- arch/powerpc/include/asm/reg.h | 5 + arch/powerpc/kernel/entry_64.S | 2 +- arch/powerpc/kernel

[PATCH v3] powerpc/watchpoint: Workaround P10 DD1 issue with VSX-32 byte instructions

2020-11-05 Thread Ravi Bangoria
POWER10 DD1 has an issue where it generates watchpoint exceptions when it shouldn't. The conditions where this occur are: - octword op - ending address of DAWR range is less than starting address of op - those addresses need to be in the same or in two consecutive 512B blocks - 'op address

Re: [PATCH v2] kernel/watchdog: Fix watchdog_allowed_mask not used warning

2020-11-05 Thread Christophe Leroy
Le 06/11/2020 à 02:50, Santosh Sivaraj a écrit : Define watchdog_allowed_mask only when SOFTLOCKUP_DETECTOR is enabled. Fixes: 7feeb9cd4f5b ("watchdog/sysctl: Clean up sysctl variable name space") Cc: Thomas Gleixner Cc: Andrew Morton Reviewed-by: Petr Mladek Signed-off-by: Santosh Sivaraj

Re: [PATCH v2] powerpc: topology.h: fix build when CONFIG_NUMA=n

2020-11-05 Thread Christophe Leroy
Le 05/11/2020 à 23:30, Scott Cheloha a écrit : Add a non-NUMA definition for of_drconf_to_nid_single() to topology.h so we have one even if powerpc/mm/numa.c is not compiled. On a non-NUMA kernel the appropriate node id is always first_online_node. Signed-off-by: Scott Cheloha Reported-by:

Re: [PATCH 18/18] powerpc/64s: move power4 idle entirely to C

2020-11-05 Thread kernel test robot
Hi Nicholas, I love your patch! Yet something to improve: [auto build test ERROR on powerpc/next] [also build test ERROR on v5.10-rc2 next-20201105] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as doc