[PATCH] fsldma: t4240qds: drop "SG" CAP for DMA3

2016-11-21 Thread yanjiang.jin
From: Yanjiang Jin T4240QDS DMA controller uses the external DMA control signals to start or restart a paused DMA transfer, acknowledge a DMA transfer in progress and also indicates a transfer completion. "scatterlist copy" depends on these signals. But as "T4240 Reference Manual" shown: "The ex

[PATCH] powerpc: cputime: fix a compile warning

2016-11-21 Thread yanjiang.jin
From: Yanjiang Jin This patch is to avoid the below warning: kernel/sched/cpuacct.c:298:25: warning: format '%lld' expects argument of type 'long long int', but argument 4 has type 'long unsigned int' [-Wformat=] Signed-off-by: Yanjiang Jin --- arch/powerpc/include/asm/cputime.h | 3 ++- 1 fi

Re: [RESEND] [PATCH v1 1/3] Add basic infrastructure for memcg hotplug support

2016-11-21 Thread Vladimir Davydov
On Thu, Nov 17, 2016 at 11:28:12AM +1100, Balbir Singh wrote: > >> @@ -5773,6 +5771,59 @@ static int __init cgroup_memory(char *s) > >> } > >> __setup("cgroup.memory=", cgroup_memory); > >> > >> +static void memcg_node_offline(int node) > >> +{ > >> + struct mem_cgroup *memcg; > >> + > >> + i

Re: [PATCH] ibmebus: Remove legacy suspend/resume support

2016-11-21 Thread Michael Ellerman
Lars-Peter Clausen writes: > There are no ibmebus driver that make use of legacy suspend/resume. This > patch removes the support for it from ibmebus framework, new ibmebus driver > (as unlikely as they are) wanting to use suspend/resume should use > dev_pm_ops. > > Since there aren't any special

Re: [PATCH v2 2/4] powerpc/mm: Rename hugetlb-radix.h to hugetlb.h

2016-11-21 Thread Michael Ellerman
"Aneesh Kumar K.V" writes: > Michael Ellerman writes: >> "Aneesh Kumar K.V" writes: >>> diff --git a/arch/powerpc/include/asm/book3s/64/hugetlb-radix.h >>> b/arch/powerpc/include/asm/book3s/64/hugetlb.h >>> similarity index 78% >>> rename from arch/powerpc/include/asm/book3s/64/hugetlb-radix.h

Re: [PATCH] ibmebus: Remove legacy suspend/resume support

2016-11-21 Thread Lars-Peter Clausen
On 11/21/2016 10:52 AM, Michael Ellerman wrote: > Lars-Peter Clausen writes: > >> There are no ibmebus driver that make use of legacy suspend/resume. This >> patch removes the support for it from ibmebus framework, new ibmebus driver >> (as unlikely as they are) wanting to use suspend/resume shou

[PATCH 1/3] powerpc: Stop passing ARCH=ppc64 to boot Makefile

2016-11-21 Thread Michael Ellerman
Back in 2005 when the ppc/ppc64 merge started, we used to build the kernel code in arch/powerpc but use the boot code from arch/ppc or arch/ppc64 depending on whether we were building for 32 or 64-bit. Originally we called the boot Makefile passing ARCH=$(OLDARCH), where OLDARCH was ppc or ppc64.

[PATCH 2/3] powerpc/boot: All uses of if_changed should depend on FORCE

2016-11-21 Thread Michael Ellerman
From: Michael Ellerman If we're using if_changed then we must depend on FORCE, so that if_changed gets a chance to check if something changed. Signed-off-by: Michael Ellerman --- arch/powerpc/boot/Makefile | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff

[PATCH 3/3] powerpc/boot: Fix rebuild when changing kernel endian

2016-11-21 Thread Michael Ellerman
From: Michael Ellerman Now that we don't set ARCH incorrectly when calling the boot Makefile, we can use the generic cpp_lds_S rule for converting our zImage.lds.S into zImage.lds. The main advantage of using the generic rule is that it correctly uses if_changed, which means we correctly regener

Re: [PATCH] ibmebus: Remove legacy suspend/resume support

2016-11-21 Thread Michael Ellerman
Lars-Peter Clausen writes: > On 11/21/2016 10:52 AM, Michael Ellerman wrote: >> Lars-Peter Clausen writes: >> >>> There are no ibmebus driver that make use of legacy suspend/resume. This >>> patch removes the support for it from ibmebus framework, new ibmebus driver >>> (as unlikely as they are

Re: [PATCH] powerpc: Set missing wakeup bit in LPCR on POWER9

2016-11-21 Thread Michael Ellerman
Benjamin Herrenschmidt writes: > There is a new bit, LPCR_PECEu0, which controls wakeup from STOP > states on Hypervisor Virtualization Interrupts (which happen to > also be all external interrupts in host or bare metal mode). > > It needs to be set or we will miss wakeups. > > Signed-off-by: Ben

Re: [PATCH] powerpc/xmon: Add support for dump in reverse

2016-11-21 Thread Michael Ellerman
Balbir Singh writes: > On 18/11/16 13:02, kbuild test robot wrote: >> Hi Balbir, >> >> [auto build test ERROR on powerpc/next] >> [also build test ERROR on v4.9-rc5 next-20161117] >> [if your patch is applied to the wrong git tree, please drop us a note to >> help improve the system] >> >> url

Re: [PATCH] powerpc: kprobes: invoke handlers directly

2016-11-21 Thread Michael Ellerman
"Naveen N. Rao" writes: > +#ifdef CONFIG_KPROBES > + if (kprobe_post_handler(regs)) > + return; > +#endif ... > +#ifdef CONFIG_KPROBES > + if (kprobe_handler(regs)) > + goto bail; > +#endif ... > +#ifdef CONFIG_KPROBES > + if (kprobe_post

Re: [RESEND][v1 0/3] Support memory cgroup hotplug

2016-11-21 Thread Michal Hocko
On Wed 16-11-16 10:44:58, Balbir Singh wrote: > In the absence of hotplug we use extra memory proportional to > (possible_nodes - online_nodes) * number_of_cgroups. PPC64 has a patch > to disable large consumption with large number of cgroups. This patch > adds hotplug support to memory cgroups and

Re: [Patch v7 6/7] irqchip: xilinx: Try to fall back if xlnx,kind-of-intr not provided

2016-11-21 Thread Zubair Lutfullah Kakakhel
Hi, On 11/18/2016 01:29 PM, Thomas Gleixner wrote: On Mon, 14 Nov 2016, Zubair Lutfullah Kakakhel wrote: The powerpc dts file does not have the xlnx,kind-of-intr property. Instead of erroring out, give a warning instead. And attempt to continue to probe the interrupt controller while assuming

Re: [Patch v7 6/7] irqchip: xilinx: Try to fall back if xlnx,kind-of-intr not provided

2016-11-21 Thread Marc Zyngier
On 21/11/16 14:05, Zubair Lutfullah Kakakhel wrote: > Hi, > > On 11/18/2016 01:29 PM, Thomas Gleixner wrote: >> On Mon, 14 Nov 2016, Zubair Lutfullah Kakakhel wrote: >> >>> The powerpc dts file does not have the xlnx,kind-of-intr property. >>> Instead of erroring out, give a warning instead. And a

Re: [Patch v7 6/7] irqchip: xilinx: Try to fall back if xlnx,kind-of-intr not provided

2016-11-21 Thread Zubair Lutfullah Kakakhel
Hi, On 11/21/2016 02:17 PM, Marc Zyngier wrote: On 21/11/16 14:05, Zubair Lutfullah Kakakhel wrote: Hi, On 11/18/2016 01:29 PM, Thomas Gleixner wrote: On Mon, 14 Nov 2016, Zubair Lutfullah Kakakhel wrote: The powerpc dts file does not have the xlnx,kind-of-intr property. Instead of erroring

Re: [Patch v7 6/7] irqchip: xilinx: Try to fall back if xlnx, kind-of-intr not provided

2016-11-21 Thread Thomas Gleixner
On Mon, 21 Nov 2016, Zubair Lutfullah Kakakhel wrote: > On 11/18/2016 01:29 PM, Thomas Gleixner wrote: > I'll elaborate on the commit message. > > The DT node in arch/powerpc for this driver is > > intc_0: interrupt-controller@8180 { > #interrupt-cells = <0x2>; >

[PATCH v2 1/2] powerpc: remove extraneous header from asm-prototypes.h

2016-11-21 Thread Naveen N. Rao
Commit 03465f899bda ("powerpc: Use kprobe blacklist for exception handlers") removed __kprobes annotation from some of the prototypes, but left the kprobes header include directive unchanged. Remove it as it is no longer needed. Signed-off-by: Naveen N. Rao --- New in v2. arch/powerpc/include/a

[PATCH v2 2/2] powerpc: kprobes: invoke handlers directly

2016-11-21 Thread Naveen N. Rao
... rather than through notify_die(), to reduce path taken for handling kprobes. Similar to commit 6f6343f53d13 ("kprobes/x86: Call exception handlers directly from do_int3/do_debug"). While at it, rename post_kprobe_handler() to kprobe_post_handler() for more uniform naming. Reported-by: Masami

[PATCH v3 1/6] powerpc/mm: update ptep_set_access_flag to not do full mm tlb flush

2016-11-21 Thread Aneesh Kumar K.V
When we are updating pte, we just need to flush the tlb mapping for that pte. Right now we do a full mm flush because we don't track page size. Update the interface to track the page size and use that to do the right tlb flush. Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/book3s/

[PATCH v3 2/6] powerpc/mm: Rename hugetlb-radix.h to hugetlb.h

2016-11-21 Thread Aneesh Kumar K.V
We will start moving some book3s specific hugetlb functions there. Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/book3s/64/{hugetlb-radix.h => hugetlb.h} | 4 ++-- arch/powerpc/include/asm/hugetlb.h| 2 +- 2 files changed, 3 insertions(+), 3 deletio

[PATCH v3 3/6] powerpc/mm/hugetlb: Handle hugepage size supported by hash config

2016-11-21 Thread Aneesh Kumar K.V
W.r.t hash page table config, we support 16MB and 16GB as the hugepage size. Update the hstate_get_psize to handle 16M and 16G. Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/book3s/64/hugetlb.h | 4 1 file changed, 4 insertions(+) diff --git a/arch/powerpc/include/asm/book3s

[PATCH v3 4/6] powerpc/mm/hugetlb: Switch hugetlb update to use huge_pte_update

2016-11-21 Thread Aneesh Kumar K.V
We want to switch pte_update to use va based tlb flush. In order to do that we need to track the page size. With hugetlb we currently don't have page size available in these functions. Hence switch hugetlb to use seperate functions for update. In later patch we will update hugetlb functions to take

[PATCH v3 5/6] powerpc/mm: update pte_update to not do full mm tlb flush

2016-11-21 Thread Aneesh Kumar K.V
When we are updating pte, we just need to flush the tlb mapping for that pte. Right now we do a full mm flush because we don't track page size. Update the interface to track the page size and use that to do the right tlb flush. Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/book3s/

[PATCH v3 6/6] powerpc/mm: Batch tlb flush when invalidating pte entries

2016-11-21 Thread Aneesh Kumar K.V
This will improve the task exit case, by batching tlb invalidates. Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/book3s/64/radix.h | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/arch/powerpc/include/asm/book3s/64/radix.h b/arch/powerpc/inclu

Re: [PATCH RESEND v4 02/15] scsi: don't use fc_bsg_job::request and fc_bsg_job::reply directly

2016-11-21 Thread Tyrel Datwyler
On 11/17/2016 07:09 AM, Johannes Thumshirn wrote: > Don't use fc_bsg_job::request and fc_bsg_job::reply directly, but use > helper variables bsg_request and bsg_reply. This will be helpfull when > transitioning to bsg-lib. > > Signed-off-by: Johannes Thumshirn > Reviewed-by: Hannes Reinecke > -

Re: [PATCH v3 6/6] powerpc/mm: Batch tlb flush when invalidating pte entries

2016-11-21 Thread Benjamin Herrenschmidt
On Tue, 2016-11-22 at 00:03 +0530, Aneesh Kumar K.V wrote: > +   /* > +    * If we are trying to clear the pte, we can skip > +    * the below sequence and batch the tlb flush. The > +    * tlb flush batching is done by mmu gather code > +

[RFC/PATCH] powernv: Handle wakeup from stop due to SRESET

2016-11-21 Thread Gautham R. Shenoy
From: "Gautham R. Shenoy" The existing code doesn't handle the case when CPU which was in a hardware-idle state (nap,sleep,winkle on POWER8 and various stop states on POWER9) gets woken up due to a System Reset interrupt. This patch checks if the CPU was woken up due to System Reset, in which ca

[PATCH 0/2] Add device-specific VPD timeout

2016-11-21 Thread Matthew R. Ochs
This small patch series introduces support for a driver to increase the VPD wait timeout for devices with slower interfaces. The series is based on v4.9-rc6 and is intended for v4.10. Matthew R. Ochs (2): PCI: Add pci_set_vpd_timeout() to set VPD access timeout cxl: Set VPD timeout to avoid a

[PATCH 1/2] PCI: Add pci_set_vpd_timeout() to set VPD access timeout

2016-11-21 Thread Matthew R. Ochs
The PCI core uses a fixed 50ms timeout when waiting for VPD accesses to complete. When an access does not complete within this period, a warning is logged and an error returned to the caller. While this default timeout is valid for most hardware, some devices can experience longer access delays un

[PATCH 2/2] cxl: Set VPD timeout to avoid access failures

2016-11-21 Thread Matthew R. Ochs
Some IBM CXL devices can take up to ~120ms to complete a VPD access transaction when under heavy load. With an existing default VPD timeout of 50ms, reads/writes can fail despite there not being an issue with the underlying hardware. To avoid these false failures, increase the VPD wait timeout for

Re: [PATCH v2 2/4] usb: dwc2: Add binding for AHB burst

2016-11-21 Thread Christian Lamparter
Hello John, On Monday, November 21, 2016 12:16:31 PM CET John Youn wrote: > On 11/18/2016 12:18 PM, Christian Lamparter wrote: > > On Friday, November 18, 2016 8:16:08 AM CET Rob Herring wrote: > >> On Thu, Nov 17, 2016 at 04:35:10PM +0100, Stefan Wahren wrote: > >>> Hi John, > >>> > >>> Am 17.11.

Re: [PATCH 1/2] PCI: Add pci_set_vpd_timeout() to set VPD access timeout

2016-11-21 Thread Bjorn Helgaas
Hi Matthew, On Mon, Nov 21, 2016 at 03:09:49PM -0600, Matthew R. Ochs wrote: > The PCI core uses a fixed 50ms timeout when waiting for VPD accesses to > complete. When an access does not complete within this period, a warning > is logged and an error returned to the caller. > > While this default

Re: [PATCH v10 04/10] kexec_file: Add support for purgatory built as PIE.

2016-11-21 Thread Thiago Jung Bauermann
Hello Dave, Thanks for your review. Am Sonntag, 20. November 2016, 10:45:46 BRST schrieb Dave Young: > On 11/10/16 at 01:27am, Thiago Jung Bauermann wrote: > > powerpc's purgatory.ro has 12 relocation types when built as > > a relocatable object. To implement support for them requires > > arch_ke

Re: [PATCH kernel v5 3/6] vfio/spapr: Postpone allocation of userspace version of TCE table

2016-11-21 Thread David Gibson
On Fri, Nov 11, 2016 at 11:32:14PM +1100, Alexey Kardashevskiy wrote: > The iommu_table struct manages a hardware TCE table and a vmalloc'd > table with corresponding userspace addresses. Both are allocated when > the default DMA window is created and this happens when the very first > group is att

Re: [PATCH 1/2] PCI: Add pci_set_vpd_timeout() to set VPD access timeout

2016-11-21 Thread Andrew Donnellan
On 22/11/16 09:05, Bjorn Helgaas wrote: Hi Matthew, On Mon, Nov 21, 2016 at 03:09:49PM -0600, Matthew R. Ochs wrote: The PCI core uses a fixed 50ms timeout when waiting for VPD accesses to complete. When an access does not complete within this period, a warning is logged and an error returned t

Re: [RESEND][v1 0/3] Support memory cgroup hotplug

2016-11-21 Thread Balbir Singh
On 22/11/16 01:03, Michal Hocko wrote: > On Wed 16-11-16 10:44:58, Balbir Singh wrote: >> In the absence of hotplug we use extra memory proportional to >> (possible_nodes - online_nodes) * number_of_cgroups. PPC64 has a patch >> to disable large consumption with large number of cgroups. This patc

Re: [RESEND] [PATCH v1 1/3] Add basic infrastructure for memcg hotplug support

2016-11-21 Thread Balbir Singh
>> >> The iterator internally takes rcu_read_lock() to avoid any side-effects >> of cgroups added/removed. I suspect you are also suggesting using >> get_online_mems() >> around each call to for_each_online_node >> >> My understanding so far is >> >> 1. invalidate_reclaim_iterators should be safe

Re: [PATCH 2/2] cxl: Set VPD timeout to avoid access failures

2016-11-21 Thread Andrew Donnellan
On 22/11/16 08:10, Matthew R. Ochs wrote: Some IBM CXL devices can take up to ~120ms to complete a VPD access Which devices? transaction when under heavy load. With an existing default VPD timeout of 50ms, reads/writes can fail despite there not being an issue with the underlying hardware. T

Re: [PATCH 2/3] powerpc/boot: All uses of if_changed should depend on FORCE

2016-11-21 Thread Andrew Donnellan
On 21/11/16 21:14, Michael Ellerman wrote: From: Michael Ellerman Not the most publicly resolvable of domains :) -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

Re: [1/2] powerpc: fix graceful debugger recovery

2016-11-21 Thread Michael Ellerman
On Tue, 2016-11-08 at 12:14:44 UTC, Nicholas Piggin wrote: > When exiting xmon with 'x' (exit and recover), oops_begin bails > out immediately, but die then calls __die() and oops_end(), which > cause a lot of bad things to happen. > > If the debugger was attached then went to graceful recovery, e

Re: [2/2] powerpc: fix second nested oops hang

2016-11-21 Thread Michael Ellerman
On Tue, 2016-11-08 at 12:14:45 UTC, Nicholas Piggin wrote: > When ending an oops, don't clear die_owner unless the nest count > went to zero. This prevents a second nested oops from hanging forever > on the die_lock. > > Signed-off-by: Nicholas Piggin Applied to powerpc next, thanks. https://gi

Re: [1/3] powerpc/pseries: Move vio.c into platforms pseries

2016-11-21 Thread Michael Ellerman
On Tue, 2016-11-15 at 03:47:42 UTC, Michael Ellerman wrote: > vio.c is pseries only code, so move it in there. > > Signed-off-by: Michael Ellerman Series applied to powerpc next. https://git.kernel.org/powerpc/c/139ac5afe30bcad3e0a8064a2fac60 cheers

Re: [6/7] powerpc: switch to using thin archives if COMPILE_TEST is set

2016-11-21 Thread Michael Ellerman
On Wed, 2016-10-19 at 03:15:59 UTC, Nicholas Piggin wrote: > Enable thin archives build for powerpc when COMPILE_TEST is set. > Thin archives are explained in this commit: > > a5967db9af51a84f5e181600954714a9e4c69f1f > > This is a gradual way to introduce the option to testers. > > Some change

Re: powerpc/pseries: Correct possible read beyond dlpar sysfs buffer

2016-11-21 Thread Michael Ellerman
On Thu, 2016-11-17 at 16:38:10 UTC, Nathan Fontenot wrote: > The pasrsing of data written to the dlpar file in sysfs does not correctly > account for the possibility of reading past the end of the buffer. The code > assumes that all pieces of the command witten to the sysfs file are present > in th

Re: cxl: Do adapter fence check before handling afu interrupt

2016-11-21 Thread Michael Ellerman
On Wed, 2016-11-16 at 14:09:33 UTC, Vaibhav Jain wrote: > If an afu interrupt is in flight when an eeh error is triggered the > control still reaches the function native_irq_multiplexed and the > PE-Handle read from the CXL_PSL_PEHandle_An register is 0x. The > function then erroneously assumes

Re: cxl: Fix error handling

2016-11-21 Thread Michael Ellerman
On Sun, 2016-10-30 at 21:34:51 UTC, Christophe Jaillet wrote: > 'cxl_dev_context_init()' returns an error pointer in case of error, not > NULL. So test it with IS_ERR. > > Signed-off-by: Christophe JAILLET > Reviewed-by: Andrew Donnellan > Acked-by: Frederic Barrat > Acked-by: Ian Munsie Appl

Re: [RESEND] cxl: Fix coredump generation when cxl_get_fd() is used

2016-11-21 Thread Michael Ellerman
On Mon, 2016-11-14 at 08:58:54 UTC, Frederic Barrat wrote: > If a process dumps core while owning a cxl file descriptor obtained > from an AFU driver (e.g. cxlflash) through the cxl_get_fd() API, the > following error occurs: > > [ 868.027591] Unable to handle kernel paging request for data at ad

Re: cxl: Fix error handling

2016-11-21 Thread Michael Ellerman
On Sun, 2016-10-30 at 21:40:47 UTC, Christophe Jaillet wrote: > 'cxl_dev_context_init()' returns an error pointer in case of error, not > NULL. So test it with IS_ERR. > > Signed-off-by: Christophe JAILLET > Reviewed-by: Andrew Donnellan > Acked-by: Frederic Barrat > Acked-by: Ian Munsie Appl

Re: cxl: Fix memory allocation failure test

2016-11-21 Thread Michael Ellerman
On Sun, 2016-10-30 at 19:35:57 UTC, Christophe Jaillet wrote: > 'cxl_context_alloc()' does not return an error pointer. It is just a > shortcut for a call to 'kzalloc' with 'sizeof(struct cxl_context)' as the > size parameter. > > So its return value should be compared with NULL. > While fixing it

Re: powerpc/64: get rid of MIN_HUGEPTE_SHIFT

2016-11-21 Thread Michael Ellerman
On Wed, 2016-09-21 at 14:49:27 UTC, Christophe Leroy wrote: > MIN_HUGEPTE_SHIFT hasn't been used since commit d1837cba5d5d5 > ("powerpc/mm: Cleanup initialization of hugepages on powerpc") > > Signed-off-by: Christophe Leroy Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/c05f

Re: powerpc/lib: Fix randconfig build failure in sstep.c

2016-11-21 Thread Michael Ellerman
On Fri, 2016-11-18 at 00:57:18 UTC, Michael Ellerman wrote: > Under some configs we need to explicitly include cpu_has_feature.h, > otherwise we fail with: > > arch/powerpc/lib/sstep.c:1992:7: error: implicit declaration of function > 'cpu_has_feature' > > Signed-off-by: Michael Ellerman App

Re: powerpc: Fix old style declaration GCC warnings

2016-11-21 Thread Michael Ellerman
On Thu, 2016-11-17 at 16:20:24 UTC, Tobias Klauser wrote: > Fix two [-Wold-style-declaration] GCC warnings by moving the inline > keyword before the return type. > > Signed-off-by: Tobias Klauser Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/60d862e531f310a32e272528ad4e04 c

Re: powerpc/mce: Remove unused but set variable

2016-11-21 Thread Michael Ellerman
On Thu, 2016-11-17 at 16:19:21 UTC, Tobias Klauser wrote: > Remove the unused but set variable srr1 in save_mce_event() to > fix the following GCC warning when building with 'W=1': > > arch/powerpc/kernel/mce.c:75:11: warning: variable 'srr1' set but not used > [-Wunused-but-set-variable] > >

Re: powerpc/configs: Turn on PPC crypto implementations in the server defconfigs

2016-11-21 Thread Michael Ellerman
On Wed, 2016-11-02 at 10:06:17 UTC, Michael Ellerman wrote: > These are the PPC optimised versions of various crypto algorithms, so we > should turn them on by default to get test coverage. > > Suggested-by: Nicholas Piggin > Signed-off-by: Michael Ellerman Applied to powerpc next. https://git

Re: powerpc/64: Used named initialisers for ibm_pa_features

2016-11-21 Thread Michael Ellerman
On Fri, 2016-10-28 at 06:39:53 UTC, Michael Ellerman wrote: > The ibm_pa_features array consists of structures that describe which bit > and byte in the ibm,pa-features property toggles one or more flags in > either the CPU, MMU, or user visible feature flags. > > Each one consists of 7 values, wh

Re: [PATCH 1/2] PCI: Add pci_set_vpd_timeout() to set VPD access timeout

2016-11-21 Thread Matthew R. Ochs
Hi Bjorn, > On Nov 21, 2016, at 4:05 PM, Bjorn Helgaas wrote: > > Hi Matthew, > > On Mon, Nov 21, 2016 at 03:09:49PM -0600, Matthew R. Ochs wrote: >> The PCI core uses a fixed 50ms timeout when waiting for VPD accesses to >> complete. When an access does not complete within this period, a warni

Re: powerpc/oops: fix pr_cont() issues in instruction dump

2016-11-21 Thread Michael Ellerman
On Fri, 2016-11-04 at 06:20:40 UTC, Andrew Donnellan wrote: > Since the KERN_CONT changes, the current code in show_instructions() prints > out a whole bunch of unnecessary newlines. Change occurrences of > printk("\n") to pr_cont("\n"). While we're here, change all the other > cases of printk(KERN

Re: [v3] powerpc/mm/radix: Invalidate ERAT on tlbiel for POWER9 DD1

2016-11-21 Thread Michael Ellerman
On Fri, 2016-11-18 at 03:08:56 UTC, Michael Neuling wrote: > On POWER9 DD1, when we do a local TLB invalidate we also need to explicitly > invalidate the ERAT. > > Signed-off-by: Michael Neuling Applied to powerpc fixes, thanks. https://git.kernel.org/powerpc/c/96ed1fe511a8b4948e53f3bad431d8 c

Re: powerpc/mm: Update hid register on secondaries too

2016-11-21 Thread Michael Ellerman
On Thu, 2016-11-17 at 10:16:23 UTC, "Aneesh Kumar K.V" wrote: > We need to update on secondaries for the selected MMU mode. > > Fixes: ad410674f5606a ("powerpc/mm: Update the HID bit when switching from > radix to hash") > > Reported-by: Michael Neuling > Signed-off-by: Aneesh Kumar K.V Appli

Re: [PATCH 2/2] cxl: Set VPD timeout to avoid access failures

2016-11-21 Thread Matthew R. Ochs
> On Nov 21, 2016, at 6:32 PM, Andrew Donnellan > wrote: > On 22/11/16 08:10, Matthew R. Ochs wrote: >> Some IBM CXL devices can take up to ~120ms to complete a VPD access > > Which devices? Flash GT

Re: [PATCH v10 04/10] kexec_file: Add support for purgatory built as PIE.

2016-11-21 Thread Dave Young
On 11/21/16 at 09:49pm, Thiago Jung Bauermann wrote: > Hello Dave, > > Thanks for your review. > > Am Sonntag, 20. November 2016, 10:45:46 BRST schrieb Dave Young: > > On 11/10/16 at 01:27am, Thiago Jung Bauermann wrote: > > > powerpc's purgatory.ro has 12 relocation types when built as > > > a r

Re: [PATCH v3 6/6] powerpc/mm: Batch tlb flush when invalidating pte entries

2016-11-21 Thread Aneesh Kumar K.V
Benjamin Herrenschmidt writes: > On Tue, 2016-11-22 at 00:03 +0530, Aneesh Kumar K.V wrote: >> +   /* >> +    * If we are trying to clear the pte, we can skip >> +    * the below sequence and batch the tlb flush. The >> +    * tlb flush batching is

Re: [PATCH v3 4/6] powerpc/mm/hugetlb: Switch hugetlb update to use huge_pte_update

2016-11-21 Thread Michael Ellerman
"Aneesh Kumar K.V" writes: > We want to switch pte_update to use va based tlb flush. In order to do that we > need to track the page size. With hugetlb we currently don't have page size > available in these functions. Hence switch hugetlb to use seperate functions > for update. In later patch we

Re: [PATCH v3 1/6] powerpc/mm: update ptep_set_access_flag to not do full mm tlb flush

2016-11-21 Thread Balbir Singh
On 22/11/16 05:33, Aneesh Kumar K.V wrote: > When we are updating pte, we just need to flush the tlb mapping for > that pte. Right now we do a full mm flush because we don't track page > size. Update the interface to track the page size and use that to > do the right tlb flush. > > Signed-off-by

Re: [PATCH kernel v5 4/6] vfio/spapr: Postpone default window creation

2016-11-21 Thread David Gibson
On Fri, Nov 11, 2016 at 11:32:15PM +1100, Alexey Kardashevskiy wrote: > As mentioned in the previous patch, we are going to allow the userspace > to configure container in one memory context and pass container fd to > another so we are postponing memory allocations accounted against > the locked me

Re: [PATCH kernel v5 5/6] vfio/spapr: Reference mm in tce_container

2016-11-21 Thread David Gibson
On Thu, Nov 17, 2016 at 06:39:41PM +1100, Alexey Kardashevskiy wrote: > On 11/11/16 23:32, Alexey Kardashevskiy wrote: > > In some situations the userspace memory context may live longer than > > the userspace process itself so if we need to do proper memory context > > cleanup, we better have tce_

Re: [PATCH v2 2/4] usb: dwc2: Add binding for AHB burst

2016-11-21 Thread John Youn
On 11/21/2016 1:10 PM, Christian Lamparter wrote: > Hello John, > > On Monday, November 21, 2016 12:16:31 PM CET John Youn wrote: >> On 11/18/2016 12:18 PM, Christian Lamparter wrote: >>> On Friday, November 18, 2016 8:16:08 AM CET Rob Herring wrote: On Thu, Nov 17, 2016 at 04:35:10PM +0100,

Re: [PATCH kernel v5 5/6] vfio/spapr: Reference mm in tce_container

2016-11-21 Thread Alexey Kardashevskiy
On 22/11/16 13:38, David Gibson wrote: > On Thu, Nov 17, 2016 at 06:39:41PM +1100, Alexey Kardashevskiy wrote: >> On 11/11/16 23:32, Alexey Kardashevskiy wrote: >>> In some situations the userspace memory context may live longer than >>> the userspace process itself so if we need to do proper memor

[PATCH] powerpc: add more asm-prototypes.h declarations for asm exports

2016-11-21 Thread Nicholas Piggin
After patch 4efca4ed0 ("kbuild: modversions for EXPORT_SYMBOL() for asm"), asm exports can get modversions CRCs generated if they have C definitions in asm-prototypes.h. This patch adds missing definitions for 32 and 64 bit allmodconfig builds. Fixes: 9445aa1a3062 ("ppc: move exports to definition

Re: [PATCH 4/7] powerpc/64: tool to check head sections location sanity

2016-11-21 Thread Nicholas Piggin
On Tue, 15 Nov 2016 11:55:26 +1100 Michael Ellerman wrote: > Nicholas Piggin writes: > > > diff --git a/arch/powerpc/Makefile.postlink b/arch/powerpc/Makefile.postlink > > index 1725e64..b8fe12b 100644 > > --- a/arch/powerpc/Makefile.postlink > > +++ b/arch/powerpc/Makefile.postlink > > @@ -24,

[PATCH] cpuidle/powernv: staticise powernv_idle_driver

2016-11-21 Thread Andrew Donnellan
powernv_idle_driver isn't exported, it can be made static. Found by sparse. Signed-off-by: Andrew Donnellan --- drivers/cpuidle/cpuidle-powernv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpuidle/cpuidle-powernv.c b/drivers/cpuidle/cpuidle-powernv.c index 7fe44

Re: [PATCH v2 2/2] powerpc: kprobes: invoke handlers directly

2016-11-21 Thread Masami Hiramatsu
Hello Naveen, On Mon, 21 Nov 2016 22:36:41 +0530 "Naveen N. Rao" wrote: > ... rather than through notify_die(), to reduce path taken for handling > kprobes. Similar to commit 6f6343f53d13 ("kprobes/x86: Call exception > handlers directly from do_int3/do_debug"). > > While at it, rename post_kpr

Re: [PATCH 4/7] powerpc/64: tool to check head sections location sanity

2016-11-21 Thread Michael Ellerman
Nicholas Piggin writes: > On Tue, 15 Nov 2016 11:55:26 +1100 > Michael Ellerman wrote: >> Nicholas Piggin writes: >> > diff --git a/arch/powerpc/tools/head_check.sh >> > b/arch/powerpc/tools/head_check.sh >> > new file mode 100755 >> > index 000..9635fe7 >> > --- /dev/null >> > +++ b/arch/p

Re: [PATCH v3 1/6] powerpc/mm: update ptep_set_access_flag to not do full mm tlb flush

2016-11-21 Thread Aneesh Kumar K.V
Balbir Singh writes: > On 22/11/16 05:33, Aneesh Kumar K.V wrote: >> When we are updating pte, we just need to flush the tlb mapping for >> that pte. Right now we do a full mm flush because we don't track page >> size. Update the interface to track the page size and use that to >> do the right tl

Re: [PATCH v10 04/10] kexec_file: Add support for purgatory built as PIE.

2016-11-21 Thread Michael Ellerman
Thiago Jung Bauermann writes: > Am Sonntag, 20. November 2016, 10:45:46 BRST schrieb Dave Young: >> On 11/10/16 at 01:27am, Thiago Jung Bauermann wrote: >> > powerpc's purgatory.ro has 12 relocation types when built as >> > a relocatable object. To implement support for them requires >> > arch_kex

Re: [PATCH 2/3] powerpc/boot: All uses of if_changed should depend on FORCE

2016-11-21 Thread Michael Ellerman
Andrew Donnellan writes: > On 21/11/16 21:14, Michael Ellerman wrote: >> From: Michael Ellerman > > Not the most publicly resolvable of domains :) Fudge. Will fix before committing :} cheers

Re: [PATCH v10 04/10] kexec_file: Add support for purgatory built as PIE.

2016-11-21 Thread Dave Young
Hi Michael On 11/22/16 at 05:01pm, Michael Ellerman wrote: > Thiago Jung Bauermann writes: > > Am Sonntag, 20. November 2016, 10:45:46 BRST schrieb Dave Young: > >> On 11/10/16 at 01:27am, Thiago Jung Bauermann wrote: > >> > powerpc's purgatory.ro has 12 relocation types when built as > >> > a rel

Re: [PATCH v2 2/2] powerpc: kprobes: invoke handlers directly

2016-11-21 Thread Naveen N. Rao
On 2016/11/22 02:25PM, Masami Hiramatsu wrote: > Hello Naveen, Hi Masami, > > On Mon, 21 Nov 2016 22:36:41 +0530 > "Naveen N. Rao" wrote: > > > ... rather than through notify_die(), to reduce path taken for handling > > kprobes. Similar to commit 6f6343f53d13 ("kprobes/x86: Call exception > >

Re: fsldma: t4240qds: drop "SG" CAP for DMA3

2016-11-21 Thread Scott Wood
On Mon, Nov 21, 2016 at 12:52:49PM +0800, yanjiang@windriver.com wrote: > From: Yanjiang Jin > > T4240QDS DMA controller uses the external DMA control signals to start or > restart a paused DMA transfer, acknowledge a DMA transfer in progress and > also indicates a transfer completion. > "sca

Re: [PATCH kernel v5 4/6] vfio/spapr: Postpone default window creation

2016-11-21 Thread Alexey Kardashevskiy
On 22/11/16 13:50, David Gibson wrote: > On Fri, Nov 11, 2016 at 11:32:15PM +1100, Alexey Kardashevskiy wrote: >> As mentioned in the previous patch, we are going to allow the userspace >> to configure container in one memory context and pass container fd to >> another so we are postponing memory a

Re: [PATCH kernel v5 5/6] vfio/spapr: Reference mm in tce_container

2016-11-21 Thread Alexey Kardashevskiy
On 22/11/16 14:49, Alexey Kardashevskiy wrote: > On 22/11/16 13:38, David Gibson wrote: >> On Thu, Nov 17, 2016 at 06:39:41PM +1100, Alexey Kardashevskiy wrote: >>> On 11/11/16 23:32, Alexey Kardashevskiy wrote: In some situations the userspace memory context may live longer than the user

Re: fsl_pamu: erratum a007907 should be applied on all versions of E6500 chips.

2016-11-21 Thread Scott Wood
On Thu, Oct 27, 2016 at 12:50:44AM +0800, jun wrote: > Signed-off-by: jun > --- > drivers/iommu/fsl_pamu.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/iommu/fsl_pamu.c b/drivers/iommu/fsl_pamu.c > index db3a1cd..a8fe503 100644 > --- a/drivers/iommu/fsl_pamu.c