Re: [PATCH v2 1/2] powerpc/powernv: Get L1D flush requirements from device-tree

2022-04-04 Thread Michael Ellerman
Joel Stanley writes: > On Mon, 4 Apr 2022 at 10:15, Russell Currey wrote: >> >> The device-tree properties no-need-l1d-flush-msr-pr-1-to-0 and >> no-need-l1d-flush-kernel-on-user-access are the equivalents of >> H_CPU_BEHAV_NO_L1D_FLUSH_ENTRY and H_CPU_BEHAV_NO_L1D_FLUSH_UACCESS >> from the H_GET

Re: [PATCH V11 00/20] riscv: Add COMPAT mode support for rv64

2022-04-04 Thread Guo Ren
Hi Palmer, On Tue, Apr 5, 2022 at 7:06 AM Palmer Dabbelt wrote: > > On Mon, 04 Apr 2022 07:28:50 PDT (-0700), guo...@kernel.org wrote: > > On Sat, Apr 2, 2022 at 10:04 PM Guo Ren wrote: > >> > >> Hi Palmer, > >> > >> Sorry for the late reply, I still want COMPAT to catch up at 5.18.. > >> I've p

Re: [PATCH] powerpc/numa: Handle partially initialized numa nodes

2022-04-04 Thread Mike Rapoport
On Wed, Mar 30, 2022 at 07:21:23PM +0530, Srikar Dronamraju wrote: > With commit 09f49dca570a ("mm: handle uninitialized numa nodes > gracefully") NODE_DATA for even a memoryless/cpuless node is partially > initialized at boot time. > > Before onlining the node, current Powerpc code checks for NOD

[Bug 215803] ppc64le(P9): BUG: Kernel NULL pointer dereference on read at 0x00000060 NIP: do_remove_conflicting_framebuffers+0x184/0x1d0

2022-04-04 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215803 --- Comment #1 from Zorro Lang (zl...@redhat.com) --- Created attachment 300697 --> https://bugzilla.kernel.org/attachment.cgi?id=300697&action=edit kernel .config file -- You may reply to this email to add a comment. You are receiving this m

[Bug 215803] New: ppc64le(P9): BUG: Kernel NULL pointer dereference on read at 0x00000060 NIP: do_remove_conflicting_framebuffers+0x184/0x1d0

2022-04-04 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215803 Bug ID: 215803 Summary: ppc64le(P9): BUG: Kernel NULL pointer dereference on read at 0x0060 NIP: do_remove_conflicting_framebuffers+0x184/0x1d0 Product: Platform Speci

Re: [PATCH v2 1/2] powerpc/powernv: Get L1D flush requirements from device-tree

2022-04-04 Thread Joel Stanley
On Mon, 4 Apr 2022 at 10:15, Russell Currey wrote: > > The device-tree properties no-need-l1d-flush-msr-pr-1-to-0 and > no-need-l1d-flush-kernel-on-user-access are the equivalents of > H_CPU_BEHAV_NO_L1D_FLUSH_ENTRY and H_CPU_BEHAV_NO_L1D_FLUSH_UACCESS > from the H_GET_CPU_CHARACTERISTICS hcall on

Re: [PATCH V11 00/20] riscv: Add COMPAT mode support for rv64

2022-04-04 Thread Palmer Dabbelt
On Mon, 04 Apr 2022 07:28:50 PDT (-0700), guo...@kernel.org wrote: On Sat, Apr 2, 2022 at 10:04 PM Guo Ren wrote: Hi Palmer, Sorry for the late reply, I still want COMPAT to catch up at 5.18.. I've pushed it into my next branch, and it would get in linux-next the next day. You could have a lo

Re: [PATCH] powerpc/85xx: Remove FSL_85XX_CACHE_SRAM

2022-04-04 Thread Rob Herring
On Thu, 31 Mar 2022 12:03:06 +0200, Christophe Leroy wrote: > CONFIG_FSL_85XX_CACHE_SRAM is an option that is not > user selectable and which is not selected by any driver > nor any defconfig. > > Remove it and all associated code. > > Signed-off-by: Christophe Leroy > --- > .../bindings/powerp

[PATCH] powerpc/fadump: save CPU reg data in vmcore when PHYP terminates LPAR

2022-04-04 Thread Hari Bathini
An LPAR can be terminated by the POWER Hypervisor (PHYP) for various reasons. If FADump was configured when PHYP terminates the LPAR, platform-assisted dump is initiated to save the kernel dump. But CPU register data would not be processed/saved in the vmcore in such case because CPU mask is set in

RE: [PATCH 09/15] swiotlb: make the swiotlb_init interface more useful

2022-04-04 Thread Michael Kelley (LINUX)
From: Christoph Hellwig Sent: Sunday, April 3, 2022 10:06 PM > > Pass a bool to pass if swiotlb needs to be enabled based on the Wording problems. I'm not sure what you meant to say. > addressing needs and replace the verbose argument with a set of > flags, including one to force enable bounce

Re: [PATCH V11 00/20] riscv: Add COMPAT mode support for rv64

2022-04-04 Thread Guo Ren
On Sat, Apr 2, 2022 at 10:04 PM Guo Ren wrote: > > Hi Palmer, > > Sorry for the late reply, I still want COMPAT to catch up at 5.18.. > I've pushed it into my next branch, and it would get in linux-next the > next day. You could have a look at that. The repo is: > https://github.com/c-sky/csky-lin

Re: [PATCH 12/15] swiotlb: provide swiotlb_init variants that remap the buffer

2022-04-04 Thread Alan Robinson
Hi Christoph, On Mon, Apr 04, 2022 at 05:05:56AM +, Christoph Hellwig wrote: > From: Christoph Hellwig > Subject: [PATCH 12/15] swiotlb: provide swiotlb_init variants that remap > the buffer > > To shared more code between swiotlb and xen-swiotlb, offer a > swiotlb_init_remap interface and

Re: [PATCH v4 1/2] Revert "powerpc: Set max_mapnr correctly"

2022-04-04 Thread Michael Ellerman
Kefeng Wang writes: > On 2022/3/28 22:12, Christophe Leroy wrote: >> Hi, >> >> Le 26/03/2022 à 08:55, Kefeng Wang a écrit : >>> Hi maintainers, >>> >>> I saw the patches has been reviewed[1], could they be merged? >> Thinking about it once more, I think the patches should go in reverse >> order. P

[powerpc]Kernel crash while running xfstests (generic/250) [next-20220404]

2022-04-04 Thread Sachin Sant
While running xfstests(ext4 or XFS as fs) on a Power10 LPAR booted with today’s next (5.18.0-rc1-next-20220404) following crash is seen. [ 51.260209] XFS (dm-0): Unmounting Filesystem [ 51.262949] XFS (dm-0): Mounting V5 Filesystem [ 51.270524] XFS (dm-0): Ending clean mount [ 51.272641

Re: [PATCH] powerpc/powernv: Get more flushing requirements from device-tree

2022-04-04 Thread Russell Currey
On Wed, 2022-03-23 at 16:26 -0300, Murilo Opsfelder Araújo wrote: > Hi, Russell. > > I think this patch could have been split in half with their > corresponding Fixes: tag. > > This may sound nitpicking but doing this would certainly help distros > doing their backports. Hi Murilo, I didn't use

[PATCH v2 1/2] powerpc/powernv: Get L1D flush requirements from device-tree

2022-04-04 Thread Russell Currey
The device-tree properties no-need-l1d-flush-msr-pr-1-to-0 and no-need-l1d-flush-kernel-on-user-access are the equivalents of H_CPU_BEHAV_NO_L1D_FLUSH_ENTRY and H_CPU_BEHAV_NO_L1D_FLUSH_UACCESS from the H_GET_CPU_CHARACTERISTICS hcall on pseries respectively. In commit d02fa40d759f ("powerpc/power

[PATCH v2 2/2] powerpc/powernv: Get STF barrier requirements from device-tree

2022-04-04 Thread Russell Currey
The device-tree property no-need-store-drain-on-priv-state-switch is equivalent to H_CPU_BEHAV_NO_STF_BARRIER from the H_CPU_GET_CHARACTERISTICS hcall on pseries. Since commit 84ed26fd00c5 ("powerpc/security: Add a security feature for STF barrier") powernv systems with this device-tree property h

[PATCH RESEND v2 6/7] soc: fsl: guts: drop platform driver

2022-04-04 Thread Michael Walle
This driver cannot be unloaded and it will be needed very early in the boot process because other driver (weakly) depend on it (eg. for chip errata handling). Drop all the platform driver and devres stuff and simply make it a core_initcall. Signed-off-by: Michael Walle Acked-by: Arnd Bergmann --

[PATCH RESEND v2 7/7] soc: fsl: guts: add serial_number support

2022-04-04 Thread Michael Walle
Most layerscapes provide a security fuse processor where the vendor will store a unique id per part. Unfortunately, we cannot use the corresponding efuse driver because this driver needs to be ready early during the boot phase. To get the unique identifier, we just need to access two registers. Thu

[PATCH RESEND v2 4/7] soc: fsl: guts: allocate soc_dev_attr on the heap

2022-04-04 Thread Michael Walle
This is the last global static variable. Drop it and allocate the memory on the heap instead. Signed-off-by: Michael Walle Acked-by: Arnd Bergmann --- drivers/soc/fsl/guts.c | 40 +--- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/drivers/so

[PATCH RESEND v2 2/7] soc: fsl: guts: remove module_exit() and fsl_guts_remove()

2022-04-04 Thread Michael Walle
This driver will never be unloaded. Firstly, it is not available as a module, but more importantly, other drivers will depend on this one to apply possible chip errata. Signed-off-by: Michael Walle Acked-by: Arnd Bergmann --- drivers/soc/fsl/guts.c | 15 +-- 1 file changed, 1 insert

[PATCH RESEND v2 3/7] soc: fsl: guts: embed fsl_guts_get_svr() in probe()

2022-04-04 Thread Michael Walle
Move the reading of the SVR into the probe function as fsl_guts_get_svr() is the only user of the static guts variable and this lets us drop that as well as the malloc() for this variable. Also, we can unmap the memory region after we accessed it, which will simplify error handling later. Signed-o

[PATCH RESEND v2 5/7] soc: fsl: guts: use of_root instead of own reference

2022-04-04 Thread Michael Walle
There is already a global of_root reference. Use that instead of getting one on our own. We don't need to care about the reference count either this way. Signed-off-by: Michael Walle Acked-by: Arnd Bergmann --- drivers/soc/fsl/guts.c | 12 1 file changed, 4 insertions(+), 8 deletio

[PATCH RESEND v2 0/7] soc: fsl: guts: cleanups and serial_number support

2022-04-04 Thread Michael Walle
[Resend because of new development cycle. Shawn, can this series get through your tree? Sorry you weren't on CC on the former submissions.] This series converts the guts driver from a platform driver to just an core_initcall. The driver itself cannot (or rather should never) be unloaded because ot

[PATCH RESEND v2 1/7] soc: fsl: guts: machine variable might be unset

2022-04-04 Thread Michael Walle
If both the model and the compatible properties are missing, then machine will not be set. Initialize it with NULL. Fixes: 34c1c21e94ac ("soc: fsl: fix section mismatch build warnings") Signed-off-by: Michael Walle Acked-by: Arnd Bergmann --- drivers/soc/fsl/guts.c | 2 +- 1 file changed, 1 ins

Re: [PATCH v2 07/12] serial: termbits: ADDRB to indicate 9th bit addressing mode

2022-04-04 Thread Ilpo Järvinen
On Mon, 4 Apr 2022, Arnd Bergmann wrote: > On Mon, Apr 4, 2022 at 10:29 AM Ilpo Järvinen > wrote: > > > > > #define CLOCAL 0010 > > +#define ADDRB 01000 /* address bit */ > > #define CMSPAR 0100 /* mark or space (stick) parity */ > > #define CRTSCTS

Re: [PATCH v2 07/12] serial: termbits: ADDRB to indicate 9th bit addressing mode

2022-04-04 Thread Arnd Bergmann
On Mon, Apr 4, 2022 at 10:29 AM Ilpo Järvinen wrote: > > #define CLOCAL 0010 > +#define ADDRB 01000 /* address bit */ > #define CMSPAR 0100 /* mark or space (stick) parity */ > #define CRTSCTS 0200 /* flow control */ > > diff

[PATCH v2 08/12] serial: General support for multipoint addresses

2022-04-04 Thread Ilpo Järvinen
Add generic support for serial multipoint addressing. Two new ioctls are added. TIOCSADDR is used to indicate the destination/receive address. TIOCGADDR returns the current address in use. The driver should implement set_addr and get_addr to support addressing mode. Adjust ADDRB clearing to happen

[PATCH v2 07/12] serial: termbits: ADDRB to indicate 9th bit addressing mode

2022-04-04 Thread Ilpo Järvinen
Add ADDRB to termbits to indicate 9th bit addressing mode. This change is necessary for supporting devices with RS485 multipoint addressing [*]. A later patch in the patch series adds support for Synopsys Designware UART capable for 9th bit addressing mode. In this mode, 9th bit is used to indicate

Re: [PATCH v2] powerpc/drmem: Don't compute the NUMA node for each LMB

2022-04-04 Thread Laurent Dufour
On 02/04/2022, 18:35:15, Christophe Leroy wrote: > > > Le 05/08/2020 à 15:35, Laurent Dufour a écrit : >> All the LMB from the same set of ibm,dynamic-memory-v2 property are >> sharing the same NUMA node. Don't compute that node for each one. >> >> Tested on a system with 1022 LMBs spread on 4 NU

Re: [PATCH] [Rebased for 5.4] powerpc/kasan: Fix early region not updated correctly

2022-04-04 Thread Greg KH
On Sun, Apr 03, 2022 at 03:49:43PM +0200, Christophe Leroy wrote: > From: Chen Jingwen > > This is backport for 5.4 > > Upstream commit dd75080aa8409ce10d50fb58981c6b59bf8707d3 Now queued up, thanks. greg k-h

Re: [PATCH 12/15] swiotlb: provide swiotlb_init variants that remap the buffer

2022-04-04 Thread Dongli Zhang
On 4/3/22 10:05 PM, Christoph Hellwig wrote: > To shared more code between swiotlb and xen-swiotlb, offer a > swiotlb_init_remap interface and add a remap callback to > swiotlb_init_late that will allow Xen to remap the buffer the > buffer without duplicating much of the logic. > > Signed-off-b