Re: [v16, 0/7] Fix eSDHC host version register bug

2016-11-09 Thread Scott Wood
On Thu, 2016-11-10 at 04:11 +, Y.B. Lu wrote: > > > > -Original Message- > > From: Y.B. Lu > > Sent: Thursday, November 10, 2016 12:06 PM > > To: 'Scott Wood'; Ulf Hansson > > Cc: linux-mmc; Arnd Bergmann; linuxppc-dev@lists.ozlabs.org; > > devicet...@vger.kernel.org; linux-arm-ker...@

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

2016-11-09 Thread Nicholas Piggin
On Thu, 10 Nov 2016 12:35:59 +1100 Michael Ellerman wrote: > Nicholas Piggin writes: > > > 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. > > In fact oops_begin() r

RE: [v16, 0/7] Fix eSDHC host version register bug

2016-11-09 Thread Y.B. Lu
> -Original Message- > From: Y.B. Lu > Sent: Thursday, November 10, 2016 12:06 PM > To: 'Scott Wood'; Ulf Hansson > Cc: linux-mmc; Arnd Bergmann; linuxppc-dev@lists.ozlabs.org; > devicet...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; linux- > ker...@vger.kernel.org; linux-clk; io

RE: [v16, 0/7] Fix eSDHC host version register bug

2016-11-09 Thread Y.B. Lu
> -Original Message- > From: linux-mmc-ow...@vger.kernel.org [mailto:linux-mmc- > ow...@vger.kernel.org] On Behalf Of Scott Wood > Sent: Thursday, November 10, 2016 11:55 AM > To: Ulf Hansson; Y.B. Lu > Cc: linux-mmc; Arnd Bergmann; linuxppc-dev@lists.ozlabs.org; > devicet...@vger.kernel.or

Re: [v16, 0/7] Fix eSDHC host version register bug

2016-11-09 Thread Scott Wood
On Wed, 2016-11-09 at 19:27 +0100, Ulf Hansson wrote: > - i2c-list > > On 9 November 2016 at 04:14, Yangbo Lu wrote: > > > > This patchset is used to fix a host version register bug in the T4240- > > R1.0-R2.0 > > eSDHC controller. To match the SoC version and revision, 15 previous > > version >

[PATCH v10 10/10] powerpc: Enable CONFIG_KEXEC_FILE in powerpc server defconfigs.

2016-11-09 Thread Thiago Jung Bauermann
Enable CONFIG_KEXEC_FILE in powernv_defconfig, ppc64_defconfig and pseries_defconfig. It depends on CONFIG_CRYPTO_SHA256=y, so add that as well. Signed-off-by: Thiago Jung Bauermann --- arch/powerpc/configs/powernv_defconfig | 2 ++ arch/powerpc/configs/ppc64_defconfig | 2 ++ arch/powerpc/co

[PATCH v10 09/10] powerpc: Add purgatory for kexec_file_load implementation.

2016-11-09 Thread Thiago Jung Bauermann
This purgatory implementation comes from kexec-tools and was trimmed down a bit. It uses the memset, memcpy and memcmp implementations from lib/string.c. It's not straightforward to #include "lib/string.c" so we simply copy those functions. The changes made to the purgatory code relative to the v

[PATCH v10 08/10] powerpc: Add support for loading ELF kernels with kexec_file_load.

2016-11-09 Thread Thiago Jung Bauermann
This uses all the infrastructure built up by the previous patches in the series to load an ELF vmlinux file and an initrd. It uses the flattened device tree at initial_boot_params as a base and adjusts memory reservations and its /chosen node for the next kernel. [a...@linux-foundation.org: coding

[PATCH v10 07/10] powerpc: Add functions to read ELF files of any endianness.

2016-11-09 Thread Thiago Jung Bauermann
A little endian kernel might need to kexec a big endian kernel (the opposite is less likely but could happen as well), so we can't just cast the buffer with the binary to ELF structs and use them as is done elsewhere. This patch adds functions which do byte-swapping as necessary when populating th

[PATCH v10 06/10] powerpc: Implement kexec_file_load.

2016-11-09 Thread Thiago Jung Bauermann
Add arch-specific functions needed by the generic kexec_file code. Signed-off-by: Josh Sklar Signed-off-by: Thiago Jung Bauermann --- arch/powerpc/Kconfig| 14 ++ arch/powerpc/include/asm/systbl.h | 1 + arch/powerpc/include/asm/unistd.h | 2 +-

[PATCH v10 05/10] powerpc: Change places using CONFIG_KEXEC to use CONFIG_KEXEC_CORE instead.

2016-11-09 Thread Thiago Jung Bauermann
Commit 2965faa5e03d ("kexec: split kexec_load syscall from kexec core code") introduced CONFIG_KEXEC_CORE so that CONFIG_KEXEC means whether the kexec_load system call should be compiled-in and CONFIG_KEXEC_FILE means whether the kexec_file_load system call should be compiled-in. These options can

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

2016-11-09 Thread Thiago Jung Bauermann
powerpc's purgatory.ro has 12 relocation types when built as a relocatable object. To implement support for them requires arch_kexec_apply_relocations_add to duplicate a lot of code with module_64.c:apply_relocate_add. When built as a Position Independent Executable there are only 4 relocation typ

[PATCH v10 03/10] kexec_file: Factor out kexec_locate_mem_hole from kexec_add_buffer.

2016-11-09 Thread Thiago Jung Bauermann
kexec_locate_mem_hole will be used by the PowerPC kexec_file_load implementation to find free memory for the purgatory stack. Signed-off-by: Thiago Jung Bauermann Acked-by: Dave Young --- include/linux/kexec.h | 1 + kernel/kexec_file.c | 25 - 2 files changed, 21 ins

[PATCH v10 02/10] kexec_file: Change kexec_add_buffer to take kexec_buf as argument.

2016-11-09 Thread Thiago Jung Bauermann
This is done to simplify the kexec_add_buffer argument list. Adapt all callers to set up a kexec_buf to pass to kexec_add_buffer. In addition, change the type of kexec_buf.buffer from char * to void *. There is no particular reason for it to be a char *, and the change allows us to get rid of 3 ex

[PATCH v10 01/10] kexec_file: Allow arch-specific memory walking for kexec_add_buffer

2016-11-09 Thread Thiago Jung Bauermann
Allow architectures to specify a different memory walking function for kexec_add_buffer. x86 uses iomem to track reserved memory ranges, but PowerPC uses the memblock subsystem. Signed-off-by: Thiago Jung Bauermann Acked-by: Dave Young Acked-by: Balbir Singh --- include/linux/kexec.h | 29 ++

[PATCH v10 00/10] kexec_file_load implementation for PowerPC

2016-11-09 Thread Thiago Jung Bauermann
Hello, [ Andrew, you might want to wait until the kexec maintainers say whether they agree with patch 4 before picking up this version. ] v10 addresses two requests from Michael Ellerman: build the purgatory as a Position Independent Executable binary to reduce the number of relocation types th

Re: [PATCH kernel v4 0/4] powerpc/spapr/vfio: Put pages on VFIO container shutdown

2016-11-09 Thread Michael Ellerman
Alex Williamson writes: > On Tue, 08 Nov 2016 18:54:28 +1100 > Michael Ellerman wrote: >> Alexey Kardashevskiy writes: >> > arch/powerpc/include/asm/mmu_context.h | 20 ++-- >> > arch/powerpc/kernel/setup-common.c | 2 +- >> > arch/powerpc/mm/mmu_context_book3s64.c | 6 +- >> > arch/po

Re: [PATCH v6 1/4] powerpc/mm: allow memory hotplug into a memoryless node

2016-11-09 Thread Michael Ellerman
Reza Arbab writes: > Remove the check which prevents us from hotplugging into an empty node. > > The original commit b226e4621245 ("[PATCH] powerpc: don't add memory to > empty node/zone"), states that this was intended to be a temporary measure. > It is a workaround for an oops which no longer o

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

2016-11-09 Thread Michael Ellerman
Nicholas Piggin writes: > 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. In fact oops_begin() returns 1, which oops_end() then passes directly to raw_local_irq_restore() as

Re: [PATCH v6 4/4] of/fdt: mark hotpluggable memory

2016-11-09 Thread Balbir Singh
On 08/11/16 10:44, Reza Arbab wrote: > When movable nodes are enabled, any node containing only hotpluggable > memory is made movable at boot time. > > On x86, hotpluggable memory is discovered by parsing the ACPI SRAT, > making corresponding calls to memblock_mark_hotplug(). > > If we introduc

Re: [PATCH] powerpc/mm: Correct process and partition table max size

2016-11-09 Thread Balbir Singh
On 09/11/16 16:36, Suraj Jitindar Singh wrote: > Version 3.00 of the ISA states that the PATS (partition table size) field > of the PTCR (partition table control register) and the PRTS (process table > size) field of the partition table entry must both be less than or equal > to 24. However the a

Re: [RFC] fs: add userspace critical mounts event support

2016-11-09 Thread Luis R. Rodriguez
On Wed, Nov 9, 2016 at 3:21 AM, Andy Lutomirski wrote: > On Wed, Nov 9, 2016 at 1:13 AM, Daniel Wagner > wrote: >> [CC: added Harald] >> >> As Harald pointed out over a beer yesterday evening, there is at least >> one more reason why UMH isn't obsolete. The ordering of the firmware loading >> mig

Re: [RFC] fs: add userspace critical mounts event support

2016-11-09 Thread Luis R. Rodriguez
On Tue, Nov 8, 2016 at 2:47 PM, Luis R. Rodriguez wrote: > Whatever the outcome of this discussion is -- Johannes seemed to *want* > to further use the UMH by default on *all* async alls... even if the > driver did not explicitly requested it -- I'm concerned about this given > all the above and t

Re: [PATCH v2 0/7] soc: renesas: Identify SoC and register with the SoC bus

2016-11-09 Thread Arnd Bergmann
On Wednesday, November 9, 2016 6:19:06 PM CET Geert Uytterhoeven wrote: > On Wed, Nov 9, 2016 at 5:56 PM, Arnd Bergmann wrote: > > On Wednesday, November 9, 2016 2:34:33 PM CET Geert Uytterhoeven wrote: > >> > And Samsung. > >> > Shall I create the immutable branch now? > >> > >> Arnd: are you hap

Re: [PATCH v6 4/4] of/fdt: mark hotpluggable memory

2016-11-09 Thread Reza Arbab
On Wed, Nov 09, 2016 at 12:12:55PM -0600, Rob Herring wrote: On Mon, Nov 7, 2016 at 5:44 PM, Reza Arbab wrote: + hotpluggable = of_get_flat_dt_prop(node, "linux,hotpluggable", NULL); Memory being hotpluggable doesn't seem like a linux property to me. I'd drop the linux prefix. Also, thi

Re: [PATCH] of/irq: improve error message on irq discovery process failure

2016-11-09 Thread Mark Rutland
On Wed, Nov 09, 2016 at 12:05:08PM -0200, Guilherme G. Piccoli wrote: > On PowerPC machines some PCI slots might not have Level-triggered > interrupts capability (also know as Level Signaled Interrupts - LSI), > leading of_irq_parse_pci() to complain by presenting error messages > on the kernel log

Re: [PATCH] of/irq: improve error message on irq discovery process failure

2016-11-09 Thread Guilherme G. Piccoli
On 11/09/2016 04:05 PM, Rob Herring wrote: > On Wed, Nov 9, 2016 at 8:05 AM, Guilherme G. Piccoli > wrote: >> On PowerPC machines some PCI slots might not have Level-triggered >> interrupts capability (also know as Level Signaled Interrupts - LSI), >> leading of_irq_parse_pci() to complain by pres

Re: [v16, 0/7] Fix eSDHC host version register bug

2016-11-09 Thread Ulf Hansson
- i2c-list On 9 November 2016 at 04:14, Yangbo Lu wrote: > This patchset is used to fix a host version register bug in the > T4240-R1.0-R2.0 > eSDHC controller. To match the SoC version and revision, 15 previous version > patchsets had tried many methods but all of them were rejected by reviewer

Re: [PATCH v2 5/7] ARM: shmobile: Document DT bindings for CCCR and PRR

2016-11-09 Thread Rob Herring
On Mon, Oct 31, 2016 at 12:30:53PM +0100, Geert Uytterhoeven wrote: > Add device tree binding documentation for the Common Chip Code Register > and Product Register, which provide SoC product and revision > information. > > Signed-off-by: Geert Uytterhoeven > --- > v2: > - New. > --- > Documen

Re: [PATCH v6 4/4] of/fdt: mark hotpluggable memory

2016-11-09 Thread Rob Herring
On Mon, Nov 7, 2016 at 5:44 PM, Reza Arbab wrote: > When movable nodes are enabled, any node containing only hotpluggable > memory is made movable at boot time. > > On x86, hotpluggable memory is discovered by parsing the ACPI SRAT, > making corresponding calls to memblock_mark_hotplug(). > > If w

Re: [PATCH] of/irq: improve error message on irq discovery process failure

2016-11-09 Thread Rob Herring
On Wed, Nov 9, 2016 at 8:05 AM, Guilherme G. Piccoli wrote: > On PowerPC machines some PCI slots might not have Level-triggered > interrupts capability (also know as Level Signaled Interrupts - LSI), > leading of_irq_parse_pci() to complain by presenting error messages > on the kernel log - in thi

Re: [PATCH v2 0/7] soc: renesas: Identify SoC and register with the SoC bus

2016-11-09 Thread Geert Uytterhoeven
Hi Arnd, On Wed, Nov 9, 2016 at 5:56 PM, Arnd Bergmann wrote: > On Wednesday, November 9, 2016 2:34:33 PM CET Geert Uytterhoeven wrote: >> > And Samsung. >> > Shall I create the immutable branch now? >> >> Arnd: are you happy with the new patches and changes? > > I still had some comments for pat

Re: [PATCH net-next v6 02/10] dpaa_eth: add support for DPAA Ethernet

2016-11-09 Thread David Miller
From: Madalin-Cristian Bucur Date: Wed, 9 Nov 2016 17:16:12 + >> From: Madalin-Cristian Bucur >> Sent: Monday, November 07, 2016 5:43 PM >> >> > From: David Miller [mailto:da...@davemloft.net] >> > Sent: Thursday, November 03, 2016 9:58 PM >> > >> > From: Madalin Bucur >> > Date: Wed, 2 Nov

RE: [PATCH net-next v6 02/10] dpaa_eth: add support for DPAA Ethernet

2016-11-09 Thread Madalin-Cristian Bucur
> From: Madalin-Cristian Bucur > Sent: Monday, November 07, 2016 5:43 PM > > > From: David Miller [mailto:da...@davemloft.net] > > Sent: Thursday, November 03, 2016 9:58 PM > > > > From: Madalin Bucur > > Date: Wed, 2 Nov 2016 22:17:26 +0200 > > > > > This introduces the Freescale Data Path Accel

[PATCH v7] powerpc: Do not make the entire heap executable

2016-11-09 Thread Denys Vlasenko
On 32-bit powerpc the ELF PLT sections of binaries (built with --bss-plt, or with a toolchain which defaults to it) look like this: [17] .sbss NOBITS 0002aff8 01aff8 14 00 WA 0 0 4 [18] .plt NOBITS 0002b00c 01aff8 84 00 WAX 0 0 4 [1

Re: [PATCH v2 0/7] soc: renesas: Identify SoC and register with the SoC bus

2016-11-09 Thread Arnd Bergmann
On Wednesday, November 9, 2016 2:34:33 PM CET Geert Uytterhoeven wrote: > > > > And Samsung. > > Shall I create the immutable branch now? > > Arnd: are you happy with the new patches and changes? I still had some comments for patch 7, but that shouldn't stop you from creating a branch for the fir

Re: [PATCH v2 7/7] soc: renesas: Identify SoC and register with the SoC bus

2016-11-09 Thread Arnd Bergmann
On Monday, October 31, 2016 12:30:55 PM CET Geert Uytterhoeven wrote: > v2: > - Drop SoC families and family names; use fixed "Renesas" instead, I think I'd rather have seen the family names left in there, but it's not important, so up to you. > - Use "renesas,prr" and "renesas,cccr" device

Re: [PATCH net-next] ibmveth: v1 calculate correct gso_size and set gso_type

2016-11-09 Thread Brian King
On 11/06/2016 03:22 PM, Jonathan Maxwell wrote: > On Thu, Nov 3, 2016 at 8:40 AM, Brian King wrote: >> On 10/27/2016 10:26 AM, Eric Dumazet wrote: >>> On Wed, 2016-10-26 at 11:09 +1100, Jon Maxwell wrote: We recently encountered a bug where a few customers using ibmveth on the same LPAR

Re: [Patch V6 2/6] irqchip: xilinx: Clean up irqdomain argument and read/write

2016-11-09 Thread Marc Zyngier
On 01/11/16 11:05, Zubair Lutfullah Kakakhel wrote: > Hi, > > Thanks for the review. > > On 10/31/2016 07:51 PM, Thomas Gleixner wrote: >> On Mon, 31 Oct 2016, Zubair Lutfullah Kakakhel wrote: >>> The drivers read/write function handling is a bit quirky. >> >> Can you please explain in more detai

[PATCH] of/irq: improve error message on irq discovery process failure

2016-11-09 Thread Guilherme G. Piccoli
On PowerPC machines some PCI slots might not have Level-triggered interrupts capability (also know as Level Signaled Interrupts - LSI), leading of_irq_parse_pci() to complain by presenting error messages on the kernel log - in this case, the properties "interrupt-map" and "interrupt-map-mask" are n

Re: [PATCH v2 0/7] soc: renesas: Identify SoC and register with the SoC bus

2016-11-09 Thread Geert Uytterhoeven
Hi Arnd, On Mon, Nov 7, 2016 at 10:35 AM, Geert Uytterhoeven wrote: > On Mon, Oct 31, 2016 at 12:30 PM, Geert Uytterhoeven > wrote: >> Some Renesas SoCs may exist in different revisions, providing slightly >> different functionalities (e.g. R-Car H3 ES1.x and ES2.0), and behavior >> (errate and

Re: [PATCH 0/4] cputime: some optimizations and cleanups

2016-11-09 Thread Frederic Weisbecker
2016-10-31 12:36 GMT+00:00 Stanislaw Gruszka : > Patches remove accounting of utimescaled/stimescaled on architectures > that do not provide those values (scaled cputimes are equal to normal > cputimes) what is every architecture except powerpc and s390. > > Patches do not change user visible behav

Re: [RFC] fs: add userspace critical mounts event support

2016-11-09 Thread Andy Lutomirski
On Wed, Nov 9, 2016 at 1:13 AM, Daniel Wagner wrote: > [CC: added Harald] > > As Harald pointed out over a beer yesterday evening, there is at least > one more reason why UMH isn't obsolete. The ordering of the firmware loading > might be of important. Say you want to greet the user with a splash

Re: [v16, 0/7] Fix eSDHC host version register bug

2016-11-09 Thread Wolfram Sang
Can you please update your CC list? There is nothing i2c related in this patch series, so you could drop the i2c-list. signature.asc Description: PGP signature

Re: [RFC] fs: add userspace critical mounts event support

2016-11-09 Thread Daniel Wagner
[CC: added Harald] On 11/08/2016 11:47 PM, Luis R. Rodriguez wrote: On Wed, Oct 05, 2016 at 09:46:33PM +0200, Luis R. Rodriguez wrote: On Wed, Oct 05, 2016 at 11:08:06AM -0700, Linus Torvalds wrote: On Wed, Oct 5, 2016 at 11:00 AM, Luis R. Rodriguez wrote: On Tue, Sep 13, 2016 at 09:38:17PM

[PATCH RESEND] tools-powerpc: Return false instead of -1

2016-11-09 Thread Andrew Shadura
From: Peter Senna Tschudin Returning a negative value for a boolean function seem to have the undesired effect of returning true. require_paranoia_below() is a boolean function, but the variable used to store the return value is an integer, receiving -1 or 0. This patch convert rc to bool, replac