[PATCH] powerpc/powernv: hwmon driver for power values, fan rpm and temperature

2014-05-14 Thread Neelesh Gupta
This patch adds basic kernel enablement for reading power values, fan speed rpm and temperature values on powernv platforms which will be exported to user space through sysfs interface. Test results: - [root@tul163p1 ~]# sensors ibmpowernv-isa- Adapter: ISA adapter fan1:

Re: Re: [RFT PATCH -next ] [BUGFIX] kprobes: Fix Failed to find blacklist error on ia64 and ppc64

2014-05-14 Thread Masami Hiramatsu
(2014/05/07 20:59), Masami Hiramatsu wrote: Hi Tony, Benjamin and Paul, I've tried to fix this bug, but since I don't have either ppc64 nor ia64, this patch is not tested on those archs. Please review and test it on those machines. Ping? I need your help since I don't have test

Re: [PATCH] pci-scan: Fix setting the limit

2014-05-14 Thread Nikunj A Dadhania
Alexey Kardashevskiy a...@ozlabs.ru writes: PCI spec says that lower 20 bits are assumed 0xF. The existing code seems to get it right in pci-bridge-set-mem-limit. However pci-bridge-set-mem-base does not account 0xF and poison the limit. Since the limit is not stored anywhere in SLOF

Re: [PATCH V2 2/3] powerpc, ptrace: Enable support for transactional memory register sets

2014-05-14 Thread Pedro Alves
On 05/14/14 06:46, Anshuman Khandual wrote: On 05/13/2014 10:43 PM, Pedro Alves wrote: On 05/05/14 08:54, Anshuman Khandual wrote: This patch enables get and set of transactional memory related register sets through PTRACE_GETREGSET/PTRACE_SETREGSET interface by implementing four new powerpc

Re: [PATCH V2 2/3] powerpc, ptrace: Enable support for transactional memory register sets

2014-05-14 Thread Pedro Alves
On 05/14/14 12:18, Michael Neuling wrote: s390 actually screwed that, though it got away because there's a bit in HWCAP to signal transactions support. See: https://sourceware.org/ml/gdb-patches/2013-11/msg00080.html Are you adding something to HWCAP too? Yes but it's in HWCAP2

Re: [PATCH V2 2/3] powerpc, ptrace: Enable support for transactional memory register sets

2014-05-14 Thread Michael Neuling
s390 actually screwed that, though it got away because there's a bit in HWCAP to signal transactions support. See: https://sourceware.org/ml/gdb-patches/2013-11/msg00080.html Are you adding something to HWCAP too? Yes but it's in HWCAP2 Mikey

Re: powerpc/ppc64: Allow allmodconfig to build (finally !)

2014-05-14 Thread Guenter Roeck
On Wed, May 14, 2014 at 03:22:19PM +0930, Alan Modra wrote: On Tue, May 13, 2014 at 10:16:51PM -0700, Guenter Roeck wrote: any idea what might cause this one, by any chance ? arch/powerpc/kernel/built-in.o: In function `exc_debug_crit_book3e': (.text+0x165ee): relocation truncated to

Re: [PATCH] powerpc/powernv: hwmon driver for power values, fan rpm and temperature

2014-05-14 Thread Guenter Roeck
On Wed, May 14, 2014 at 11:31:53AM +0530, Neelesh Gupta wrote: This patch adds basic kernel enablement for reading power values, fan speed rpm and temperature values on powernv platforms which will be exported to user space through sysfs interface. Test results: -

Re: [PATCH v2] powerpc: Add cpu family documentation

2014-05-14 Thread James Yang
On Wed, 30 Apr 2014, Scott Wood wrote: On Wed, 2014-04-30 at 16:45 +1000, Michael Ellerman wrote: On Tue, 2014-02-04 at 16:43 -0600, Scott Wood wrote: +Motorola/Freescale 8xx +-- + + - Software loaded with hardware assist. + - All 32 bit + +

[PATCH 02/27] powerpc: Override defaults from generic/tlb.h

2014-05-14 Thread Richard Weinberger
Make sure to not conflict with the defaults provided by generic/tlb.h. Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: Paul Mackerras pau...@samba.org Cc: Richard Weinberger rich...@nod.at Cc: linuxppc-dev@lists.ozlabs.org Cc: linux-ker...@vger.kernel.org Signed-off-by: Richard Weinberger

[PATCH 20/27] powerpc: Use common bits from generic tlb.h

2014-05-14 Thread Richard Weinberger
It is no longer needed to define them on our own. Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: Paul Mackerras pau...@samba.org Cc: Richard Weinberger rich...@nod.at Cc: linuxppc-dev@lists.ozlabs.org Cc: linux-ker...@vger.kernel.org Signed-off-by: Richard Weinberger rich...@nod.at ---

roundup_pow_of_two() may not handle 64-bit integers

2014-05-14 Thread Brian Norris
Hi, I'm looking to use roundup_pow_of_two() (actually, order_base_2()) from linux/log2.h, but it seems that it only supports 64-bit integers if your toolchain uses a 64-bit 'unsigned long' type. This is strange, considering that ilog2() is explicitly designed for 32-bit or 64-bit compatibility.