Re: [PATCH V4 1/5] dt-bindings: Add QorIQ TMU thermal bindings

2015-11-24 Thread Rob Herring
On Tue, Nov 24, 2015 at 02:52:44PM +0800, Jia Hongtao wrote: > Add bindings documentation for TMU (Thermal Monitoring Unit) on QorIQ > platform. > > Signed-off-by: Jia Hongtao > Reviewed-by: Scott Wood Acked-by: Rob Herring

Re: [PATCH V3 3/3] ASoC: fsl_asrc: spba clock is needed by asrc device

2015-11-24 Thread Rob Herring
On Tue, Nov 24, 2015 at 03:03:30PM +0800, Shengjiu Wang wrote: > ASRC need to enable the spba clock, when sdma is using share peripheral > script. In this case, there is two spba master port is used, if don't > enable the clock, the spba bus will have arbitration issue, which may > cause

[PATCH] powerpc: Append linux_banner to exception information in xmon.

2015-11-24 Thread Rashmica Gupta
Currently if you are in xmon without an oops etc. to view the kernel version you have to type "d $linux_banner" - not necessarily obvious. As this is useful information, append to the output of "e" command. Signed-off-by: Rashmica Gupta --- arch/powerpc/xmon/xmon.c | 2 ++

Re: [PATCH V3 1/3] ASoC: fsl_esai: spba clock is needed by esai device

2015-11-24 Thread Rob Herring
On Tue, Nov 24, 2015 at 03:03:28PM +0800, Shengjiu Wang wrote: > ESAI need to enable the spba clock, when sdma is using share peripheral > script. In this case, there is two spba master port is used, if don't > enable the clock, the spba bus will have arbitration issue, which may > cause

[PATCH] powerpc: Fix xmon ml command to work with 64 bit values.

2015-11-24 Thread Rashmica Gupta
The ml command in xmon currently only works for 32-bit values and so fails to find 64-bit values on a ppc64 machine. So change to work for 64-bit values. This is based off a patch by Josh Boyer. Signed-off-by: Rashmica Gupta --- Based off this patch:

Re: [PATCH V3 2/3] ASoC: fsl_spdif: spba clk is needed by spdif device

2015-11-24 Thread Rob Herring
On Tue, Nov 24, 2015 at 03:03:29PM +0800, Shengjiu Wang wrote: > SPDIF need to enable the spba clock, when sdma is using share peripheral > script. In this case, there is two spba master port is used, if don't > enable the clock, the spba bus will have arbitration issue, which may > cause

Re: [PATCH] Enable MSI/MSI-X caps and disable MSI interrupts at PCI probe time - code move

2015-11-24 Thread Guilherme G. Piccoli
On 11/24/2015 07:23 PM, Bjorn Helgaas wrote: On Wed, Nov 04, 2015 at 10:00:15AM -0200, Guilherme G. Piccoli wrote: Bjorn, ping? Sorry, Guilherme, this dropped off my radar, and I can't remember why. I'll take a look at it soon. Bjorn Thanks very much Bjorn! Sorry to bother, by the way.

Re: [PATCH] Enable MSI/MSI-X caps and disable MSI interrupts at PCI probe time - code move

2015-11-24 Thread Bjorn Helgaas
On Wed, Nov 04, 2015 at 10:00:15AM -0200, Guilherme G. Piccoli wrote: > Bjorn, ping? Sorry, Guilherme, this dropped off my radar, and I can't remember why. I'll take a look at it soon. Bjorn ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org

Re: kernel BUG at drivers/scsi/scsi_lib.c:1096!

2015-11-24 Thread Alan Ott
On 11/23/2015 10:21 AM, Ming Lei wrote: On Mon, 23 Nov 2015 10:46:20 +0800 Ming Lei wrote: Hi Mark, On Mon, Nov 23, 2015 at 9:50 AM, Mark Salter wrote: On Mon, 2015-11-23 at 08:36 +0800, Ming Lei wrote: On Mon, Nov 23, 2015 at 7:20 AM, Mark

Re: [PATCH] Enable MSI/MSI-X caps and disable MSI interrupts at PCI probe time - code move

2015-11-24 Thread Guilherme G. Piccoli
On 10/21/2015 12:17 PM, Guilherme G. Piccoli wrote: Commit 1851617cd2da ("PCI/MSI: Disable MSI at enumeration even if kernel doesn't support MSI") changed the location of the code that initializes dev->msi_cap/msix_cap and disables MSI/MSI-X interrupts at PCI probe time in devices that have this

Re: [PATCH v2] memory-hotplug: Fix kernel warning during memory hotplug on ppc64

2015-11-24 Thread John Allen
Hi Michael, On 11/09/2015 07:21 PM, Michael Ellerman wrote: > Hi John, > > On Tue, 2015-11-03 at 11:21 -0600, John Allen wrote: >> This patch fixes a bug where a kernel warning is triggered when performing >> a memory hotplug on ppc64. This warning may also occur on any architecture >> that has

Re: [PATCH V3 1/3] ASoC: fsl_esai: spba clock is needed by esai device

2015-11-24 Thread Shengjiu Wang
On Tue, Nov 24, 2015 at 05:21:30PM -0600, Rob Herring wrote: > On Tue, Nov 24, 2015 at 03:03:28PM +0800, Shengjiu Wang wrote: > > ESAI need to enable the spba clock, when sdma is using share peripheral > > script. In this case, there is two spba master port is used, if don't > > enable the clock,

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

2015-11-24 Thread Ian Munsie
Thanks Vaibhav! This should definitely help people avoid pain in this corner case :) Acked-by: Ian Munsie ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH] powerpc: Append linux_banner to exception information in xmon.

2015-11-24 Thread Michael Ellerman
Hi Rashmica, Can you make your subject "powerpc/xmon: ...". On Wed, 2015-11-25 at 10:37 +1100, Rashmica Gupta wrote: > Currently if you are in xmon without an oops etc. to view the kernel version > you have to type "d $linux_banner" - not necessarily obvious. As this is > useful information,

[PATCH v2] powerpc: Append linux_banner to exception information in xmon.

2015-11-24 Thread Rashmica Gupta
Currently if you are in xmon without an oops etc. to view the kernel version you have to type "d $linux_banner" - not necessarily obvious. As this is useful information, append to the output of "e" command. Example output: $mon> e cpu 0x1: Vector: 0 at [c000f879ba80] pc:

[PATCH 1/4] powerpc/kernel: Drop HMT_MEDIUM_PPR_DISCARD

2015-11-24 Thread Michael Ellerman
HMT_MEDIUM_PPR_DISCARD is a macro which is present at the start of most of our first level exception handlers. It conditionally executes a HMT_MEDIUM instruction, which sets the processor priority to medium. On on modern systems, ie. Power7 and later, it is nop'ed out at boot. All it does is make

[PATCH 2/4] powerpc/kernel: Open code HMT_MEDIUM_LOW_HAS_PPR

2015-11-24 Thread Michael Ellerman
HMT_MEDIUM_LOW_HAS_PPR is only used in once place, open code it. Signed-off-by: Michael Ellerman --- arch/powerpc/include/asm/ppc_asm.h | 5 - arch/powerpc/kernel/entry_64.S | 6 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git

[PATCH 3/4] powerpc/kernel: Open code SET_DEFAULT_THREAD_PPR

2015-11-24 Thread Michael Ellerman
This is only used in one location, open code it. Signed-off-by: Michael Ellerman --- arch/powerpc/include/asm/ppc_asm.h | 13 - arch/powerpc/kernel/entry_64.S | 8 +++- 2 files changed, 7 insertions(+), 14 deletions(-) diff --git

[PATCH 4/4] powerpc/kernel: Combine vec/loc for STD_EXCEPTION_PSERIES

2015-11-24 Thread Michael Ellerman
The STD_EXCEPTION_PSERIES macro takes both a vector number, and a location (memory address). However both are always identical, so combine them to save repeating ourselves. This does mean an exception handler must always exist at the location in memory that matches its vector number. But that's

[PATCH V2] powerpc/powernv: Add a kmsg_dumper that flushes console output on panic

2015-11-24 Thread Russell Currey
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 flush, causing some output from the panic to be lost. This patch

Re: [PATCH V5 08/31] powerpc/mm: Drop pte-common.h from BOOK3S 64

2015-11-24 Thread Anshuman Khandual
On 11/23/2015 03:52 PM, Aneesh Kumar K.V wrote: > We copy only needed PTE bits define from pte-common.h to respective > hash related header. This should greatly simply later patches in which Will it be simplify > we are going to change the pte

Re: [PATCH V5 11/31] powerpc/mm: Move hash64 PTE bits from book3s/64/pgtable.h to hash.h

2015-11-24 Thread Anshuman Khandual
On 11/23/2015 03:52 PM, Aneesh Kumar K.V wrote: > +extern struct page *pmd_page(pmd_t pmd); > static inline pte_t pud_pte(pud_t pud) > { > return __pte(pud_val(pud)); > @@ -294,15 +115,14 @@ static inline void pgd_set(pgd_t *pgdp, unsigned long > val) > * Find an entry in a

Re: [PATCH V5 14/31] powerpc/booke: Move nohash headers (part 2)

2015-11-24 Thread Anshuman Khandual
Some sort of commit message enlisting what we copied from where and which all header file references have changed will be helpful here. On 11/23/2015 03:52 PM, Aneesh Kumar K.V wrote: > Acked-by: Scott Wood > Signed-off-by: Aneesh Kumar K.V

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

2015-11-24 Thread Eduardo Valentin
On Tue, Nov 24, 2015 at 08:18:17AM -0600, Scott Wood wrote: > On Tue, 2015-11-24 at 14:55 +0800, Jia Hongtao wrote: > > Register the qoriq cpufreq driver as a cooling device, based on the > > thermal device tree framework. When temperature crosses the passive trip > > point cpufreq is used to

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

2015-11-24 Thread Denis Kirjanov
On 11/24/15, 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 1/2] tracing: introduce TRACE_EVENT_FN_COND macro

2015-11-24 Thread Denis Kirjanov
TRACE_EVENT_FN can't be used in some circumstances like invoking trace functions from offlined CPU due to RCU usage. This patch adds the TRACE_EVENT_FN_COND macro to make such trace points conditional. Signed-off-by: Denis Kirjanov --- include/linux/tracepoint.h | 4

[PATCH 2/2] powerpc: tracing: don't trace hcalls on offline CPUs

2015-11-24 Thread Denis Kirjanov
./drmgr -c cpu -a -r gives the following warning: [ 2327.035563] RCU used illegally from offline CPU! rcu_scheduler_active = 1, debug_locks = 1 [ 2327.035564] no locks held by swapper/12/0. [ 2327.035565] stack backtrace: [ 2327.035567] CPU: 12 PID: 0 Comm: swapper/12 Tainted: G S

Re: [PATCH V2] selfttest/powerpc: Add memory page migration tests

2015-11-24 Thread Denis Kirjanov
On 11/24/15, Anshuman Khandual wrote: > This adds two tests for memory page migration. One for normal page > migration which works for both 4K or 64K base page size kernel and > the other one is for 16MB huge page migration which will work both > 4K or 64K base page

Re: [PATCH V3 1/3] ASoC: fsl_esai: spba clock is needed by esai device

2015-11-24 Thread Nicolin Chen
On Tue, Nov 24, 2015 at 03:03:28PM +0800, Shengjiu Wang wrote: > @@ -469,6 +471,9 @@ static int fsl_esai_startup(struct snd_pcm_substream > *substream, > ret = clk_prepare_enable(esai_priv->coreclk); > if (ret) > return ret; > + ret =

Re: [PATCH] fs_enet: Adjust BDs after tx error

2015-11-24 Thread Martin Roth
Hi, I have reviewed the code and in my opinion the line last_tx_bd = fep->tx_bd_base + (fpi->tx_ring * sizeof(cbd_t)); should be replaced with last_tx_bd = fep->tx_bd_base + ((fpi->tx_ring-1) * sizeof(cbd_t)); In the original code

Re: [PATCH V5 02/31] powerpc/mm: move pte headers to book3s directory (part 2)

2015-11-24 Thread Anshuman Khandual
On 11/23/2015 03:52 PM, Aneesh Kumar K.V wrote: > diff --git a/arch/powerpc/include/asm/pte-hash64-4k.h > b/arch/powerpc/include/asm/book3s/64/hash-4k.h > similarity index 99% > rename from arch/powerpc/include/asm/pte-hash64-4k.h > rename to arch/powerpc/include/asm/book3s/64/hash-4k.h > index

Re: [PATCH V3 1/3] ASoC: fsl_esai: spba clock is needed by esai device

2015-11-24 Thread Shengjiu Wang
On Tue, Nov 24, 2015 at 12:33:45AM -0800, Nicolin Chen wrote: > On Tue, Nov 24, 2015 at 03:03:28PM +0800, Shengjiu Wang wrote: > > > @@ -469,6 +471,9 @@ static int fsl_esai_startup(struct snd_pcm_substream > > *substream, > > ret = clk_prepare_enable(esai_priv->coreclk); > > if (ret) > >

Re: [PATCH V5 03/31] powerpc/mm: make a separate copy for book3s

2015-11-24 Thread Anshuman Khandual
On 11/23/2015 03:52 PM, Aneesh Kumar K.V wrote: > +++ b/arch/powerpc/include/asm/book3s/pgtable.h > @@ -0,0 +1,10 @@ > +#ifndef _ASM_POWERPC_BOOK3S_PGTABLE_H > +#define _ASM_POWERPC_BOOK3S_PGTABLE_H > + > +#ifdef CONFIG_PPC64 > +#include > +#else > +#include > +#endif > + > +#endif Just as

[PATCH V4 0/3] add spba clock for fsl audio IP

2015-11-24 Thread Shengjiu Wang
add spba clock for fsl audio IP Changes in V3 - add error check for spba clock Shengjiu Wang (3): ASoC: fsl_esai: spba clock is needed by esai device ASoC: fsl_spdif: spba clk is needed by spdif device ASoC: fsl_asrc: spba clock is needed by asrc device

Re: [PATCH V4 0/3] add spba clock for fsl audio IP

2015-11-24 Thread Nicolin Chen
On Tue, Nov 24, 2015 at 05:19:31PM +0800, Shengjiu Wang wrote: > add spba clock for fsl audio IP > > Changes in V3 > - add error check for spba clock > > Shengjiu Wang (3): > ASoC: fsl_esai: spba clock is needed by esai device > ASoC: fsl_spdif: spba clk is needed by spdif device > ASoC:

Re: [PATCH V5 30/31] powerpc/mm: Move THP headers around

2015-11-24 Thread Denis Kirjanov
On 11/23/15, Aneesh Kumar K.V wrote: > We support THP only with book3s_64 and 64K page size. Move > THP details to hash64-64k.h to clarify the same. > > Acked-by: Scott Wood > Signed-off-by: Aneesh Kumar K.V

[PATCH] cxl: Fix DSI misses when the context owning task exits

2015-11-24 Thread Vaibhav Jain
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. However this causes issues when the thread that had originally

[PATCH V4 2/3] ASoC: fsl_spdif: spba clk is needed by spdif device

2015-11-24 Thread Shengjiu Wang
SPDIF need to enable the spba clock, when sdma is using share peripheral script. In this case, there is two spba master port is used, if don't enable the clock, the spba bus will have arbitration issue, which may cause read/write wrong data from/to SPDIF registers. Signed-off-by: Shengjiu Wang

Re: [PATCH V5 31/31] powerpc/mm: Add a _PAGE_PTE bit

2015-11-24 Thread Denis Kirjanov
On 11/23/15, Aneesh Kumar K.V wrote: > For a pte entry we will have _PAGE_PTE set. Our pte page > address have a minimum alignment requirement of HUGEPD_SHIFT_MASK + 1. > We use the lower 7 bits to indicate hugepd. ie. > > For pmd and pgd we can find: > 1)

[PATCH V4 1/3] ASoC: fsl_esai: spba clock is needed by esai device

2015-11-24 Thread Shengjiu Wang
ESAI need to enable the spba clock, when sdma is using share peripheral script. In this case, there is two spba master port is used, if don't enable the clock, the spba bus will have arbitration issue, which may cause read/write wrong data from/to ESAI registers. Signed-off-by: Shengjiu Wang

[PATCH V4 3/3] ASoC: fsl_asrc: spba clock is needed by asrc device

2015-11-24 Thread Shengjiu Wang
ASRC need to enable the spba clock, when sdma is using share peripheral script. In this case, there is two spba master port is used, if don't enable the clock, the spba bus will have arbitration issue, which may cause read/write wrong data from/to ASRC registers Signed-off-by: Shengjiu Wang

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

2015-11-24 Thread Scott Wood
On Tue, 2015-11-24 at 14:55 +0800, Jia Hongtao wrote: > Register the qoriq cpufreq driver as a cooling device, based on the > thermal device tree framework. When temperature crosses the passive trip > point cpufreq is used to throttle CPUs. > > Signed-off-by: Jia Hongtao

[PATCH 2/5] powerpc/xmon: Use rtas_call_unlocked() in xmon

2015-11-24 Thread Michael Ellerman
Avoid open coding the logic by using rtas_call_unlocked(). Signed-off-by: Michael Ellerman --- arch/powerpc/xmon/xmon.c | 16 ++-- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c index

Re: [PATCH V5 30/31] powerpc/mm: Move THP headers around

2015-11-24 Thread Aneesh Kumar K.V
Denis Kirjanov writes: > On 11/23/15, Aneesh Kumar K.V wrote: >> We support THP only with book3s_64 and 64K page size. Move >> THP details to hash64-64k.h to clarify the same. ... >> -static inline void hpte_do_hugepage_flush(struct

[PATCH 3/5] powerpc/pseries: Use rtas_call_unlocked() in pseries hotplug

2015-11-24 Thread Michael Ellerman
Avoid open coding the logic by using rtas_call_unlocked(). Signed-off-by: Michael Ellerman --- arch/powerpc/platforms/pseries/hotplug-cpu.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/arch/powerpc/platforms/pseries/hotplug-cpu.c

[PATCH 4/5] powerpc/rtas: Use rtas_call_unlocked() in call_rtas_display_status()

2015-11-24 Thread Michael Ellerman
Although call_rtas_display_status() does actually want to use the regular RTAS locking, it doesn't want the extra logic that is in rtas_call(), so currently it open codes the logic. Instead we can use rtas_call_unlocked(), after taking the RTAS lock. Signed-off-by: Michael Ellerman

Re: [PATCH V5 05/31] powerpc/mm: Move hash specific pte width and other defines to book3s

2015-11-24 Thread Anshuman Khandual
On 11/23/2015 03:52 PM, Aneesh Kumar K.V wrote: > This further make a copy of pte defines to book3s/64/hash*.h. This > remove the dependency on ppc64-4k.h and ppc64-64k.h > These files are pgtable-ppc64-4k.h and pgtable-ppc64-64k.h instead. > Acked-by: Scott Wood >

Re: [PATCH V5 04/31] powerpc/mm: make a separate copy for book3s (part 2)

2015-11-24 Thread Anshuman Khandual
On 11/23/2015 03:52 PM, Aneesh Kumar K.V wrote: > Keep it seperate to make rebasing easier This is confusing considering the fact that we are in between some renaming/moving of header files, changing the references they had before and so on. Could you please elaborate a bit about what kind of

[PATCH 1/5] powerpc/rtas: Add rtas_call_unlocked()

2015-11-24 Thread Michael Ellerman
Most users of RTAS (Run-Time Abstraction Services) use rtas_call(), which deals with locking as well as endian handling. However we have two users outside of rtas.c that can't use rtas_call() because they have different locking requirements. The hotplug CPU code can't take the RTAS lock because

[PATCH 5/5] powerpc/rtas: Make enter_rtas() private

2015-11-24 Thread Michael Ellerman
There are no longer any users of enter_rtas() outside of rtas.c, so make it "private", by moving the declaration inside rtas.c. Hopefully this will encourage people to use one of the wrappers which takes the sharp edges off the RTAS calling sequence. Signed-off-by: Michael Ellerman

Re: [PATCH 1/5] powerpc/rtas: Add rtas_call_unlocked()

2015-11-24 Thread Michael Ellerman
On Tue, 2015-11-24 at 22:26 +1100, Michael Ellerman wrote: > Most users of RTAS (Run-Time Abstraction Services) use rtas_call(), > which deals with locking as well as endian handling. > > However we have two users outside of rtas.c that can't use rtas_call() > because they have different locking

FCC driver for Motorola MPC82xx - an error found

2015-11-24 Thread Martin Roth
I was looking for an error on MPC8270 processor 100 Mbps Ethernet FCC port. The port may become locked if it is set to AUTO, while the peer is forced to 100 Mbs full duplex (non AUTO). I was looking for an error in the area of collision handling of the driver. It looks like I found the problem.

Re: [PATCH V5 30/31] powerpc/mm: Move THP headers around

2015-11-24 Thread Denis Kirjanov
On 11/24/15, Aneesh Kumar K.V wrote: > Denis Kirjanov writes: > >> On 11/23/15, Aneesh Kumar K.V wrote: >>> We support THP only with book3s_64 and 64K page size. Move >>> THP details to hash64-64k.h to