[PATCH] powerpc/mm/hash: Fix the reference bit update when handling hash fault

2016-05-26 Thread Aneesh Kumar K.V
When we converted the asm routines to C functions, we missed updating HPTE_R_R based on _PAGE_ACCESSED. ASM code used to copy over the lower bits from pte via. andi. r3,r30,0x1fe/* Get basic set of flags */ Fixes: 'commit 89ff725051d1 ("powerpc/mm: Convert __hash_page_64K to C")' W

Re: [PATCH 2/2] powerpc: Align hot loops of some string functions

2016-05-26 Thread Segher Boessenkool
On Fri, May 27, 2016 at 07:45:18AM +0200, Christophe Leroy wrote: > >>Wouldn't it be better to add nops before the function entry in order to > >>get the hot loop aligned, instead of adding nops in the middle of the > >>function ? > >Why would that be better? The nops are executed once per functio

[v3 PATCH 2/2] powerpc/mm: Dump hash table

2016-05-26 Thread Rashmica Gupta
Useful to be able to dump the kernel hash page table to check which pages are hashed along with their sizes and other details. Add a debugfs file to check the hash page table. If radix is enabled (and so there is no hash page table) then this file doesn't exist. To use this the PPC_PTDUMP config o

[v3 PATCH 1/2] powerpc/mm: Dump linux pagetables

2016-05-26 Thread Rashmica Gupta
Useful to be able to dump the kernels page tables to check permissions and memory types - derived from arm64's implementation. Add a debugfs file to check the page tables. To use this the PPC_PTDUMP config option must be selected. Signed-off-by: Rashmica Gupta --- v2 -> v3: Changed to be compati

Re: [PATCH 2/2] powerpc: Align hot loops of some string functions

2016-05-26 Thread Christophe Leroy
Le 26/05/2016 à 21:37, Segher Boessenkool a écrit : On Thu, May 26, 2016 at 09:24:51AM +0200, Christophe Leroy wrote: Wouldn't it be better to add nops before the function entry in order to get the hot loop aligned, instead of adding nops in the middle of the function ? Why would that be bett

Re: [PATCH v2] spapr: Don't set the TM ibm, pa-features bit in PR KVM mode

2016-05-26 Thread David Gibson
On Sat, Apr 30, 2016 at 10:48:00AM +1000, Anton Blanchard wrote: > We don't support transactional memory in PR KVM, so don't tell > the OS that we do. > > Signed-off-by: Anton Blanchard Relying on CAP_PPC_GET_PVINFO is a hack we need in some cases, but it's not something to be encouraged. I'd p

Re: [RFC PATCH] mm/init: fix zone boundary creation

2016-05-26 Thread Andrew Morton
On Thu, 5 May 2016 17:57:13 +1000 "Oliver O'Halloran" wrote: > As a part of memory initialisation the architecture passes an array to > free_area_init_nodes() which specifies the max PFN of each memory zone. > This array is not necessarily monotonic (due to unused zones) so this > array is parse

Re: how to change bss section address in u-boot.lds file

2016-05-26 Thread Segher Boessenkool
On Thu, May 26, 2016 at 05:31:08PM +0530, Rama Chandra wrote: > Hai, > I am using IBM PPC440GX board.In arch/powerpc/cpu/ppc4xx/u-boot.lds i am > changing the values of resetvector and BSS addresses but it is not changing > Presently i am changed > > > #if (RESET_VECTOR_ADDRESS == 0xfff0) >

Re: [PATCH 2/2] powerpc: Align hot loops of some string functions

2016-05-26 Thread Segher Boessenkool
On Thu, May 26, 2016 at 09:24:51AM +0200, Christophe Leroy wrote: > Wouldn't it be better to add nops before the function entry in order to > get the hot loop aligned, instead of adding nops in the middle of the > function ? Why would that be better? The nops are executed once per function call

Re: [PATCH v3 5/6] pv-qspinlock: use cmpxchg_release in __pv_queued_spin_unlock

2016-05-26 Thread Peter Zijlstra
On Thu, May 26, 2016 at 06:47:29PM +0200, Peter Zijlstra wrote: > On Wed, May 25, 2016 at 04:18:08PM +0800, Pan Xinhui wrote: > > cmpxchg_release is light-wight than cmpxchg, we can gain a better > > performace then. On some arch like ppc, barrier impact the performace > > too much. > > > > Sugges

Re: [PATCH v3 0/6] powerpc use pv-qpsinlock as the default spinlock implemention

2016-05-26 Thread Peter Zijlstra
On Wed, May 25, 2016 at 04:18:03PM +0800, Pan Xinhui wrote: > I do several tests on pseries IBM,8408-E8E with 32cpus, 64GB memory. > benchmark test results are below. > _testspinlcok__pv-qspinlcok_ > | compiling takes|22m | 22m

Re: [PATCH v3 0/6] powerpc use pv-qpsinlock as the default spinlock implemention

2016-05-26 Thread Peter Zijlstra
On Wed, May 25, 2016 at 04:18:03PM +0800, Pan Xinhui wrote: > _testspinlcok__pv-qspinlcok_ > |futex hash | 556370 ops | 629634 ops | > |futex lock-pi| 362 ops | 367 ops | > > scheduler test: > Test how

Re: [PATCH v3 5/6] pv-qspinlock: use cmpxchg_release in __pv_queued_spin_unlock

2016-05-26 Thread Peter Zijlstra
On Wed, May 25, 2016 at 04:18:08PM +0800, Pan Xinhui wrote: > cmpxchg_release is light-wight than cmpxchg, we can gain a better > performace then. On some arch like ppc, barrier impact the performace > too much. > > Suggested-by: Boqun Feng > Signed-off-by: Pan Xinhui > --- > kernel/locking/qs

how to change bss section address in u-boot.lds file

2016-05-26 Thread Rama Chandra
Hai, I am using IBM PPC440GX board.In arch/powerpc/cpu/ppc4xx/u-boot.lds i am changing the values of resetvector and BSS addresses but it is not changing Presently i am changed #if (RESET_VECTOR_ADDRESS == 0xfff0) . |= 4478; #endif #endif /* CONFIG_SPL */ __bss_start = .; .bss (NOL

Re: powerpc cross compiler issue

2016-05-26 Thread Safa Hamza
-- Forwarded message -- From: Christophe Leroy Date: Thu, May 26, 2016 at 11:02 AM Subject: Re: powerpc cross compiler issue To: Safa Hamza , linuxppc-dev@lists.ozlabs.org Le 26/05/2016 à 11:05, Safa Hamza a écrit : > hello every one > please can any one suggest to me a powerpc

Re: powerpc cross compiler issue

2016-05-26 Thread Christophe Leroy
Le 26/05/2016 à 11:05, Safa Hamza a écrit : hello every one please can any one suggest to me a powerpc cross compiler package or from source, i have downloaded cross compiler package such as powerpc64le and i got a little endian and big endian problem, i have tried also to download eldk cros

powerpc cross compiler issue

2016-05-26 Thread Safa Hamza
hello every one please can any one suggest to me a powerpc cross compiler package or from source, i have downloaded cross compiler package such as powerpc64le and i got a little endian and big endian problem, i have tried also to download eldk cross compiler but i didn't know how any suggestion pl

Re: [v10, 7/7] mmc: sdhci-of-esdhc: fix host version for T4240-R1.0-R2.0

2016-05-26 Thread Ulf Hansson
On 26 May 2016 at 06:05, Yangbo Lu wrote: > Hi Uffe, > > Could we merge this patchset? ... > It has been a long time to wait for Arnd's response... > > Thanks a lot. > > As we are still in the merge window I won't queue anything but fixes. Let's give Arnd another week or so to respond. Kind rega

Re: [PATCH 2/2] powerpc: Align hot loops of some string functions

2016-05-26 Thread Christophe Leroy
Le 26/05/2016 à 00:39, Anton Blanchard via Linuxppc-dev a écrit : Align the hot loops in our assembly implementation of strncpy(), strncmp() and memchr(). Wouldn't it be better to add nops before the function entry in order to get the hot loop aligned, instead of adding nops in the middle of t