Re: [PATCH] powerpc/xive: skip ioremap() of ESB pages for LSI interrupts

2019-12-03 Thread Daniel Axtens
Cédric Le Goater writes: > The PCI INTx interrupts and other LSI interrupts are handled differently > under a sPAPR platform. When the interrupt source characteristics are > queried, the hypervisor returns an H_INT_ESB flag to inform the OS > that it should be using the H_INT_ESB hcall for interr

[PATCH] powerpc/pmem: Fix kernel crash due to wrong range value usage in flush_dcache_range

2019-12-03 Thread Aneesh Kumar K.V
This patch fix the below kernel crash. BUG: Unable to handle kernel data access on read at 0xc0038000 Faulting instruction address: 0xc008b6f0 cpu 0x5: Vector: 300 (Data Access) at [c000d8587790] pc: c008b6f0: arch_remove_memory+0x150/0x210 lr: c008b72

Re: [PATCH v4 1/2] powerpc/pseries/iommu: Share the per-cpu TCE page with the hypervisor.

2019-12-03 Thread David Gibson
On Wed, Dec 04, 2019 at 12:08:09PM +1100, Alexey Kardashevskiy wrote: > > > On 04/12/2019 11:49, Ram Pai wrote: > > On Wed, Dec 04, 2019 at 11:04:04AM +1100, Alexey Kardashevskiy wrote: > >> > >> > >> On 04/12/2019 03:52, Ram Pai wrote: > >>> On Tue, Dec 03, 2019 at 03:24:37PM +1100, Alexey Karda

Re: [PATCH v2 1/3] powernv/iov: Ensure the pdn for VFs always contains a valid PE number

2019-12-03 Thread Shawn Anastasio
On 10/28/19 3:54 AM, Oliver O'Halloran wrote: On pseries there is a bug with adding hotplugged devices to an IOMMU group. For a number of dumb reasons fixing that bug first requires re-working how VFs are configured on PowerNV. Are these patches expected to land soon, or is there another fix in

Re: [PATCH v4 2/2] powerpc/irq: inline call_do_irq() and call_do_softirq()

2019-12-03 Thread Christophe Leroy
Hi, Le 29/11/2019 à 19:46, Segher Boessenkool a écrit : Hi! On Wed, Nov 27, 2019 at 04:15:15PM +0100, Christophe Leroy wrote: Le 27/11/2019 à 15:59, Segher Boessenkool a écrit : On Wed, Nov 27, 2019 at 02:50:30PM +0100, Christophe Leroy wrote: So what do we do ? We just drop the "r2" clobber

RE: [v5 1/3] soc: fsl: handle RCPM errata A-008646 on SoC LS1021A

2019-12-03 Thread Biwen Li
Hi All, 1.Need apply below patches before apply these patches. 1.1 Flextimer dts https://lore.kernel.org/patchwork/series/405653/mbox/ (https://lore.kernel.org/patchwork/patch/1112493/) 1.2 RCPM driver https://lore.kernel.org/patchwork/patch/1143809/mbox/ [v10,1/3] PM: wakeup: Add routine to hel

Re: [PATCH] powerpc/mm: Remove kvm radix prefetch workaround for Power9 DD2.2

2019-12-03 Thread Oliver O'Halloran
On Mon, Dec 2, 2019 at 2:08 PM Jordan Niethe wrote: > > Commit a25bd72badfa ("powerpc/mm/radix: Workaround prefetch issue with > KVM") introduced a number of workarounds as coming out of a guest with > the mmu enabled would make the cpu would start running in hypervisor > state with the PID value

Re: [PATCH v4 1/2] powerpc/pseries/iommu: Share the per-cpu TCE page with the hypervisor.

2019-12-03 Thread Alexey Kardashevskiy
On 04/12/2019 11:49, Ram Pai wrote: > On Wed, Dec 04, 2019 at 11:04:04AM +1100, Alexey Kardashevskiy wrote: >> >> >> On 04/12/2019 03:52, Ram Pai wrote: >>> On Tue, Dec 03, 2019 at 03:24:37PM +1100, Alexey Kardashevskiy wrote: On 03/12/2019 15:05, Ram Pai wrote: > On Tue, Dec

RE: [PATCH v4 1/2] powerpc/pseries/iommu: Share the per-cpu TCE page with the hypervisor.

2019-12-03 Thread Ram Pai
On Wed, Dec 04, 2019 at 11:04:04AM +1100, Alexey Kardashevskiy wrote: > > > On 04/12/2019 03:52, Ram Pai wrote: > > On Tue, Dec 03, 2019 at 03:24:37PM +1100, Alexey Kardashevskiy wrote: > >> > >> > >> On 03/12/2019 15:05, Ram Pai wrote: > >>> On Tue, Dec 03, 2019 at 01:15:04PM +1100, Alexey Karda

Re: [PATCH v2 00/27] Add support for OpenCAPI SCM devices

2019-12-03 Thread Dan Williams
On Tue, Dec 3, 2019 at 4:43 AM Matthew Wilcox wrote: > > On Tue, Dec 03, 2019 at 03:01:17PM +1100, Alastair D'Silva wrote: > > On Mon, 2019-12-02 at 19:50 -0800, Matthew Wilcox wrote: > > > On Tue, Dec 03, 2019 at 02:46:28PM +1100, Alastair D'Silva wrote: > > > > This series adds support for OpenC

Re: [PATCH v2 02/27] nvdimm: remove prototypes for nonexistent functions

2019-12-03 Thread Dan Williams
On Mon, Dec 2, 2019 at 7:48 PM Alastair D'Silva wrote: > > From: Alastair D'Silva > > These functions don't exist, so remove the prototypes for them. > > Signed-off-by: Alastair D'Silva > Reviewed-by: Frederic Barrat > --- This was already merged as commit: cda93d6965a1 libnvdimm: Remove

Re: [PATCH v4 1/2] powerpc/pseries/iommu: Share the per-cpu TCE page with the hypervisor.

2019-12-03 Thread Alexey Kardashevskiy
On 04/12/2019 03:52, Ram Pai wrote: > On Tue, Dec 03, 2019 at 03:24:37PM +1100, Alexey Kardashevskiy wrote: >> >> >> On 03/12/2019 15:05, Ram Pai wrote: >>> On Tue, Dec 03, 2019 at 01:15:04PM +1100, Alexey Kardashevskiy wrote: On 03/12/2019 13:08, Ram Pai wrote: > On Tue, Dec

Re: [PATCH v2 1/2] kasan: support instrumented bitops combined with generic bitops

2019-12-03 Thread Daniel Axtens
Hi Michael, > I only just noticed this thread as I was about to send a pull request > for these two commits. > > I think I agree that test_bit() shouldn't move (yet), but I dislike that > the documentation ends up being confusing due to this patch. > > So I'm inclined to append or squash in the pat

[PATCH 4.19 195/321] net/wan/fsl_ucc_hdlc: Avoid double free in ucc_hdlc_probe()

2019-12-03 Thread Greg Kroah-Hartman
From: Wen Yang [ Upstream commit 40752b3eae29f8ca2378e978a02bd6dbeeb06d16 ] This patch fixes potential double frees if register_hdlc_device() fails. Signed-off-by: Wen Yang Reviewed-by: Peng Hao CC: Zhao Qiang CC: "David S. Miller" CC: net...@vger.kernel.org CC: linuxppc-dev@lists.ozlabs.or

Re: [PATCH 2/3] powerpc/sysfs: Show idle_purr and idle_spurr for every CPU

2019-12-03 Thread kbuild test robot
Hi "Gautham, Thank you for the patch! Yet something to improve: [auto build test ERROR on powerpc/next] [also build test ERROR on v5.4 next-20191203] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base&

[PATCH] powerpc/xive: skip ioremap() of ESB pages for LSI interrupts

2019-12-03 Thread Cédric Le Goater
The PCI INTx interrupts and other LSI interrupts are handled differently under a sPAPR platform. When the interrupt source characteristics are queried, the hypervisor returns an H_INT_ESB flag to inform the OS that it should be using the H_INT_ESB hcall for interrupt management and not loads and st

Re: [bug] userspace hitting sporadic SIGBUS on xfs (Power9, ppc64le), v4.19 and later

2019-12-03 Thread Christoph Hellwig
Please try the patch below: diff --git a/fs/iomap/buffered-io.c b/fs/iomap/buffered-io.c index 512856a88106..340c15400423 100644 --- a/fs/iomap/buffered-io.c +++ b/fs/iomap/buffered-io.c @@ -28,6 +28,7 @@ struct iomap_page { atomic_tread_count; atomic_t

Re: [RFC] Efficiency of the phandle_cache on ppc64/SLOF

2019-12-03 Thread Segher Boessenkool
Hi! On Tue, Dec 03, 2019 at 03:03:22PM +1100, Michael Ellerman wrote: > Sebastian Andrzej Siewior writes: > I've certainly heard it said that on some OF's the phandle was just == > the address of the internal representation, and I guess maybe for SLOF > that is true. It is (or was). In many OFs

Re: [RFC] Efficiency of the phandle_cache on ppc64/SLOF

2019-12-03 Thread Rob Herring
On Mon, Dec 2, 2019 at 10:28 PM Frank Rowand wrote: > > On 12/2/19 10:12 PM, Michael Ellerman wrote: > > Frank Rowand writes: > >> On 11/29/19 9:10 AM, Sebastian Andrzej Siewior wrote: > >>> I've been looking at phandle_cache and noticed the following: The raw > >>> phandle value as generated by

RE: [PATCH v4 1/2] powerpc/pseries/iommu: Share the per-cpu TCE page with the hypervisor.

2019-12-03 Thread Ram Pai
On Tue, Dec 03, 2019 at 03:24:37PM +1100, Alexey Kardashevskiy wrote: > > > On 03/12/2019 15:05, Ram Pai wrote: > > On Tue, Dec 03, 2019 at 01:15:04PM +1100, Alexey Kardashevskiy wrote: > >> > >> > >> On 03/12/2019 13:08, Ram Pai wrote: > >>> On Tue, Dec 03, 2019 at 11:56:43AM +1100, Alexey Karda

Re: [bug] userspace hitting sporadic SIGBUS on xfs (Power9, ppc64le), v4.19 and later

2019-12-03 Thread Darrick J. Wong
On Tue, Dec 03, 2019 at 09:35:28AM -0500, Jan Stancek wrote: > > - Original Message - > > On Tue, Dec 03, 2019 at 07:50:39AM -0500, Jan Stancek wrote: > > > My theory is that there's a race in iomap. There appear to be > > > interleaved calls to iomap_set_range_uptodate() for same page > >

Re: [PATCH v6 05/10] mm/memory_hotplug: Shrink zones when offlining memory

2019-12-03 Thread David Hildenbrand
On 03.12.19 16:10, Oscar Salvador wrote: > On Sun, Oct 06, 2019 at 10:56:41AM +0200, David Hildenbrand wrote: >> Fixes: d0dc12e86b31 ("mm/memory_hotplug: optimize memory hotplug") >> Signed-off-by: David Hildenbrand > > I did not see anything wrong with the taken approach, and makes sense to me.

Re: [PATCH v6 05/10] mm/memory_hotplug: Shrink zones when offlining memory

2019-12-03 Thread Oscar Salvador
On Sun, Oct 06, 2019 at 10:56:41AM +0200, David Hildenbrand wrote: > Fixes: d0dc12e86b31 ("mm/memory_hotplug: optimize memory hotplug") > Signed-off-by: David Hildenbrand I did not see anything wrong with the taken approach, and makes sense to me. The only thing that puzzles me is we seem to not

Re: [bug] userspace hitting sporadic SIGBUS on xfs (Power9, ppc64le), v4.19 and later

2019-12-03 Thread Jan Stancek
- Original Message - > On Tue, Dec 03, 2019 at 07:50:39AM -0500, Jan Stancek wrote: > > My theory is that there's a race in iomap. There appear to be > > interleaved calls to iomap_set_range_uptodate() for same page > > with varying offset and length. Each call sees bitmap as _not_ > > en

Re: [PATCH 1/3] powerpc/pseries: Account for SPURR ticks on idle CPUs

2019-12-03 Thread Kamalesh Babulal
On 11/27/19 5:31 PM, Gautham R. Shenoy wrote: > From: "Gautham R. Shenoy" > > On PSeries LPARs, to compute the utilization, tools such as lparstat > need to know the [S]PURR ticks when the CPUs were busy or idle. > > In the pseries cpuidle driver, we keep track of the idle PURR ticks in > the VP

Re: [PATCH 2/3] powerpc/sysfs: Show idle_purr and idle_spurr for every CPU

2019-12-03 Thread Kamalesh Babulal
On 11/27/19 5:31 PM, Gautham R. Shenoy wrote: > From: "Gautham R. Shenoy" > > On Pseries LPARs, to calculate utilization, we need to know the > [S]PURR ticks when the CPUs were busy or idle. > > The total PURR and SPURR ticks are already exposed via the per-cpu > sysfs files /sys/devices/system/

Re: [PATCH v6 00/10] mm/memory_hotplug: Shrink zones before removing memory

2019-12-03 Thread Oscar Salvador
On Mon, Dec 02, 2019 at 10:09:51AM +0100, David Hildenbrand wrote: > @Michal, @Oscar, can some of you at least have a patch #5 now so we can > proceed with that? (the other patches can stay in -next some time longer) Hi, I will be having a look at patch#5 shortly. Thanks for the reminder -- O

Re: [bug] userspace hitting sporadic SIGBUS on xfs (Power9, ppc64le), v4.19 and later

2019-12-03 Thread Christoph Hellwig
On Tue, Dec 03, 2019 at 07:50:39AM -0500, Jan Stancek wrote: > My theory is that there's a race in iomap. There appear to be > interleaved calls to iomap_set_range_uptodate() for same page > with varying offset and length. Each call sees bitmap as _not_ > entirely "uptodate" and hence doesn't call

Re: [PATCH v2 1/2] kasan: support instrumented bitops combined with generic bitops

2019-12-03 Thread Michael Ellerman
Marco Elver writes: > On Wed, 20 Nov 2019 at 08:42, Daniel Axtens wrote: >> >> > But the docs do seem to indicate that it's atomic (for whatever that >> > means for a single read operation?), so you are right, it should live in >> > instrumented-atomic.h. >> >> Actually, on further inspection, te

[bug] userspace hitting sporadic SIGBUS on xfs (Power9, ppc64le), v4.19 and later

2019-12-03 Thread Jan Stancek
Hi, (This bug report is summary from thread [1] with some additions) User-space binaries on Power9 ppc64le (with 64k pages) on xfs filesystem are sporadically hitting SIGBUS: -- 8< -- (gdb) r Starting program: /mnt/testarea/ltp/testcases/bin/genasin Program received signal SIGBU

Re: [PATCH v2 00/27] Add support for OpenCAPI SCM devices

2019-12-03 Thread Matthew Wilcox
On Tue, Dec 03, 2019 at 03:01:17PM +1100, Alastair D'Silva wrote: > On Mon, 2019-12-02 at 19:50 -0800, Matthew Wilcox wrote: > > On Tue, Dec 03, 2019 at 02:46:28PM +1100, Alastair D'Silva wrote: > > > This series adds support for OpenCAPI SCM devices, exposing > > > > Could we _not_ introduce yet

[v5 1/3] soc: fsl: handle RCPM errata A-008646 on SoC LS1021A

2019-12-03 Thread Biwen Li
Description: - Reading configuration register RCPM_IPPDEXPCR1 always return zero Workaround: - Save register RCPM_IPPDEXPCR1's value to register SCFG_SPARECR8.(uboot's psci also need reading value from the register SCFG_SPARECR8 to set regist

[v5 2/3] arm: dts: ls1021a: fix that FlexTimer cannot wakeup system in deep sleep

2019-12-03 Thread Biwen Li
The patch fixes a bug that FlexTimer cannot wakeup system in deep sleep. Signed-off-by: Biwen Li --- Change in v5: - none Change in v4: - update property name fsl,ippdexpcr-alt-addr -> fsl,ippdexpcr1-alt-addr Change in v3: - update property name fsl,r

[v5 3/3] Documentation: dt: binding: fsl: Add 'fsl, ippdexpcr1-alt-addr' property

2019-12-03 Thread Biwen Li
The 'fsl,ippdexpcr1-alt-addr' property is used to handle an errata A-008646 on LS1021A Signed-off-by: Biwen Li --- Change in v5: - none Change in v4: - rename property name fsl,ippdexpcr-alt-addr -> fsl,ippdexpcr1-alt-addr Change in v3: - rename property name

Re: [PATCH v3 2/4] powerpc/fadump: reorganize /sys/kernel/fadump_* sysfs files

2019-12-03 Thread Sourabh Jain
DEFINE_SHOW_ATTRIBUTE(fadump_region); static void fadump_init_files(void) @@ -1435,6 +1448,11 @@ static void fadump_init_files(void) struct dentry *debugfs_file; int rc = 0; + fadump_kobj = kobject_create_and_add("fadump", kernel_kobj); + i

[PATCH resend] ASoC: fsl_audmix: add missed pm_runtime_disable

2019-12-03 Thread Chuhong Yuan
The driver forgets to call pm_runtime_disable in probe failure and remove. Add the missed calls to fix it. Signed-off-by: Chuhong Yuan --- sound/soc/fsl/fsl_audmix.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sound/soc/fsl/fsl_audmix.c b/sound/soc/fsl/fsl_audmix.

Re: [PATCH v5 0/5] Append new variables to vmcoreinfo (TCR_EL1.T1SZ for arm64 and MAX_PHYSMEM_BITS for all archs)

2019-12-03 Thread Will Deacon
On Sat, Nov 30, 2019 at 01:35:36AM +0530, Bhupesh Sharma wrote: > On Fri, Nov 29, 2019 at 3:54 PM Will Deacon wrote: > > On Fri, Nov 29, 2019 at 01:53:36AM +0530, Bhupesh Sharma wrote: > > > Changes since v4: > > > > > > - v4 can be seen here: > > > http://lists.infradead.org/pi

Re: [PATCH v11 0/7] KVM: PPC: Driver to manage pages of secure guest

2019-12-03 Thread Bharata B Rao
On Sun, Dec 01, 2019 at 12:24:50PM -0800, Hugh Dickins wrote: > On Thu, 28 Nov 2019, Bharata B Rao wrote: > > On Mon, Nov 25, 2019 at 08:36:24AM +0530, Bharata B Rao wrote: > > > Hi, > > > > > > This is the next version of the patchset that adds required support > > > in the KVM hypervisor to run

[PATCH V11] mm/debug: Add tests validating architecture page table helpers

2019-12-03 Thread Anshuman Khandual
This adds tests which will validate architecture page table helpers and other accessors in their compliance with expected generic MM semantics. This will help various architectures in validating changes to existing page table helpers or addition of new ones. This test covers basic page table entry

Re: [PATCH 0/9] Improve boot command line handling

2019-12-03 Thread Christophe Leroy
Le 02/04/2019 à 11:08, Christophe Leroy a écrit : The purpose of this series is to improve and enhance the handling of kernel boot arguments. It is first focussed on powerpc but also extends the capability for other arches. This is based on suggestion from Daniel Walker Looks like nobody

Re: Build failure on latest powerpc/merge (311ae9e159d8 io_uring: fix dead-hung for non-iter fixed rw)

2019-12-03 Thread Geert Uytterhoeven
Hi Jens, On Fri, Nov 29, 2019 at 5:06 PM Jens Axboe wrote: > On 11/29/19 6:53 AM, Christophe Leroy wrote: > > CC fs/io_uring.o > > fs/io_uring.c: In function ‘loop_rw_iter’: > > fs/io_uring.c:1628:21: error: implicit declaration of function ‘kmap’ > > [-Werror=implicit-function-declarati

Re: [-merge] BUG followed by oops running ndctl tests

2019-12-03 Thread Aneesh Kumar K.V
Sachin Sant writes: > Following Oops is seen on latest (commit 3b4852888d) powerpc merge branch > code while running ndctl (test_namespace) tests > > 85c5b0984e was good. > > (06/12) avocado-misc-tests/memory/ndctl.py:NdctlTest.test_namespace: [ > 213.570536] memmap_init_zone_device initialis