[PATCH 2/2] KVM: PPC: hypervisor large decrementer support

2016-05-31 Thread Oliver O'Halloran
the decrementer registers. These macros will return the current decrementer value as a 64 bit quantity regardless of the Host CPU or guest decrementer operating mode. Additionally this patch corrects several uses of decrementer values that assume a 32 bit register width. Signed-off-by: Oliver O'Halloran <

[PATCH 1/2] powerpc/timer - large decrementer support

2016-05-31 Thread Oliver O'Halloran
is not supplied then the traditional decrementer width of 32 bits is assumed and LD mode is disabled. This patch was based on initial work by Jack Miller. Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> Cc: Michael Neuling <mi...@neuling.org> Cc: Balbir Singh <bsinghar...@gmail.com>

[PATCHv4] powerpc/timer - large decrementer support

2016-06-23 Thread Oliver O'Halloran
be enabled. This patch was based on initial work by Jack Miller. Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> Signed-off-by: Balbir Singh <bsinghar...@gmail.com> Cc: Michael Neuling <mi...@neuling.org> Cc: Jack Miller <j...@codezen.org> --- arch/powerpc/include/asm/reg.h

[PATCH v2] powerpc/boot: Add OPAL console to epapr wrappers

2016-06-24 Thread Oliver O'Halloran
ide a hvsi console also provide a raw console so this is not an issue in practice. Actually-written-by: Benjamin Herrenschmidt <b...@kernel.crashing.org> Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> Cc: Stewart Smith <stew...@linux.vnet.ibm.com> Cc: sta...@vger.kernel.org ---

[PATCH v5] powerpc/timer - large decrementer support

2016-06-23 Thread Oliver O'Halloran
be enabled. This patch was based on initial work by Jack Miller. Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> Signed-off-by: Balbir Singh <bsinghar...@gmail.com> Cc: Michael Neuling <mi...@neuling.org> Cc: Jack Miller <j...@codezen.org> --- arch/powerpc/include/asm/reg.h

[PATCH] powerpc/boot: Add OPAL console to epapr wrappers

2016-06-24 Thread Oliver O'Halloran
ide a hvsi console also provide a raw console so this is not an issue in practice. Actually-written-by: Benjamin Herrenschmidt <b...@kernel.crashing.org> Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> Cc: Stewart Smith <stew...@linux.vnet.ibm.com> Cc: sta...@vger.kernel.org ---

[PATCH] Fix fall-through from case 30 (rld*) to case 31

2016-01-24 Thread Oliver O'Halloran
I think this bug can only be triggered if the instruction to simulate is malformed. The switch in the else case only handles the zero and one case, but it extracts bits 4:1 from the instruction word so it may be other values. It's pretty minor, but a bug is a bug. Signed-off-by: Oliver O'Halloran

[PATCH] powerpc/lib/sstep.c - Fix emulation fall-through

2016-02-15 Thread Oliver O'Halloran
-by: Oliver O'Halloran <ooh...@gmail.com> --- arch/powerpc/lib/sstep.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/lib/sstep.c b/arch/powerpc/lib/sstep.c index dc885b3..e25f73c 100644 --- a/arch/powerpc/lib/sstep.c +++ b/arch/powerpc/lib/sstep.c @@ -925,6 +925,7 @@ int __k

[PATCH v2] powerpc/sstep.c - Fix emulation fall-through

2016-02-15 Thread Oliver O'Halloran
-by: Oliver O'Halloran <ooh...@gmail.com> --- arch/powerpc/lib/sstep.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/lib/sstep.c b/arch/powerpc/lib/sstep.c index dc885b3..e25f73c 100644 --- a/arch/powerpc/lib/sstep.c +++ b/arch/powerpc/lib/sstep.c @@ -925,6 +925,7 @@ int __k

[PATCH 2/2] KVM: PPC: hypervisor large decrementer support

2016-04-11 Thread Oliver O'Halloran
the decrementer registers. These macros will return the current decrementer value as a 64 bit quantity regardless of the Host CPU or guest decrementer operating mode. Additionally this patch corrects several uses of decrementer values that assume a 32 bit register width. Signed-off-by: Oliver O'Halloran <

[PATCH 1/2] powerpc/timer - large decrementer support

2016-04-11 Thread Oliver O'Halloran
. If this property is not supplied then the traditional decrementer width of 32 bits is assumed and LD mode is disabled. This patch was based on inital work by Jack Miller. Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> Cc: Jack Miller <j...@codezen.org> --- arch/powerpc/include/asm/reg.h

[PATCH] powerpc/process: fix altivec SPR not being saved

2016-03-06 Thread Oliver O'Halloran
e of VRSAVE is used to determine if altivec is being used in several code paths. Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> --- arch/powerpc/kernel/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kerne

[PATCH] powerpc/process: fix altivec SPR not being saved

2016-03-07 Thread Oliver O'Halloran
e of VRSAVE is used to determine if altivec is being used in several code paths. Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> Signed-off-by: Anton Blanchard <an...@samba.org> Fixes: 152d523e6307 ("powerpc: Create context switch helpers save_sprs() and restore_sprs()&

[PATCH v2] powerpc/mm: Ensure "special" zones are empty

2016-05-11 Thread Oliver O'Halloran
managed zones (ZONE_CMA) we should aim to be consistent with every other architecture and set the max PFN for these zones to zero. Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> Reviewed-by: Balbir Singh <bsinghar...@gmail.com> Cc: linux...@kvack.org --- arch/powerpc/mm/mem.c | 8

[PATCH v2 2/2] powerpc/mm: Ensure "special" zones are empty

2016-05-05 Thread Oliver O'Halloran
managed zones (ZONE_CMA) we should aim to be consistent with every other architecture and set the max PFN for these zones to zero. Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> Cc: linux...@kvack.org --- arch/powerpc/mm/mem.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-)

[PATCH v2 1/2] powerpc/mm: define TOP_ZONE as a constant

2016-05-05 Thread Oliver O'Halloran
. Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> Cc: linux...@kvack.org --- arch/powerpc/mm/mem.c | 17 + 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c index ac79dbde1015..8f4c19789a38 100644 --- a/arch/powerpc/mm

[RFC PATCH] mm/init: fix zone boundary creation

2016-05-05 Thread Oliver O'Halloran
on the contents arch_zone_highest_possible_pfn[]. Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> Cc: linuxppc-dev@lists.ozlabs.org --- mm/page_alloc.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 59de90

[PATCH 2/2] powerpc/mm: Ensure "special" zones are empty

2016-05-05 Thread Oliver O'Halloran
of more mm managed zones (ZONE_CMA) we should aim to be consistent with every other architecture and set the max PFN for these zones to zero Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> --- arch/powerpc/mm/mem.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff

[PATCH 1/2] powerpc/mm: define TOP_ZONE as a constant

2016-05-05 Thread Oliver O'Halloran
. Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> --- arch/powerpc/mm/mem.c | 17 + 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c index ac79dbde1015..8f4c19789a38 100644 --- a/arch/powerpc/mm/mem.c +++ b/arch/powe

[PATCH v3 1/2] powerpc/timer - large decrementer support

2016-05-09 Thread Oliver O'Halloran
is not supplied then the traditional decrementer width of 32 bits is assumed and LD mode is disabled. This patch was based on initial work by Jack Miller. Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> Cc: Michael Neuling <mi...@neuling.org> Cc: Balbir Singh <bsinghar...@gmail.com>

[PATCH v3 2/2] KVM: PPC: hypervisor large decrementer support

2016-05-09 Thread Oliver O'Halloran
the decrementer registers. These macros will return the current decrementer value as a 64 bit quantity regardless of the Host CPU or guest decrementer operating mode. Additionally this patch corrects several uses of decrementer values that assume a 32 bit register width. Signed-off-by: Oliver O'Halloran <

[PATCH v2 1/2] powerpc/timer - large decrementer support

2016-05-04 Thread Oliver O'Halloran
. If this property is not supplied then the traditional decrementer width of 32 bits is assumed and LD mode is disabled. This patch was based on initial work by Jack Miller. Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> Cc: Jack Miller <j...@codezen.org> Cc: Balbir Singh <bsinghar...@gmail

[PATCH v2 2/2] KVM: PPC: hypervisor large decrementer support

2016-05-04 Thread Oliver O'Halloran
the decrementer registers. These macros will return the current decrementer value as a 64 bit quantity regardless of the Host CPU or guest decrementer operating mode. Additionally this patch corrects several uses of decrementer values that assume a 32 bit register width. Signed-off-by: Oliver O'Halloran <

[PATCH v2] powerpc/mm: Add a parameter to disable 1TB segs

2016-07-04 Thread Oliver O'Halloran
.@neuling.org> Suggested-by: Michael Ellerman <m...@ellerman.id.au> Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> --- Changes in from v1: Renamed parameter from "no_tb_segs" to "disable_1tb_segments" Added kernel-parameters.txt entry Documentation

[PATCH v3] powerpc/boot: Add OPAL console to epapr wrappers

2016-06-30 Thread Oliver O'Halloran
ide a hvsi console also provide a raw console so this is not an issue in practice. Actually-written-by: Benjamin Herrenschmidt <b...@kernel.crashing.org> Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> Cc: Stewart Smith <stew...@linux.vnet.ibm.com> Cc: sta...@vger.kernel.org --- C

[PATCH v6] powerpc/timer - large decrementer support

2016-07-01 Thread Oliver O'Halloran
nd LD mode will not be enabled. This patch was based on initial work by Jack Miller. Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> Signed-off-by: Balbir Singh <bsinghar...@gmail.com> Acked-by: Michael Neuling <mi...@neuling.org> Cc: Jack Miller <j...@codezen.org> ---

[PATCH] powerpc/mm: Add a parameter to disable 1TB segs

2016-07-03 Thread Oliver O'Halloran
.@neuling.org> Suggested-by: Michael Ellerman <m...@ellerman.id.au> Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> --- arch/powerpc/mm/hash_utils_64.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/powerpc/mm/hash_utils_64.c b/arch/powerpc/mm/hash_u

Re: [PowerPC] 4.10.0 fails to build on BE config

2017-02-21 Thread Oliver O'Halloran
On Tue, Feb 21, 2017 at 6:25 PM, abdul wrote: > Hi, > > Today's mainline build, breaks on Power6 and Power7 (all BE config) with > these build errors > > arch/powerpc/kernel/time.c: In function ‘running_clock’: > arch/powerpc/kernel/time.c:712:2: error: implicit

Re: [PATCH] powerpc/powernv: add hdat attribute to sysfs

2017-02-22 Thread Oliver O'Halloran
2935..cae3745 100644 > --- a/arch/powerpc/platforms/powernv/opal.c > +++ b/arch/powerpc/platforms/powernv/opal.c > @@ -740,6 +740,8 @@ static int __init opal_init(void) > opal_sys_param_init(); > /* Setup message log sysfs interface. */ > opal_msglog_sysfs_init(); > + /* Create hdat object under sys/firmware/opal */ > + opal_hdat_sysfs_init(); > } > > /* Initialize platform devices: IPMI backend, PRD & flash interface */ > -- > 2.9.3 > Quibbling aside, look ok. Reviewed-by: Oliver O'Halloran <ooh...@gmail.com>

Re: [PATCH] powerpc: Use octal numbers for file permissions

2017-01-17 Thread Oliver O'Halloran
"It's possible I missed one, but I did genuinely review all of it" Cyril Bur, 2016 In a hobart pub, specifically The Winston On 17/01/2017 8:53 PM, "Michael Ellerman" wrote: > Cyril Bur writes: > > > On Thu, 2017-01-12 at 14:54 +1100, Russell Currey

Re: [PATCH] powerpc: Use octal numbers for file permissions

2017-01-17 Thread Oliver O'Halloran
It has been pointed out that this actually occured in 2017. My apologies. On 17/01/2017 9:50 PM, "Oliver O'Halloran" <ooh...@gmail.com> wrote: > "It's possible I missed one, but I did genuinely review all of it" > > Cyril Bur, 2016 > In a hobart pub, specif

Re: [PATCH v3] powerpc/powernv: add hdat attribute to sysfs

2017-02-27 Thread Oliver O'Halloran
On Mon, Feb 27, 2017 at 9:56 PM, Michael Ellerman wrote: > Matt Brown writes: >> diff --git a/arch/powerpc/platforms/powernv/opal-hdat.c >> b/arch/powerpc/platforms/powernv/opal-hdat.c >> new file mode 100644 >> index 000..3315dd3 >> ---

[PATCH 1/5] powerpc/smp: use cpu_to_chip_id() to find siblings

2017-03-01 Thread Oliver O'Halloran
these manual lookups with the existing cpu_to_chip_id() function. Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> --- arch/powerpc/kernel/smp.c | 39 +-- 1 file changed, 13 insertions(+), 26 deletions(-) diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/

[PATCH 2/5] powerpc/smp: add set_cpus_related()

2017-03-01 Thread Oliver O'Halloran
-by: Oliver O'Halloran <ooh...@gmail.com> --- arch/powerpc/kernel/smp.c | 61 --- 1 file changed, 31 insertions(+), 30 deletions(-) diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c index dfe0e1d9cd06..1c531887ca51 100644 --- a/arch/p

[PATCH 3/5] powerpc/smp: Add update_cpu_masks()

2017-03-01 Thread Oliver O'Halloran
. This patch moves all the logic for rebuilding these masks into a single function and simplifies the logic which determines which CPUs are within a "core". Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> --- arch/powerpc/kernel/smp.c | 90 ---

[PATCH 4/5] powerpc/smp: add cpu_cache_mask

2017-03-01 Thread Oliver O'Halloran
this. Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> --- arch/powerpc/include/asm/smp.h | 6 ++ arch/powerpc/kernel/smp.c | 5 + 2 files changed, 11 insertions(+) diff --git a/arch/powerpc/include/asm/smp.h b/arch/powerpc/include/asm/smp.h index 32db16d2e7ad..a7fc3a105d61 100644 ---

[PATCH 5/5] powerpc/smp: Add Power9 scheduler topology

2017-03-01 Thread Oliver O'Halloran
to make more intelligent migration decisions. When one core in the pair is overloaded tasks can be migrated to its paired core to improve throughput without cache-refilling penality typically associated with task migration. Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> --- arch/powerpc/

Re: [RFC] Remove memory from nodes for memtrace.

2017-02-26 Thread Oliver O'Halloran
On Thu, Feb 23, 2017 at 8:39 AM, Rashmica Gupta wrote: > Some powerpc hardware features may want to gain access to a > chunk of undisturbed real memory. This update provides a means to unplug > said memory from the kernel with a set of sysfs calls. By writing an integer

Re: [PATCH v3] powerpc/powernv: add hdat attribute to sysfs

2017-02-26 Thread Oliver O'Halloran
of the GNU General Public License >> + * as published by the Free Software Foundation; either version >> + * 2 of the License, or (at your option) any later version. >> + */ >> + >> +#include >> +#include >> +#include >> +#include >> + >> +struct hdat_info { >> + char *base; >> + u64 size; >> +}; >> + >> +static struct hdat_info hdat_inf; > > > As Oliver pointed out, we could do with a better name than hdat_inf - it's > only one character away from the name of the struct type. Hmm, perhaps > "hdat_location", or maybe Oliver has a better suggestion. I'm not that bothered by it. Reviewed-by: Oliver O'Halloran <ooh...@gmail.com> > > > -- > Andrew Donnellan OzLabs, ADL Canberra > andrew.donnel...@au1.ibm.com IBM Australia Limited >

[PATCH 3/6] powerpc/boot: use the preboot decompression API

2016-08-30 Thread Oliver O'Halloran
algorithms. This patch converts the wrapper to use this new API, but does not add support for using new algorithms. Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> --- arch/powerpc/boot/Makefile | 10 ++- arch/powerpc/boot/decompress.c | 142 +

[PATCH 1/6] powerpc/boot: add sed script

2016-08-30 Thread Oliver O'Halloran
ed headers are copied into the build directory via several sed scripts which rewrite problematic includes. This patch moves these fixups out of the makefile into a separate .sed script file to clean up makefile slightly. Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> --- arch/power

[PATCH 5/6] powerpc/boot: add xz support to the wrapper script

2016-08-30 Thread Oliver O'Halloran
-by: Oliver O'Halloran <ooh...@gmail.com> --- arch/powerpc/boot/Makefile | 7 -- arch/powerpc/boot/wrapper | 61 ++ 2 files changed, 50 insertions(+), 18 deletions(-) diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile

[PATCH 2/6] powerpc/boot: Use CONFIG_KERNEL_GZIP

2016-08-30 Thread Oliver O'Halloran
Most architectures allow the compression algorithm used to produced the vmlinuz image to be selected as a kernel config option. In preperation for supporting algorithms other than gzip in the powerpc boot wrapper the makefile needs to be modified to use these config options. Signed-off-by: Oliver

[PATCH 6/6] powerpc/boot: Add support for XZ compression

2016-08-30 Thread Oliver O'Halloran
This patch adds an option to use XZ compression for the kernel image. Currently this is only enabled for PPC64 targets since the bulk of the 32bit platforms produce uboot images which do not use the wrapper. Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> --- arch/powerpc/boot/Ma

XZ compressed zImage support

2016-08-30 Thread Oliver O'Halloran
This series adds support for using XZ compression in addition to gzip in the kernel boot wrapper. Currently this is only enabled for 64bit Book3S processors since it seems that some embedded platforms rely on uBoot (or similar) to decompress the image rather than having the kernel decompress

[PATCH 4/6] powerpc/boot: remove legacy gzip wrapper

2016-08-30 Thread Oliver O'Halloran
This code is no longer used and can be removed. Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> --- arch/powerpc/boot/gunzip_util.c | 204 arch/powerpc/boot/gunzip_util.h | 45 - 2 files changed, 249 deletions(-) delete mode 10064

Re: Commit 1b7898ee276b "powerpc/boot: Use the pre-boot decompression API" breaks boot

2016-10-06 Thread Oliver O'Halloran
Hi, Heiner Could you send me a copy of the kernel .config (or which defconfig) that you're using, the name of the HW platform that you're using and if possible the kernel image itself? Thanks, Oliver

[PATCH v2 3/6] powerpc/boot: use the preboot decompression API

2016-09-19 Thread Oliver O'Halloran
algorithms. This patch converts the wrapper to use this new API, but does not add support for using new algorithms. Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> --- arch/powerpc/boot/Makefile | 34 +++--- arch/powerpc/boot/decompress.c

[PATCH v2 1/6] powerpc/boot: add sed script

2016-09-19 Thread Oliver O'Halloran
ed headers are copied into the build directory via several sed scripts which rewrite problematic includes. This patch moves these fixups out of the makefile into a separate .sed script file to clean up makefile slightly. Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> --- arch/power

[v2] XZ compressed zImage support

2016-09-19 Thread Oliver O'Halloran
This series adds support for using XZ compression in addition to gzip in the kernel boot wrapper. Currently this is only enabled for 64bit Book3S processors since it seems that some embedded platforms rely on uBoot (or similar) to decompress the image rather than having the kernel decompress

[PATCH v2 6/6] powerpc/boot: Add support for XZ compression

2016-09-19 Thread Oliver O'Halloran
This patch adds an option to use XZ compression for the kernel image. Currently this is only enabled for PPC64 targets since the bulk of the 32bit platforms produce uboot images which do not use the wrapper. Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> --- arch/powerpc/boot/Ma

[PATCH v2 5/6] powerpc/boot: add xz support to the wrapper script

2016-09-19 Thread Oliver O'Halloran
-by: Oliver O'Halloran <ooh...@gmail.com> --- arch/powerpc/boot/Makefile | 7 -- arch/powerpc/boot/wrapper | 61 ++ 2 files changed, 50 insertions(+), 18 deletions(-) diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile

[PATCH v2 2/6] powerpc/boot: Use CONFIG_KERNEL_GZIP

2016-09-19 Thread Oliver O'Halloran
Most architectures allow the compression algorithm used to produced the vmlinuz image to be selected as a kernel config option. In preperation for supporting algorithms other than gzip in the powerpc boot wrapper the makefile needs to be modified to use these config options. Signed-off-by: Oliver

[PATCH v2 4/6] powerpc/boot: remove legacy gzip wrapper

2016-09-19 Thread Oliver O'Halloran
This code is no longer used and can be removed. Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> --- arch/powerpc/boot/cuboot-c2k.c | 1 - arch/powerpc/boot/gunzip_util.c | 204 arch/powerpc/boot/gunzip_util.h | 45 - 3 files change

[PATCH 1/6] powerpc/boot: add sed script

2016-09-22 Thread Oliver O'Halloran
ed headers are copied into the build directory via several sed scripts which rewrite problematic includes. This patch moves these fixups out of the makefile into a separate .sed script file to clean up makefile slightly. Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> --- arch/power

[PATCH 4/6] powerpc/boot: remove legacy gzip wrapper

2016-09-22 Thread Oliver O'Halloran
This code is no longer used and can be removed. Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> --- arch/powerpc/boot/cuboot-c2k.c | 1 - arch/powerpc/boot/gunzip_util.c | 204 arch/powerpc/boot/gunzip_util.h | 45 - 3 files change

[PATCH 5/6] powerpc/boot: add xz support to the wrapper script

2016-09-22 Thread Oliver O'Halloran
is used for compression rather than xz -9. Using compression levels higher than 6 requires the decompressor to build a large (64MB) dictionary when decompressing and some environments cannot satisfy large allocations (e.g. POWER 6 LPAR partition firmware). Signed-off-by: Oliver O'Halloran <

[v3] XZ compressed zImage support

2016-09-22 Thread Oliver O'Halloran
This series adds support for using XZ compression in addition to gzip in the kernel boot wrapper. Currently this is only enabled for 64bit Book3S processors since it seems that some embedded platforms rely on uBoot (or similar) to decompress the image rather than having the kernel decompress

[PATCH 6/6] powerpc/boot: Add support for XZ compression

2016-09-22 Thread Oliver O'Halloran
This patch adds an option to use XZ compression for the kernel image. Currently this is only enabled for PPC64 targets since the bulk of the 32bit platforms produce uboot images which do not use the wrapper. Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> --- arch/powerpc/boot/Ma

[PATCH 3/6] powerpc/boot: use the preboot decompression API

2016-09-22 Thread Oliver O'Halloran
algorithms. This patch converts the wrapper to use this new API, but does not add support for using new algorithms. Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> --- arch/powerpc/boot/Makefile | 34 +++--- arch/powerpc/boot/decompress.c

[PATCH 2/6] powerpc/boot: Use CONFIG_KERNEL_GZIP

2016-09-22 Thread Oliver O'Halloran
Most architectures allow the compression algorithm used to produced the vmlinuz image to be selected as a kernel config option. In preperation for supporting algorithms other than gzip in the powerpc boot wrapper the makefile needs to be modified to use these config options. Signed-off-by: Oliver

Re: [PATCH v5 04/13] powerpc: Factor out relocation code from module_64.c to elf_util_64.c.

2016-08-23 Thread Oliver O'Halloran
On Tue, Aug 23, 2016 at 1:21 PM, Balbir Singh wrote: > >> zImage on ppc64 BE is an ELF32 file. This patch set only supports loading >> ELF files of the same class as the kernel, so a 64 bit kernel can't load an >> ELF32 file. It would be possible to add such support, but it

Re: [PATCH] Fix "ibm,processor-radix-AP-encodings"

2016-10-09 Thread Oliver O'Halloran
The modes of tlbie that use the AP field place it in bits 56:59 so I think Balbir's fix is correct. Reviewed-By: Oliver O'Halloran <ooh...@gmail.com>

Re: Commit 1b7898ee276b "powerpc/boot: Use the pre-boot decompression API" breaks boot

2016-10-09 Thread Oliver O'Halloran
On Mon, Oct 10, 2016 at 3:41 PM, Michael Ellerman <m...@ellerman.id.au> wrote: > Heiner Kallweit <hkallwe...@gmail.com> writes: > >> Am 07.10.2016 um 21:26 schrieb Heiner Kallweit: >>> Am 07.10.2016 um 07:51 schrieb Oliver O'Halloran: >>>>

[PATCH] powerpc/boot: fix the early OPAL console wrappers

2016-11-22 Thread Oliver O'Halloran
: 656ad58ef19e Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> --- arch/powerpc/boot/main.c | 8 ++-- arch/powerpc/boot/opal-calls.S | 13 + arch/powerpc/boot/opal.c | 11 +++ arch/powerpc/boot/ops.h| 1 + 4 files changed, 31 insertions(+), 2 del

Re: [RFC][PATCH] powerpc/64be: use ELFv2 ABI for big endian kernels

2016-11-23 Thread Oliver O'Halloran
On Thu, Nov 24, 2016 at 1:38 AM, Segher Boessenkool wrote: > On Thu, Nov 24, 2016 at 12:08:40AM +1100, Nicholas Piggin wrote: >> Question, are there any fundamental reasons we shouldn't use the ELFv2 >> ABI to build big endian kernels if the compiler supports it? > >

[PATCH] powerpc/powernv: de-deuplicate OPAL call wrappers

2016-10-30 Thread Oliver O'Halloran
Currently the code to perform an OPAL call is duplicated between the normal path and path taken when tracepoints are enabled. There's no real need for this and combining them makes opal_tracepoint_entry considerably easier to understand. Signed-off-by: Oliver O'Halloran <ooh...@gmail.

Re: [PATCH v2 2/3] cpuidle:powernv: Add helper function to populate powernv idle states.

2016-11-01 Thread Oliver O'Halloran
c) { > - powernv_states[nr_idle_states].target_residency = > - ((unsigned int)residency_ns[i]) / 1000; > - } > - > nr_idle_states++; > } > out: > diff --git a/include/linux/cpuidle.h b/include/linux/cpuidle.h > index bb31373..c4e10f8 100644 > --- a/include/linux/cpuidle.h > +++ b/include/linux/cpuidle.h > @@ -62,6 +62,7 @@ struct cpuidle_state { > }; > > /* Idle State Flags */ > +#define CPUIDLE_FLAG_NONE (0x00) > #define CPUIDLE_FLAG_COUPLED (0x02) /* state applies to multiple cpus */ > #define CPUIDLE_FLAG_TIMER_STOP (0x04) /* timer is stopped on this state */ > > -- > 1.9.4 > Looks good otherwise. Reviewed-by: Oliver O'Halloran <ooh...@gmail.com>

Re: Commit 1b7898ee276b "powerpc/boot: Use the pre-boot decompression API" breaks boot

2016-10-11 Thread Oliver O'Halloran
On Tue, Oct 11, 2016 at 7:06 AM, Heiner Kallweit wrote: >> IMHO in case of using cuboot no CONFIG_KERNEL_ config option >> should be set and Makefile + code in arch/powerpc/boot should be able >> to deal with this situation: >> - don't copy and build the decompression stuff

[PATCH] powerpc/time: clear LPCR.LD when unneeded

2016-12-15 Thread Oliver O'Halloran
Currently the kernel will enable LD mode at boot when required. However, when using kexec the second kernel may not want to have the LD enabled. This patch ensures the second kernel will explicitly clear the LD flag when not required by the current kernel. Signed-off-by: Oliver O'Halloran <

Re: [PATCH v5 2/5] powernv:stop: Uniformly rename power9 to arch300

2017-01-12 Thread Oliver O'Halloran
On Fri, Jan 13, 2017 at 2:44 PM, Gautham R Shenoy wrote: > On Thu, Jan 12, 2017 at 03:17:33PM +0530, Balbir Singh wrote: >> On Tue, Jan 10, 2017 at 02:37:01PM +0530, Gautham R. Shenoy wrote: >> > From: "Gautham R. Shenoy" >> > >> > Balbir pointed

[RFC PATCH] powerpc/powernv: report error messages from opal

2016-12-20 Thread Oliver O'Halloran
where someone will (hopefully) look at them. For the companion skiboot patches see: https://lists.ozlabs.org/pipermail/skiboot/2016-December/005861.html Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> --- arch/powerpc/include/asm/opal-api.h| 5 +++- arch/powerpc/i

[PATCH v2] powerpc/powernv: de-deuplicate OPAL call wrappers

2017-03-23 Thread Oliver O'Halloran
Currently the code to perform an OPAL call is duplicated between the normal path and path taken when tracepoints are enabled. There's no real need for this and combining them makes opal_tracepoint_entry considerably easier to understand. Signed-off-by: Oliver O'Halloran <ooh...@gmail.com>

Re: Build failure -- powerpc/boot: Add OPAL console to epapr wrappers

2017-03-24 Thread Oliver O'Halloran
or 1 > make[1]: *** [uImage] Error 2 > make[1]: Leaving directory `/nobackup/danielwa/linux/t1040' > make: *** [sub-make] Error 2 > > > and it bisects to , > > > commit 656ad58ef19e2a763fa5c938b20ae0f6b8d67242 > Author: Oliver O'Halloran <ooh...@gmail.com> > Date: Fr

Re: [PATCH 2/5] powerpc/smp: add set_cpus_related()

2017-03-22 Thread Oliver O'Halloran
On Wed, Mar 15, 2017 at 10:18 PM, Michael Ellerman <m...@ellerman.id.au> wrote: > Oliver O'Halloran <ooh...@gmail.com> writes: >> diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c >> index dfe0e1d9cd06..1c531887ca51 100644 >> --- a/arch/powerpc/k

Re: [PATCH 1/5] powerpc/smp: use cpu_to_chip_id() to find siblings

2017-03-22 Thread Oliver O'Halloran
On Wed, Mar 15, 2017 at 10:18 PM, Michael Ellerman <m...@ellerman.id.au> wrote: > Oliver O'Halloran <ooh...@gmail.com> writes: > >> To determine which logical CPUs are on the same core the kernel uses the >> ibm,chipid property from the device tree node associate

Re: [PATCH 4/5] powerpc/smp: add cpu_cache_mask

2017-03-22 Thread Oliver O'Halloran
On Wed, Mar 15, 2017 at 10:26 PM, Michael Ellerman <m...@ellerman.id.au> wrote: > Oliver O'Halloran <ooh...@gmail.com> writes: > >> Traditionally we have only ever tracked which CPUs are in the same core >> (cpu_sibling_mask) and on the same die (cpu_core_mask). For

Re: [PATCH 1/5] powerpc/smp: use cpu_to_chip_id() to find siblings

2017-03-27 Thread Oliver O'Halloran
On Tue, Mar 28, 2017 at 2:03 PM, Michael Ellerman <m...@ellerman.id.au> wrote: > Oliver O'Halloran <ooh...@gmail.com> writes: >> On Wed, Mar 15, 2017 at 10:18 PM, Michael Ellerman <m...@ellerman.id.au> >> wrote: >>> Oliver O'Halloran <ooh...@gmail.

[PATCH 2/2] powerpc/mm: add phys addr to linux page table dump

2017-03-30 Thread Oliver O'Halloran
the range coalescing so that only ranges that are both physically and virtually contiguous are combined. This patch also adds to the dump output the physical address at the start of each range. Cc: Rashmica Gupta <rashmic...@gmail.com> Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> ---

Re: [Patch v5] powerpc/powernv: add hdat attribute to sysfs

2017-03-16 Thread Oliver O'Halloran
On Thu, Mar 2, 2017 at 4:44 PM, Matt Brown wrote: > The HDAT data area is consumed by skiboot and turned into a device-tree. > In some cases we would like to look directly at the HDAT, so this patch > adds a sysfs node to allow it to be viewed. This is not possible

[PATCH] powerpc/mm: remove stale comment

2017-04-03 Thread Oliver O'Halloran
The code to fix the problem it describes was removed in c40785a and it uses the stupid comment style. Away it goes! Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> --- arch/powerpc/mm/hash_utils_64.c | 5 - 1 file changed, 5 deletions(-) diff --git a/arch/powe

[PATCH 2/9] mm/huge_memory: Deposit a pgtable for DAX PMD faults when required

2017-04-11 Thread Oliver O'Halloran
that require it. Other architectures should see no functional changes. Cc: "Aneesh Kumar K.V" <aneesh.ku...@linux.vnet.ibm.com> Cc: linux...@kvack.org Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> --- mm/huge_memory.c | 20 ++-- 1 file changed, 18 insertions(+)

[PATCH 1/9] mm/huge_memory: Use zap_deposited_table() more

2017-04-11 Thread Oliver O'Halloran
r K.V" <aneesh.ku...@linux.vnet.ibm.com> Cc: "Kirill A. Shutemov" <kirill.shute...@linux.intel.com> Cc: linux...@kvack.org Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> --- For reference: void zap_deposited_table(struct mm_struct *mm, pmd_t *pmd) {

[PATCH 3/9] powerpc/mm: Add _PAGE_DEVMAP for ppc64.

2017-04-11 Thread Oliver O'Halloran
From: "Aneesh Kumar K.V" <aneesh.ku...@linux.vnet.ibm.com> Add a _PAGE_DEVMAP bit for PTE and DAX PMD entires. PowerPC doesn't currently support PUD faults so we haven't extended it to the PUD level. Cc: Aneesh Kumar K.V <aneesh.ku...@linux.vnet.ibm.com> Signed-off-by:

[PATCH 5/9] powerpc/vmemmap: Add altmap support

2017-04-11 Thread Oliver O'Halloran
pressure on main system memory by allowing the mm/ metadata to be stored on the device itself rather in main memory. Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> --- arch/powerpc/mm/init_64.c | 20 +++- arch/powerpc/mm/mem.c | 16 +--- 2 files chang

[PATCH 6/9] powerpc, mm: Enable ZONE_DEVICE on powerpc

2017-04-11 Thread Oliver O'Halloran
Flip the switch. Running around and screaming "IT'S ALIVE" is optional, but recommended. Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> --- mm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/Kconfig b/mm/Kconfig index 43d000e44424..d696af58f97f

[PATCH 9/9] powerpc: Add pmem API support

2017-04-11 Thread Oliver O'Halloran
Initial powerpc support for the arch-specific bit of the persistent memory API. Nothing fancy here. Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> --- arch/powerpc/Kconfig| 1 + arch/powerpc/include/asm/pmem.h | 109 arch/powerpc/

ZONE_DEVICE and pmem API support for powerpc

2017-04-11 Thread Oliver O'Halloran
Hi all, This series adds support for ZONE_DEVICE and the pmem api on powerpc. Namely, support for altmaps and the various bits and pieces required for DAX PMD faults. The first two patches touch generic mm/ code, but otherwise this is fairly well contained in arch/powerpc. If the nvdimm folks

[PATCH 4/9] powerpc/mm: Reshuffle vmemmap_free()

2017-04-11 Thread Oliver O'Halloran
Removes an indentation level and shuffles some code around to make the following patch cleaner. No functional changes. Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> --- arch/powerpc/mm/init_64.c | 47 +-- 1 file changed, 25 insertions(

[PATCH 7/9] powerpc/mm: Wire up ioremap_cache

2017-04-11 Thread Oliver O'Halloran
The default implementation of ioremap_cache() is aliased to ioremap(). On powerpc ioremap() creates cache-inhibited mappings by default which is almost certainly not what you wanted. Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> --- arch/powerpc/include/asm/io.h | 2 ++ 1 file chan

[PATCH 8/9] powerpc/mm: Wire up hpte_removebolted for powernv

2017-04-11 Thread Oliver O'Halloran
t; Cc: Anton Blanchard <an...@samba.org> Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> --- Could the original author of this add their S-o-b? I pulled it out of Rashmica's memtrace patch, but I remember someone saying Anton wrote it originally. --- arch/powerpc/

[PATCH 1/2] powerpc/mm: fix up pgtable dump flags

2017-03-30 Thread Oliver O'Halloran
. Cc: Rashmica Gupta <rashmic...@gmail.com> Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> --- arch/powerpc/mm/dump_linuxpagetables.c | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/powerpc/mm/dump_linuxpagetables.c b/arch/powerpc/mm/dump_linuxpageta

Re: ZONE_DEVICE and pmem API support for powerpc

2017-04-12 Thread Oliver O'Halloran
On Wed, Apr 12, 2017 at 4:22 AM, Dan Williams <dan.j.willi...@intel.com> wrote: > On Tue, Apr 11, 2017 at 10:42 AM, Oliver O'Halloran <ooh...@gmail.com> wrote: >> Hi all, >> >> This series adds support for ZONE_DEVICE and the pmem api on powerpc. Namely, >> s

Re: [v8] powerpc/powernv: add 'firmware/exports' attributes to sysfs

2017-04-06 Thread Oliver O'Halloran
sysfs_create_bin_file(kobj, attr_tmp); > + if (rc) > + pr_warn("Error %d creating OPAL sysfs exports/%s > file\n", > + rc, prop->name); > + } > + > +cleanup: > + of_node_put(np); > +} &

Re: [PATCH 1/2] powerpc/mm: fix up pgtable dump flags

2017-04-12 Thread Oliver O'Halloran
On Wed, Apr 12, 2017 at 4:52 PM, Michael Ellerman <m...@ellerman.id.au> wrote: > Rashmica Gupta <rashmic...@gmail.com> writes: > >> On 31/03/17 12:37, Oliver O'Halloran wrote: >>> On Book3s we have two PTE flags used to mark cache-inhibited mappings: >>&g

Re: [PATCH 8/9] powerpc/mm: Wire up hpte_removebolted for powernv

2017-04-12 Thread Oliver O'Halloran
On Wed, Apr 12, 2017 at 11:53 AM, Balbir Singh <bsinghar...@gmail.com> wrote: > On Wed, 2017-04-12 at 03:42 +1000, Oliver O'Halloran wrote: >> From: Rashmica Gupta <rashmic...@gmail.com> >> >> Adds support for removing bolted (i.e kernel linear mapping) mappi

[PATCH] powerpc/misc: fix exported functions that reference the TOC

2017-04-02 Thread Oliver O'Halloran
to use each. Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> --- arch/powerpc/include/asm/ppc_asm.h | 12 arch/powerpc/kernel/misc_64.S | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/include/asm/ppc_asm.h b/arch/powerpc/inclu

Re: [PATCH] of: introduce event tracepoints for dynamic device_node lifecyle

2017-04-18 Thread Oliver O'Halloran
On Wed, Apr 19, 2017 at 2:46 AM, Rob Herring wrote: > On Mon, Apr 17, 2017 at 7:32 PM, Tyrel Datwyler > wrote: >> This patch introduces event tracepoints for tracking a device_nodes >> reference cycle as well as reconfig notifications generated in

[PATCH] powerpc/mm: Check for _PAGE_PTE in *_devmap()

2017-07-27 Thread Oliver O'Halloran
for everything except leaf (PTE) entries. Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> --- arch/powerpc/include/asm/book3s/64/pgtable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/include/asm/book3s/64/pgtable.h b/arch/powerpc/include/asm/book3s/64/pgt

[PATCH v2] powerpc/mm: Check for _PAGE_PTE in *_devmap()

2017-07-27 Thread Oliver O'Halloran
for everything except leaf (PTE) entries. Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> --- "i'll just tweak the mbox before i sent it, what's the worst that can happen" *completely breaks KVM* "..." --- arch/powerpc/include/asm/book3s/64/pgtable.h | 4 +++- 1 file c

  1   2   3   4   5   6   7   >