Re: p4080ds IRQ vector number for he External IRQ4 and IRQ5

2016-01-11 Thread Scott Wood
On Wed, 2016-01-06 at 08:40 +, Lakshmi wrote: > I have been trying to figure out what is the vector number used for external > IRQ4 and IRQ5 in P4080ds. > > According to board document xpedite5470-p4080 > IRQ4: VPX GP Input 0 (GPI0) > IRQ5 VPX GP Input 1 (GPI1) > > In p4080 user guide

Re: [PATCH 3/3] ASoC: fsl_ssi: remove register defaults

2016-01-11 Thread Mark Brown
On Mon, Jan 11, 2016 at 07:23:54PM -0600, Timur Tabi wrote: > Mark Brown wrote: > >regcache handles this fine, it's perfectly happy to just go and allocate > >the cache as registers get used (this is why the code that's doing the > >allocation exists...). What is causing problems here is that

Re: [PATCH 3/3] ASoC: fsl_ssi: remove register defaults

2016-01-11 Thread Timur Tabi
Mark Brown wrote: regcache handles this fine, it's perfectly happy to just go and allocate the cache as registers get used (this is why the code that's doing the allocation exists...). What is causing problems here is that the first access to the register is happening in interrupt context so we

Re: [PATCH v4 0/3] checkpatch: handling of memory barriers

2016-01-11 Thread Joe Perches
On Mon, 2016-01-11 at 13:00 +0200, Michael S. Tsirkin wrote: > As part of memory barrier cleanup, this patchset > extends checkpatch to make it easier to stop > incorrect memory barrier usage. Thanks Michael. Acked-by: Joe Perches

Re: simple_alloc space tramples initrd

2016-01-11 Thread dwalker
On Tue, Jan 12, 2016 at 09:17:53AM +1100, Michael Ellerman wrote: > On Mon, 2016-01-11 at 08:49 -0800, dwal...@fifo99.com wrote: > > On Mon, Jan 11, 2016 at 02:09:34PM +1100, Michael Ellerman wrote: > > > On Fri, 2016-01-08 at 09:45 -0800, dwal...@fifo99.com wrote: > > > > Hi, > > > > > > > > A

Re: simple_alloc space tramples initrd

2016-01-11 Thread Michael Ellerman
On Mon, 2016-01-11 at 08:49 -0800, dwal...@fifo99.com wrote: > On Mon, Jan 11, 2016 at 02:09:34PM +1100, Michael Ellerman wrote: > > On Fri, 2016-01-08 at 09:45 -0800, dwal...@fifo99.com wrote: > > > Hi, > > > > > > A powerpc machine I'm working on has this problem where the > > >

Re: [PATCH v4 0/4] cpufreq: powernv: Redesign the presentation of throttle notification

2016-01-11 Thread Greg KH
On Mon, Jan 11, 2016 at 02:54:36PM -0600, Shilpasri G Bhat wrote: > In POWER8, OCC(On-Chip-Controller) can throttle the frequency of the > CPU when the chip crosses its thermal and power limits. Currently, > powernv-cpufreq driver detects and reports this event as a console > message. Some

[PATCH 1/2] powerpc/perf: Remove PME_ prefix for power7 events

2016-01-11 Thread Sukadev Bhattiprolu
We used the PME_ prefix earlier to avoid some macro/variable name collisions. We have since changed the way we define/use the event macros so we no longer need the prefix. By dropping the prefix, we keep the the event macros consistent with their official names. Reported-by: Michael Ellerman

Re: [PATCH V2] mm/powerpc: Fix _PAGE_PTE breaking swapoff

2016-01-11 Thread Michael Ellerman
On Mon, 2016-01-11 at 21:19 +0530, Aneesh Kumar K.V wrote: > Core kernel expect swp_entry_t to be consisting of > only swap type and swap offset. We should not leak pte bits to > swp_entry_t. This breaks swapoff which use the swap type and offset > to build a swp_entry_t and later compare that to

Re: simple_alloc space tramples initrd

2016-01-11 Thread Michael Ellerman
On Mon, 2016-01-11 at 15:07 -0800, dwal...@fifo99.com wrote: > On Tue, Jan 12, 2016 at 09:17:53AM +1100, Michael Ellerman wrote: > > On Mon, 2016-01-11 at 08:49 -0800, dwal...@fifo99.com wrote: > > > On Mon, Jan 11, 2016 at 02:09:34PM +1100, Michael Ellerman wrote: > > > > On Fri, 2016-01-08 at

Re: [PATCH v4 0/3] checkpatch: handling of memory barriers

2016-01-11 Thread Michael S. Tsirkin
On Mon, Jan 11, 2016 at 12:59:25PM +0200, Michael S. Tsirkin wrote: > As part of memory barrier cleanup, this patchset > extends checkpatch to make it easier to stop > incorrect memory barrier usage. > > This replaces the checkpatch patches in my series > arch: barrier cleanup + barriers

Re: [PATCH v4 0/3] checkpatch: handling of memory barriers

2016-01-11 Thread Julian Calaby
Hi Michael, On Mon, Jan 11, 2016 at 10:04 PM, Michael S. Tsirkin wrote: > On Mon, Jan 11, 2016 at 12:59:25PM +0200, Michael S. Tsirkin wrote: >> As part of memory barrier cleanup, this patchset >> extends checkpatch to make it easier to stop >> incorrect memory barrier usage. >>

RE: [PATCH 3/6] QE: Add uqe_serial document to bindings

2016-01-11 Thread Qiang Zhao
On Fri, Jan 09, 2016 at 04:12AM, Rob Herring wrote: > -Original Message- > From: Rob Herring [mailto:r...@kernel.org] > Sent: Saturday, January 09, 2016 4:12 AM > To: Qiang Zhao > Cc: devicet...@vger.kernel.org; linux-ker...@vger.kernel.org; linuxppc-

Re: powerpc/opal: fix minor off-by-one error in opal_mce_check_early_recovery()

2016-01-11 Thread Michael Ellerman
On Mon, 2015-21-12 at 07:28:37 UTC, Andrew Donnellan wrote: > Fix off-by-one error in opal_mce_check_early_recovery() when checking > whether the NIP falls within OPAL space. > > Signed-off-by: Andrew Donnellan Applied to powerpc next, thanks.

[PATCH v10 3/4] tools/perf: Map the ID values with register names

2016-01-11 Thread Anju T
Map ID values with corresponding register names. These names are then displayed when user issues perf record with the -I option followed by perf report/script with -D option. To test this patchset, Eg: $ perf record -I ls # record machine state at interrupt $ perf script -D # read the

Re: [PATCH v3 3/3] checkpatch: add virt barriers

2016-01-11 Thread Julian Calaby
Hi Michael, On Mon, Jan 11, 2016 at 9:35 PM, Michael S. Tsirkin wrote: > On Sun, Jan 10, 2016 at 02:52:16PM -0800, Joe Perches wrote: >> On Mon, 2016-01-11 at 09:13 +1100, Julian Calaby wrote: >> > On Mon, Jan 11, 2016 at 6:31 AM, Michael S. Tsirkin >> >

Re: [PATCH v3 3/3] checkpatch: add virt barriers

2016-01-11 Thread Michael S. Tsirkin
On Mon, Jan 11, 2016 at 09:40:18PM +1100, Julian Calaby wrote: > Hi Michael, > > On Mon, Jan 11, 2016 at 9:35 PM, Michael S. Tsirkin wrote: > > On Sun, Jan 10, 2016 at 02:52:16PM -0800, Joe Perches wrote: > >> On Mon, 2016-01-11 at 09:13 +1100, Julian Calaby wrote: > >> > On

Re: powerpc/powernv: Only delay opal_rtc_read() retry when necessary

2016-01-11 Thread Michael Ellerman
On Fri, 2015-18-12 at 10:46:04 UTC, Michael Neuling wrote: > Only delay opal_rtc_read() when busy and are going to retry. > > This has the advantage of possibly saving a massive 10ms off booting! > > Kudos to Stewart for noticing. > > Signed-off-by: Michael Neuling >

[PATCH V10 0/4] perf/powerpc: Add ability to sample intr machine state in powerpc

2016-01-11 Thread Anju T
This short patch series adds the ability to sample the interrupted machine state for each hardware sample. To test this patchset, Eg: $ perf record -I? # list supported registers output: available registers: gpr0 gpr1 gpr2 gpr3 gpr4 gpr5 gpr6 gpr7 gpr8 gpr9 gpr10 gpr11 gpr12 gpr13 gpr14

[PATCH v4 2/3] checkpatch: check for __smp outside barrier.h

2016-01-11 Thread Michael S. Tsirkin
Introduction of __smp barriers cleans up a bunch of duplicate code, but it gives people an additional handle onto a "new" set of barriers - just because they're prefixed with __* unfortunately doesn't stop anyone from using it (as happened with other arch stuff before.) Add a checkpatch test so

Re: [V3] powerpc/powernv: Add a kmsg_dumper that flushes console output on panic

2016-01-11 Thread Michael Ellerman
On Fri, 2015-27-11 at 06:23:07 UTC, Russell Currey wrote: > On BMC machines, console output is controlled by the OPAL firmware and is > only flushed when its pollers are called. When the kernel is in a panic > state, it no longer calls these pollers and thus console output does not > completely

[PATCH] mm/powerpc: Fix _PAGE_PTE breaking swapoff

2016-01-11 Thread Aneesh Kumar K.V
When converting a swp_entry_t to pte, we need to add _PAGE_PTE, because we later compare the pte with linux page table entries to find a matching pte. We do set _PAGE_PTE on pte entries on linux page table even if it is a swap entry. So add them when converting swp_entry_t to pte_t The stack

[PATCH v4 1/3] checkpatch.pl: add missing memory barriers

2016-01-11 Thread Michael S. Tsirkin
SMP-only barriers were missing in checkpatch.pl Refactor code slightly to make adding more variants easier. Signed-off-by: Michael S. Tsirkin --- scripts/checkpatch.pl | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git

[PATCH V10 1/4] perf/powerpc: assign an id to each powerpc register

2016-01-11 Thread Anju T
The enum definition assigns an 'id' to each register in "struct pt_regs" of arch/powerpc. The order of these values in the enum definition are based on the corresponding macros in arch/powerpc/include/uapi/asm/ptrace.h. Signed-off-by: Anju T Reviewed-by : Madhavan

Re: [PATCH v3 3/3] checkpatch: add virt barriers

2016-01-11 Thread Michael S. Tsirkin
On Sun, Jan 10, 2016 at 02:52:16PM -0800, Joe Perches wrote: > On Mon, 2016-01-11 at 09:13 +1100, Julian Calaby wrote: > > On Mon, Jan 11, 2016 at 6:31 AM, Michael S. Tsirkin wrote: > > > Add virt_ barriers to list of barriers to check for > > > presence of a comment. > [] > > >

RE: [v2] powerpc/fsl: Update fman dt binding with pcs-phy and tbi-phy

2016-01-11 Thread Igal Liberman
Hi Rob, > -Original Message- > From: Rob Herring [mailto:r...@kernel.org] > Sent: Wednesday, December 30, 2015 6:28 PM > To: Igal Liberman > Cc: devicet...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org; Scott Wood > ;

Re: powerpc: fix style of self-test config prompts

2016-01-11 Thread Michael Ellerman
On Mon, 2015-21-12 at 06:38:41 UTC, Andrew Donnellan wrote: > A few of the config prompts for powerpc self-tests have periods at the > end, which is inconsistent with the rest of the prompts. Remove the > periods. > > Signed-off-by: Andrew Donnellan Applied to

Re: powerpc: add va_end()

2016-01-11 Thread Michael Ellerman
On Thu, 2015-17-12 at 08:41:00 UTC, Daniel Axtens wrote: > cppcheck picked up that there were a couple of missing va_end() > calls in functions using va_start(). > > Signed-off-by: Daniel Axtens > Reviewed-by: Russell Currey Applied to powerpc next, thanks.

[PATCH v4 0/3] checkpatch: handling of memory barriers

2016-01-11 Thread Michael S. Tsirkin
As part of memory barrier cleanup, this patchset extends checkpatch to make it easier to stop incorrect memory barrier usage. This replaces the checkpatch patches in my series arch: barrier cleanup + barriers for virt and will be included in the pull request including the series. changes

[PATCH v4 3/3] checkpatch: add virt barriers

2016-01-11 Thread Michael S. Tsirkin
Add virt_ barriers to list of barriers to check for presence of a comment. Signed-off-by: Michael S. Tsirkin --- scripts/checkpatch.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 25476c2..c7bf1aa

Re: cxl: Fix DSI misses when the context owning task exits

2016-01-11 Thread Michael Ellerman
On Tue, 2015-24-11 at 10:56:18 UTC, Vaibhav Jain wrote: > Presently when a user-space process issues CXL_IOCTL_START_WORK ioctl we > store the pid of the current task_struct and use it to get pointer to > the mm_struct of the process, while processing page or segment faults > from the capi card.

[PATCH V1 4/4] tool/perf: Add sample_reg_mask to include all perf_regs regs

2016-01-11 Thread Anju T
From: Madhavan Srinivasan Add sample_reg_mask array with pt_regs registers. This is needed for printing supported regs ( -I? option). Signed-off-by: Madhavan Srinivasan --- tools/perf/arch/powerpc/util/Build | 1 +

Re: [v3, 2/2] powerpc: Copy only required pieces of the mm_context_t to the paca

2016-01-11 Thread Michael Ellerman
On Thu, 2015-10-12 at 22:34:42 UTC, Michael Neuling wrote: > Currently we copy the whole mm_context_t to the paca but only access a > few bits of it. This is wasteful of space paca and also takes quite > some time in the hot path of context switching. > > This patch pulls in only the required

Re: [1/2] powerpc: Add function to copy mm_context_t to the paca

2016-01-11 Thread Michael Ellerman
On Wed, 2015-28-10 at 04:54:06 UTC, Michael Neuling wrote: > This adds a function to copy the mm->context to the paca. This is > only a basic conversion for now but will be used more extensively in > the next patch. > > This also adds #ifdef CONFIG_PPC_BOOK3S around this code since it's > not

[PATCH V10 2/4] perf/powerpc: add support for sampling intr machine state

2016-01-11 Thread Anju T
The perf infrastructure uses a bit mask to find out valid registers to display. Define a register mask for supported registers defined in asm/perf_regs.h. The bit positions also correspond to register IDs which is used by perf infrastructure to fetch the register values. CONFIG_HAVE_PERF_REGS

Re: [PATCH v2 20/32] metag: define __smp_xxx

2016-01-11 Thread Michael S. Tsirkin
On Tue, Jan 05, 2016 at 12:09:30AM +, James Hogan wrote: > Hi Michael, > > On Thu, Dec 31, 2015 at 09:08:22PM +0200, Michael S. Tsirkin wrote: > > This defines __smp_xxx barriers for metag, > > for use by virtualization. > > > > smp_xxx barriers are removed as they are > > defined correctly

[RFC PATCH kernel] powerpc/ioda: Set "read" permission when "write" is set

2016-01-11 Thread Alexey Kardashevskiy
Quite often drivers set only "write" permission assuming that this includes "read" permission as well and this works on plenty platforms. However IODA2 is strict about this and produces an EEH when "read" permission is not and reading happens. This adds a workaround in IODA code to always add the

[RFC PATCH V1 19/33] powerpc/mm: Rename hash specific page table bits (_PAGE* -> H_PAGE*)

2016-01-11 Thread Aneesh Kumar K.V
This patch renames _PAGE* -> H_PAGE*. This enables us to support different page table format in the same kernel. Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/book3s/64/hash-4k.h | 60 ++-- arch/powerpc/include/asm/book3s/64/hash-64k.h |

[RFC PATCH V1 00/33] Book3s abstraction in preparation for new MMU model

2016-01-11 Thread Aneesh Kumar K.V
Hello, This is a large series, mostly consisting of code movement. No new features are done in this series. The changes are done to accomodate the upcoming new memory model in future powerpc chips. The details of the new MMU model can be found at http://ibm.biz/power-isa3 (Needs

[RFC PATCH V1 06/33] powerpc/mm: Copy pgalloc (part 3)

2016-01-11 Thread Aneesh Kumar K.V
64bit book3s now always have 4 level page table irrespective of linux page size. Move the related code out of #ifdef Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/book3s/64/pgalloc.h | 55 +--- 1 file changed, 18

[RFC PATCH V1 02/33] powerpc/mm: Split pgtable types to separate header

2016-01-11 Thread Aneesh Kumar K.V
No code changes. We will later add a radix variant that is big endian Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/page.h | 104 +-- arch/powerpc/include/asm/pgtable-types.h | 100 +

[RFC PATCH V1 32/33] powerpc/mm: Hash linux abstraction for tlbflush routines

2016-01-11 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/book3s/64/tlbflush-hash.h | 28 ++- arch/powerpc/include/asm/book3s/64/tlbflush.h | 56 ++ arch/powerpc/include/asm/tlbflush.h| 2 +-

[RFC PATCH V1 11/33] powerpc/mm: Use helper instead of opencoding

2016-01-11 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/book3s/64/pgalloc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/include/asm/book3s/64/pgalloc.h b/arch/powerpc/include/asm/book3s/64/pgalloc.h index

[RFC PATCH V1 31/33] powerpc/mm: Hash linux abstraction for page table allocator

2016-01-11 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- .../include/asm/book3s/64/pgalloc-hash-4k.h| 26 ++--- .../include/asm/book3s/64/pgalloc-hash-64k.h | 23 ++-- arch/powerpc/include/asm/book3s/64/pgalloc-hash.h | 36 +--

[RFC PATCH V1 16/33] powerpc/mm: Move hash page table related functions to pgtable-hash64.c

2016-01-11 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/book3s/64/hash.h| 1 + arch/powerpc/include/asm/nohash/64/pgtable.h | 2 + arch/powerpc/mm/Makefile | 3 +- arch/powerpc/mm/init_64.c| 114 +

[RFC PATCH V1 14/33] powerpc/mm: Use helper for finding pte bits mapping I/O area

2016-01-11 Thread Aneesh Kumar K.V
We will have different values for hash and radix. Hence we cannot use #define constants. Add helper Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/book3s/32/pgtable.h | 5 + arch/powerpc/include/asm/book3s/64/hash.h| 5 +

[RFC PATCH V1 30/33] powerpc/mm: Hash linux abstraction for HugeTLB

2016-01-11 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/book3s/64/hash-4k.h | 10 arch/powerpc/include/asm/book3s/64/hash-64k.h | 14 +-- arch/powerpc/include/asm/book3s/64/pgalloc-hash.h | 7 ++

[RFC PATCH V1 12/33] powerpc/mm: Move hash64 specific defintions to seperate header

2016-01-11 Thread Aneesh Kumar K.V
Also split pgalloc 64k and 4k headers Signed-off-by: Aneesh Kumar K.V --- .../include/asm/book3s/64/pgalloc-hash-4k.h| 92 ++ .../include/asm/book3s/64/pgalloc-hash-64k.h | 51 ++ arch/powerpc/include/asm/book3s/64/pgalloc-hash.h |

[RFC PATCH V1 33/33] powerpc/mm: Hash linux abstraction for pte swap encoding

2016-01-11 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/book3s/64/hash.h| 44 + arch/powerpc/include/asm/book3s/64/pgtable.h | 49 arch/powerpc/mm/slb.c| 1 - 3 files changed,

[RFC PATCH V1 08/33] mm: Some arch may want to use HPAGE_PMD related values as variables

2016-01-11 Thread Aneesh Kumar K.V
Architecture supporting multiple page table formats have the hugepage related values as variable. So we can't use them in #define constants Signed-off-by: Aneesh Kumar K.V --- arch/arm/include/asm/pgtable-3level.h | 8 arch/arm64/include/asm/pgtable.h

[RFC PATCH V1 15/33] powerpc/mm: Use helper for finding pte filter mask for gup

2016-01-11 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/book3s/32/pgtable.h | 8 arch/powerpc/include/asm/book3s/64/hash.h| 9 + arch/powerpc/include/asm/nohash/pgtable.h| 9 + arch/powerpc/mm/hugetlbpage.c| 5

[RFC PATCH V1 03/33] powerpc/mm: Switch book3s 64 with 64K page size to 4 level page table

2016-01-11 Thread Aneesh Kumar K.V
This is needed so that we can support both hash and radix page table using single kernel. Radix kernel uses a 4 level table. Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/Kconfig | 1 + arch/powerpc/include/asm/book3s/64/hash-4k.h |

[RFC PATCH V1 13/33] powerpc/mm: Move swap related definition ot hash64 header

2016-01-11 Thread Aneesh Kumar K.V
They are dependent on hash pte bits, so move them to hash64 header Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/book3s/64/hash.h| 42 arch/powerpc/include/asm/book3s/64/pgtable.h | 42

[RFC PATCH V1 01/33] powerpc/mm: add _PAGE_HASHPTE similar to 4K hash

2016-01-11 Thread Aneesh Kumar K.V
Not really needed. But this brings it back to as it was before Check this 41743a4e34f0777f51c1cf0675b91508ba143050 Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/mm/hash64_64k.c | 4 ++-- arch/powerpc/mm/hugepage-hash64.c| 2 +-

[RFC PATCH V1 07/33] mm: arch hook for vm_get_page_prot

2016-01-11 Thread Aneesh Kumar K.V
With radix, we will have to dynamically switch between different protection map. Hence override vm_get_page_prot instead of using arch_vm_get_page_prot.We could also drop arch_vm_get_page_prot since only powerpc define it. But then matching arch_calc_vm_prot_bits also need to be changed. So for

[RFC PATCH V1 27/33] powerpc/mm: Move hash related mmu-*.h headers to book3s/

2016-01-11 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/{mmu-hash32.h => book3s/32/mmu-hash.h} | 0 arch/powerpc/include/asm/{mmu-hash64.h => book3s/64/mmu-hash.h} | 0 arch/powerpc/include/asm/mmu.h | 4 ++--

[RFC PATCH V1 04/33] powerpc/mm: Copy pgalloc (part 1)

2016-01-11 Thread Aneesh Kumar K.V
cp pgalloc-32.h book3s/32/pgalloc.h cp pgalloc-64.h book3s/64/pgalloc.h Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/book3s/32/pgalloc.h | 109 +++ arch/powerpc/include/asm/book3s/64/pgalloc.h | 262 +++ 2 files

[RFC PATCH V1 05/33] powerpc/mm: Copy pgalloc (part 2)

2016-01-11 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/book3s/32/pgalloc.h | 6 +++--- arch/powerpc/include/asm/book3s/64/pgalloc.h | 23 +++--- arch/powerpc/include/asm/book3s/pgalloc.h | 19 ++

[RFC PATCH V1 23/33] powerpc/mm: Create a new headers for tlbflush for hash64

2016-01-11 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/book3s/64/tlbflush-hash.h | 94 ++ arch/powerpc/include/asm/tlbflush.h| 92 + 2 files changed, 95 insertions(+), 91 deletions(-) create mode

[RFC PATCH V1 17/33] mm: Change pmd_huge_pte type in mm_struct

2016-01-11 Thread Aneesh Kumar K.V
We need this to be the pte page not the pgtable_t Signed-off-by: Aneesh Kumar K.V --- include/linux/mm_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h index

[RFC PATCH V1 28/33] powerpc/mm: Hash linux abstractions for early init routines

2016-01-11 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/book3s/32/mmu-hash.h | 6 +- arch/powerpc/include/asm/book3s/64/mmu-hash.h | 61 +- arch/powerpc/include/asm/book3s/64/mmu.h | 93 +++

[RFC PATCH V1 24/33] powerpc/mm: Hash linux abstraction for page table accessors

2016-01-11 Thread Aneesh Kumar K.V
We will later make the generic functions do conditial radix or hash page table access. This patch doesn't do hugepage api update yet. Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/book3s/64/hash.h| 138 +++---

Re: [V3] powerpc/powernv: Add a kmsg_dumper that flushes console output on panic

2016-01-11 Thread Stewart Smith
Michael Ellerman writes: > On Fri, 2015-27-11 at 06:23:07 UTC, Russell Currey wrote: >> On BMC machines, console output is controlled by the OPAL firmware and is >> only flushed when its pollers are called. When the kernel is in a panic >> state, it no longer calls these

[RFC PATCH V1 26/33] powerpc/mm: Hash linux abstraction for mmu context handling code

2016-01-11 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/mmu_context.h | 63 +++--- arch/powerpc/kernel/swsusp.c | 2 +- arch/powerpc/mm/mmu_context_hash64.c | 16 - arch/powerpc/mm/mmu_context_nohash.c | 3

[RFC PATCH V1 10/33] powerpc/mm: free_hugepd_range split to hash and nonhash

2016-01-11 Thread Aneesh Kumar K.V
We strictly don't need to do this. But enables us to not depend on pgtable_free_tlb for radix. Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/mm/hugetlbpage-book3e.c | 187 ++ arch/powerpc/mm/hugetlbpage-hash64.c | 150

Re: [v3,11/41] mips: reuse asm-generic/barrier.h

2016-01-11 Thread Leonid Yegoshin
On 01/10/2016 06:18 AM, Michael S. Tsirkin wrote: On mips dma_rmb, dma_wmb, smp_store_mb, read_barrier_depends, smp_read_barrier_depends, smp_store_release and smp_load_acquire match the asm-generic variants exactly. Drop the local definitions and pull in asm-generic/barrier.h instead. This

[RFC PATCH V1 20/33] powerpc/mm: Use flush_tlb_page in ptep_clear_flush_young

2016-01-11 Thread Aneesh Kumar K.V
This should not have any impact for hash linux implementation. But radix would require us to flush tlb after clearing accessed bit. Also move code that is not dependent on pte bits to generic header. Signed-off-by: Aneesh Kumar K.V ---

Re: [V3] powerpc/powernv: Add a kmsg_dumper that flushes console output on panic

2016-01-11 Thread Russell Currey
On Tue, 2016-01-12 at 14:44 +1100, Stewart Smith wrote: > Michael Ellerman writes: > > On Fri, 2015-27-11 at 06:23:07 UTC, Russell Currey wrote: > > > On BMC machines, console output is controlled by the OPAL firmware and is > > > only flushed when its pollers are called.  

[RFC PATCH V1 09/33] powerpc/mm: Hugetlbfs is book3s_64 and fsl_book3e (32 or 64)

2016-01-11 Thread Aneesh Kumar K.V
We move large part of fsl related code to hugetlbpage-book3e.c. Only code movement. This also avoid #ifdef in the code. Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/hugetlb.h | 1 + arch/powerpc/mm/hugetlbpage-book3e.c | 293

[RFC PATCH V1 25/33] powerpc/mm: Hash linux abstraction for functions in pgtable-hash.c

2016-01-11 Thread Aneesh Kumar K.V
We will later make the generic functions do conditial radix or hash page table access. This patch doesn't do hugepage api update yet. Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/book3s/32/pgtable.h | 15 +

[RFC PATCH V1 22/33] powerpc/mm: Use generic version of pmdp_clear_flush_young

2016-01-11 Thread Aneesh Kumar K.V
The radix variant is going to require a flush_tlb_range. We can't then have this as static inline because of the usage of HPAGE_PMD_SIZE. So we are forced to make it a function in which case we can use the generic version. Signed-off-by: Aneesh Kumar K.V ---

Re: [PATCH 3/3] ASoC: fsl_ssi: remove register defaults

2016-01-11 Thread Timur Tabi
Mark Brown wrote: Quite possibly (it'll be more efficient and it's intended for such use cases) but as I said in my other reply that then has the issue that it implicitly gives default values to all the registers so I'd expect we still need to handle the cache initialisation explicitly (or

Re: [PATCH v4 0/4] cpufreq: powernv: Redesign the presentation of throttle notification

2016-01-11 Thread Viresh Kumar
On 11-01-16, 14:23, Greg KH wrote: > On Mon, Jan 11, 2016 at 02:54:36PM -0600, Shilpasri G Bhat wrote: > > In POWER8, OCC(On-Chip-Controller) can throttle the frequency of the > > CPU when the chip crosses its thermal and power limits. Currently, > > powernv-cpufreq driver detects and reports this

[RFC PATCH V1 21/33] powerpc/mm: THP is only available on hash64 as of now

2016-01-11 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/mm/pgtable-hash64.c | 341 +++ arch/powerpc/mm/pgtable_64.c | 341 --- 2 files changed, 341 insertions(+), 341 deletions(-) diff --git

[RFC PATCH V1 18/33] powerpc/mm: Add helper for update page flags during ioremap

2016-01-11 Thread Aneesh Kumar K.V
They differ between radix and hash. Hence we need a helper Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/book3s/32/pgtable.h | 11 +++ arch/powerpc/include/asm/book3s/64/hash.h| 11 +++ arch/powerpc/include/asm/nohash/pgtable.h

Re: 答复: [PATCH V3] cpufreq: qoriq: Register cooling device based on device tree

2016-01-11 Thread Arnd Bergmann
On Monday 11 January 2016 17:34:52 Scott Wood wrote: > >> > >> I think you need a 'depends on THERMAL' to prevent the driver from being > >> built-in when THERMAL=m. > >> > >> Arnd > > > > Correct. I need to add following lines to the Kconfig file: > > depends on !CPU_THERMAL || THERMAL=y > > >

Re: [PATCH] Add hwcap2 bits for POWER9

2016-01-11 Thread Carlos O'Donell
On 01/11/2016 02:55 PM, Tulio Magno Quites Machado Filho wrote: > "Carlos O'Donell" writes: > >> On 01/11/2016 10:16 AM, Tulio Magno Quites Machado Filho wrote: >>> Adhemerval Zanella writes: >>> On 08-01-2016 13:36, Peter Bergner wrote:

答复: [PATCH V3] cpufreq: qoriq: Register cooling device based on device tree

2016-01-11 Thread Hongtao Jia
Sorry for the late response. I got a knee surgery to do. See comments at the end. > -邮件原件- > 发件人: Arnd Bergmann [mailto:a...@arndb.de] > 发送时间: Saturday, December 19, 2015 6:33 AM > 收件人: Rafael J. Wysocki > 抄送: Jia Hongtao ;

[PATCH v4 1/4] cpufreq: powernv: Remove cpu_to_chip_id() from hot-path

2016-01-11 Thread Shilpasri G Bhat
cpu_to_chip_id() does a DT walk through to find out the chip id by taking a contended device tree lock. This adds an unnecessary overhead in a hot-path. So instead of cpu_to_chip_id() use PIR of the cpu to find the chip id. Reported-by: Anton Blanchard Signed-off-by: Shilpasri G

[PATCH v4 2/4] cpufreq: powernv/tracing: Add powernv_throttle tracepoint

2016-01-11 Thread Shilpasri G Bhat
This patch adds the powernv_throttle tracepoint to trace the CPU frequency throttling event, which is used by the powernv-cpufreq driver in POWER8. Signed-off-by: Shilpasri G Bhat CC: Ingo Molnar CC: Steven Rostedt --- No

[PATCH v4 3/4] cpufreq: powernv: Add a trace print for the throttle event

2016-01-11 Thread Shilpasri G Bhat
Record the throttle event with a trace print replacing the printk, except for events like throttling below nominal and occ reset event which print a warning message. Signed-off-by: Shilpasri G Bhat --- Changes from v3: - Separate this patch to contain trace_point

[PATCH v4 4/4] cpufreq: powernv: Add sysfs attributes to show throttle stats

2016-01-11 Thread Shilpasri G Bhat
Create sysfs attributes to export throttle information in /sys/devices/system/cpu/cpufreq/chipN. The newly added sysfs files are as follows: 1)/sys/devices/system/cpu/cpufreq/chip0/throttle_frequencies This gives the throttle stats for each of the available frequencies. The throttle stat of a

Re: 答复: [PATCH V3] cpufreq: qoriq: Register cooling device based on device tree

2016-01-11 Thread Scott Wood
On 01/11/2016 08:54 AM, Hongtao Jia wrote: > Sorry for the late response. I got a knee surgery to do. > See comments at the end. > >> -邮件原件- >> 发件人: Arnd Bergmann [mailto:a...@arndb.de] >> 发送时间: Saturday, December 19, 2015 6:33 AM >> 收件人: Rafael J. Wysocki >> 抄送: Jia

[PATCH v4 0/4] cpufreq: powernv: Redesign the presentation of throttle notification

2016-01-11 Thread Shilpasri G Bhat
In POWER8, OCC(On-Chip-Controller) can throttle the frequency of the CPU when the chip crosses its thermal and power limits. Currently, powernv-cpufreq driver detects and reports this event as a console message. Some machines may not sustain the max turbo frequency in all conditions and can be

Re: [PATCH 3/3] ASoC: fsl_ssi: remove register defaults

2016-01-11 Thread Maciej S. Szmigiero
>> [2.531632] WARNING: CPU: 1 PID: 1 at kernel/locking/lockdep.c:2755 >> lockdep_trace_alloc+0xf4/0x124() >> [2.540771] DEBUG_LOCKS_WARN_ON(irqs_disabled_flags(flags)) >> [2.546175] Modules linked in: >> [2.549447] CPU: 1 PID: 1 Comm: swapper/0

Re: [PATCH 3/3] ASoC: fsl_ssi: remove register defaults

2016-01-11 Thread Fabio Estevam
) [2.546175] Modules linked in: [2.549447] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.4.0-rc8-next-20160111 #204 [2.557021] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree) [2.563553] Backtrace: [2.566040] [] (dump_backtrace) from [] (show_stack+0x18/0x1c) [

Re: [BUG] PowerNV crash with 4.4.0-rc8 at sched_init_numa (related to commit c118baf80256)

2016-01-11 Thread Raghavendra K T
On 01/10/2016 04:33 AM, Jan Stancek wrote: Hi, I'm seeing bare metal ppc64le system crashing early during boot with latest upstream kernel (4.4.0-rc8): Jan, Do you mind sharing the .config you used for the kernel. Not able to reproduce with the one that I have :(

Re: [PATCH 3/3] ASoC: fsl_ssi: remove register defaults

2016-01-11 Thread Maciej S. Szmigiero
On 11.01.2016 15:00, Mark Brown wrote: > On Mon, Jan 11, 2016 at 10:10:56AM -0200, Fabio Estevam wrote: >> On Mon, Jan 11, 2016 at 10:04 AM, Fabio Estevam wrote: > >>> [2.526984] [ cut here ] >>> [2.531632] WARNING: CPU: 1 PID: 1 at

Re: [PATCH 3/3] ASoC: fsl_ssi: remove register defaults

2016-01-11 Thread Fabio Estevam
race_alloc+0xf4/0x124() > [2.540771] DEBUG_LOCKS_WARN_ON(irqs_disabled_flags(flags)) > [2.546175] Modules linked in: > [2.549447] CPU: 1 PID: 1 Comm: swapper/0 Not tainted > 4.4.0-rc8-next-20160111 #204 > [2.557021] Hardware name: Freescale i.MX6 Quad/DualLite (Dev

Re: [BUG] PowerNV crash with 4.4.0-rc8 at sched_init_numa (related to commit c118baf80256)

2016-01-11 Thread Raghavendra K T
On 01/11/2016 05:22 PM, Raghavendra K T wrote: On 01/10/2016 04:33 AM, Jan Stancek wrote: Hi, I'm seeing bare metal ppc64le system crashing early during boot with latest upstream kernel (4.4.0-rc8): Jan, Do you mind sharing the .config you used for the kernel. Not able to reproduce with the

Re: [PATCH v3 39/41] xen/events: use virt_xxx barriers

2016-01-11 Thread David Vrabel
On 10/01/16 14:21, Michael S. Tsirkin wrote: > drivers/xen/events/events_fifo.c uses rmb() to communicate with the > other side. > > For guests compiled with CONFIG_SMP, smp_rmb would be sufficient, so > rmb() here is only needed if a non-SMP guest runs on an SMP host. > > Switch to the virt_rmb

Re: [PATCH 3/3] ASoC: fsl_ssi: remove register defaults

2016-01-11 Thread Fabio Estevam
Hi Maciej, On Mon, Jan 11, 2016 at 11:57 AM, Maciej S. Szmigiero wrote: > Hi Fabio, > This will disable register cache so it isn't right. > Could you try REGCACHE_FLAT instead, please? Yes, with REGCACHE_FLAT I don't get the warning. Regards, Fabio Estevam

[PATCH RESEND] kvm:powerpc:Fix incorrect return statement in the function mpic_set_default_irq_routing

2016-01-11 Thread Nicholas Krause
This fixes the incorrect return statement in the function mpic_set_default_irq_routing from always returning zero to signal success to this function's caller to instead return the return value of kvm_set_irq_routing as this function can fail and we need to correctly signal the caller of

Re: [PATCH 3/3] ASoC: fsl_ssi: remove register defaults

2016-01-11 Thread Mark Brown
On Mon, Jan 11, 2016 at 09:45:37AM -0600, Timur Tabi wrote: > Ok, I'm confused. Granted, all of this regcache stuff was added after I > stopped working on this driver, so I'm out of the loop. But it appears that > the regcache cannot properly handle an uninitialized cache. I would expect > it

Re: simple_alloc space tramples initrd

2016-01-11 Thread dwalker
On Mon, Jan 11, 2016 at 02:09:34PM +1100, Michael Ellerman wrote: > On Fri, 2016-01-08 at 09:45 -0800, dwal...@fifo99.com wrote: > > Hi, > > > > A powerpc machine I'm working on has this problem where the > > simple_alloc_init() area is trampling the initrd. The two are placed fairly > > close

Re: [RFC][PATCH] ppc: Implement save_stack_trace_regs()

2016-01-11 Thread Steven Rostedt
On Mon, 11 Jan 2016 14:30:31 +1100 Michael Ellerman wrote: > Sorry, yep I'll take it. > > I trimmed the change log a bit, final version below. > > cheers > Thanks, appreciate it! -- Steve ___ Linuxppc-dev mailing list

Re: [PATCH] Add hwcap2 bits for POWER9

2016-01-11 Thread Tulio Magno Quites Machado Filho
Adhemerval Zanella writes: > On 08-01-2016 13:36, Peter Bergner wrote: >> On Fri, 2016-01-08 at 11:25 -0200, Tulio Magno Quites Machado Filho wrote: >>> Peter, this solves the issue you reported previously [1]. >>> >>> [1]

Re: [PATCH 3/3] ASoC: fsl_ssi: remove register defaults

2016-01-11 Thread Mark Brown
On Mon, Jan 11, 2016 at 10:10:56AM -0200, Fabio Estevam wrote: > On Mon, Jan 11, 2016 at 10:04 AM, Fabio Estevam wrote: > > [2.526984] [ cut here ] > > [2.531632] WARNING: CPU: 1 PID: 1 at kernel/locking/lockdep.c:2755 > >

Re: [PATCH 1/3] ASoC: fsl_ssi: mark SACNT register volatile

2016-01-11 Thread Maciej S. Szmigiero
Hi Timur, Thanks for review. On 10.01.2016 22:33, Timur Tabi wrote: > Maciej S. Szmigiero wrote: >> +regmap_write(regs, CCSR_SSI_SACNT, >> +ssi_private->regcache_sacnt); > > So I'm not familiar with all of the regcache features, but I understand this > patch. > I was wondering

Re: [PATCH 3/3] ASoC: fsl_ssi: remove register defaults

2016-01-11 Thread Mark Brown
On Mon, Jan 11, 2016 at 03:10:20PM +0100, Maciej S. Szmigiero wrote: > On 11.01.2016 15:00, Mark Brown wrote: > > I suspect not, it looks like the driver is using the cache for > > suspend/resume handling. I've dropped the patch for now. Either the > > driver should explicitly write to the

  1   2   >