Re: [PATCH 24/31] powerpc/mm: Convert __hash_page_64K to C

2015-09-27 Thread Aneesh Kumar K.V
Anshuman Khandual writes: > On 09/21/2015 12:10 PM, Aneesh Kumar K.V wrote: >> Convert from asm to C >> >> Signed-off-by: Aneesh Kumar K.V >> +new_pte = (new_pte & ~_PAGE_HPTEFLAGS) | _PAGE_HASHPTE; >> +new_pte |= (slot << _PAGE_F_GIX_SHIFT) & (_PAGE_F_SECOND | >> _PAGE

Re: [PATCH 00/31] powerpc/mm: Update page table format for book3s 64

2015-09-27 Thread Aneesh Kumar K.V
Scott Wood writes: > On Tue, 2015-09-22 at 12:18 +0530, Aneesh Kumar K.V wrote: >> Scott Wood writes: >> >> > On Mon, 2015-09-21 at 12:10 +0530, Aneesh Kumar K.V wrote: >> > > Hi All, >> > > >> > > This patch series attempt to update book3s 64 linux page table format to >> > > make it more fle

Re: [PATCH 18/31] powerpc/mm: Increase the pte frag size.

2015-09-27 Thread Aneesh Kumar K.V
Benjamin Herrenschmidt writes: > On Mon, 2015-09-21 at 17:23 +0530, Aneesh Kumar K.V wrote: >> The page that contain pte entries. Or the last level of the linux page >> table. or we could call them pte fragments. We need to allocate one >> full page at lowest level, because we want to use split p

Re: -mprofile-kernel vs. notrace in ppc64(le) Linux kernels

2015-09-27 Thread Stewart Smith
Torsten Duwe writes: > As I mentioned earlier this year, it's a bad idea to call _mcount from > MMU helper functions (e.g. hash_page...), when the profiling/tracing/ > live-patching/whatever framewok might in turn cause another such fault. > Jikos suggested to use fine-grained control of these fun

Re: [PATCH v2 0/5] drivers/tty: make more bool drivers explicitly non-modular

2015-09-27 Thread Greg Kroah-Hartman
On Sat, Sep 26, 2015 at 06:53:47PM -0400, Paul Gortmaker wrote: > [[PATCH v2 0/5] drivers/tty: make more bool drivers explicitly non-modular] > On 19/08/2015 (Wed 17:48) Paul Gortmaker wrote: > > > [v2: drop dead module code removal from 8250_lpc18xx.c ; instead convert it > > from bool to trist

Re: [PATCH RFC 1/5] powerpc:numa Add numa_cpu_lookup function to update lookup table

2015-09-27 Thread Raghavendra K T
On 09/27/2015 11:59 PM, Raghavendra K T wrote: We access numa_cpu_lookup_table array directly in all the places to read/update numa cpu lookup information. Instead use a helper function to update. This is helpful in changing the way numa<-->cpu mapping in single place when needed. This is a cos

[PATCH RFC 0/5] powerpc:numa Add serial nid support

2015-09-27 Thread Raghavendra K T
Problem description: Powerpc has sparse node numbering, i.e. on a 4 node system nodes are numbered (possibly) as 0,1,16,17. At a lower level, we map the chipid got from device tree is naturally mapped (directly) to nid. Potential side effect of that is: 1) There are several places in kernel that

[PATCH RFC 5/5] powerpc:numa Use chipid to nid mapping to get serial numa node ids

2015-09-27 Thread Raghavendra K T
Also properly initialize numa distance table for serial nids. Problem: Powerpc supports sparse nid numbering which could affect 1) memory footprint 2) virtualization use cases Current solution: The patch maps sprase chipid got fromn device tree to serail nids. Result before: node 0 1 16 17

[PATCH RFC 4/5] powerpc:numa Add helper functions to maintain chipid to nid mapping

2015-09-27 Thread Raghavendra K T
Create arrays that maps serial nids and sparse chipids. Note: My original idea had only two arrays of chipid to nid map. Final code is inspired by driver/acpi/numa.c that maps a proximity node with a logical node by Takayoshi Kochi , and thus uses an additional chipid_map nodemask. The mask helps

[PATCH RFC 3/5] powerpc:numa create 1:1 mappaing between chipid and nid

2015-09-27 Thread Raghavendra K T
Once we have made the distinction between nid and chipid create a 1:1 mapping between them. This makes compacting the nids easy later. No functionality change. Signed-off-by: Raghavendra K T --- arch/powerpc/mm/numa.c | 36 +--- 1 file changed, 29 insertions(+),

[PATCH RFC 2/5] powerpc:numa Rename functions referring to nid as chipid

2015-09-27 Thread Raghavendra K T
There is no change in the fuctionality Signed-off-by: Raghavendra K T --- arch/powerpc/mm/numa.c | 42 +- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c index d5e6eee..f84ed2f 100644 --- a/ar

[PATCH RFC 1/5] powerpc:numa Add numa_cpu_lookup function to update lookup table

2015-09-27 Thread Raghavendra K T
We access numa_cpu_lookup_table array directly in all the places to read/update numa cpu lookup information. Instead use a helper function to update. This is helpful in changing the way numa<-->cpu mapping in single place when needed. This is a cosmetic change, no change in functionality. Signed

Re: -mprofile-kernel vs. notrace in ppc64(le) Linux kernels

2015-09-27 Thread Torsten Duwe
On Sun, Sep 27, 2015 at 09:03:48AM +1000, Anton Blanchard wrote: > > On Sat, Sep 26, 2015 at 04:30:08PM +0200, Torsten Duwe wrote: > > > kernel. It is mapped to GCC's (4.8, FWIW) > > > __attribute__((no_instrument_function)), which, to my surprise, > > > works for -p and -pg nicely, but does not af