Re: [v3, 3/7] powerpc: enable the relocatable support for the fsl booke 32bit kernel

2013-12-19 Thread Kevin Hao
On Wed, Dec 18, 2013 at 05:48:25PM -0600, Scott Wood wrote: > On Wed, Aug 07, 2013 at 09:18:31AM +0800, Kevin Hao wrote: > > This is based on the codes in the head_44x.S. The difference is that > > the init tlb size we used is 64M. With this patch we can only load the > > kernel at address between

RE: [PATCH 4/5] powerpc/fsl-booke: Add initial T208x QDS board support

2013-12-19 Thread shengzhou....@freescale.com
> -Original Message- > From: Wood Scott-B07421 > Sent: Wednesday, December 18, 2013 3:57 AM > To: Liu Shengzhou-B36685 > Cc: linuxppc-dev@lists.ozlabs.org > Subject: Re: [PATCH 4/5] powerpc/fsl-booke: Add initial T208x QDS board > support > > On Wed, 2013-12-11 at 19:19 +0800, Shengzhou L

Re: [PATCH] powerpc: book3s: kvm: Use the saved dsisr and dar values

2013-12-19 Thread Alexander Graf
> Am 20.12.2013 um 05:37 schrieb "Aneesh Kumar K.V" > : > > Alexander Graf writes: > >>> Am 19.12.2013 um 08:02 schrieb "Aneesh Kumar K.V" >>> : >>> >>> Alexander Graf writes: >>> > On 11.11.2013, at 15:02, Aneesh Kumar K.V > wrote: > > From: "Aneesh Kumar K.V" >

[PATCH V4] powerpc/kernel/sysfs: cleanup set up macros for PMC/non-PMC SPRs

2013-12-19 Thread Madhavan Srinivasan
Currently PMC (Performance Monitor Counter) setup macros are used for other SPRs. Since not all SPRs are PMC related, this patch modifies the exisiting macro and uses it to setup both PMC and non PMC SPRs accordingly. V4 changes: 1) No logic changes, just rebase with upstream. V3 changes: 1) No

Re: [PATCH] powerpc: book3s: kvm: Use the saved dsisr and dar values

2013-12-19 Thread Aneesh Kumar K.V
Alexander Graf writes: >> Am 19.12.2013 um 08:02 schrieb "Aneesh Kumar K.V" >> : >> >> Alexander Graf writes: >> On 11.11.2013, at 15:02, Aneesh Kumar K.V wrote: From: "Aneesh Kumar K.V" Don't try to compute these values. Signed-off-by: Aneesh Kum

Re: [PATCH] powernv: eeh: fix possible buffer overrun in ioda_eeh_phb_diag()

2013-12-19 Thread Gavin Shan
On Fri, Dec 20, 2013 at 09:35:39AM +0800, Gavin Shan wrote: >On Thu, Dec 19, 2013 at 05:14:07PM -0600, Brian W Hart wrote: >>PHB diagnostic buffer may be smaller than PAGE_SIZE, especially when >>PAGE_SIZE > 4KB. >> > >I think you're talking about that PAGE_SIZE could be configured >to have variabl

Re: [PATCH] powernv: eeh: add buffer for P7IOC hub error data

2013-12-19 Thread Gavin Shan
On Thu, Dec 19, 2013 at 05:18:53PM -0600, Brian W Hart wrote: >Prevent ioda_eeh_hub_diag() from clobbering itself when called by supplying >a buffer for P7IOC hub diagnostic data. Take care to inform OPAL of the >correct size for the buffer. > >Signed-off-by: Brian W Hart >--- > >I hope I've unde

Re: [PATCH] powernv: eeh: fix possible buffer overrun in ioda_eeh_phb_diag()

2013-12-19 Thread Gavin Shan
On Thu, Dec 19, 2013 at 05:14:07PM -0600, Brian W Hart wrote: >PHB diagnostic buffer may be smaller than PAGE_SIZE, especially when >PAGE_SIZE > 4KB. > I think you're talking about that PAGE_SIZE could be configured to have variable size (e.g. 4KB). So it's not safe to pass PAGE_SIZE to OPAL API o

[PATCH] powernv: eeh: add buffer for P7IOC hub error data

2013-12-19 Thread Brian W Hart
Prevent ioda_eeh_hub_diag() from clobbering itself when called by supplying a buffer for P7IOC hub diagnostic data. Take care to inform OPAL of the correct size for the buffer. Signed-off-by: Brian W Hart --- I hope I've understood this correctly. It looks to me like ioda_eeh_hub_data is effec

[PATCH] powernv: eeh: fix possible buffer overrun in ioda_eeh_phb_diag()

2013-12-19 Thread Brian W Hart
PHB diagnostic buffer may be smaller than PAGE_SIZE, especially when PAGE_SIZE > 4KB. Signed-off-by: Brian W Hart --- arch/powerpc/platforms/powernv/eeh-ioda.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/powernv/eeh-ioda.c b/arch/powerpc/platf

Re: [PATCH] powerpc/sysdev: Fix a mpic section mismatch for MPC85xx

2013-12-19 Thread Christian Engelmayer
On Mon, 16 Dec 2013 11:10:53 +1100 Benjamin Herrenschmidt wrote: > On Sun, 2013-12-15 at 19:38 +0100, Christian Engelmayer wrote: > > Moved arch/powerpc/sysdev/mpic.c : smp_mpic_probe() out of the __init > > section. > > It is referenced by arch/powerpc/platforms/85xx/smp.c : > > smp_85xx_setup

[PATCH 04/38] powerpc: kernel: add missing put_device call

2013-12-19 Thread Levente Kurusa
This is required so that we give up the last reference to the device. Signed-off-by: Levente Kurusa --- arch/powerpc/kernel/vio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/kernel/vio.c b/arch/powerpc/kernel/vio.c index e7d0c88f..e8ed87e 100644 --- a/arch/powerpc/kernel/vio

[PATCH 03/38] powerpc: cell: add missing put_device call

2013-12-19 Thread Levente Kurusa
This is required so that we give up the last reference to the device. Signed-off-by: Levente Kurusa --- arch/powerpc/platforms/cell/spu_base.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/platforms/cell/spu_base.c b/arch/powerpc/platforms/cell/spu_base.c index f85db3a..f7fb0

[PATCH 02/38] powerpc: qe_lib: add missing put_device call

2013-12-19 Thread Levente Kurusa
This is required so that we give up the last reference to the device. Signed-off-by: Levente Kurusa --- arch/powerpc/sysdev/qe_lib/qe_ic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/sysdev/qe_lib/qe_ic.c b/arch/powerpc/sysdev/qe_lib/qe_ic.c index b2b87c3..2e15262 100644 --

Re: [PATCH] powerpc/512x: dts: disable MPC5125 usb module

2013-12-19 Thread Matteo Facchinetti
On 19/12/2013 13:30, Gerhard Sittig wrote: On Thu, Dec 19, 2013 at 11:23 +0100, Matteo Facchinetti wrote: USB controller pin-muxing is not initialized correctly and when system boot, causes a kernel panic. USB controller is also connected with a USB3320 ulpi tranciever and DTS should be includes

Re: commit e38c0a1f breaks powerpc boards with uli1575 chip

2013-12-19 Thread Thierry Reding
On Wed, Dec 18, 2013 at 12:40:21PM -0600, Rob Herring wrote: > [fixed DT maillist address] > > On 12/17/2013 01:35 AM, Nikita Yushchenko wrote: > > Hi > > > > While trying to make freescale p2020ds and mpc8572ds boards working with > > mainline kernel, I faced that commit > > e38c0a1f (Handle

Re: [PATCH] powerpc: Make 64-bit non-VMX __copy_tofrom_user bi-endian

2013-12-19 Thread Michael Ellerman
On Wed, 2013-12-18 at 21:15 +1100, Anton Blanchard wrote: > Hi, > > > [ This is a rare but nasty LE issue. Most of the time we use the > > POWER7 optimised __copy_tofrom_user_power7 loop, but when it hits an > > exception we fall back to the base __copy_tofrom_user loop. - Anton ] > > To try and

Re: [PATCH] powerpc: book3s: kvm: Use the saved dsisr and dar values

2013-12-19 Thread Alexander Graf
> Am 19.12.2013 um 08:02 schrieb "Aneesh Kumar K.V" > : > > Alexander Graf writes: > >>> On 11.11.2013, at 15:02, Aneesh Kumar K.V >>> wrote: >>> >>> From: "Aneesh Kumar K.V" >>> >>> Don't try to compute these values. >>> >>> Signed-off-by: Aneesh Kumar K.V >>> --- >>> >>> NOTE: I am

Re: [PATCH] powerpc/512x: dts: disable MPC5125 usb module

2013-12-19 Thread Gerhard Sittig
On Thu, Dec 19, 2013 at 11:23 +0100, Matteo Facchinetti wrote: > > USB controller pin-muxing is not initialized correctly and when system boot, > causes a kernel panic. > USB controller is also connected with a USB3320 ulpi tranciever and > DTS should be includes the correct dependency for initial

Re: [RFC][PATCH v1] ASoC: fsl_ssi: Add DAI master mode support for SSI on i.MX series

2013-12-19 Thread Mark Brown
On Thu, Dec 12, 2013 at 06:44:45PM +0800, Nicolin Chen wrote: > From: Nicolin Chen > > This patch adds three main functions for DAI master mode: set_dai_fmt(), > set_dai_sysclk() and set_dai_tdm_slot(), and one essential baud clock > accordingly. After appending this patch, the fsl_ssi driver on

[PATCH] powerpc/512x: dts: disable MPC5125 usb module

2013-12-19 Thread Matteo Facchinetti
USB controller pin-muxing is not initialized correctly and when system boot, causes a kernel panic. USB controller is also connected with a USB3320 ulpi tranciever and DTS should be includes the correct dependency for initialize and activate this component. Signed-off-by: Matteo Facchinetti ---