[PATCH v2 0/3] machine check handling improvements

2017-07-18 Thread Nicholas Piggin
This is a few patches to improve machine check reporting and recovery. Since last time: - improved patch 1 according to review comments: https://patchwork.ozlabs.org/patch/785240/ - In patch 3 be a bit smarter about when to use die() and when to go straight to firmware reboot. Nicholas Pigg

RE: [PATCH 2/3] soc/fsl/qe: only apply QE_General4 workaround on affected SoCs

2017-07-18 Thread Qiang Zhao
Hi Valentin, This patch you added make the compiling issue on armv8. Could you send another patch to resolve it? CC drivers/soc/samsung/pm_domains.o CC drivers/soc/sunxi/sunxi_sram.o CC drivers/soc/renesas/rcar-rst.o CC drivers/soc/fsl/qe/qe_io.o drivers/soc/fsl/qe/qe.c:

Re: [PATCH] cpufreq: Convert to using %pOF instead of full_name

2017-07-18 Thread Viresh Kumar
On 18-07-17, 16:42, Rob Herring wrote: > Now that we have a custom printf format specifier, convert users of > full_name to use %pOF instead. This is preparation to remove storing > of the full path string for each node. > > Signed-off-by: Rob Herring > Cc: "Rafael J. Wysocki" > Cc: Viresh Kumar

Re: [PATCH] i2c: Convert to using %pOF instead of full_name

2017-07-18 Thread Maxime Ripard
On Tue, Jul 18, 2017 at 04:43:06PM -0500, Rob Herring wrote: > Now that we have a custom printf format specifier, convert users of > full_name to use %pOF instead. This is preparation to remove storing > of the full path string for each node. > > Signed-off-by: Rob Herring > Cc: Haavard Skinnemoe

Re: [PATCH] soc: Convert to using %pOF instead of full_name

2017-07-18 Thread Krzysztof Kozlowski
On Tue, Jul 18, 2017 at 04:43:29PM -0500, Rob Herring wrote: > Now that we have a custom printf format specifier, convert users of > full_name to use %pOF instead. This is preparation to remove storing > of the full path string for each node. > > Signed-off-by: Rob Herring > Cc: Scott Wood > Cc:

Re: [PATCH 2/2] powernv/powerpc: Clear PECE1 in LPCR via stop-api only on Hotplug

2017-07-18 Thread Nicholas Piggin
On Wed, 19 Jul 2017 10:34:59 +0530 Gautham R Shenoy wrote: > Hello Nicholas, > > On Wed, Jul 19, 2017 at 12:14:12PM +1000, Nicholas Piggin wrote: > > Thanks for working on these patches. We really need to get this stuff > > merged and tested asap :) > > > > > On Tue, 18 Jul 2017 19:58:49 +053

Re: [PATCH 2/2] powernv/powerpc: Clear PECE1 in LPCR via stop-api only on Hotplug

2017-07-18 Thread Gautham R Shenoy
Hello Nicholas, On Wed, Jul 19, 2017 at 12:14:12PM +1000, Nicholas Piggin wrote: > Thanks for working on these patches. We really need to get this stuff > merged and tested asap :) > > On Tue, 18 Jul 2017 19:58:49 +0530 [..snip..] > > diff --git a/arch/powerpc/platforms/powernv/smp.c > > b/arc

[PATCH] powerpc/tm: fix TM SPRs in code dump file

2017-07-18 Thread Gustavo Romero
Currently flush_tmregs_to_thread() does not update accordingly the thread structures from live state before a core dump rendering wrong values of THFAR, TFIAR, and TEXASR in core dump files. That commit fixes it by copying from live state to the appropriate thread structures when it's necessary.

[PATCH 12/24] powerpc/mm: Fix reporting of kernel execute faults

2017-07-18 Thread Benjamin Herrenschmidt
We currently test for is_exec and DSISR_PROTFAULT but that doesn't make sense as this is the wrong error bit to test for an execute permission failure. In fact, we had code that would return early if we had an exec fault in kernel mode so I think that was just dead code anyway. Finally the locati

[PATCH 16/24] powerpc/mm: Cosmetic fix to page fault accounting

2017-07-18 Thread Benjamin Herrenschmidt
No need to break those lines, they aren't that long Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/mm/fault.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/mm/fault.c b/arch/powerpc/mm/fault.c index 5ccbf30d8aef..bd5d668b47ff 100644 --- a/arch/pow

[PATCH 22/24] powerpc/mm: Don't lose "major" fault indication on retry

2017-07-18 Thread Benjamin Herrenschmidt
If the first iteration returns VM_FAULT_MAJOR but the second one doesn't, we fail to account the fault as a major fault. This fixes it and brings the code in line with x86. Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/mm/fault.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(

[PATCH 17/24] powerpc/mm: Move the DSISR_PROTFAULT sanity check

2017-07-18 Thread Benjamin Herrenschmidt
This has a page of comment explaining what's going on right in the middle of do_page_fault() which makes things a bit hard to follow. Move it to a helper instead. Also do the test earlier as there's no point waiting until after we found the VMA. Signed-off-by: Benjamin Herrenschmidt --- arch/pow

[PATCH 24/24] powerpc: Remove old unused icswx based coprocessor support

2017-07-18 Thread Benjamin Herrenschmidt
We have a whole pile of unused code to maintain the ACOP register, allocate coprocessor PIDs and handle ACOP faults. This mechanism was used for the HFI adapter on POWER7 which is dead and gone and whose driver never went upstream. It was used on some A2 core based stuff that also never saw the lig

[PATCH 19/24] powerpc/mm: Add a bunch of (un)likely annotations to do_page_fault

2017-07-18 Thread Benjamin Herrenschmidt
Mostly for the failure cases Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/mm/fault.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/arch/powerpc/mm/fault.c b/arch/powerpc/mm/fault.c index c5859ffd3a96..f1abdc90e330 100644 --- a/arch/powerpc/m

[PATCH 20/24] powerpc/mm: Set fault flags earlier

2017-07-18 Thread Benjamin Herrenschmidt
Move out the code that sets FAULT_FLAG_WRITE so the block that check access permissions can be extracted. While at it also set FAULT_FLAG_INSTRUCTION which will be used for protection keys. Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/mm/fault.c | 5 - 1 file changed, 4 insertions(

[PATCH 23/24] powerpc/mm: Cleanup check for stack expansion

2017-07-18 Thread Benjamin Herrenschmidt
When hitting below a VM_GROWSDOWN vma (typically growing the stack), we check whether it's a valid stack-growing instruction and we check the distance to GPR1. This is largely open coded with lots of comments, so move it out to a helper. While at it, make store_update_sp a boolean. Signed-off-by:

[PATCH 21/24] powerpc/mm: Move page fault VMA access checks to a helper

2017-07-18 Thread Benjamin Herrenschmidt
Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/mm/fault.c | 57 - 1 file changed, 33 insertions(+), 24 deletions(-) diff --git a/arch/powerpc/mm/fault.c b/arch/powerpc/mm/fault.c index 6a938fc8c5fb..2291686d24c6 100644 --- a/arch/powerpc/mm

[PATCH 15/24] powerpc/mm: Move CMO accounting out of do_page_fault into a helper

2017-07-18 Thread Benjamin Herrenschmidt
It makes do_page_fault() more readable. No functional change. Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/mm/fault.c | 29 ++--- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/arch/powerpc/mm/fault.c b/arch/powerpc/mm/fault.c index 0b217947d34f

[PATCH 14/24] powerpc/mm: Rework mm_fault_error()

2017-07-18 Thread Benjamin Herrenschmidt
First, handle the normal retry failure in do_page_fault itself, since it's a simple return statement. That allows us to remove the "continue" special return code from mm_fault_error(). Once that's done, we can have an implementation much closer to x86 where we only call mm_fault_error() if VM_FAUL

[PATCH 13/24] powerpc/mm: Make bad_area* helper functions

2017-07-18 Thread Benjamin Herrenschmidt
Instead of goto labels, instead call those functions and return. This gets us closer to x86 and allows us to shring do_page_fault() even more. The main difference with x86 is that those function return a value which we then return from do_page_fault(). That value is our return value from do_page_

[PATCH 18/24] powerpc/mm: Move/simplify faulthandler_disabled() and !mm check

2017-07-18 Thread Benjamin Herrenschmidt
Do the check before we re-enable interrupts and clean the code up a bit. Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/mm/fault.c | 27 +-- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/arch/powerpc/mm/fault.c b/arch/powerpc/mm/fault.c index 6f3

[PATCH 11/24] powerpc/mm: Simplify returns from __do_page_fault

2017-07-18 Thread Benjamin Herrenschmidt
Now that we moved the exception state handling to a wrapper, we can just directly return rather than "goto bail" Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/mm/fault.c | 39 --- 1 file changed, 16 insertions(+), 23 deletions(-) diff --git a/arch/po

[PATCH 09/24] powerpc/mm: Overhaul handling of bad page faults

2017-07-18 Thread Benjamin Herrenschmidt
A bad page fault is when the HW signals an error such as a bad copy/paste, an AMO error, or some other type of error that will not be fixed by updating the PTE. Use a helper page_fault_is_bad() to check for bad page faults thus removing the per-processor family open-coding in __do_page_fault() and

[PATCH 08/24] powerpc/mm: Move error_code checks for bad faults earlier

2017-07-18 Thread Benjamin Herrenschmidt
There's no point looking for the VMA etc.. when we already know we are going to fail. This adds some code to set "code" for the si_code but that will be gone in subsequent patches. Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/mm/fault.c | 35 --- 1 file

[PATCH 10/24] powerpc/mm: Move debugger check to notify_page_fault()

2017-07-18 Thread Benjamin Herrenschmidt
unclutters the main path Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/mm/fault.c | 21 - 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/arch/powerpc/mm/fault.c b/arch/powerpc/mm/fault.c index 4470500b4871..2f825ae68f20 100644 --- a/arch/powerpc/mm/fa

[PATCH 07/24] powerpc/mm: Move out definition of CPU specific is_write bits

2017-07-18 Thread Benjamin Herrenschmidt
Define a common page_fault_is_write() helper and use it Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/mm/fault.c | 18 +++--- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/arch/powerpc/mm/fault.c b/arch/powerpc/mm/fault.c index f257965b54b5..26ec0dd4f419 100

[PATCH 06/24] powerpc/mm: Use symbolic constants for filtering SRR1 bits on ISIs

2017-07-18 Thread Benjamin Herrenschmidt
This uses the newly defined constants for this rather than open-coded numbers. There is a side effect on 64-bit which is to pass through some of the new P9 bits which we didn't before. Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/kernel/exceptions-64s.S | 2 +- arch/powerpc/kernel/head

[PATCH 04/24] powerpc/mm: Update definitions of DSISR bits

2017-07-18 Thread Benjamin Herrenschmidt
This updates the definitions for the various DSISR bits to match both some historical stuff and to match new bits on POWER9. In addition, we define some masks corresponding to the "bad" faults on Book3S, and some masks corresponding to the bits that match between DSISR and SRR1 for a DSI and an IS

[PATCH 03/24] powerpc/6xx: Handle DABR match before calling do_page_fault

2017-07-18 Thread Benjamin Herrenschmidt
On legacy 6xx 32-bit procesors, we checked for the DABR match bit in DSISR from do_page_fault(), in the middle of a pile of ifdef's because all other CPU types do it in assembly prior to calling do_page_fault. Fix that. Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/kernel/entry_32.S | 1

[PATCH 05/24] powerpc/mm: Update bits used to skip hash_page

2017-07-18 Thread Benjamin Herrenschmidt
We test a number of bits from DSISR/SRR1 before deciding to call hash_page(). If any of these is set, we go directly to do_page_fault() as the bit indicate a fault that needs to be handled there (no hashing needed). This updates the current open-coded masks to use the new DSISR definitions. This

[PATCH 02/24] powerpc/mm: Pre-filter SRR1 bits before do_page_fault()

2017-07-18 Thread Benjamin Herrenschmidt
By filtering the relevant SRR1 bits in the assembly rather than in do_page_fault() itself, we avoid a conditional branch (since we already come from different path for data and instruction faults). This will allow more simplifications later Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc

[PATCH 01/24] powerpc/mm: Move exception_enter/exit to a do_page_fault wrapper

2017-07-18 Thread Benjamin Herrenschmidt
This will allow simplifying the returns from do_page_fault Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/mm/fault.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/mm/fault.c b/arch/powerpc/mm/fault.c index 4c422632047b..faddc87d0205 1006

[PATCH v2 4/4] powerpc/mm/radix: Workaround prefetch issue with KVM

2017-07-18 Thread Benjamin Herrenschmidt
There's a somewhat architectural issue with Radix MMU and KVM. When coming out of a guest with AIL (ie, MMU enabled), we start executing hypervisor code with the PID register still containing whatever the guest has been using. The problem is that the CPU can (and will) then start prefetching or s

[PATCH v2 3/4] powerpc/mm/radix: Avoid flushing the PWC on every flush_tlb_range

2017-07-18 Thread Benjamin Herrenschmidt
We do that because it's used by THP pmd collapsing, so use instead a dedicated flush function. Signed-off-by: Benjamin Herrenschmidt --- v2. Add missing #ifdef CONFIG_TRANSPARENT_HUGEPAGE --- .../powerpc/include/asm/book3s/64/tlbflush-radix.h | 1 + arch/powerpc/mm/pgtable-radix.c

[PATCH v2 2/4] powerpc/mm/radix: Improve TLB/PWC flushes

2017-07-18 Thread Benjamin Herrenschmidt
At the moment we have to rather sub-optimal flushing behaviours: - flush_tlb_mm() will flush the PWC which is unnecessary (for example when doing a fork) - A large unmap will call flush_tlb_pwc() multiple times causing us to perform that fairly expensive operation repeatedly. This happens

[PATCH v2 1/4] powerpc/mm/radix: Improve _tlbiel_pid to be usable for PWC flushes

2017-07-18 Thread Benjamin Herrenschmidt
The PWC flush only needs a single set call, just like the full (RIC=2) flush. This will allow us to get rid of the dedicated _tlbiel_pwc() Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/mm/tlb-radix.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/arch/p

Re: [PATCH 4/4] powerpc/mm/radix: Workaround prefetch issue with KVM

2017-07-18 Thread Benjamin Herrenschmidt
On Wed, 2017-07-19 at 12:29 +1000, Balbir Singh wrote: > > > diff --git a/arch/powerpc/kvm/book3s_hv_rmhandlers.S > > b/arch/powerpc/kvm/book3s_hv_rmhandlers.S > > index 6ea4b53..4fb3581b 100644 > > --- a/arch/powerpc/kvm/book3s_hv_rmhandlers.S > > +++ b/arch/powerpc/kvm/book3s_hv_rmhandlers.S >

Re: [PATCH] sound: fsl_dma: remove dma_object path member

2017-07-18 Thread Timur Tabi
On 7/18/17 4:43 PM, Rob Herring wrote: - dev_err(&pdev->dev, "could not determine resources for %s\n", - ssi_np->full_name); + dev_err(&pdev->dev, "could not determine resources for %pOF\n", + ssi_np); I think you meant to

Re: [PATCH 1/4] powerpc: simplify and fix VGA default device behaviour

2017-07-18 Thread Benjamin Herrenschmidt
On Wed, 2017-07-19 at 11:28 +1000, Daniel Axtens wrote: > Some powerpc devices provide a PCI display that isn't picked up by > the VGA arbiter, presumably because it doesn't support the PCI > legacy VGA ranges. > > Commit c2e1d84523ad ("powerpc: Set default VGA device") introduced > an arch quirk

Re: [PATCH 4/4] powerpc/mm/radix: Workaround prefetch issue with KVM

2017-07-18 Thread Balbir Singh
On Fri, 2017-07-14 at 11:52 +1000, Benjamin Herrenschmidt wrote: > There's a somewhat architectural issue with Radix MMU and KVM. > > When coming out of a guest with AIL (ie, MMU enabled), we start > executing hypervisor code with the PID register still containing > whatever the guest has been usi

[PATCH v2 4/4] arm64: allow non-legacy VGA devices to be default

2017-07-18 Thread Daniel Axtens
The VGA arbiter only marks a device as default if it can decode legacy I/O and memory ranges. This is often not the case on arm64, which doesn't use the legacy ranges. Enable the VGA arbiter to mark the first enabled VGA card as default. Signed-off-by: Daniel Axtens --- Tested on a D05 using t

[PATCH v2 3/4] powerpc: replace vga_fixup() with generic code

2017-07-18 Thread Daniel Axtens
Currently, we do a PCI fixup to mark a default card so that Xorg autoconfiguration works. There is a new generic method to do this sort of vga fixup. Code-wise, it is identical, however instead of firing at the FIXUP_FINAL stage it fires at the FIXUP_ENABLE stage. This means a card will not be ma

[PATCH v2 2/4] vgaarb: allow non-legacy cards to be marked as default

2017-07-18 Thread Daniel Axtens
The VGA arbiter currently only selects a card as default if it can decode legacy I/O and memory ranges. However, on some architectures, legacy PCI resources are not used. This has lead to a powerpc quirk, and issues on arm64. Allow architectures to select ARCH_WANT_VGA_ARB_FALLBACK. When that sym

[PATCH v2 1/4] powerpc: simplify and fix VGA default device behaviour

2017-07-18 Thread Daniel Axtens
Some powerpc devices provide a PCI display that isn't picked up by the VGA arbiter, presumably because it doesn't support the PCI legacy VGA ranges. Commit c2e1d84523ad ("powerpc: Set default VGA device") introduced an arch quirk to mark these devices as default to fix X autoconfig. The commit me

[PATCH v2 0/4] Allow non-legacy cards to be vgaarb default

2017-07-18 Thread Daniel Axtens
[v2, in which I send the right patches. My apologies to you all.] Hi all, Previously I posted a patch that provided a quirk for a hibmc card behind a particular Huawei bridge that allowed it to be marked as the default device in the VGA arbiter.[0] This lead to some discussion.[1] It was broadly

Re: [PATCH 2/2] powernv/powerpc: Clear PECE1 in LPCR via stop-api only on Hotplug

2017-07-18 Thread Nicholas Piggin
Thanks for working on these patches. We really need to get this stuff merged and tested asap :) On Tue, 18 Jul 2017 19:58:49 +0530 "Gautham R. Shenoy" wrote: > From: "Gautham R. Shenoy" > > > Currently we use the stop-api provided by the firmware to program the > SLW engine to restore the val

Re: [PATCH 0/4] Allow non-legacy cards to be vgaarb default

2017-07-18 Thread Daniel Axtens
Apologies everyone - this got mixed in with another patch set. I'll do a v2 that isn't completely broken and confusing. Again, my apologies for the noise. Regards, Daniel Daniel Axtens writes: > Hi all, > > Previously I posted a patch that provided a quirk for a hibmc card > behind a particula

Re: [PATCH] powerpc/64s: Fix hypercall entry clobbering r12 input

2017-07-18 Thread Nicholas Piggin
On Tue, 18 Jul 2017 10:52:47 -0700 Ram Pai wrote: > On Tue, Jul 18, 2017 at 03:32:44PM +1000, Nicholas Piggin wrote: > > A previous optimisation incorrectly assumed the PAPR hcall does > > not use r12, and clobbers it upon entry. In fact it is used as > > an input. This can result in KVM guests c

[PATCH 4/4] arm64: allow non-legacy VGA devices to be default

2017-07-18 Thread Daniel Axtens
The VGA arbiter only marks a device as default if it can decode legacy I/O and memory ranges. This is often not the case on arm64, which doesn't use the legacy ranges. Enable the VGA arbiter to mark the first enabled VGA card as default. Signed-off-by: Daniel Axtens --- Tested on a D05 using t

[PATCH 3/4] powerpc: replace vga_fixup() with generic code

2017-07-18 Thread Daniel Axtens
Currently, we do a PCI fixup to mark a default card so that Xorg autoconfiguration works. There is a new generic method to do this sort of vga fixup. Code-wise, it is identical, however instead of firing at the FIXUP_FINAL stage it fires at the FIXUP_ENABLE stage. This means a card will not be ma

[PATCH 3/3] extend to arm

2017-07-18 Thread Daniel Axtens
Signed-off-by: Daniel Axtens --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index cae4e677a181..e88081b515d2 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -20,6 +20,7 @@ config ARM64 select ARCH_SUPPORTS_NUM

[PATCH 2/3] vgaarb rework

2017-07-18 Thread Daniel Axtens
Signed-off-by: Daniel Axtens --- arch/powerpc/Kconfig | 1 + arch/powerpc/kernel/pci-common.c | 2 ++ drivers/gpu/vga/Kconfig | 8 drivers/gpu/vga/vgaarb.c | 21 + 4 files changed, 32 insertions(+) diff --git a/arch/powerpc/Kconfig b/a

[PATCH 2/4] vgaarb: allow non-legacy cards to be marked as default

2017-07-18 Thread Daniel Axtens
The VGA arbiter currently only selects a card as default if it can decode legacy I/O and memory ranges. However, on some architectures, legacy PCI resources are not used. This has lead to a powerpc quirk, and issues on arm64. Allow architectures to select ARCH_WANT_VGA_ARB_FALLBACK. When that sym

[PATCH 1/4] powerpc: simplify and fix VGA default device behaviour

2017-07-18 Thread Daniel Axtens
Some powerpc devices provide a PCI display that isn't picked up by the VGA arbiter, presumably because it doesn't support the PCI legacy VGA ranges. Commit c2e1d84523ad ("powerpc: Set default VGA device") introduced an arch quirk to mark these devices as default to fix X autoconfig. The commit me

[PATCH 0/4] Allow non-legacy cards to be vgaarb default

2017-07-18 Thread Daniel Axtens
Hi all, Previously I posted a patch that provided a quirk for a hibmc card behind a particular Huawei bridge that allowed it to be marked as the default device in the VGA arbiter.[0] This lead to some discussion.[1] It was broadly suggested that a more generic solution would be better, something i

[no subject]

2017-07-18 Thread Tobin C. Harding
Reply-To: X-Mailer: Mutt 1.5.24 (2015-08-30) unsubscribe

Re: [PATCH] tty: Convert to using %pOF instead of full_name

2017-07-18 Thread David Miller
From: Rob Herring Date: Tue, 18 Jul 2017 16:43:34 -0500 > Now that we have a custom printf format specifier, convert users of > full_name to use %pOF instead. This is preparation to remove storing > of the full path string for each node. > > Signed-off-by: Rob Herring For sparc bits: Acked-by

Re: [PATCH] ide: pmac: Convert to using %pOF instead of full_name

2017-07-18 Thread David Miller
From: Rob Herring Date: Tue, 18 Jul 2017 16:43:07 -0500 > Now that we have a custom printf format specifier, convert users of > full_name to use %pOF instead. This is preparation to remove storing > of the full path string for each node. > > Signed-off-by: Rob Herring Acked-by: David S. Miller

[PATCH] sound: fsl_dma: remove dma_object path member

2017-07-18 Thread Rob Herring
dma_object.path is unused, so rather than fix it to work with DT full_name changes, just remove it. Signed-off-by: Rob Herring Cc: Timur Tabi Cc: Nicolin Chen Cc: Xiubo Li Cc: Fabio Estevam Cc: Liam Girdwood Cc: Mark Brown Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: alsa-de...@alsa-project.o

[PATCH] sound: Convert to using %pOF instead of full_name

2017-07-18 Thread Rob Herring
Now that we have a custom printf format specifier, convert users of full_name to use %pOF instead. This is preparation to remove storing of the full path string for each node. Signed-off-by: Rob Herring Cc: Johannes Berg Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: Timur Tabi Cc: Nicolin Chen Cc

[PATCH] virt: Convert to using %pOF instead of full_name

2017-07-18 Thread Rob Herring
Now that we have a custom printf format specifier, convert users of full_name to use %pOF instead. This is preparation to remove storing of the full path string for each node. Signed-off-by: Rob Herring --- drivers/virt/fsl_hypervisor.c | 12 ++-- 1 file changed, 6 insertions(+), 6 delet

[PATCH] tty: Convert to using %pOF instead of full_name

2017-07-18 Thread Rob Herring
Now that we have a custom printf format specifier, convert users of full_name to use %pOF instead. This is preparation to remove storing of the full path string for each node. Signed-off-by: Rob Herring Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Mi

[PATCH] soc: Convert to using %pOF instead of full_name

2017-07-18 Thread Rob Herring
Now that we have a custom printf format specifier, convert users of full_name to use %pOF instead. This is preparation to remove storing of the full path string for each node. Signed-off-by: Rob Herring Cc: Scott Wood Cc: Qiang Zhao Cc: Matthias Brugger Cc: Simon Horman Cc: Magnus Damm Cc: K

[PATCH] PCI: Convert to using %pOF instead of full_name

2017-07-18 Thread Rob Herring
Now that we have a custom printf format specifier, convert users of full_name to use %pOF instead. This is preparation to remove storing of the full path string for each node. Signed-off-by: Rob Herring Cc: Thomas Petazzoni Cc: Jason Cooper Cc: Bjorn Helgaas Cc: Thierry Reding Cc: Jonathan Hu

[PATCH] macintosh: Convert to using %pOF instead of full_name

2017-07-18 Thread Rob Herring
Now that we have a custom printf format specifier, convert users of full_name to use %pOF instead. This is preparation to remove storing of the full path string for each node. Signed-off-by: Rob Herring Cc: Benjamin Herrenschmidt Cc: linuxppc-dev@lists.ozlabs.org --- drivers/macintosh/macio_sys

[PATCH] ide: pmac: Convert to using %pOF instead of full_name

2017-07-18 Thread Rob Herring
Now that we have a custom printf format specifier, convert users of full_name to use %pOF instead. This is preparation to remove storing of the full path string for each node. Signed-off-by: Rob Herring Cc: "David S. Miller" Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman C

[PATCH] i2c: Convert to using %pOF instead of full_name

2017-07-18 Thread Rob Herring
Now that we have a custom printf format specifier, convert users of full_name to use %pOF instead. This is preparation to remove storing of the full path string for each node. Signed-off-by: Rob Herring Cc: Haavard Skinnemoen Cc: Wolfram Sang Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc:

[PATCH] cpufreq: Convert to using %pOF instead of full_name

2017-07-18 Thread Rob Herring
Now that we have a custom printf format specifier, convert users of full_name to use %pOF instead. This is preparation to remove storing of the full path string for each node. Signed-off-by: Rob Herring Cc: "Rafael J. Wysocki" Cc: Viresh Kumar Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc:

[PATCH] powerpc: Convert to using %pOF instead of full_name

2017-07-18 Thread Rob Herring
Now that we have a custom printf format specifier, convert users of full_name to use %pOF instead. This is preparation to remove storing of the full path string for each node. Signed-off-by: Rob Herring Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Anatolij Gustschin

[PATCH v13 5/5] powerpc/perf: Add thread imc pmu support

2017-07-18 Thread Madhavan Srinivasan
Add support to register Thread In-Memory Collection pmu counters. Patch adds thread imc specific data structures, along with memory init functions and cpuhotplug support. Signed-off-by: Anju T Sudhakar Signed-off-by: Hemant Kumar Signed-off-by: Madhavan Srinivasan --- arch/powerpc/perf/imc-pmu

[PATCH v13 4/5] powerpc/perf: Add core imc pmu support

2017-07-18 Thread Madhavan Srinivasan
Add support to register Core In-Memory Collection pmu counters. Patch adds core imc specific data structures, along with memory init functions and cpuhotplug support. Signed-off-by: Anju T Sudhakar Signed-off-by: Hemant Kumar Signed-off-by: Madhavan Srinivasan --- arch/powerpc/perf/imc-pmu.c |

[PATCH v13 3/5] powerpc/perf: Add nest imc pmu support

2017-07-18 Thread Madhavan Srinivasan
Add support to register Nest In-Memory Collection pmu counters. Patch adds a new device file called "imc-pmu.c" under powerpc/perf folder to contain all the device pmu functions. Device tree parser code added to parse the pmu events information and create sysfs event attributes for the pmu. Cpuma

[PATCH v13 2/5] powerpc/platform/powernv: Detect and create IMC device

2017-07-18 Thread Madhavan Srinivasan
Code to create platform device for the In-Memory Collection (IMC) counters. Paltform devices are created based on the IMC compatibility. New header file created to contain the data structures and macros needed for In-Memory Collection (IMC) counter pmu devices. The device tree for IMC counters sta

[PATCH v13 1/5] powerpc/platform/powernv: Update IMC OPAL APIs

2017-07-18 Thread Madhavan Srinivasan
In-Memory Collection (IMC) counters are performance monitoring infrastrcuture. These counters need special sequence of scoms to init/start/stop which is handled by OPAL. And OPAL provides three APIs to init and control these IMC engines. OPAL API documentation: https://github.com/open-power/sk

[PATCH v13 0/5] In-Memory Collection Counter instrumentation Support

2017-07-18 Thread Madhavan Srinivasan
Power9 has In-Memory-Collection (IMC) infrastructure which contains various Performance Monitoring Units (PMUs) at Nest level (these are on-chip but off-core), Core level and Thread level. The Nest PMU counters are handled by a Nest IMC microcode which runs in the OCC (On-Chip Controller) complex.

Re: [PATCH V2 0/6] Enable NX 842 compression engine on Power9

2017-07-18 Thread Haren Myneni
On 07/18/2017 11:06 AM, Sukadev Bhattiprolu wrote: > Nicholas Piggin [nicholas.pig...@gmail.com] wrote: >> On Mon, 17 Jul 2017 16:43:19 -0700 >> Haren Myneni wrote: >> >>> [PATCH V2 0/6] Enable NX 842 compression engine on Power9 >>> This patchset depends on VAS kernel changes: >>> https://lists.o

Re: [PATCH V2 0/6] Enable NX 842 compression engine on Power9

2017-07-18 Thread Sukadev Bhattiprolu
Nicholas Piggin [nicholas.pig...@gmail.com] wrote: > On Mon, 17 Jul 2017 16:43:19 -0700 > Haren Myneni wrote: > > > [PATCH V2 0/6] Enable NX 842 compression engine on Power9 > > This patchset depends on VAS kernel changes: > > https://lists.ozlabs.org/pipermail/linuxppc-dev/2017-May/158178.html >

Re: [PATCH] powerpc/64s: Fix hypercall entry clobbering r12 input

2017-07-18 Thread Ram Pai
On Tue, Jul 18, 2017 at 03:32:44PM +1000, Nicholas Piggin wrote: > A previous optimisation incorrectly assumed the PAPR hcall does > not use r12, and clobbers it upon entry. In fact it is used as > an input. This can result in KVM guests crashing (observed with > PR KVM). > > Instead of using r12

[PATCH v2] include/linux/vfio.h: Guard powerpc-specific functions with CONFIG_VFIO_SPAPR_EEH

2017-07-18 Thread Murilo Opsfelder Araujo
are here: http://kisskb.ellerman.id.au/kisskb/buildresult/12982362/ Signed-off-by: Murilo Opsfelder Araujo --- Changes from v1: - Rebased on top of next-20170718. include/linux/vfio.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/vfio.h b/include/linux/vfio.h in

Re: [PATCH] powerpc/hugetlb: fix page rights verification in gup_hugepte()

2017-07-18 Thread Aneesh Kumar K.V
Christophe Leroy writes: > gup_hugepte() checks if pages are present and readable, and > when 'write' is set, also checks if the pages are writable. > > Initially this was done by checking if _PAGE_PRESENT and > _PAGE_READ were set. In addition, _PAGE_WRITE was verified for write > accesses. > >

[PATCH 2/2] powernv/powerpc: Clear PECE1 in LPCR via stop-api only on Hotplug

2017-07-18 Thread Gautham R. Shenoy
From: "Gautham R. Shenoy" Currently we use the stop-api provided by the firmware to program the SLW engine to restore the values of hypervisor resources that get lost on deeper idle states (such as winkle). Since the deep states were only used for CPU-Hotplug on POWER8 systems, we would program

[PATCH 1/2] powernv/powerpc:Save/Restore additional SPRs for stop4 cpuidle

2017-07-18 Thread Gautham R. Shenoy
From: "Gautham R. Shenoy" The stop4 idle state on POWER9 is a deep idle state which loses hypervisor resources, but whose latency is low enough that it can be exposed via cpuidle. Until now, the deep idle states which lose hypervisor resources (eg: winkle) were only exposed via CPU-Hotplug. Hen

[PATCH 0/2] powerpc: powernv: Enable stop4 via cpuidle

2017-07-18 Thread Gautham R. Shenoy
From: "Gautham R. Shenoy" Hi, The stop4 idle state on POWER9 is a deep idle state which loses hypervisor resources, but whose latency is low enough that it can be exposed via cpuidle. Until now, the deep idle states which lose hypervisor resources (eg: winkle) were only exposed via CPU-Hotplug.

Re: [PATCH v2] powerpc: allow compiling with GENERIC_MSI_IRQ_DOMAIN

2017-07-18 Thread Laurentiu Tudor
Hi Michael, On 07/18/2017 01:55 PM, Michael Ellerman wrote: > laurentiu.tu...@nxp.com writes: > >> From: Laurentiu Tudor >> >> This allows building powerpc with the GENERIC_MSI_IRQ_DOMAIN >> Kconfig by enabling the asm-generic msi.h in Kbuild. Without >> this, there's a compilation error [1] beca

Re: [PATCH v2] powerpc: allow compiling with GENERIC_MSI_IRQ_DOMAIN

2017-07-18 Thread Michael Ellerman
laurentiu.tu...@nxp.com writes: > From: Laurentiu Tudor > > This allows building powerpc with the GENERIC_MSI_IRQ_DOMAIN > Kconfig by enabling the asm-generic msi.h in Kbuild. Without > this, there's a compilation error [1] because powerpc, as most > arches, doesn't provide an asm/msi.h. > > [1]

Re: [PATCH] powerpc/powernv: Fix boot on Power8 bare metal due to opal_configure_cores()

2017-07-18 Thread Michael Ellerman
Balbir Singh writes: > On Mon, 2017-07-17 at 21:31 +1000, Michael Ellerman wrote: >> In commit 1c0eaf0f56d6 ("powerpc/powernv: Tell OPAL about our MMU mode >> on POWER9"), we added additional flags to the OPAL call to configure >> CPUs at boot. >> >> These flags only work on Power9 firmwares, an

Re: [PATCH] powerpc/64s: Fix hypercall entry clobbering r12 input

2017-07-18 Thread Michael Ellerman
Nicholas Piggin writes: > A previous optimisation incorrectly assumed the PAPR hcall does > not use r12, and clobbers it upon entry. In fact it is used as > an input. This can result in KVM guests crashing (observed with > PR KVM). > > Instead of using r12 to save r13, tihs patch saves r13 in ctr

Re: powerpc/powernv: Fix boot on Power8 bare metal due to opal_configure_cores()

2017-07-18 Thread Michael Ellerman
On Mon, 2017-07-17 at 11:31:00 UTC, Michael Ellerman wrote: > In commit 1c0eaf0f56d6 ("powerpc/powernv: Tell OPAL about our MMU mode > on POWER9"), we added additional flags to the OPAL call to configure > CPUs at boot. > > These flags only work on Power9 firmwares, and worse can cause boot > fail

Re: [PATCH 3/3] powerpc/mm: Mark __init memory no-execute when STRICT_KERNEL_RWX=y

2017-07-18 Thread Michael Ellerman
kbuild test robot writes: > Hi Michael, > > [auto build test ERROR on powerpc/next] > [also build test ERROR on next-20170714] > [cannot apply to v4.12] > [if your patch is applied to the wrong git tree, please drop us a note to > help improve the system] > > url: > https://github.com/0day-c