Re: [PATCH v2] PCI: designware: add host_init error handling

2016-12-07 Thread Jisheng Zhang
Hi Srinivas, On Wed, 7 Dec 2016 10:32:49 + Srinivas Kandagatla wrote: > This patch add support to return value from host_init() callback from drivers, > so that the designware libary can handle or pass it to proper place. Issue > with > void return type is that errors or error handling with

Re: -next build failure with gcc 5.2.1

2016-12-07 Thread Sachin Sant
> On 08-Dec-2016, at 7:39 AM, Balbir Singh wrote: > > On 12/07/2016 07:26 PM, Sachin Sant wrote: >> next tree fails to build on a ppc64le box with following message >> >> LD init/built-in.o >> LD vmlinux.o >> MODPOST vmlinux.o >> WARNING: modpost: Found 3 section mismatch(es). >> T

4.9.0-rc8 - rcutorture test failure

2016-12-07 Thread Sachin Sant
RCU Torture test on powerpc fails during its run against latest mainline (4.9.0-rc8) tree. 07:58:25 BUG: rcutorture tests failed ! 07:58:25 21:31:00 ERROR| child process failed 07:58:25 21:31:00 INFO |ERROR rcutorture rcutorture timestamp=1481164260localtime=Dec 07

[PATCH 6/6] pseries: Automatically resize HPT for memory hot add/remove

2016-12-07 Thread David Gibson
We've now implemented code in the pseries platform to use the new PAPR interface to allow resizing the hash page table (HPT) at runtime. This patch uses that interface to automatically attempt to resize the HPT when memory is hot added or removed. This tries to always keep the HPT at a reasonable

[PATCH 5/6] pseries: Advertise HPT resizing support via CAS

2016-12-07 Thread David Gibson
The hypervisor needs to know a guest is capable of using the HPT resizing PAPR extension in order to make full advantage of it for memory hotplug. If the hypervisor knows the guest is HPT resize aware, it can size the initial HPT based on the initial guest RAM size, relying on the guest to resize

[PATCH 3/6] pseries: Add hypercall wrappers for hash page table resizing

2016-12-07 Thread David Gibson
This adds the hypercall numbers and wrapper functions for the hash page table resizing hypercalls. These are experimental "platform specific" values for now, until we have a formal PAPR update. It also adds a new firmware feature flag to track the presence of the HPT resizing calls. Signed-off-b

[PATCH 4/6] pseries: Add support for hash table resizing

2016-12-07 Thread David Gibson
This adds support for using experimental hypercalls to change the size of the main hash page table while running as a PAPR guest. For now these hypercalls are only in experimental qemu versions. The interface is two part: first H_RESIZE_HPT_PREPARE is used to allocate and prepare the new hash tab

[PATCH 2/6] powerpc/kvm: Corectly report KVM_CAP_PPC_ALLOC_HTAB

2016-12-07 Thread David Gibson
At present KVM on powerpc always reports KVM_CAP_PPC_ALLOC_HTAB as enabled. However, the ioctl() it advertises (KVM_PPC_ALLOCATE_HTAB) only actually works on KVM HV. On KVM PR it will fail with ENOTTY. qemu already has a workaround for this, so it's not breaking things in practice, but it would b

[PATCH 0/6] powerpc: Hash Page Table resizing for PAPR guests

2016-12-07 Thread David Gibson
This series implements the guest side of a PAPR ACR which allows a POWER guest's Hashed Page Table (HPT) to be resized at runtime. This is useful when a guest has a very large theoretical maximum RAM, but is likely to only ever be expanded to a modest amount of RAM in practice. Without resizing t

[PATCH 1/6] kvm: Move KVM_PPC_PVINFO_FLAGS_EV_IDLE definition next to its structure

2016-12-07 Thread David Gibson
The KVM_PPC_PVINFO_FLAGS_EV_IDLE macro defines a bit for use in the flags field of struct kvm_ppc_pvinfo. However, changes since that was introduced have moved it away from that structure definition, which is confusing. Move it back next to the structure it belongs with. Signed-off-by: David Gib

Re: linux-next: Tree for Dec 7 (kallsyms failure)

2016-12-07 Thread Nicholas Piggin
On Thu, 8 Dec 2016 15:29:35 +1100 Stephen Rothwell wrote: > Hi all, > > On Wed, 7 Dec 2016 18:30:57 -0800 Randy Dunlap wrote: > > > > On 12/07/16 15:56, Stephen Rothwell wrote: > > > > > > On Wed, 7 Dec 2016 15:42:32 -0800 Randy Dunlap > > > wrote: > > >> > > >> I started seeing this y

Re: linux-next: Tree for Dec 7 (kallsyms failure)

2016-12-07 Thread Stephen Rothwell
Hi all, On Wed, 7 Dec 2016 18:30:57 -0800 Randy Dunlap wrote: > > On 12/07/16 15:56, Stephen Rothwell wrote: > > > > On Wed, 7 Dec 2016 15:42:32 -0800 Randy Dunlap > > wrote: > >> > >> I started seeing this yesterday (2016-1206). > >> This is on x86_64. > >> > >> Anybody know about it? > >>

Re: [PATCH] powerpc: Fix LPCR_VRMASD definition

2016-12-07 Thread Aneesh Kumar K.V
Jia He writes: > Fixes: a4b349540a ("powerpc/mm: Cleanup LPCR defines") > Signed-off-by: Jia He I sent another one https://lkml.kernel.org/r/20161208034213.21700-1-aneesh.ku...@linux.vnet.ibm.com to fix the same issue. I didn't notice this on the list. > --- > arch/powerpc/include/asm/reg.

[PATCH] powerpc/mm: Fixup wrong LPCR_VRMASD value

2016-12-07 Thread Aneesh Kumar K.V
In commit a4b349540a26af ("powerpc/mm: Cleanup LPCR defines") we updated LPCR_VRMASD wrongly as below. -#define LPCR_VRMASD (0x1ful << (63-16)) +#define LPCR_VRMASD_SH 47 +#define LPCR_VRMASD (ASM_CONST(1) << LPCR_VRMASD_SH) We initialize the VRMA bits in LPCR to 0x00 in kvm

[PATCH] powerpc: Fix LPCR_VRMASD definition

2016-12-07 Thread Jia He
Fixes: a4b349540a ("powerpc/mm: Cleanup LPCR defines") Signed-off-by: Jia He --- arch/powerpc/include/asm/reg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/include/asm/reg.h b/arch/powerpc/include/asm/reg.h index 9e1499f..93ec25e 100644 --- a/arch/powerpc/incl

Re: linux-next: Tree for Dec 7 (kallsyms failure)

2016-12-07 Thread Randy Dunlap
On 12/07/16 15:56, Stephen Rothwell wrote: > Hi Randy, > > On Wed, 7 Dec 2016 15:42:32 -0800 Randy Dunlap wrote: >> >> I started seeing this yesterday (2016-1206). >> This is on x86_64. >> >> Anybody know about it? >> >> kallsyms failure: relative symbol value 0x8100 out of range in

Re: -next build failure with gcc 5.2.1

2016-12-07 Thread Balbir Singh
On 12/07/2016 07:26 PM, Sachin Sant wrote: next tree fails to build on a ppc64le box with following message LD init/built-in.o LD vmlinux.o MODPOST vmlinux.o WARNING: modpost: Found 3 section mismatch(es). To see full details build your kernel with: 'make CONFIG_DEBUG_SECTION_MIS

Re: linux-next: Tree for Dec 7 (kallsyms failure)

2016-12-07 Thread Stephen Rothwell
Hi Randy, On Wed, 7 Dec 2016 15:42:32 -0800 Randy Dunlap wrote: > > I started seeing this yesterday (2016-1206). > This is on x86_64. > > Anybody know about it? > > kallsyms failure: relative symbol value 0x8100 out of range in > relative mode I got a similar failure starting a fe

[PATCH] ibmvscsi: add write memory barrier to CRQ processing

2016-12-07 Thread Tyrel Datwyler
The first byte of each CRQ entry is used to indicate whether an entry is a valid response or free for the VIOS to use. After processing a response the driver sets the valid byte to zero to indicate the entry is now free to be reused. Add a memory barrier after this write to ensure no other stores a

Re: [PATCH v7] powerpc: Do not make the entire heap executable

2016-12-07 Thread Kees Cook
On Wed, Nov 9, 2016 at 9:06 AM, Denys Vlasenko wrote: > On 32-bit powerpc the ELF PLT sections of binaries (built with --bss-plt, > or with a toolchain which defaults to it) look like this: > > [17] .sbss NOBITS 0002aff8 01aff8 14 00 WA 0 0 > 4 > [18] .plt

[PATCH 2/2] ibmvscsi: log bad SRP response opcode in hex format

2016-12-07 Thread Tyrel Datwyler
An unrecogonized or unsupported SRP response has its opcode currently logged in decimal format. Log it in hex format instead so it can easily be validated against the SRP specs values which are in hex. Signed-off-by: Tyrel Datwyler --- drivers/scsi/ibmvscsi/ibmvscsi.c | 2 +- 1 file changed, 1 i

[PATCH 1/2] ibmvscsi: add vscsi hosts to global list_head

2016-12-07 Thread Tyrel Datwyler
Add each vscsi host adatper to a new global list_head named ibmvscsi_head. There is no functional change. This is meant primarily as a convience for locating adatpers from within the debugger or crash utility. Signed-off-by: Tyrel Datwyler --- drivers/scsi/ibmvscsi/ibmvscsi.c | 3 +++ drivers/sc

[PATCH v2] powerpc: sstep.c: Add modsw, moduw instruction emulation

2016-12-07 Thread PrasannaKumar Muralidharan
Add modsw and moduw instruction emulation support to analyse_instr. modsw is an x-form instruction that calculates signed modulo of values stored in registers. moduw is similar to modsw but it works with unsigned values. Changes in v2: Don't update CR register as the instruction does not touch tha

[PATCH v3 4/4] powerpc/fsl/dts: add FMan node for t1042d4rdb

2016-12-07 Thread Madalin Bucur
Signed-off-by: Madalin Bucur --- arch/powerpc/boot/dts/fsl/t1042d4rdb.dts | 52 1 file changed, 52 insertions(+) diff --git a/arch/powerpc/boot/dts/fsl/t1042d4rdb.dts b/arch/powerpc/boot/dts/fsl/t1042d4rdb.dts index 2a5a90d..fcd2aeb 100644 --- a/arch/powerpc/boo

[PATCH v3 2/4] powerpc/fsl/dts: add QMan and BMan nodes on t1024

2016-12-07 Thread Madalin Bucur
Signed-off-by: Madalin Bucur --- arch/powerpc/boot/dts/fsl/t1024qds.dts | 29 + arch/powerpc/boot/dts/fsl/t1024rdb.dts | 29 + 2 files changed, 58 insertions(+) diff --git a/arch/powerpc/boot/dts/fsl/t1024qds.dts b/arch/powerpc/boot/dts/fs

[PATCH v3 3/4] powerpc/fsl/dts: add sg_2500_aqr105_phy4 alias on t1024rdb

2016-12-07 Thread Madalin Bucur
The alias is used by the boot loader to perform a device tree fixup. Signed-off-by: Madalin Bucur --- arch/powerpc/boot/dts/fsl/t1024rdb.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/powerpc/boot/dts/fsl/t1024rdb.dts b/arch/powerpc/boot/dts/fsl/t1024rdb.dts index c7f4f62..73a

[PATCH v3 1/4] powerpc/fsl/dts: add QMan and BMan nodes on t1023

2016-12-07 Thread Madalin Bucur
Signed-off-by: Madalin Bucur --- arch/powerpc/boot/dts/fsl/t1023rdb.dts | 29 arch/powerpc/boot/dts/fsl/t1023si-post.dtsi | 103 2 files changed, 132 insertions(+) diff --git a/arch/powerpc/boot/dts/fsl/t1023rdb.dts b/arch/powerpc/boot/dts/fsl/t1023rd

Re: [PATCH v2] PCI: designware: add host_init error handling

2016-12-07 Thread Joao Pinto
Hi Srinivas! Thanks for the update! Acked-By: Joao Pinto Às 10:32 AM de 12/7/2016, Srinivas Kandagatla escreveu: > This patch add support to return value from host_init() callback from drivers, > so that the designware libary can handle or pass it to proper place. Issue > with > void return t

[PATCH v2] PCI: designware: add host_init error handling

2016-12-07 Thread Srinivas Kandagatla
This patch add support to return value from host_init() callback from drivers, so that the designware libary can handle or pass it to proper place. Issue with void return type is that errors or error handling within host_init() callback are never know to designware code, which could go ahead and ac