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

2014-05-13 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:529

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

2014-05-13 Thread Alan Modra
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 fit: R_PPC64_ADDR16_HI against > symbol `interrupt_base_book3e'

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

2014-05-13 Thread Anshuman Khandual
On 05/13/2014 10:51 PM, Pedro Alves wrote: > I wonder whether people are getting Roland's address from? > > It's frequent that ptrace related patches end up CCed to > rol...@redhat.com, but, he's not been at Red Hat for a few years > now. Roland, do you still want to be CCed on ptrace-related > i

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

2014-05-13 Thread Anshuman Khandual
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 specific register sets i.e REGSET_TM_SP

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

2014-05-13 Thread Alan Modra
On Wed, May 14, 2014 at 01:34:34PM +1000, Stephen Rothwell wrote: > OK, this appears to be an assembler bug. Agreed. Upgrade binutils! > $ cat test.s > .text > x: > .pushsectionb, "a" > beq y > .popsection > .=0x8 > y: > $ /opt/cross/gcc-4.6.3-nolibc/powerpc

[git pull] Please pull powerpc.git merge branch

2014-05-13 Thread Benjamin Herrenschmidt
Hi Linus ! Here are a couple of fixes for 3.15. One from Anton fixes a nasty regression I introduced when trying to fix a loss of irq_work whose consequences is that we can completely lose timer interrupts on a CPU... not pretty. The other one is a change to our PCIe reset hook to use a firmware

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

2014-05-13 Thread Guenter Roeck
On 05/13/2014 08:34 PM, Stephen Rothwell wrote: Hi Guenter, On Tue, 13 May 2014 10:17:49 -0700 Guenter Roeck wrote: On Tue, May 13, 2014 at 07:16:41PM +1000, Benjamin Herrenschmidt wrote: On Mon, 2014-05-12 at 17:28 -0700, Guenter Roeck wrote: After applying this patch, I get arch/powerpc

[PATCH 7/8] powerpc/powernv: Implement ppc_call_opal()

2014-05-13 Thread Gavin Shan
If we're running PowerNV platform, ppc_firmware() will be directed to ppc_call_opal() where we can call to OPAL API accordingly. In ppc_call_opal(), the input argument are parsed out and call to appropriate OPAL API to handle that. Each request passed to the function is identified with token. As we

[PATCH 4/8] powerpc/eeh: Avoid event on passed PE

2014-05-13 Thread Gavin Shan
If we detects frozen state on PE that has been passed to guest, we needn't handle it. Instead, we rely on the guest to detect and recover it. The patch avoid EEH event on the frozen passed PE so that the guest can have chance to handle that. Signed-off-by: Gavin Shan --- arch/powerpc/kernel/eeh.

[PATCH 6/8] powerpc: Extend syscall ppc_rtas()

2014-05-13 Thread Gavin Shan
Originally, syscall ppc_rtas() can be used to invoke RTAS call from user space. Utility "errinjct" is using it to inject various errors to the system for testing purpose. The patch intends to extend the syscall to support both pSeries and PowerNV platform. With that, RTAS and OPAL call can be invok

[PATCH 3/8] drivers/vfio: New IOCTL command VFIO_EEH_INFO

2014-05-13 Thread Gavin Shan
The patch adds new IOCTL command VFIO_EEH_INFO to VFIO container to support EEH functionality for PCI devices, which have been passed from host to guest via VFIO. Signed-off-by: Gavin Shan --- arch/powerpc/platforms/powernv/Makefile | 1 + arch/powerpc/platforms/powernv/eeh-vfio.c | 593

[PATCH 8/8] powerpc/powernv: Error injection infrastructure

2014-05-13 Thread Gavin Shan
The patch intends to implement the error injection infrastructure for PowerNV platform. The predetermined handlers will be called according to the type of injected error (e.g. OpalErrinjctTypeIoaBusError). For now, we just support PCI error injection. We need support injecting other types of errors

[PATCH 5/8] powerpc/powernv: Sync OPAL header file with firmware

2014-05-13 Thread Gavin Shan
The patch synchronizes OPAL header file with firmware so that the host kernel can make OPAL call to do error injection. Signed-off-by: Gavin Shan --- arch/powerpc/include/asm/opal.h| 65 ++ arch/powerpc/platforms/powernv/opal-wrappers.S | 1 + 2 files cha

[PATCH 2/8] powerpc/eeh: Info to trace passed devices

2014-05-13 Thread Gavin Shan
The address of passed PCI devices (domain:bus:slot:func) might be quite different from the perspective of host and guest. We have to trace the address mapping so that we can emulate EEH RTAS requests from guest. The patch introduces additional fields to eeh_pe and eeh_dev for the purpose. Also, th

[PATCH 1/8] drivers/vfio: Introduce CONFIG_VFIO_EEH

2014-05-13 Thread Gavin Shan
The patch introduces CONFIG_VFIO_EEH for more IOCTL commands on tce_iommu_driver_ops to support EEH funtionality for PCI devices that are passed through from host to guest. Signed-off-by: Gavin Shan --- drivers/vfio/Kconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/vfio/K

[PATCH RFC v3 0/8] EEH Support for VFIO PCI device

2014-05-13 Thread Gavin Shan
The series of patches intends to support EEH for PCI devices, which are passed through to PowerKVM based guest via VFIO. The implementation is straightforward based on the issues or problems we have to resolve to support EEH for PowerKVM based guest. - Emulation for EEH RTAS requests. All EEH RTAS

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

2014-05-13 Thread Stephen Rothwell
Hi Guenter, On Tue, 13 May 2014 10:17:49 -0700 Guenter Roeck wrote: > > On Tue, May 13, 2014 at 07:16:41PM +1000, Benjamin Herrenschmidt wrote: > > On Mon, 2014-05-12 at 17:28 -0700, Guenter Roeck wrote: > > > > > After applying this patch, I get > > > > > > arch/powerpc/kernel/exceptions-64s.S

Re: [PATCH] powerpc/pseries: relocate "config DTL" so KConfig nests properly

2014-05-13 Thread Michael Neuling
On Tue, 2014-05-13 at 00:12 -0700, Cody P Schafer wrote: > On 05/12/2014 11:23 PM, Michael Neuling wrote: > >> powerpc/pseries: relocate "config DTL" so KConfig nests properly > > > > I don't know what that means. Can you describe it in more detail? > > > > So the "config DTL" refers to the confi

Re: [PATCH] printk/of_serial: fix serial console cessation part way through boot.

2014-05-13 Thread Stephen Chivers
Commit 5f5c9ae56c38942623f69c3e6dc6ec78e4da2076 "serial_core: Unregister console in uart_remove_one_port()" fixed a crash where a serial port was removed but not deregistered as a console. There is a side effect of that commit for platforms having serial consoles and of_serial configured (CONFIG_S

Re: [PATCH 1/1] powerpc/perf: Adjust callchain based on DWARF debug info

2014-05-13 Thread Maynard Johnson
Sukadev Bhattiprolu wrote on 05/09/2014 09:46:38 PM: > From: Sukadev Bhattiprolu > To: Arnaldo Carvalho de Melo , > Cc: linux-ker...@vger.kernel.org, Anton Blanchard > , ulrich.weig...@de.ibm.com, Michael Ellerman > , Maynard Johnson/Rochester/IBM@IBMUS, > linuxppc-dev@lists.ozlabs.org > Date: 0

Re: [PATCH] [resend] net: get rid of SET_ETHTOOL_OPS

2014-05-13 Thread David Miller
From: Wilfried Klaebe Date: Sun, 11 May 2014 00:12:32 + > net: get rid of SET_ETHTOOL_OPS > > Dave Miller mentioned he'd like to see SET_ETHTOOL_OPS gone. > This does that. > > Mostly done via coccinelle script: > @@ > struct ethtool_ops *ops; > struct net_device *dev; > @@ > - SET_ET

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

2014-05-13 Thread Guenter Roeck
On Tue, May 13, 2014 at 07:16:41PM +1000, Benjamin Herrenschmidt wrote: > On Mon, 2014-05-12 at 17:28 -0700, Guenter Roeck wrote: > > > After applying this patch, I get > > > > arch/powerpc/kernel/exceptions-64s.S:269: Error: operand out of range > > (0x814c is not between 0xf

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

2014-05-13 Thread Pedro Alves
I wonder whether people are getting Roland's address from? It's frequent that ptrace related patches end up CCed to rol...@redhat.com, but, he's not been at Red Hat for a few years now. Roland, do you still want to be CCed on ptrace-related issues? If so, there's probably a script somewhere in t

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

2014-05-13 Thread Guenter Roeck
On Tue, May 13, 2014 at 07:16:41PM +1000, Benjamin Herrenschmidt wrote: > On Mon, 2014-05-12 at 17:28 -0700, Guenter Roeck wrote: > > > After applying this patch, I get > > > > arch/powerpc/kernel/exceptions-64s.S:269: Error: operand out of range > > (0x814c is not between 0xf

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

2014-05-13 Thread Pedro Alves
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 specific register sets i.e REGSET_TM_SPR, REGSET_TM_CGPR, > REGSET_TM_CFPR, REGSET_CVMX

Re: [PATCH 1/1] powerpc/perf: Adjust callchain based on DWARF debug info

2014-05-13 Thread Sukadev Bhattiprolu
Maynard Johnson [mpj...@us.ibm.com] wrote: | > [PATCH 1/1] powerpc/perf: Adjust callchain based on DWARF debug info | | Acked-by: Maynard Johnson | | Reviewed and tested. Thanks, Suka. Thanks Maynard. This updated patch also fixes whitespace damage. From: Sukadev Bhattiprolu Date: Fri, 9 Ma

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

2014-05-13 Thread Guenter Roeck
On 05/13/2014 02:16 AM, Benjamin Herrenschmidt wrote: On Mon, 2014-05-12 at 17:28 -0700, Guenter Roeck wrote: After applying this patch, I get arch/powerpc/kernel/exceptions-64s.S:269: Error: operand out of range (0x814c is not between 0x8000 and 0x7ffc) arc

Boot problems with a PA6T board

2014-05-13 Thread Christian Zigotzky
On 05.05.2014 07:48, Michael Ellerman wrote: On Sun, 2014-05-04 at 18:02 +0200, Christian Zigotzky wrote: Hi All, The RC 1, 2, and 3 of the kernel 3.15 don't boot on my PA6T board with a Radeon HD 6870 graphics card. Screenshot: http://forum.hyperion-entertainment.biz/download/file.php?id=1060

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

2014-05-13 Thread Alexey Kardashevskiy
On 05/13/2014 08:48 PM, Alexey Kardashevskiy wrote: > 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 anyw

[PATCH] powerpc/pseries: hcall functions are exported to modules, need _GLOBAL_TOC()

2014-05-13 Thread Anton Blanchard
The hcall macros may call out to c code for tracing, so we need to set up a valid r2. This fixes an oops found when testing ibmvscsi as a module. Signed-off-by: Anton Blanchard --- diff --git a/arch/powerpc/platforms/pseries/hvCall.S b/arch/powerpc/platforms/pseries/hvCall.S index 7891a86..99ec

[PATCH] pci-scan: Fix setting the limit

2014-05-13 Thread Alexey Kardashevskiy
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 and only besides in the config space, it remains

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

2014-05-13 Thread Benjamin Herrenschmidt
On Mon, 2014-05-12 at 17:28 -0700, Guenter Roeck wrote: > After applying this patch, I get > > arch/powerpc/kernel/exceptions-64s.S:269: Error: operand out of range > (0x814c is not between 0x8000 and 0x7ffc) > arch/powerpc/kernel/exceptions-64s.S:729: Error: o

Re: [PATCH] powerpc/pseries: relocate "config DTL" so KConfig nests properly

2014-05-13 Thread Cody P Schafer
On 05/12/2014 11:23 PM, Michael Neuling wrote: powerpc/pseries: relocate "config DTL" so KConfig nests properly I don't know what that means. Can you describe it in more detail? So the "config DTL" refers to the configuration entry. The "nests properly" refers to the indent that 'make menu

[PATCH] booke/powerpc: define wimge shift mask to fix compilation error

2014-05-13 Thread Bharat Bhushan
This fixes below compilation error on SOCs where CONFIG_PHYS_64BIT is not defined: arch/powerpc/kvm/e500_mmu_host.c: In function 'kvmppc_e500_shadow_map': | arch/powerpc/kvm/e500_mmu_host.c:631:20: error: 'PTE_WIMGE_SHIFT' undeclared (first use in this function) |wimg = (*ptep >> PTE_WIMGE_S