[PATCH] powerpc: secondary CPUs signal to master before setting active and online (fixes kernel BUG at kernel/smpboot.c:134!)

2014-12-08 Thread Anton Blanchard
choose some other CPU to run on. Cc: sta...@vger.kernel.org Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/kernel/smp.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c index 71e186d..d40e46e 100644

[PATCH] kthread: kthread_bind fails to enforce CPU affinity (fixes kernel BUG at kernel/smpboot.c:134!)

2014-12-07 Thread Anton Blanchard
: e2912009fb7b (sched: Ensure set_task_cpu() is never called on blocked tasks) Cc: sta...@vger.kernel.org Signed-off-by: Anton Blanchard an...@samba.org --- kernel/kthread.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/kthread.c b/kernel/kthread.c index 10e489c..e40ab1d

Re: [PATCH] kthread: kthread_bind fails to enforce CPU affinity (fixes kernel BUG at kernel/smpboot.c:134!)

2014-12-07 Thread Anton Blanchard
Hi Linus, The __set_task_cpu() function does various other things too: set_task_rq(p, cpu); #ifdef CONFIG_SMP /* * After -cpu is set up to a new value, task_rq_lock(p, ...) can be * successfuly executed on another CPU. We must ensure that updates of

KVM XICS bug

2014-11-30 Thread Anton Blanchard
Hi, I've been seeing intermittent hangs when booting a KVM guest on a busy box. Both host and guest are mainline (3.18-rc6). The backtrace looks like: INFO: rcu_sched self-detected stall on CPU { 7} (t=8404 jiffies g=-299 c=-300 q=79) Task dump for CPU 7: swapper/7 R running task

[PATCH] KVM: PPC: Enable in kernel XICS emulation by default

2014-11-30 Thread Anton Blanchard
The in kernel XICS emulation is faster than doing it all in QEMU and it has got a lot of testing, so enable it by default Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/kvm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/kvm/Kconfig b/arch/powerpc/kvm

[PATCH] powerpc: 32 bit getcpu VDSO function uses 64 bit instructions

2014-11-26 Thread Anton Blanchard
I used some 64 bit instructions when adding the 32 bit getcpu VDSO function. Fix it. Fixes: 18ad51dd342a (powerpc: Add VDSO version of getcpu) Cc: sta...@vger.kernel.org Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/kernel/vdso32/getcpu.S | 4 ++-- 1 file changed, 2 insertions

[PATCH] powerpc: Bad NULL pointer check in udbg_uart_getc_poll

2014-11-10 Thread Anton Blanchard
-by: Anton Blanchard an...@samba.org --- arch/powerpc/kernel/udbg_16550.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/udbg_16550.c b/arch/powerpc/kernel/udbg_16550.c index 6e7c492..3faf393 100644 --- a/arch/powerpc/kernel/udbg_16550.c +++ b/arch/powerpc

[PATCH] powerpc: Add ppc64 hard lockup detector support

2014-11-04 Thread Anton Blanchard
might take multiple PMU exceptions per second per hardware thread even if our hard lockup timeout is 10 seconds. It can be enabled via a boot option, or via procfs. Signed-off-by: Anton Blanchard an...@samba.org --- arch/Kconfig | 2 +- arch/powerpc/Kconfig | 1

Re: [PATCH] powerpc: Replace cc constraint in inline assembly with cr0

2014-11-02 Thread Anton Blanchard
Hi Segher, Our inline assembly only clobbers the first condition register field, but we mark all of them as being clobbered. No, we don't. cc has been an alias for cr0 for over twenty two and a half years now; it has never changed meaning. This is an LLVM bug. Thanks! I opened

[PATCH] powerpc/pseries: Quieten ibm,pcie-link-speed-stats warning

2014-11-02 Thread Anton Blanchard
The ibm,pcie-link-speed-stats isn't mandatory, so we shouldn't print a high priority error message when missing. One example where we see this is QEMU. Reduce it to pr_debug. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/platforms/pseries/pci.c | 2 +- 1 file changed, 1

[PATCH] powerpc/pseries: Quieten relocation on exceptions warning

2014-11-02 Thread Anton Blanchard
on exceptions), it has been now added on some POWER7 configurations (which does not). Check for H_P2 and print an informational message instead. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/platforms/pseries/setup.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff

[PATCH] powerpc: Replace cc constraint in inline assembly with cr0

2014-10-31 Thread Anton Blanchard
blr Replacing cc with cr0: foo: 0: 20 00 80 4e blr This patch produces no difference to a kernel built with gcc. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/include/asm/atomic.h| 36 arch/powerpc/include/asm/bitops.h

[PATCH] powerpc: do_notify_resume can be called with bad thread_info flags argument

2014-10-30 Thread Anton Blanchard
on us and its register allocator never used r4. Sometimes, rarely, luck is on our side. LLVM on the other hand did trample r4. To avoid having to reload the flags, pass it through restore_interrupts, suggested by benh. Signed-off-by: Anton Blanchard an...@samba.org Cc: sta...@vger.kernel.org

[PATCH 1/3] powerpc: Don't use local named register variable in current_thread_info

2014-10-30 Thread Anton Blanchard
case is performance critical and we can't afford to call a function to get it. Furthermore it isn't important to know exactly where in the stack we are since we mask the lower bits. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/include/asm/thread_info.h | 5 ++--- 1 file changed

[PATCH 2/3] powerpc: Remove double braces in alignment code.

2014-10-30 Thread Anton Blanchard
Looks like I introduced this when adding LE support. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/kernel/align.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/align.c b/arch/powerpc/kernel/align.c index 34f5552..86150fb 100644

[PATCH 3/3] powerpc: LLVM complains about forward declaration of struct rtas_sensors

2014-10-30 Thread Anton Blanchard
Move the declaration up to silence the warning. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/kernel/rtas-proc.c | 20 +--- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/arch/powerpc/kernel/rtas-proc.c b/arch/powerpc/kernel/rtas-proc.c index

[PATCH] powerpc/pseries: Quieten ibm,pcie-link-speed-stats warning

2014-10-30 Thread Anton Blanchard
The ibm,pcie-link-speed-stats isn't mandatory, so we shouldn't print a high priority error message when missing. One example where we see this is QEMU. Reduce it to pr_info. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/platforms/pseries/pci.c | 2 +- 1 file changed, 1

[PATCH] powerpc: do_notify_resume can be called with bad thread_info flags argument

2014-10-30 Thread Anton Blanchard
on us and its register allocator never used r4. Sometimes, rarely, luck is on our side. LLVM on the other hand did trample r4. Signed-off-by: Anton Blanchard an...@samba.org Cc: sta...@vger.kernel.org --- arch/powerpc/kernel/entry_64.S | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH] powerpc/jump_label: Use HAVE_JUMP_LABEL

2014-10-29 Thread Anton Blanchard
Commit d4fe0965e208 (powerpc/jump_label: use HAVE_JUMP_LABEL?) missed a few conversions. Change the remaining uses of CONFIG_JUMP_LABEL to HAVE_JUMP_LABEL. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/platforms/powernv/opal-wrappers.S | 2 +- arch/powerpc/platforms/pseries

[PATCH] powerpc: do_notify_resume can be called with bad thread_info flags argument

2014-10-29 Thread Anton Blanchard
allocator never used r4. Sometimes, rarely, luck is on our side. Signed-off-by: Anton Blanchard an...@samba.org Cc: sta...@vger.kernel.org --- arch/powerpc/kernel/entry_64.S | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/powerpc/kernel/entry_64.S b/arch/powerpc/kernel/entry_64.S

Re: [PATCH 3/3] powerpc/ftrace: simplify prepare_ftrace_return

2014-10-27 Thread Anton Blanchard
Hi Segher, On Wed, Sep 24, 2014 at 12:33:07PM +1000, Anton Blanchard wrote: We are scratching our heads trying to remember details of the issue right now. In retrospect we should have linked the gcc bugzilla or gcc commit details in the kernel commit message :) There have been many GCC

[PATCH] powerpc/pseries: Quieten relocation on exceptions warning

2014-10-19 Thread Anton Blanchard
The hypervisor returns H_P2 if relocation on exceptions are not supported. If we get this, just print a lower priority informational message. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/platforms/pseries/setup.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff

[PATCH v2] powerpc: Remove ppc_md.remove_memory

2014-10-14 Thread Anton Blanchard
We have an extra level of indirection on memory hot remove which is not matched on memory hot add. Memory hotplug is book3s only, so there is no need for it. This also enables means remove_memory() (ie memory hot unplug) works on powernv. Signed-off-by: Anton Blanchard an...@samba.org --- arch

Re: [PATCH 1/4] powerpc: Dynamic DMA zone limits

2014-10-13 Thread Anton Blanchard
Hi Scott, Platform code can call limit_zone_pfn() to set appropriate limits for ZONE_DMA and ZONE_DMA32, and dma_direct_alloc_coherent() will select a suitable zone based on a device's mask and the pfn limits that platform code has configured. This patch breaks my POWER8 box: ipr

[PATCH 1/3] powerpc: Reimplement __get_SP() as a function not a define

2014-10-13 Thread Anton Blanchard
) calls it from a header file. Reported-by: Li Zhong zh...@linux.vnet.ibm.com Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/include/asm/perf_event.h | 2 +- arch/powerpc/include/asm/reg.h| 3 +-- arch/powerpc/kernel/misc.S| 4 arch/powerpc/kernel

[PATCH 2/3] powerpc: Rename __get_SP() to current_stack_pointer()

2014-10-13 Thread Anton Blanchard
Michael points out that __get_SP() is a pretty horrible function name. Let's give it a better name. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/include/asm/perf_event.h | 2 +- arch/powerpc/include/asm/reg.h| 2 +- arch/powerpc/kernel/irq.c | 2 +- arch

[PATCH 3/3] powerpc/pseries: Use dump_stack instead of show_stack

2014-10-13 Thread Anton Blanchard
We can use the simpler dump_stack() instead of show_stack(current, __get_SP()) Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/platforms/pseries/iommu.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/platforms/pseries/iommu.c b/arch

[PATCH 1/2] ipr: Convert to generic DMA API

2014-10-13 Thread Anton Blanchard
Even though the ipr driver is only used on PCI, convert it to use the generic DMA API. Signed-off-by: Anton Blanchard an...@samba.org --- drivers/scsi/ipr.c | 101 +++-- drivers/scsi/ipr.h | 2 +- 2 files changed, 53 insertions(+), 50 deletions

[PATCH 2/2] ipr: set coherent DMA mask

2014-10-13 Thread Anton Blanchard
Use dma_set_mask_and_coherent() to set both the DMA and coherent DMA mask. Signed-off-by: Anton Blanchard an...@samba.org --- drivers/scsi/ipr.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c index 3aa28bd..15f4575 100644

[PATCH] powerpc: sync pseries_le_defconfig with pseries_defconfig

2014-10-13 Thread Anton Blanchard
Now KVM is working on LE, enable it. Also enable transarent hugepage which has already been enabled on BE. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/configs/pseries_le_defconfig | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/configs

[PATCH] powerpc: Add printk levels to setup_system output

2014-10-13 Thread Anton Blanchard
Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/kernel/setup_64.c | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c index cd07d79..4f3cfe1 100644 --- a/arch/powerpc

[PATCH] powerpc: Use probe_kernel_address in show_instructions

2014-10-13 Thread Anton Blanchard
We really don't want to take a pagefault in show_instructions, so use probe_kernel_address instead of __get_user. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/kernel/process.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/kernel

[PATCH] powerpc/pci: Quieten unset I/O resource warning

2014-10-13 Thread Anton Blanchard
Newer POWER designs do not implement PCI I/O space, so we expect to see a number of these. Reduce the severity of the warning so it doesn't mask other real issues. Signed-off-by: Anton Blanchard an...@samba.org --- Index: b/arch/powerpc/kernel/pci-common.c

[PATCH] powerpc: Remove ppc_md.remove_memory

2014-10-13 Thread Anton Blanchard
We have an extra level of indirection on memory hot remove which is not matched on memory hot add. Memory hotplug is book3s only, so there is no need for it. This also enables means remove_memory() (ie memory hot unplug) works on powernv. Signed-off-by: Anton Blanchard an...@samba.org --- arch

[PATCH] powerpc: Remove ppc64_boot_msg

2014-10-13 Thread Anton Blanchard
ppc64_boot_msg is meant to be a boot debug aid, but is only used in one spot. Get rid of it, and save ourseleves a couple of lines in the kernel log buffer. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/include/asm/machdep.h | 10 -- arch/powerpc/kernel/setup_64.c

Re: [PATCH v3] powerpc/iommu/ddw: Fix endianness

2014-10-02 Thread Anton Blanchard
calls. Cc: sta...@vger.kernel.org # v3.13 Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Reviewed-by: Anton Blanchard an...@samba.org [aik: folded Anton's patch with of_property_read_u32_array] Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru Thanks for updating, looks good. Could we

[PATCH] powerpc: Rename __get_SP() to current_stack_pointer()

2014-10-01 Thread Anton Blanchard
Michael points out that __get_SP() is a pretty horrible function name. Let's give it a better name. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/include/asm/perf_event.h | 2 +- arch/powerpc/include/asm/reg.h| 2 +- arch/powerpc/kernel/irq.c | 2 +- arch

[PATCH v2] powerpc: Speed up clear_page by unrolling it

2014-10-01 Thread Anton Blanchard
bytes or page sizes wont drop below 1kB, which is unlikely, but we could add a runtime check during early init if it makes people nervous. Michael found that some versions of gcc produce quite bad code (all multiplies), so we give gcc a hand by using shifts and adds. Signed-off-by: Anton Blanchard

[PATCH] powerpc: Reimplement __get_SP() as a function not a define

2014-09-30 Thread Anton Blanchard
, and it is likely to be scribbled over. Fix this by making __get_SP() a function which returns the callers stack frame. Also replace inline assembly which grabs the stack pointer in save_stack_trace and show_stack with __get_SP(). Reported-by: Li Zhong zh...@linux.vnet.ibm.com Signed-off-by: Anton

Re: [PATCH 10/15] powerpc/mm: Add hooks for cxl

2014-09-26 Thread Anton Blanchard
Hi Mikey, We only map what a user processes maps and we tear it down when the process is teared down (on the file descriptor release). So I think we are ok. Unless there's some lazy teardown you're alluding to that I'm missing? I was trying to make sure things like the TLB batching

Re: [PATCH 01/15] powerpc/cell: Move spu_handle_mm_fault() out of cell platform

2014-09-25 Thread Anton Blanchard
-off-by: Ian Munsie imun...@au1.ibm.com Signed-off-by: Michael Neuling mi...@neuling.org Reviewed-by: Anton Blanchard an...@samba.org Anton ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH 02/15] powerpc/cell: Move data segment faulting code out of cell platform

2014-09-25 Thread Anton Blanchard
powerpc code. Could we also mention: and adds 1TB segment support. Signed-off-by: Ian Munsie imun...@au1.ibm.com Signed-off-by: Michael Neuling mi...@neuling.org Reviewed-by: Anton Blanchard an...@samba.org Anton ___ Linuxppc-dev mailing list Linuxppc

Re: [PATCH 10/15] powerpc/mm: Add hooks for cxl

2014-09-25 Thread Anton Blanchard
From: Ian Munsie imun...@au1.ibm.com This add a hook into tlbie() so that we use global invalidations when there are cxl contexts active. Normally cxl snoops broadcast tlbie. cxl can have TLB entries invalidated via MMIO, but we aren't doing that yet. So for now we are just disabling

Re: [PATCH 09/15] powerpc/opal: Add PHB to cxl mode call

2014-09-25 Thread Anton Blanchard
From: Ian Munsie imun...@au1.ibm.com This adds the OPAL call to change a PHB into cxl mode. Signed-off-by: Ian Munsie imun...@au1.ibm.com Signed-off-by: Michael Neuling mi...@neuling.org Reviewed-by: Anton Blanchard an...@samba.org ___ Linuxppc

[PATCH 1/3] powerpc: Simplify do_sigbus

2014-09-24 Thread Anton Blanchard
Exit out early for a kernel fault, avoiding indenting of most of the function. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/mm/fault.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/arch/powerpc/mm/fault.c b/arch/powerpc/mm/fault.c

[PATCH 2/3] powerpc: Add VM_FAULT_HWPOISON handling to powerpc page fault handler

2014-09-24 Thread Anton Blanchard
do_page_fault was missing knowledge of HWPOISON, and we would oops if userspace tried to access a poisoned page: kernel BUG at arch/powerpc/mm/fault.c:180! Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/mm/fault.c | 17 +++-- 1 file changed, 11 insertions(+), 6

[PATCH 3/3] powerpc: Fill in si_addr_lsb siginfo field

2014-09-24 Thread Anton Blanchard
Fill in the si_addr_lsb siginfo field so the hwpoison code can pass to userspace the length of memory that has been corrupted. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/mm/fault.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/powerpc/mm/fault.c b/arch

Re: [PATCH 1/2] powerpc: Add VM_FAULT_HWPOISON handling to powerpc page fault handler

2014-09-24 Thread Anton Blanchard
Hi Stephen, If you had done this as 2 patches (one to remove the indent and a second to fix the actual problem), it would have been much easier to review ... Good idea, I separated it out and resubmitted. Anton ___ Linuxppc-dev mailing list

[PATCH] powerpc: Print instruction when logging unhandled exceptions

2014-09-24 Thread Anton Blanchard
It is often useful to see the instruction that caused an unhandled exception. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/kernel/traps.c | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/kernel/traps.c b/arch/powerpc/kernel

Re: [PATCH v2] powerpc/iommu/ddw: Fix endianness

2014-09-23 Thread Anton Blanchard
it into yours? Also mark it for inclusion in stable v3.13+. You can add: Reviewed-by: Anton Blanchard an...@samba.org Thanks! Anton Index: b/arch/powerpc/platforms/pseries/iommu.c === --- a/arch/powerpc/platforms/pseries/iommu.c +++ b

[PATCH 1/2] powerpc: Add VM_FAULT_HWPOISON handling to powerpc page fault handler

2014-09-23 Thread Anton Blanchard
do_page_fault was missing knowledge of HWPOISON, and we would oops if userspace tried to access a poisoned page: kernel BUG at arch/powerpc/mm/fault.c:180! Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/mm/fault.c | 36 +--- 1 file changed, 21

[PATCH 2/2] powerpc: Fill in si_addr_lsb siginfo field

2014-09-23 Thread Anton Blanchard
Fill in the si_addr_lsb siginfo field so the hwpoison code can pass to userspace the length of memory that has been corrupted. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/mm/fault.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/powerpc/mm/fault.c b/arch

Re: [PATCH 3/3] powerpc/ftrace: simplify prepare_ftrace_return

2014-09-23 Thread Anton Blanchard
Hi Steve, This could be broken from the earlier patches, I haven't run just this test. I probably should on them. I went back and tested, and it breaks under the first patch. Thanks for testing. It looks like some toolchains have issues other than the -fno-no-omit-frame-pointer one, and

Re: [PATCH 3/3] powerpc/ftrace: simplify prepare_ftrace_return

2014-09-23 Thread Anton Blanchard
Hi Ben, I'll drop that patch and respin. Or maybe do a toolchain check / or enable it in LE ? We are scratching our heads trying to remember details of the issue right now. In retrospect we should have linked the gcc bugzilla or gcc commit details in the kernel commit message :) Steve:

[PATCH 0/3] DCACHE_WORD_ACCESS support for ppc64le

2014-09-18 Thread Anton Blanchard
) - 1; } Anton Blanchard (3): powerpc: Implement load_unaligned_zeropad powerpc: ppc64le optimised word at a time powerpc: Enable DCACHE_WORD_ACCESS on ppc64le arch/powerpc/Kconfig | 1 + arch/powerpc/include/asm/word-at-a-time.h | 101 +- 2

[PATCH 1/3] powerpc: Implement load_unaligned_zeropad

2014-09-18 Thread Anton Blanchard
boundary, and a SEGV handler to lookup the exception tables and run the fixup routine. It also compares the result against a normal load. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/include/asm/word-at-a-time.h | 40 +++ 1 file changed, 40 insertions

[PATCH 2/3] powerpc: ppc64le optimised word at a time

2014-09-18 Thread Anton Blanchard
, depending on the length. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/include/asm/word-at-a-time.h | 61 --- 1 file changed, 47 insertions(+), 14 deletions(-) diff --git a/arch/powerpc/include/asm/word-at-a-time.h b/arch/powerpc/include/asm/word

[PATCH 3/3] powerpc: Enable DCACHE_WORD_ACCESS on ppc64le

2014-09-18 Thread Anton Blanchard
-by: Anton Blanchard an...@samba.org --- arch/powerpc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 90fe77a..7992f35 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -148,6 +148,7 @@ config PPC select

[PATCH 2/5] powerpc: Remove some old bootmem related comments

2014-09-17 Thread Anton Blanchard
Now bootmem is gone from powerpc we can remove comments mentioning it. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/kernel/prom.c | 5 + arch/powerpc/kernel/rtas.c | 4 ++-- arch/powerpc/kvm/book3s_hv_builtin.c | 2 +- arch/powerpc/mm/hugetlbpage.c

[PATCH 3/5] powerpc: Remove superfluous bootmem includes

2014-09-17 Thread Anton Blanchard
Lots of places included bootmem.h even when not using bootmem. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/kernel/crash_dump.c | 1 - arch/powerpc/kernel/irq.c | 1 - arch/powerpc/kernel/pci_64.c | 1 - arch/powerpc/kernel

[PATCH 5/5] powerpc: make __ffs return unsigned long

2014-09-17 Thread Anton Blanchard
:90:11: note: in expansion of macro 'min' order = min(MAX_ORDER - 1UL, __ffs(start)); ^ The rest of the worlds seems to define __ffs as returning unsigned long, so lets do that. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/include/asm/bitops.h | 2 +- arch/powerpc

[PATCH 4/5] powerpc: Move sparse_init() into initmem_init

2014-09-17 Thread Anton Blanchard
We did part of sparse initialisation in setup_arch and part in initmem_init. Put them together. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/kernel/setup_64.c | 1 - arch/powerpc/mm/mem.c | 1 + arch/powerpc/mm/numa.c | 2 ++ 3 files changed, 3 insertions

[PATCH 1/3] powerpc: Remove -mno-sched-epilog workaround

2014-09-17 Thread Anton Blanchard
remove it. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/Makefile| 5 - arch/powerpc/kernel/Makefile | 12 ++-- arch/powerpc/platforms/powermac/Makefile | 2 +- 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/arch

[PATCH 2/3] powerpc/ftrace: Remove mod_return_to_handler

2014-09-17 Thread Anton Blanchard
mod_return_to_handler is the same as return_to_handler, except it handles the change of the TOC (r2). Add this into return_to_handler and remove mod_return_to_handler. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/kernel/entry_64.S | 24 +--- arch/powerpc

[PATCH 3/3] powerpc/ftrace: simplify prepare_ftrace_return

2014-09-17 Thread Anton Blanchard
it. Later on we would do an unprotected modification: if (!ftrace_graph_entry(trace)) { *parent = old; Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/kernel/entry_32.S | 10 +-- arch/powerpc/kernel/entry_64.S | 11 ++-- arch/powerpc/kernel/ftrace.c

Re: [PATCH 3/5] powerpc: Remove superfluous bootmem includes

2014-09-17 Thread Anton Blanchard
Hi Emil, While building corenet64_smp I get this: ../arch/powerpc/mm/pgtable_64.c: In function 'early_alloc_pgtable': ../arch/powerpc/mm/pgtable_64.c:77:95: error: 'MAX_DMA_ADDRESS' undeclared (first use in this function) ../arch/powerpc/mm/pgtable_64.c:77:95: note: each undeclared

[PATCH 1/5] powerpc: Remove bootmem allocator

2014-09-17 Thread Anton Blanchard
At the moment we transition from the memblock alloctor to the bootmem allocator. Gitting rid of the bootmem allocator removes a bunch of complicated code (most of which I owe the dubious honour of being responsible for writing). Signed-off-by: Anton Blanchard an...@samba.org Tested-by: Emil Medve

[PATCH 2/5] powerpc: Remove some old bootmem related comments

2014-09-17 Thread Anton Blanchard
Now bootmem is gone from powerpc we can remove comments mentioning it. Signed-off-by: Anton Blanchard an...@samba.org Tested-by: Emil Medve emilian.me...@freescale.com --- arch/powerpc/kernel/prom.c | 5 + arch/powerpc/kernel/rtas.c | 4 ++-- arch/powerpc/kvm

[PATCH 3/5] powerpc: Remove superfluous bootmem includes

2014-09-17 Thread Anton Blanchard
Lots of places included bootmem.h even when not using bootmem. Signed-off-by: Anton Blanchard an...@samba.org Tested-by: Emil Medve emilian.me...@freescale.com --- arch/powerpc/kernel/crash_dump.c | 1 - arch/powerpc/kernel/irq.c | 1 - arch/powerpc/kernel

[PATCH 4/5] powerpc: Move sparse_init() into initmem_init

2014-09-17 Thread Anton Blanchard
We did part of sparse initialisation in setup_arch and part in initmem_init. Put them together. Signed-off-by: Anton Blanchard an...@samba.org Tested-by: Emil Medve emilian.me...@freescale.com --- arch/powerpc/kernel/setup_64.c | 1 - arch/powerpc/mm/mem.c | 1 + arch/powerpc/mm/numa.c

[PATCH 5/5] powerpc: make __ffs return unsigned long

2014-09-17 Thread Anton Blanchard
:90:11: note: in expansion of macro 'min' order = min(MAX_ORDER - 1UL, __ffs(start)); ^ The rest of the worlds seems to define __ffs as returning unsigned long, so lets do that. Signed-off-by: Anton Blanchard an...@samba.org Tested-by: Emil Medve emilian.me...@freescale.com --- arch

[PATCH 1/6] powerpc: Speed up clear_page by unrolling it

2014-09-16 Thread Anton Blanchard
bytes and page sizes wont drop below 1kB, which is unlikely, but we could add a runtime check during early init if it makes people nervous. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/include/asm/page_64.h | 18 ++ 1 file changed, 14 insertions(+), 4 deletions

[PATCH 2/6] powerpc: Use pr_fmt in module loader code

2014-09-16 Thread Anton Blanchard
Use pr_fmt to give some context to the error messages in the module code, and convert open coded debug printk to pr_debug. Use pr_err for error messages. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/kernel/module_32.c | 31 ++- arch/powerpc/kernel

[PATCH 4/6] powerpc: Remove ppc_md.remove_memory

2014-09-16 Thread Anton Blanchard
We have an extra level of indirection on memory hot remove which is not matched on memory hot add. Memory hotplug is book3s only, so there is no need for it. This also enables means remove_memory() (ie memory hot unplug) works on powernv. Signed-off-by: Anton Blanchard an...@samba.org --- arch

[PATCH 3/6] powerpc: Remove powerpc specific cmd_line

2014-09-16 Thread Anton Blanchard
There is no need for yet another copy of the command line, just use boot_command_line like everyone else. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/include/asm/machdep.h | 2 -- arch/powerpc/kernel/prom.c | 4 +--- arch/powerpc/kernel/setup-common.c

[PATCH 5/6] powerpc: Add printk levels to powernv platform code

2014-09-16 Thread Anton Blanchard
Add printk levels to powernv platform code, and convert to pr_err() etc while here. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/platforms/powernv/opal-nvram.c | 2 +- arch/powerpc/platforms/powernv/opal.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions

[PATCH 6/6] powerpc: Add printk levels to powerpc code

2014-09-16 Thread Anton Blanchard
Add printk levels to some places in the powerpc port. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/include/asm/pgtable-ppc32.h| 4 ++-- arch/powerpc/include/asm/pgtable-ppc64-4k.h | 2 +- arch/powerpc/include/asm/pgtable-ppc64.h| 6 +++--- arch/powerpc/kernel/irq.c

[PATCH 1/5] powerpc: Remove bootmem allocator

2014-09-16 Thread Anton Blanchard
At the moment we transition from the memblock alloctor to the bootmem allocator. Gitting rid of the bootmem allocator removes a bunch of complicated code (most of which I owe the dubious honour of being responsible for writing). Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc

[PATCH 1/2] powerpc: Add POWER8 CPU selection

2014-09-15 Thread Anton Blanchard
This allows the user to build a kernel targeted at POWER8 (ie gcc -mcpu=power8). Signed-off-by: Anton Blanchard an...@samba.org --- Index: b/arch/powerpc/Makefile === --- a/arch/powerpc/Makefile +++ b/arch/powerpc/Makefile @@ -135,6

[PATCH 2/2] powerpc: Use CONFIG_ARCH_HAS_FAST_MULTIPLIER

2014-09-15 Thread Anton Blanchard
I ran some tests to compare hash_64 using shifts and multiplies. The results: POWER6: ~2x slower POWER7: ~2x faster POWER8: ~2x faster Now we have a proper config option, select CONFIG_ARCH_HAS_FAST_MULTIPLIER on POWER7 and POWER8. Signed-off-by: Anton Blanchard an...@samba.org --- Index: b

Re: [PATCH 6/6] powerpc: Separate ppc32 symbol exports into ppc_ksyms_32.c

2014-09-11 Thread Anton Blanchard
Hi Stephen, You removed export.h ... +EXPORT_SYMBOL(flush_dcache_range); +EXPORT_SYMBOL(flush_icache_range); But still use EXPORT_SYMBOL ... Thanks, fixed! Anton ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org

Re: [PATCH 4/4] powerpc: Move htab_remove_mapping function prototype into header file

2014-09-11 Thread Anton Blanchard
Hi Stephen, Please be consistent about extern use (unless this file is already inconsistent, I guess). (I know that the current trend is to remove extern in header files - I just happen to disagree with that trend. :-)) Good idea, fixed this for the next rev. Anton

[PATCH] powerpc/perf: Fix ABIv2 kernel backtraces

2014-08-25 Thread Anton Blanchard
__GI___libc_read Cc: sta...@vger.kernel.org # 3.16+ Reported-by: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com Signed-off-by: Anton Blanchard an...@samba.org --- Index: b/arch/powerpc/include/asm/ptrace.h === --- a/arch

[PATCH] ibmveth: Fix endian issues with rx_no_buffer statistic

2014-08-21 Thread Anton Blanchard
-by: Anton Blanchard an...@samba.org Cc: sta...@vger.kernel.org --- Index: b/drivers/net/ethernet/ibm/ibmveth.c === --- a/drivers/net/ethernet/ibm/ibmveth.c +++ b/drivers/net/ethernet/ibm/ibmveth.c @@ -292,6 +292,18 @@ failure

[PATCH] PCI: Increase BAR size quirk for IBM ipr SAS Crocodile adapters

2014-08-20 Thread Anton Blanchard
sizes to the now 64k BARs the address will be truncated and the BARs will overlap. This quirk will force Linux to allocate the resource as a full page, which will avoid the overlap. Cc: sta...@vger.kernel.org Signed-off-by: Douglas Lehr dll...@us.ibm.com Signed-off-by: Anton Blanchard

[PATCH 1/6] powerpc: Move adb symbol exports next to function definitions

2014-08-19 Thread Anton Blanchard
Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/kernel/ppc_ksyms.c | 7 --- drivers/macintosh/adb.c | 5 + 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/arch/powerpc/kernel/ppc_ksyms.c b/arch/powerpc/kernel/ppc_ksyms.c index 48d17d6f..351f447

[PATCH 2/6] powerpc: Move via-cuda symbol exports next to function definitions

2014-08-19 Thread Anton Blanchard
Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/kernel/ppc_ksyms.c | 4 drivers/macintosh/via-cuda.c| 2 ++ 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/kernel/ppc_ksyms.c b/arch/powerpc/kernel/ppc_ksyms.c index 351f447..521291d 100644

[PATCH 3/6] powerpc: Move more symbol exports next to function definitions

2014-08-19 Thread Anton Blanchard
Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/kernel/ppc_ksyms.c| 14 -- arch/powerpc/kernel/process.c | 2 ++ arch/powerpc/kernel/setup-common.c | 3 +++ arch/powerpc/kernel/time.c | 1 + arch/powerpc/mm/hash_utils_64.c| 1 + 5 files changed

[PATCH 4/6] powerpc: Remove unused 32bit symbol exports

2014-08-19 Thread Anton Blanchard
Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/kernel/ppc_ksyms.c | 16 1 file changed, 16 deletions(-) diff --git a/arch/powerpc/kernel/ppc_ksyms.c b/arch/powerpc/kernel/ppc_ksyms.c index 4a42a1f..ab4f0bc 100644 --- a/arch/powerpc/kernel/ppc_ksyms.c +++ b/arch

[PATCH 5/6] powerpc: Move lib symbol exports into arch/powerpc/lib/ppc_ksyms.c

2014-08-19 Thread Anton Blanchard
Move the lib symbol exports closer to their function definitions Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/kernel/ppc_ksyms.c | 32 arch/powerpc/lib/Makefile | 2 +- arch/powerpc/lib/ppc_ksyms.c| 39

[PATCH 6/6] powerpc: Separate ppc32 symbol exports into ppc_ksyms_32.c

2014-08-19 Thread Anton Blanchard
Simplify things considerably by moving all the ppc32 specific symbol exports into its own file. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/kernel/Makefile | 3 + arch/powerpc/kernel/ppc_ksyms.c| 123 + arch/powerpc/kernel

[PATCH 1/4] powerpc: Make a bunch of things static

2014-08-19 Thread Anton Blanchard
Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/kernel/hw_breakpoint.c | 2 +- arch/powerpc/kernel/nvram_64.c| 2 +- arch/powerpc/kernel/pci-common.c | 2 +- arch/powerpc/kernel/pci_of_scan.c | 2 +- arch/powerpc/kernel/prom.c

[PATCH 2/4] powerpc: Ensure global functions include their prototype

2014-08-19 Thread Anton Blanchard
Fix a number of places where global functions were not including their prototype. This ensures the prototype and the function match. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/kernel/smp.c | 1 + arch/powerpc/mm/slice.c | 2

[PATCH 4/4] powerpc: Move htab_remove_mapping function prototype into header file

2014-08-19 Thread Anton Blanchard
A recent patch added a function prototype for htab_remove_mapping in c code. Fix it. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/include/asm/mmu-hash64.h | 2 ++ arch/powerpc/mm/init_64.c | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/arch

[PATCH 3/4] powerpc: Remove stale function prototypes

2014-08-19 Thread Anton Blanchard
There were a number of prototypes for functions that no longer exist. Remove them. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/include/asm/bug.h | 1 - arch/powerpc/include/asm/hydra.h | 1 - arch/powerpc/include/asm/irq.h | 5 - arch/powerpc

[PATCH 2/2] powerpc: Add ppc64 hard lockup detector support

2014-08-11 Thread Anton Blanchard
count to 2^31, so even when we ask for 10 seconds of processor cycles, we end up taking a couple of PMU exceptions a second. Signed-off-by: Anton Blanchard an...@samba.org --- v2: Mikey noticed a build issue with oprofile. Since our NMI is just the PMU hardware it doesn't make any sense

[PATCH] powerpc: Remove ppc_md.remove_memory

2014-08-07 Thread Anton Blanchard
We have an extra level of indirection on memory hot remove which is not matched on memory hot add. Memory hotplug is book3s only, so there is no need for it. This also enables means remove_memory() (ie memory hot unplug) works on powernv. Signed-off-by: Anton Blanchard an...@samba.org --- Index

[PATCH] powerpc: Move htab_remove_mapping function prototype into header file

2014-08-07 Thread Anton Blanchard
A recent patch added a function prototype for htab_remove_mapping in c code. Fix it. Signed-off-by: Anton Blanchard an...@samba.org --- diff --git a/arch/powerpc/include/asm/mmu-hash64.h b/arch/powerpc/include/asm/mmu-hash64.h index d765144..92bc3a6 100644 --- a/arch/powerpc/include/asm/mmu

[PATCH 1/5] powerpc: Remove bootmem allocator

2014-08-05 Thread Anton Blanchard
At the moment we transition from the memblock alloctor to the bootmem allocator. Removing the bootmem allocator removes a bunch of complicated code (most of which I owe the dubious honour of being responsible for writing). Signed-off-by: Anton Blanchard an...@samba.org --- Index: b/arch/powerpc

[PATCH 2/5] powerpc: Remove some old bootmem related comments

2014-08-05 Thread Anton Blanchard
Now bootmem is gone from powerpc we can remove comments mentioning it. Signed-off-by: Anton Blanchard an...@samba.org --- Index: b/arch/powerpc/kernel/prom.c === --- a/arch/powerpc/kernel/prom.c +++ b/arch/powerpc/kernel/prom.c

<    1   2   3   4   5   6   7   8   9   10   >