Re: [PATCH V10 00/28] Add new powerpc specific ELF core notes

2016-04-10 Thread Edjunior Barbosa Machado
On 04/07/2016 06:49 PM, Michael Ellerman wrote: > > > On 7 April 2016 7:23:46 pm AEST, Laurent Dufour > wrote: >> On 16/02/2016 09:59, Anshuman Khandual wrote: >>> This patch series adds twelve new ELF core note sections which can >>> be used with existing ptrace request PTRACE_GETREGSET-SE

Ping? Re: [PATCH] sched/cpuacct: Check for NULL when using task_pt_regs()

2016-04-10 Thread Michael Ellerman
Hi Peter/Ingo, On Wed, 2016-04-06 at 21:59 +1000, Anton Blanchard wrote: > Hi Peter, > > > Ah, so sometihng like: > > > > struct pt_regs *regs = task_pt_regs(); > > int index = CPUACCT_USAGE_SYSTEM; > > > > if (regs && user_mode(regs)) > > index = CPUACCT_USAGE_USER; > >

Re: [PATCH V2] powerpc/mm: Add validation for platform reserved memory ranges

2016-04-10 Thread Anshuman Khandual
On 03/07/2016 03:25 PM, Anshuman Khandual wrote: > For partition running on PHYP, there can be a adjunct partition > which shares the virtual address range with the operating system. > Virtual address ranges which can be used by the adjunct partition > are communicated with virtual device node of t

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

2016-04-10 Thread Anshuman Khandual
On 04/11/2016 10:55 AM, Anshuman Khandual wrote: > 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 accou

Re: [PATCH V2 20/68] powerpc/mm: Handle _PTE_NONE_MASK

2016-04-10 Thread Balbir Singh
On 09/04/16 16:13, Aneesh Kumar K.V wrote: > I am splitting this as a separate patch to get better review. If ok > we should merge this with previous patch. > > Signed-off-by: Aneesh Kumar K.V I think the merge makes more sense Balbir ___ Linuxppc-de

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

2016-04-10 Thread Anshuman Khandual
On 04/07/2016 03:04 PM, kbuild test robot wrote: > All errors (new ones prefixed by >>): > >mm/hugetlb.c: In function 'follow_huge_pud': >>> >> mm/hugetlb.c:4360:3: error: implicit declaration of function 'pud_page' >>> >> [-Werror=implicit-function-declaration] > page = pud_page(*pud)

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; > m...@ellerman.id.au > Cc: Mingkai Hu > Su

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 which

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 inf

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 tru

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 +- > arch/powerpc/mm/init_64.c| 74 ++

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 mo

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 ac

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 >> > >> > https://lists.ozlabs.org/pipermail/linuxppc-dev/2016-March/141036.html >> >> I'

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 you

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 and

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 > MSR (MSR_SE) just b

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; linuxppc-dev@lists.ozlab

[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 ca

[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 ++ 1 file changed, 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 +-- > arch/powerpc/include/asm/machdep.h | 1 + > arch/p

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 Reviewed-by: Andrew Donnellan -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm

[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. Signed-off-b

[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 a/drivers/macintosh/rack-mete

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 data type is supported from power7