Re: powerpc/defconfig: new way of writing defconfig

2015-04-21 Thread Michael Ellerman
On Sat, 2015-18-04 at 04:47:21 UTC, Lijun Pan wrote: It is always a headache dealing with different defconfigs though they only differ in few places. Hence we are proposing a new way of writing defconfig: So on the whole this is looking promising, some comments ... 1. Define a basic

Re: powerpc/defconfig: new way of writing defconfig

2015-04-21 Thread Scott Wood
On Tue, 2015-04-21 at 16:15 +1000, Michael Ellerman wrote: On Sat, 2015-18-04 at 04:47:21 UTC, Lijun Pan wrote: It is always a headache dealing with different defconfigs though they only differ in few places. Hence we are proposing a new way of writing defconfig: So on the whole this is

Re: [PATCH 2/2] powerpc: Disable building the 32-bit VDSO on little endian

2015-04-21 Thread Scott Wood
On Tue, 2015-04-21 at 19:41 +1000, Michael Ellerman wrote: diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/platforms/Kconfig.cputype index 12fc443b9d54..1324f589f43a 100644 --- a/arch/powerpc/platforms/Kconfig.cputype +++ b/arch/powerpc/platforms/Kconfig.cputype @@ -405,6

Re: [PATCH 1/2] powerpc: Little endian should depend on PPC64

2015-04-21 Thread Scott Wood
On Tue, 2015-04-21 at 19:41 +1000, Michael Ellerman wrote: The only little endian configuration we support is ppc64le, so we shouldn't be asking which endian to use when building 32-bit kernels, they are always big endian. Signed-off-by: Michael Ellerman m...@ellerman.id.au ---

Re: new way of writing defconfigs for freescale's powerpc platforms

2015-04-21 Thread Scott Wood
On Tue, 2015-04-21 at 08:25 -0500, Timur Tabi wrote: Scott Wood wrote: We want single-name config targets to still work from the user's perspective, but we want to reduce the (often imperfect) duplication under the hood. Ok, then define a new Kconfig option that merge_config.sh will look

Re: new way of writing defconfigs for freescale's powerpc platforms

2015-04-21 Thread Scott Wood
On Tue, 2015-04-21 at 13:11 -0500, Timur Tabi wrote: On 04/21/2015 12:55 PM, Scott Wood wrote: Ok, then define a new Kconfig option that merge_config.sh will look for. So in p1_defconfig, there will be this line: CONFIG_OTHER_DEFCONFIGS=fsl_basic_config If you want to do that go

Re: new way of writing defconfigs for freescale's powerpc platforms

2015-04-21 Thread Timur Tabi
On 04/21/2015 12:55 PM, Scott Wood wrote: Ok, then define a new Kconfig option that merge_config.sh will look for. So in p1_defconfig, there will be this line: CONFIG_OTHER_DEFCONFIGS=fsl_basic_config If you want to do that go ahead. In the meantime we'll use the mechanism that already

Re: [PATCH 4/5] ibmveth: Add support for Large Receive Offload

2015-04-21 Thread Thomas Falcon
On 04/14/2015 05:00 PM, Eric Dumazet wrote: On Tue, 2015-04-14 at 15:35 -0500, Thomas Falcon wrote: Enables receiving large packets from other LPARs. These packets have a -1 IP header checksum, so we must recalculate to have a valid checksum. Signed-off-by: Brian King

Re: [Y2038] [PATCH 05/11] time/posix-timers:Convert to the 64bit methods for k_clock callback functions

2015-04-21 Thread Baolin Wang
On 21 April 2015 at 16:45, Arnd Bergmann a...@arndb.de wrote: On Tuesday 21 April 2015 16:36:13 Baolin Wang wrote: On 21 April 2015 at 04:48, Thomas Gleixner t...@linutronix.de wrote: On Mon, 20 Apr 2015, Baolin Wang wrote: /* Set clock_realtime */ static int

Re: new way of writing defconfigs for freescale's powerpc platforms

2015-04-21 Thread Timur Tabi
Scott Wood wrote: We want single-name config targets to still work from the user's perspective, but we want to reduce the (often imperfect) duplication under the hood. Ok, then define a new Kconfig option that merge_config.sh will look for. So in p1_defconfig, there will be this line:

Re: [PATCH RFC] powerpc/ftrace: add powerpc timebase as a trace clock source

2015-04-21 Thread Steven Rostedt
On Tue, 21 Apr 2015 16:33:36 +0530 Naveen N. Rao naveen.n@linux.vnet.ibm.com wrote: Add a new powerpc-specific trace clock using the timebase register, similar to x86-tsc. This gives us a fast, monotonic, cross-cpu clock for trace entries and can be used to correlate events across cpus as

Re: [PATCH kernel v8 15/31] powerpc/iommu: Fix IOMMU ownership control functions

2015-04-21 Thread David Gibson
On Mon, Apr 20, 2015 at 04:34:24PM +1000, Alexey Kardashevskiy wrote: On 04/20/2015 12:46 PM, David Gibson wrote: On Fri, Apr 17, 2015 at 08:16:13PM +1000, Alexey Kardashevskiy wrote: On 04/16/2015 04:10 PM, David Gibson wrote: On Fri, Apr 10, 2015 at 04:30:57PM +1000, Alexey Kardashevskiy

Re: [Y2038] [PATCH 04/11] posix timers:Introduce the 64bit methods with timespec64 type for k_clock structure

2015-04-21 Thread Arnd Bergmann
On Monday 20 April 2015 22:40:57 Thomas Gleixner wrote: On Mon, 20 Apr 2015, Baolin Wang wrote: @@ -771,6 +771,7 @@ SYSCALL_DEFINE2(timer_gettime, timer_t, timer_id, struct itimerspec __user *, setting) { struct itimerspec cur_setting; + struct itimerspec64

[PATCH 1/2] powerpc: Little endian should depend on PPC64

2015-04-21 Thread Michael Ellerman
The only little endian configuration we support is ppc64le, so we shouldn't be asking which endian to use when building 32-bit kernels, they are always big endian. Signed-off-by: Michael Ellerman m...@ellerman.id.au --- arch/powerpc/platforms/Kconfig.cputype | 1 + 1 file changed, 1 insertion(+)

[PATCH 2/2] powerpc: Disable building the 32-bit VDSO on little endian

2015-04-21 Thread Michael Ellerman
The only little endian configuration we support is ppc64le. As such if we're building little endian we don't need a 32-bit VDSO, because there is no 32-bit userspace. This patch is a fairly ugly mess of #ifdefs, but is the minimal logic required to disable the 32-bit VDSO. We can hopefully clean

Re: [PATCH 01/11] linux/time64.h:Introduce the 'struct itimerspec64' for 64bit

2015-04-21 Thread Baolin Wang
On 21 April 2015 at 03:14, Thomas Gleixner t...@linutronix.de wrote: On Mon, 20 Apr 2015, Baolin Wang wrote: This patch introduces the 'struct itimerspec64' for 64bit to replace itimerspec, and also introduces the conversion methods: itimerspec64_to_itimerspec() and

Re: [Y2038] [PATCH 05/11] time/posix-timers:Convert to the 64bit methods for k_clock callback functions

2015-04-21 Thread Arnd Bergmann
On Tuesday 21 April 2015 16:36:13 Baolin Wang wrote: On 21 April 2015 at 04:48, Thomas Gleixner t...@linutronix.de wrote: On Mon, 20 Apr 2015, Baolin Wang wrote: /* Set clock_realtime */ static int posix_clock_realtime_set(const clockid_t which_clock, -

Re: [PATCH kernel v8 14/31] vfio: powerpc/spapr: powerpc/powernv/ioda2: Rework IOMMU ownership control

2015-04-21 Thread David Gibson
On Mon, Apr 20, 2015 at 04:55:32PM +1000, Alexey Kardashevskiy wrote: On 04/20/2015 12:44 PM, David Gibson wrote: On Fri, Apr 17, 2015 at 08:09:29PM +1000, Alexey Kardashevskiy wrote: On 04/16/2015 04:07 PM, David Gibson wrote: On Fri, Apr 10, 2015 at 04:30:56PM +1000, Alexey Kardashevskiy

[PATCH] powerpc/mm: Fix build error with CONFIG_PPC_TRANSACTIONAL_MEM disabled

2015-04-21 Thread Aneesh Kumar K.V
This fix the below build error arch/powerpc/mm/hash_utils_64.c: In function ‘flush_hash_hugepage’: arch/powerpc/mm/hash_utils_64.c:1381:1: error: label at end of compound statement tm_abort: ^ make[1]: *** [arch/powerpc/mm/hash_utils_64.o] Error 1 Reported-by: Anshuman Khandual

Re: [V6,1/9] elf: Add new powerpc specifc core note sections

2015-04-21 Thread Ulrich Weigand
Anshuman Khandual khand...@linux.vnet.ibm.com wrote on 21.04.2015 06:55:24: Changed ELF core note sections -- These core note sections need to be changed to accommodate the in transaction ptrace requests when the running/current value of these registers will

Re: [Y2038] [PATCH 04/11] posix timers:Introduce the 64bit methods with timespec64 type for k_clock structure

2015-04-21 Thread Thomas Gleixner
On Tue, 21 Apr 2015, Arnd Bergmann wrote: COMPAT_SYSCALL_DEFINE2(timer_gettime, timer_t, timer_id, struct compat_itimerspec __user *, setting) As a side note, I want to kill off the get_fs()/set_fs() calls in the process. These always make me dizzy when I try to work

Re: [PATCH] powerpc, mm: Fix build failure due to CONFIG_PPC_TRANSACTIONAL_MEM

2015-04-21 Thread Aneesh Kumar K.V
Anshuman Khandual khand...@linux.vnet.ibm.com writes: The function flush_hash_page fails to compile when the transaction memory config option is turned off because there is a label at end of compound statement. This patch moves the code block into a function tm_abort_tlbi and calls it after

Re: [Y2038] [PATCH 04/11] posix timers:Introduce the 64bit methods with timespec64 type for k_clock structure

2015-04-21 Thread Arnd Bergmann
On Tuesday 21 April 2015 16:14:26 Thomas Gleixner wrote: Note the use of a separate __kernel_itimerspec64 for the user interface here, which I think will be needed to hide the differences between the normal itimerspec on 64-bit machines, and the new itimerspec on 32-bit platforms that will

Re: [Y2038] [PATCH 04/11] posix timers:Introduce the 64bit methods with timespec64 type for k_clock structure

2015-04-21 Thread Thomas Gleixner
On Tue, 21 Apr 2015, Arnd Bergmann wrote: On Tuesday 21 April 2015 16:14:26 Thomas Gleixner wrote: Note the use of a separate __kernel_itimerspec64 for the user interface here, which I think will be needed to hide the differences between the normal itimerspec on 64-bit machines, and the

[PATCH] powerpc: Don't do gcc version checks if we're building with clang

2015-04-21 Thread Michael Ellerman
We have several checks for bad gcc versions in our Makefile. These don't apply if we're building with clang, so skip them in that case. The obvious check would be for ${COMPILER} = gcc, but because of the way the logic in the top level Makefile conditionally sets COMPILER, it's possible that

[PATCH 3.16.y-ckt 078/144] timers/tick/broadcast-hrtimer: Fix suspicious RCU usage in idle loop

2015-04-21 Thread Luis Henriques
3.16.7-ckt10 -stable review patch. If anyone has any objections, please let me know. -- From: Preeti U Murthy pre...@linux.vnet.ibm.com commit a127d2bcf1fbc8c8e0b5cf0dab54f7d3ff50ce47 upstream. The hrtimer mode of broadcast queues hrtimers in the idle entry path so as to

[PATCH v2 RESEND 1/2] arm64: dts: Add the arasan sdhc nodes in apm-storm.dtsi.

2015-04-21 Thread Suman Tripathi
This patch adds the arasan sdhc nodes to reuse the of-arasan driver for APM X-Gene SoC. Signed-off-by: Suman Tripathi stripa...@apm.com --- arch/arm64/boot/dts/apm-storm.dtsi | 44 ++ 1 file changed, 44 insertions(+) diff --git

[PATCH v2 RESEND 2/2] mmc: host: Add some quirks to be read from fdt in sdhci-pltm.c

2015-04-21 Thread Suman Tripathi
This patch adds some quirks support to be read from fdt. Signed-off-by: Suman Tripathi stripa...@apm.com --- drivers/mmc/host/sdhci-pltfm.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/mmc/host/sdhci-pltfm.c b/drivers/mmc/host/sdhci-pltfm.c index bef250e..9f6a4b9

Re: [Y2038] [PATCH 04/11] posix timers:Introduce the 64bit methods with timespec64 type for k_clock structure

2015-04-21 Thread Arnd Bergmann
On Tuesday 21 April 2015 17:13:32 Thomas Gleixner wrote: On Tue, 21 Apr 2015, Arnd Bergmann wrote: On Tuesday 21 April 2015 16:14:26 Thomas Gleixner wrote: Note the use of a separate __kernel_itimerspec64 for the user interface here, which I think will be needed to hide the differences

[PATCH v2 RESEND 0/2] Add SDHCI support for APM X-Gene SoC using ARASAN SDHCI controller.

2015-04-21 Thread Suman Tripathi
This patch adds the SDHCI support for APM X-Gene SoC using ARASAN SDHCI controller. v1 change: * Use the CONFIG_ARM64_DMA_HAS_IOMMU for dma-mapping. v2 change: * Drop the IOMMU support and switching to PIO mode for arasan controller integrated inside APM X-Gene SoC. Signed-off-by: Suman

Re: [PATCH v2 RESEND 2/2] mmc: host: Add some quirks to be read from fdt in sdhci-pltm.c

2015-04-21 Thread Arnd Bergmann
On Tuesday 21 April 2015 21:12:39 Suman Tripathi wrote: index bef250e..9f6a4b9 100644 --- a/drivers/mmc/host/sdhci-pltfm.c +++ b/drivers/mmc/host/sdhci-pltfm.c @@ -85,6 +85,21 @@ void sdhci_get_of_property(struct platform_device *pdev) if (of_get_property(np, broken-cd,

Re: [PATCH] powerpc/defconfig: new way of writing defconfig

2015-04-21 Thread Scott Wood
On Fri, 2015-04-17 at 23:47 -0500, Lijun Pan wrote: diff --git a/arch/powerpc/configs/kvm_guest.config b/arch/powerpc/configs/kvm_guest.config new file mode 100644 index 000..615b0a0 --- /dev/null +++ b/arch/powerpc/configs/kvm_guest.config @@ -0,0 +1,2 @@ +CONFIG_KVM_GUEST=y

Re: [Y2038] [PATCH 04/11] posix timers:Introduce the 64bit methods with timespec64 type for k_clock structure

2015-04-21 Thread Thomas Gleixner
On Tue, 21 Apr 2015, Arnd Bergmann wrote: I know there are concerns about this, in particular because C11 and POSIX both require tv_nsec to be 'long', unlike timeval-tv_usec, which is a 'suseconds_t' and can be defined as 'long long'. a) struct timespec { time_t tv_sec; long

Re: [PATCH 1/2] powerpc: Little endian should depend on PPC64

2015-04-21 Thread Michael Ellerman
On Tue, 2015-04-21 at 13:33 -0500, Scott Wood wrote: On Tue, 2015-04-21 at 19:41 +1000, Michael Ellerman wrote: The only little endian configuration we support is ppc64le, so we shouldn't be asking which endian to use when building 32-bit kernels, they are always big endian.

Re: [PATCH RFC] powerpc/ftrace: add powerpc timebase as a trace clock source

2015-04-21 Thread Naveen N. Rao
On 2015/04/21 09:25AM, Steven Rostedt wrote: On Tue, 21 Apr 2015 16:33:36 +0530 Naveen N. Rao naveen.n@linux.vnet.ibm.com wrote: Add a new powerpc-specific trace clock using the timebase register, similar to x86-tsc. This gives us a fast, monotonic, cross-cpu clock for trace entries

[PATCH 3/3] powerpc/vdso: Disable building the 32-bit VDSO on little endian

2015-04-21 Thread Michael Ellerman
The only little endian configuration we support is ppc64le. As such if we're building little endian we don't need a 32-bit VDSO, because there is no 32-bit userspace. This patch is a fairly ugly mess of #ifdefs, but is the minimal logic required to disable the 32-bit VDSO. We can hopefully clean

[PATCH 1/3] powerpc/vdso: Remove unused debug code

2015-04-21 Thread Michael Ellerman
It's in the git history if we ever need it back. Signed-off-by: Michael Ellerman m...@ellerman.id.au --- arch/powerpc/kernel/vdso.c | 44 1 file changed, 44 deletions(-) diff --git a/arch/powerpc/kernel/vdso.c b/arch/powerpc/kernel/vdso.c index

[PATCH 2/3] powerpc/vdso: Combine start/size variables

2015-04-21 Thread Michael Ellerman
In vdso_fixup_features() we have start64/start32 and size64/size32, but they have the same types, ie. void * and unsigned long. They're only used to save the return value from find_sectionXX() for the subsequent call to do_feature_fixups(), so there's no overlap in their usage either. So we can

Re: [PATCH kernel v8 14/31] vfio: powerpc/spapr: powerpc/powernv/ioda2: Rework IOMMU ownership control

2015-04-21 Thread David Gibson
On Tue, Apr 21, 2015 at 09:47:54PM +1000, Alexey Kardashevskiy wrote: On 04/21/2015 07:43 PM, David Gibson wrote: On Mon, Apr 20, 2015 at 04:55:32PM +1000, Alexey Kardashevskiy wrote: On 04/20/2015 12:44 PM, David Gibson wrote: On Fri, Apr 17, 2015 at 08:09:29PM +1000, Alexey Kardashevskiy

[PATCH] powerpc: Little endian should depend on PPC_BOOK3S_64

2015-04-21 Thread Michael Ellerman
The only little endian configuration we support is ppc64le, all other configurations are big endian. So we should only offer a choice of endian if we're building for 64-bit Book3S, ie. PPC_BOOK3S_64. Signed-off-by: Michael Ellerman m...@ellerman.id.au --- arch/powerpc/platforms/Kconfig.cputype

Re: [PATCH v2 2/2] leds/powernv: Add driver for PowerNV platform

2015-04-21 Thread Stewart Smith
Vasant Hegde hegdevas...@linux.vnet.ibm.com writes: On 04/16/2015 12:20 AM, Stewart Smith wrote: Jacek Anaszewski j.anaszew...@samsung.com writes: +static struct platform_driver powernv_led_driver = { + .probe = powernv_led_probe, + .remove = powernv_led_remove, + .driver = { +

Re: [PATCH 2/2] powerpc: Disable building the 32-bit VDSO on little endian

2015-04-21 Thread Michael Ellerman
On Tue, 2015-04-21 at 13:36 -0500, Scott Wood wrote: On Tue, 2015-04-21 at 19:41 +1000, Michael Ellerman wrote: diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/platforms/Kconfig.cputype index 12fc443b9d54..1324f589f43a 100644 ---

Re: [PATCH 05/11] time/posix-timers:Convert to the 64bit methods for k_clock callback functions

2015-04-21 Thread Baolin Wang
On 21 April 2015 at 04:48, Thomas Gleixner t...@linutronix.de wrote: On Mon, 20 Apr 2015, Baolin Wang wrote: /* Set clock_realtime */ static int posix_clock_realtime_set(const clockid_t which_clock, - const struct timespec *tp) +

[PATCH v10 19/29] powerpc/pci: Use pci_scan_host_bridge() for simplicity

2015-04-21 Thread Yijing Wang
Now we could use pci_scan_host_bridge() to scan pci buses, provide powerpc specific pci_host_bridge_ops. Tested-by: Daniel Axtens d...@axtens.net Signed-off-by: Yijing Wang wangyij...@huawei.com Reviewed-by: Daniel Axtens d...@axtens.net CC: Benjamin Herrenschmidt b...@kernel.crashing.org CC:

[PATCH RFC] powerpc/ftrace: add powerpc timebase as a trace clock source

2015-04-21 Thread Naveen N. Rao
Add a new powerpc-specific trace clock using the timebase register, similar to x86-tsc. This gives us a fast, monotonic, cross-cpu clock for trace entries and can be used to correlate events across cpus as well as across hypervisor and guest (assuming it is not a migrated guest with a non-zero

[PATCH] powerpc, mm: Fix build failure due to CONFIG_PPC_TRANSACTIONAL_MEM

2015-04-21 Thread Anshuman Khandual
The function flush_hash_page fails to compile when the transaction memory config option is turned off because there is a label at end of compound statement. This patch moves the code block into a function tm_abort_tlbi and calls it after the label thus fixing the build problem. Signed-off-by:

Re: [PATCH kernel v8 14/31] vfio: powerpc/spapr: powerpc/powernv/ioda2: Rework IOMMU ownership control

2015-04-21 Thread Alexey Kardashevskiy
On 04/21/2015 07:43 PM, David Gibson wrote: On Mon, Apr 20, 2015 at 04:55:32PM +1000, Alexey Kardashevskiy wrote: On 04/20/2015 12:44 PM, David Gibson wrote: On Fri, Apr 17, 2015 at 08:09:29PM +1000, Alexey Kardashevskiy wrote: On 04/16/2015 04:07 PM, David Gibson wrote: On Fri, Apr 10, 2015

Re: [PATCH 2/2] powerpc: Disable building the 32-bit VDSO on little endian

2015-04-21 Thread Stephen Rothwell
Hi Michael, On Tue, 21 Apr 2015 19:41:52 +1000 Michael Ellerman m...@ellerman.id.au wrote: The only little endian configuration we support is ppc64le. As such if we're building little endian we don't need a 32-bit VDSO, because there is no 32-bit userspace. This patch is a fairly ugly mess