Re: [PATCH 1/2] powerpc/kexec: Reset secondary cpu endianess before kexec

2015-07-09 Thread Segher Boessenkool
On Tue, Jul 07, 2015 at 11:22:08PM -0500, Scott Wood wrote: I agree about using labels, but bcl 20,31,foo is not the same thing as bl foo. The former is a form of bl that doesn't perturb the link stack and is therefore better for performance when you're not going to do a matching blr

Re: [PATCH V3 3/5] mm: mlock: Introduce VM_LOCKONFAULT and add mlock flags to enable it

2015-07-09 Thread Eric B Munson
On Wed, 08 Jul 2015, Jonathan Corbet wrote: On Wed, 8 Jul 2015 16:34:56 -0400 Eric B Munson emun...@akamai.com wrote: Quick, possibly dumb question: I've been beating my head against these for a little bit, and I can't figure out what's supposed to happen in this case:

[PATCH V3 1/2] powerpc/kexec: Reset secondary cpu endianess before kexec

2015-07-09 Thread Samuel Mendoza-Jonas
If the target kernel does not inlcude the FIXUP_ENDIAN check, coming from a different-endian kernel will cause the target kernel to panic. All ppc64 kernels can handle starting in big-endian mode, so return to big-endian before branching into the target kernel. This mainly affects pseries as

RE: [RFC] genalloc:add an gen_pool_alloc_align func to genalloc

2015-07-09 Thread Zhao Qiang
-Original Message- From: Wood Scott-B07421 Sent: Friday, July 10, 2015 6:20 AM To: Zhao Qiang-B45475 Cc: lau...@codeaurora.org; linux-ker...@vger.kernel.org; linuxppc- d...@lists.ozlabs.org; a...@linux-foundation.org; o...@lixom.net; catalin.mari...@arm.com; Xie Xiaobo-R63061

[PATCH V3 2/2] powerpc/kexec: Reset HILE before entering target kernel

2015-07-09 Thread Samuel Mendoza-Jonas
On powernv secondary cpus are returned to OPAL, and will then enter the target kernel in big-endian. However if it is set the HILE bit will persist, causing the first exception in the target kernel to be delivered in litte-endian regardless of the current endianess. If running on top of OPAL make

[PATCH V3 0/2] powerpc/kexec: Reset endianess before kexec

2015-07-09 Thread Samuel Mendoza-Jonas
Older ppc64 kernels, namely those missing FIXUP_ENDIAN or opal_reinit_cpus, will fail to boot if started via kexec from a little-endian kernel. The following two patches make sure that the current endianess is reset to big-endian just before entering the target kernel, and are accompanied by a

Re: [PATCH] cxl: Destroy afu-contexts_idr on release of an afu

2015-07-09 Thread Ian Munsie
Acked-by: Ian Munsie imun...@au1.ibm.com ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH v4 4/7] powerpc/powernv: detect supported nest pmus and its events

2015-07-09 Thread Madhavan Srinivasan
On Thursday 09 July 2015 03:31 AM, Sukadev Bhattiprolu wrote: Madhavan Srinivasan [ma...@linux.vnet.ibm.com] wrote: | Parse device tree to detect supported nest pmu units. Traverse | through each nest pmu unit folder to find supported events and | corresponding unit/scale files (if any). |

PASEMI: PA6T board doesn't boot with the RC1 of kernel 4.2 anymore

2015-07-09 Thread Christian Zigotzky
Dear Ben, Thank you for your answer. On 09 July 2015 at 09:53 AM, Benjamin Herrenschmidt wrote: Michael, the crash looks like a neat NULL dereference, any chance you can spot something in the code that might explain it ? The strange thing is that the crash is in sb600_8259_cascade(), however

PASEMI: PA6T board doesn't boot with the RC1 of kernel 4.2 anymore

2015-07-09 Thread Christian Zigotzky
Denis You're right. First I'd like to figure out what the problem is. Then I'll build a new kernel for our PA6T system. After that I'll test it. Afterwards the beta testers will test it. Finally I'd like to upstream the SB600 patch. Rgds Christian On 09 July 2015 at 11:52 AM, Denis

Re: ipmi/powernv: Fix a minor bug

2015-07-09 Thread Neelesh Gupta
Hi Michael, On 07/08/2015 04:12 PM, Michael Ellerman wrote: On Wed, 2015-08-07 at 06:27:28 UTC, Neelesh Gupta wrote: If the OPAL call to receive the ipmi message fails, then we free up the smi message before returning. But, the driver still holds the reference to old smi message in the

[PATCH 1/1] serial/uuc_uart: Support higher bitrates than 115200 Bit/s

2015-07-09 Thread Alexander Stein
The maximum bitrate supported depends on the clock rate used in BRG. This is stored in port.uartclk during probe. Respecting the 16x oversampling higher bitrates can be supported. Signed-off-by: Alexander Stein alexander.st...@systec-electronic.com --- drivers/tty/serial/ucc_uart.c | 2 +- 1

Re: [PATCH V2 2/2] powerpc/kexec: Reset HILE before kexec_sequence

2015-07-09 Thread Stewart Smith
Michael Ellerman m...@ellerman.id.au writes: I think a better API would be that opal_return_cpu() deals with this under the covers. I think we talked about that, so maybe there was some reason that wasn't possible. opal_return_cpu() acts on current CPU which if we started flipping HILE

Re: [PATCH 2/2] rheap: move rheap.c from arch/powerpc/lib/ to lib/

2015-07-09 Thread Scott Wood
On Thu, 2015-07-09 at 01:05 -0500, Zhao Qiang-B45475 wrote: On Wed, 2015-07-09 at 11:51 -0500, Wood Scott wrote: -Original Message- From: Wood Scott-B07421 Sent: Thursday, July 09, 2015 11:51 AM To: Zhao Qiang-B45475 Cc: linuxppc-dev@lists.ozlabs.org; Xie Xiaobo-R63061

Re: [PATCH] cxl: Destroy cxl_adapter_idr on module_exit

2015-07-09 Thread Johannes Thumshirn
Ian Munsie imun...@au1.ibm.com writes: Acked-by: Ian Munsie imun...@au1.ibm.com We are probably also missing an idr_destroy(afu-contexts_idr); in cxl_release_afu() as well if you wanted to send a patch for that. Cheers, -Ian Correct, patch is going out today. Thanks for the hint. --

Re: [PATCH v2] powerpc/powernv: Fix race in updating core_idle_state

2015-07-09 Thread Michael Ellerman
On Thu, 2015-07-09 at 14:41 +1000, Daniel Axtens wrote: I recommend creating an alias or script that does: $ git log --pretty=fixes -n 1 $commit | xclip FWIW, having finally got around to doing this, I found I first needed the following snippet in ~/.gitconfig from

[PATCH] cxl: Destroy afu-contexts_idr on release of an afu

2015-07-09 Thread Johannes Thumshirn
Destroy afu-contexts_idr on release of an afu, reclaiming the allocated memory. Signed-off-by: Johannes Thumshirn jthumsh...@suse.de --- drivers/misc/cxl/pci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/misc/cxl/pci.c b/drivers/misc/cxl/pci.c index c68ef58..16b8e75a 100644 ---

Re: [PATCH v2] powerpc/powernv: Fix race in updating core_idle_state

2015-07-09 Thread Shreyas B Prabhu
On 07/09/2015 10:11 AM, Daniel Axtens wrote: I recommend creating an alias or script that does: $ git log --pretty=fixes -n 1 $commit | xclip FWIW, having finally got around to doing this, I found I first needed the following snippet in ~/.gitconfig from

Re: [PATCH v2] Caps in not always shift

2015-07-09 Thread Thomas Huth
Hi! Please CC to s...@lists.ozlabs.org now that we've finally got a SLOF mailing list :-) ! On Wed, 8 Jul 2015 18:47:44 +0200 Dinar valeev k...@opensuse.org wrote: ... /** + * Checks if keypos is a latin key + * @param keypos + * @return - + */ +void check_latin(uint8_t keypos) +

RE: [PATCH 2/2] rheap: move rheap.c from arch/powerpc/lib/ to lib/

2015-07-09 Thread Zhao Qiang
On Wed, 2015-07-09 at 11:51 -0500, Wood Scott wrote: -Original Message- From: Wood Scott-B07421 Sent: Thursday, July 09, 2015 11:51 AM To: Zhao Qiang-B45475 Cc: linuxppc-dev@lists.ozlabs.org; Xie Xiaobo-R63061 Subject: Re: [PATCH 2/2] rheap: move rheap.c from arch/powerpc/lib/ to

RE: [PATCH 2/2] rheap: move rheap.c from arch/powerpc/lib/ to lib/

2015-07-09 Thread Zhao Qiang
On Wed, 2015-07-09 at 02:09PM -0500, Wood Scott wrote: -Original Message- From: Wood Scott-B07421 Sent: Thursday, July 09, 2015 2:09 PM To: Zhao Qiang-B45475 Cc: linuxppc-dev@lists.ozlabs.org; Xie Xiaobo-R63061 Subject: Re: [PATCH 2/2] rheap: move rheap.c from arch/powerpc/lib/ to

Re: [PATCH 2/2] rheap: move rheap.c from arch/powerpc/lib/ to lib/

2015-07-09 Thread Scott Wood
On Thu, 2015-07-09 at 01:14 -0500, Zhao Qiang-B45475 wrote: On Wed, 2015-07-09 at 02:09PM -0500, Wood Scott wrote: -Original Message- From: Wood Scott-B07421 Sent: Thursday, July 09, 2015 2:09 PM To: Zhao Qiang-B45475 Cc: linuxppc-dev@lists.ozlabs.org; Xie Xiaobo-R63061

Re: PASEMI: PA6T board doesn't boot with the RC1 of kernel 4.2 anymore

2015-07-09 Thread Michael Ellerman
On Thu, 2015-07-09 at 07:19 +0200, Christian Zigotzky wrote: Hi All Many thanks for your answers. You're right. It is something wrong with my bisect. I will do another bisect. I will evaluate the one sometimes boots with good. Thanks Christian. cheers

[RFC] genalloc:add an gen_pool_alloc_align func to genalloc

2015-07-09 Thread Zhao Qiang
Bytes alignment is required to manage some special ram, so add gen_pool_alloc_align func to genalloc. rename gen_pool_alloc to gen_pool_alloc_align with a align parameter, then provide gen_pool_alloc to call gen_pool_alloc_align with align = 1 Byte. Signed-off-by: Zhao Qiang b45...@freescale.com

Re: PASEMI: PA6T board doesn't boot with the RC1 of kernel 4.2 anymore

2015-07-09 Thread Benjamin Herrenschmidt
On Thu, 2015-07-09 at 11:42 +1000, Michael Ellerman wrote: There is no way that commit affects anything on that platform, it only changes a file in arch/x86 that isn't compiled on a powerpc build. You must have made a mistake in your bisection, possibly the one sometimes boots should

[RFC Patch V1 03/12] PowerPC, PCI: Use for_pci_msi_entry() to access MSI device list

2015-07-09 Thread Jiang Liu
Use accessor for_pci_msi_entry() to access MSI device list, so we could easily move msi_list from struct pci_dev into struct device later. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/powerpc/platforms/cell/axon_msi.c |6 +++--- arch/powerpc/platforms/pasemi/msi.c|4

RE: [PATCH V3] QorIQ/TMU: add TMU node to device tree for QorIQ T1040

2015-07-09 Thread Hongtao Jia
Hi Scott, Patch updated to V3, please help to review. Thanks. --- Best Regards, Hongtao -Original Message- From: Jia Hongtao [mailto:hongtao@freescale.com] Sent: Thursday, June 11, 2015 3:53 PM To: Wood Scott-B07421 Cc: linuxppc-dev@lists.ozlabs.org; devicet...@vger.kernel.org;

Re: [PATCH v4 5/7] powerpc/powernv: add event attribute and group to nest pmu

2015-07-09 Thread Madhavan Srinivasan
On Thursday 09 July 2015 04:13 AM, Sukadev Bhattiprolu wrote: Madhavan Srinivasan [ma...@linux.vnet.ibm.com] wrote: | Add code to create event/format attributes and attribute groups for | each nest pmu. | | Cc: Michael Ellerman m...@ellerman.id.au | Cc: Benjamin Herrenschmidt

PASEMI: PA6T board doesn't boot with the RC1 of kernel 4.2 anymore

2015-07-09 Thread Christian Zigotzky
All I think you haven't received the SB600 patch yet. I have pasted it in this email directly. Thank you for your help. I am sorry because of this long patch but I hope you could help me a bit. Thanks Christian - nemo_4.1-3.patch - diff -rupN

[PATCH V2] powerpc/irq: Enable some more exceptions in /proc/interrupts interface

2015-07-09 Thread Anshuman Khandual
This patch enables facility unavailable exceptions for generic facility, FPU, ALTIVEC and VSX in /proc/interrupts listing by incrementing their newly added IRQ statistical counters as and when these exceptions happen. This also adds couple of helper functions which will be called from within the

Re: PASEMI: PA6T board doesn't boot with the RC1 of kernel 4.2 anymore

2015-07-09 Thread Denis Kirjanov
On 7/9/15, Christian Zigotzky chzigot...@xenosoft.de wrote: All I think you haven't received the SB600 patch yet. I have pasted it in this email directly. Thank you for your help. I am sorry because of this long patch but I hope you could help me a bit. But the first thing then is to

Re: [PATCH v2] Caps in not always shift

2015-07-09 Thread Segher Boessenkool
On Thu, Jul 09, 2015 at 08:00:48AM +0200, Thomas Huth wrote: /** + * Checks if keypos is a latin key + * @param keypos + * @return - + */ +void check_latin(uint8_t keypos) + if (keypos KEYP_LATIN_A || keypos KEYP_LATIN_Z) { + return true; + } else { +

Re: [PATCH v4 4/7] powerpc/powernv: detect supported nest pmus and its events

2015-07-09 Thread Sukadev Bhattiprolu
Sukadev Bhattiprolu [suka...@linux.vnet.ibm.com] wrote: | | @@ -50,6 +163,15 @@ static int nest_ima_dt_parser(void) | | p8ni-vbase = (uint64_t) phys_to_virt(p8ni-pbase); | | } | | | | + /* Look for supported Nest PMU units */ | | + idx = 0; | | + for_each_node_by_type(dev,

[PATCH 05/11] soc/bman: Add self-tester for BMan driver

2015-07-09 Thread Roy Pledge
From: Geoff Thorpe geoff.tho...@freescale.com Add a self test for the DPAA 1.0 Buffer Manager driver. This test ensures that the driver can properly acquire and release buffers using the BMan portal infrastructure. Signed-off-by: Geoff Thorpe geoff.tho...@freescale.com Signed-off-by: Emil Medve

[PATCH 00/11] Freescale DPAA QBMan Drivers

2015-07-09 Thread Roy Pledge
The Freescale Data Path Acceleration Architecture (DPAA) is a set of hardware components on specific QorIQ multicore processors. This architecture provides the infrastructure to support simplified sharing of networking interfaces and accelerators by multiple CPU cores and the accelerators.

[PATCH 02/11] soc/fsl: Introduce DPAA BMan device management driver

2015-07-09 Thread Roy Pledge
From: Geoff Thorpe geoff.tho...@freescale.com This driver enables the Freescale DPAA 1.0 Buffer Manager block. BMan is a hardware buffer pool manager that allows accelerators connected to the SoC datapath to acquire and release buffers during data processing. Signed-off-by: Geoff Thorpe

[PATCH 00/11] Freescale DPAA QBMan Drivers

2015-07-09 Thread Roy Pledge
The Freescale Data Path Acceleration Architecture (DPAA) is a set of hardware components on specific QorIQ multicore processors. This architecture provides the infrastructure to support simplified sharing of networking interfaces and accelerators by multiple CPU cores and the accelerators.

[PATCH 06/11] soc/qman: Add self-tester for QMan driver

2015-07-09 Thread Roy Pledge
From: Geoff Thorpe geoff.tho...@freescale.com Add a self test for the DPAA 1.0 Queue Manager driver. The tests ensure that the driver can properly enqueue and dequeue from frame queues using the QMan portal infrastructure. Signed-off-by: Geoff Thorpe geoff.tho...@freescale.com Signed-off-by:

Re: [PATCH 1/2] powerpc/kexec: Reset secondary cpu endianess before kexec

2015-07-09 Thread Scott Wood
On Thu, 2015-07-09 at 10:42 -0500, Segher Boessenkool wrote: On Tue, Jul 07, 2015 at 11:22:08PM -0500, Scott Wood wrote: I agree about using labels, but bcl 20,31,foo is not the same thing as bl foo. The former is a form of bl that doesn't perturb the link stack and is therefore better

[PATCH 07/11] soc/bman: Add debugfs support for the BMan driver

2015-07-09 Thread Roy Pledge
From: Geoff Thorpe geoff.tho...@freescale.com Add debugfs support for querying the state of hardware based Buffer Manager pools used in DPAA 1.0. Signed-off-by: Geoff Thorpe geoff.tho...@freescale.com Signed-off-by: Emil Medve emilian.me...@freescale.com Signed-off-by: Roy Pledge

[PATCH 01/11] powerpc: re-add devm_ioremap_prot()

2015-07-09 Thread Roy Pledge
From: Emil Medve emilian.me...@freescale.com devm_ioremap_prot() was removed in commit dedd24a12, and was introduced in commit b41e5fffe8. This reverts commit dedd24a12fe6735898feeb06184ee346907abb5d. Signed-off-by: Emil Medve emilian.me...@freescale.com --- arch/powerpc/include/asm/io.h |

[PATCH 11/11] soc/qman: add qman_delete_cgr_safe()

2015-07-09 Thread Roy Pledge
From: Madalin Bucur madalin.bu...@freescale.com Add qman_delete_cgr_safe() that can be called from any CPU. This in turn schedules qman_delete_cgr() on the proper CPU. Signed-off-by: Madalin Bucur madalin.bu...@freescale.com Signed-off-by: Roy Pledge roy.ple...@freescale.com ---

[PATCH v2 11/20] tty/hvc: xen: Use xen page definition

2015-07-09 Thread Julien Grall
The console ring is always based on the page granularity of Xen. Signed-off-by: Julien Grall julien.gr...@citrix.com Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Cc: Jiri Slaby jsl...@suse.cz Cc: David Vrabel david.vra...@citrix.com Cc: Stefano Stabellini stefano.stabell...@eu.citrix.com Cc:

Re: [PATCH v4 4/7] powerpc/powernv: detect supported nest pmus and its events

2015-07-09 Thread Sukadev Bhattiprolu
Madhavan Srinivasan [ma...@linux.vnet.ibm.com] wrote: | | Are the 'start.*' and 'unit.*' files events by themselves or just attributes | of events? | | These are attributes needed for computation. unit and scale attributes | will be used by perf tool in post-processing the counter data. These

[PATCH 09/11] soc/bman: Add HOTPLUG_CPU support to the BMan driver

2015-07-09 Thread Roy Pledge
From: Hai-Ying Wang haiying.w...@freescale.com Add support for CPU hotplug for the DPAA 1.0 Buffer Manager driver Signed-off-by: Hai-Ying Wang haiying.w...@freescale.com Signed-off-by: Emil Medve emilian.me...@freescale.com Signed-off-by: Roy Pledge roy.ple...@freescale.com ---

[PATCH 10/11] soc/qman: Add HOTPLUG_CPU support to the QMan driver

2015-07-09 Thread Roy Pledge
From: Hai-Ying Wang haiying.w...@freescale.com Add support for CPU hotplug for the DPAA 1.0 Queue Manager driver. Signed-off-by: Hai-Ying Wang haiying.w...@freescale.com Signed-off-by: Emil Medve emilian.me...@freescale.com Signed-off-by: Roy Pledge roy.ple...@freescale.com ---

[PATCH 08/11] soc/qman: Add debugfs support for the QMan driver

2015-07-09 Thread Roy Pledge
From: Geoff Thorpe geoff.tho...@freescale.com Add debugfs sypport for querying the state of hardware based queues managed by the DPAA 1.0 Queue Manager. Signed-off-by: Geoff Thorpe geoff.tho...@freescale.com Signed-off-by: Emil Medve emilian.me...@freescale.com Signed-off-by: Madalin Bucur

Re: [RFC] genalloc:add an gen_pool_alloc_align func to genalloc

2015-07-09 Thread Laura Abbott
On 07/09/2015 03:17 PM, Scott Wood wrote: On Thu, 2015-07-09 at 14:51 -0700, Laura Abbott wrote: On 07/09/2015 12:47 AM, Zhao Qiang wrote: Bytes alignment is required to manage some special ram, so add gen_pool_alloc_align func to genalloc. rename gen_pool_alloc to gen_pool_alloc_align with a

[PATCH] cxl: Check if afu is not null in cxl_slbia

2015-07-09 Thread Daniel Axtens
The pointer to an AFU in the adapter's list of AFUs can be null if we're in the process of removing AFUs. The afu_list_lock doesn't guard against this. Say we have 2 slices, and we're in the process of removing cxl. - We remove the AFUs in order (see cxl_remove). In cxl_remove_afu for AFU 0,

Re: [RFC] genalloc:add an gen_pool_alloc_align func to genalloc

2015-07-09 Thread Scott Wood
On Thu, 2015-07-09 at 14:51 -0700, Laura Abbott wrote: On 07/09/2015 12:47 AM, Zhao Qiang wrote: Bytes alignment is required to manage some special ram, so add gen_pool_alloc_align func to genalloc. rename gen_pool_alloc to gen_pool_alloc_align with a align parameter, then provide

Re: [PATCH V3] QorIQ/TMU: add TMU node to device tree for QorIQ T1040

2015-07-09 Thread Scott Wood
On Thu, 2015-07-09 at 03:00 -0500, Jia Hongtao-B38951 wrote: Hi Scott, Patch updated to V3, please help to review. Thanks. --- Best Regards, Hongtao It looks OK. -Scott ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org

Re: [RFC] genalloc:add an gen_pool_alloc_align func to genalloc

2015-07-09 Thread Laura Abbott
On 07/09/2015 12:47 AM, Zhao Qiang wrote: Bytes alignment is required to manage some special ram, so add gen_pool_alloc_align func to genalloc. rename gen_pool_alloc to gen_pool_alloc_align with a align parameter, then provide gen_pool_alloc to call gen_pool_alloc_align with align = 1 Byte.

Re: [RFC] genalloc:add an gen_pool_alloc_align func to genalloc

2015-07-09 Thread Scott Wood
On Thu, 2015-07-09 at 15:47 +0800, Zhao Qiang wrote: @@ -541,13 +562,14 @@ EXPORT_SYMBOL(gen_pool_first_fit_order_align); * which we can allocate the memory. */ unsigned long gen_pool_best_fit(unsigned long *map, unsigned long size, - unsigned long start, unsigned int nr,

PASEMI: PA6T board doesn't boot with the RC1 of kernel 4.2 anymore

2015-07-09 Thread Christian Zigotzky
Hi All, Many thanks for your help. You're right. It was something wrong with my last bisect. I did another bisect. I evaluated the one sometimes boots with good. Log: git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git linux-git git bisect start git bisect good

Re: [PATCH] cxl: Check if afu is not null in cxl_slbia

2015-07-09 Thread Michael Neuling
On Fri, 2015-07-10 at 09:04 +1000, Daniel Axtens wrote: The pointer to an AFU in the adapter's list of AFUs can be null if we're in the process of removing AFUs. The afu_list_lock doesn't guard against this. Say we have 2 slices, and we're in the process of removing cxl. - We remove the

Re: [PATCH] cxl: Check if afu is not null in cxl_slbia

2015-07-09 Thread Ian Munsie
Acked-by: Ian Munsie imun...@au1.ibm.com ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev