RE: [PATCH] powerpc/config: Disable the 4KiB erase granularity of SPI flash

2016-04-10 Thread Zhiqiang Hou
Hi David, Thanks for your comments. > -Original Message- > From: David Laight [mailto:david.lai...@aculab.com] > Sent: 2016年4月9日 0:01 > To: Zhiqiang Hou ; Scott Wood ; > linuxppc-dev@lists.ozlabs.org; b...@kernel.crashing.org; pau...@samba.org; >

Re: [PATCH 03/10] mm/hugetlb: Protect follow_huge_(pud|pgd) functions from race

2016-04-10 Thread Anshuman Khandual
On 04/07/2016 02:56 PM, Balbir Singh wrote: > > On 07/04/16 15:37, Anshuman Khandual wrote: >> > follow_huge_(pmd|pud|pgd) functions are used to walk the page table and >> > fetch the page struct during 'follow_page_mask' call. There are possible >> > race conditions faced by these functions

Re: [PATCH 2/2] powerpc/drivers: Add driver for operator panel on FSP machines

2016-04-10 Thread Andrew Donnellan
On 11/04/16 11:41, Suraj Jitindar Singh wrote: Implement new character device driver to allow access from user space to the 2x16 character operator panel display present on powernv machines. Specifically, on IBM Power Systems machines with FSPs (see comments below). This will allow status

Re: [PATCH 02/10] mm/hugetlb: Add PGD based implementation awareness

2016-04-10 Thread Anshuman Khandual
On 04/07/2016 02:34 PM, Balbir Singh wrote: > > > On 07/04/16 15:37, Anshuman Khandual wrote: >> Currently the config ARCH_WANT_GENERAL_HUGETLB enabled functions like >> 'huge_pte_alloc' and 'huge_pte_offset' dont take into account HugeTLB >> page implementation at the PGD level. This is also

Re: [PATCH V2 18/68] powerpc/mm: Move hash and no hash code to separate files

2016-04-10 Thread Balbir Singh
On 09/04/16 16:13, Aneesh Kumar K.V wrote: > This patch reduce #ifdef in C code and also help in adding radix changes > later. Only code movement in this patch. > > Signed-off-by: Aneesh Kumar K.V > --- > arch/powerpc/mm/Makefile | 3 +- >

Re: [PATCH V2 17/68] powerpc/mm/hash: Add support for POWER9 hash

2016-04-10 Thread Balbir Singh
On 09/04/16 16:13, Aneesh Kumar K.V wrote: > PowerISA 3.0 adds a parition table indexed by LPID. Parition table allow > us to specify the MMU model that will be used for guest and host > translation. > > This patch add support with SLB based hash model (UPRT = 0). What is > required with this

Re: [PATCH 0/2] perf probe fixes for ppc64le

2016-04-10 Thread Michael Ellerman
On Sat, 2016-04-09 at 19:12 +0530, Naveen N. Rao wrote: > > I suppose this boils down to the quirkiness of ABIv2. Though, in > reality, I don't think most users will notice. As I stated above, users > will most likely start with the disassembly or debuginfo and this patch > ensures there are

Re: cxl: fix setting of _PAGE_USER bit when handling page faults

2016-04-10 Thread Aneesh Kumar K.V
Michael Ellerman writes: > On Mon, 2016-04-11 at 14:10 +1000, Andrew Donnellan wrote: >> On 29/03/16 00:42, Aneesh Kumar K.V wrote: >> > I noticed this when doing radix support and have a variant posted at >> > >> >

Re: cxl: fix setting of _PAGE_USER bit when handling page faults

2016-04-10 Thread Michael Ellerman
On Mon, 2016-04-11 at 14:10 +1000, Andrew Donnellan wrote: > On 29/03/16 00:42, Aneesh Kumar K.V wrote: > > I noticed this when doing radix support and have a variant posted at > > > > https://lists.ozlabs.org/pipermail/linuxppc-dev/2016-March/141036.html > > I'm happy for this to be fixed in

Re: cxl: fix setting of _PAGE_USER bit when handling page faults

2016-04-10 Thread Andrew Donnellan
On 29/03/16 00:42, Aneesh Kumar K.V wrote: I noticed this when doing radix support and have a variant posted at https://lists.ozlabs.org/pipermail/linuxppc-dev/2016-March/141036.html I'm happy for this to be fixed in your radix series. -- Andrew Donnellan OzLabs, ADL Canberra

Re: [PATCH v2] kvm-pr: manage single-step mode

2016-04-10 Thread David Gibson
On Fri, 8 Apr 2016 18:05:00 +0200 Laurent Vivier wrote: > Until now, when we connect gdb to the QEMU gdb-server, the > single-step mode is not managed. > > This patch adds this, only for kvm-pr: > > If KVM_GUESTDBG_SINGLESTEP is set, we enable single-step trace bit in the

Re: [PATCH kernel 9/9] KVM: PPC: VFIO device: support SPAPR TCE

2016-04-10 Thread David Gibson
On Fri, Apr 08, 2016 at 07:13:06PM +1000, Alexey Kardashevskiy wrote: > On 03/09/2016 04:45 PM, David Gibson wrote: > > >>diff --git a/arch/powerpc/kvm/Makefile b/arch/powerpc/kvm/Makefile > >>index 7f7b6d8..71f577c 100644 > >>--- a/arch/powerpc/kvm/Makefile > >>+++ b/arch/powerpc/kvm/Makefile >

RE: [v7, 0/5] Fix eSDHC host version register bug

2016-04-10 Thread Yangbo Lu
Hi Leo and Scott, > -Original Message- > From: Ulf Hansson [mailto:ulf.hans...@linaro.org] > Sent: Wednesday, April 06, 2016 4:15 PM > To: Yangbo Lu; Scott Wood > Cc: devicet...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > linux-ker...@vger.kernel.org;

[PATCH 2/2] powerpc/drivers: Add driver for operator panel on FSP machines

2016-04-10 Thread Suraj Jitindar Singh
Implement new character device driver to allow access from user space to the 2x16 character operator panel display present on powernv machines. This will allow status information to be presented on the display which is visible to a user. The driver implements a 32 character buffer which a user

[PATCH 1/2] devicetree/bindings: Add binding for operator panel on FSP machines

2016-04-10 Thread Suraj Jitindar Singh
Add a binding to Documentation/devicetree/bindings/powerpc/opal (oppanel-opal.txt) for the operator panel which is present on IBM pseries machines with FSPs. Signed-off-by: Suraj Jitindar Singh --- .../devicetree/bindings/powerpc/opal/oppanel-opal.txt | 14

Re: [PATCH V2 16/68] powerpc/mm/power9: Add partition table format

2016-04-10 Thread Balbir Singh
On 09/04/16 16:13, Aneesh Kumar K.V wrote: > We also add mach dep call back for updating partition table entry. > > Signed-off-by: Aneesh Kumar K.V > --- > arch/powerpc/include/asm/book3s/64/mmu.h | 31 +-- >

Re: [PATCH V2 01/68] powerpc/cxl: Use REGION_ID instead of opencoding

2016-04-10 Thread Andrew Donnellan
On 09/04/16 16:12, Aneesh Kumar K.V wrote: Also note that the `~` operation is wrong. Cc: Frederic Barrat Cc: Andrew Donnellan Acked-by: Ian Munsie Signed-off-by: Aneesh Kumar K.V

[PATCH RESEND 2/2] drivers: macintosh: rack-meter: fix bogus memsets

2016-04-10 Thread Aaro Koskinen
Fix bogus memsets pointed out by sparse: linux-v4.3/drivers/macintosh/rack-meter.c:157:15: warning: memset with byte count of 0 linux-v4.3/drivers/macintosh/rack-meter.c:158:15: warning: memset with byte count of 0 Probably "&" is mistyped "*"; use ARRAY_SIZE to make it more safe.

[PATCH RESEND 1/2] drivers: macintosh: rack-meter: limit idle ticks to total ticks

2016-04-10 Thread Aaro Koskinen
Limit idle ticks to total ticks. This prevents the annoying rackmeter leds fully ON / OFF blinking state that happens on fully idling G5 Xserve systems. Signed-off-by: Aaro Koskinen --- drivers/macintosh/rack-meter.c | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH] powerpc: introduce {cmp}xchg for u8 and u16

2016-04-10 Thread Pan Xinhui
On 2016年04月08日 15:47, Peter Zijlstra wrote: > On Fri, Apr 08, 2016 at 02:41:46PM +0800, Pan Xinhui wrote: >> From: pan xinhui >> >> Implement xchg{u8,u16}{local,relaxed}, and >> cmpxchg{u8,u16}{,local,acquire,relaxed}. >> >> Atomic operation on 8-bit and 16-bit