[PATCH] of: remove the unnecessary of_node_put for of_parse_phandle_with_args()

2013-04-09 Thread Yuantian.Tang
From: Tang Yuantian As the function itself says it is caller's responsibility to call the of_node_put(). So, remove it on success to keep the reference count correct. Signed-off-by: Tang Yuantian --- drivers/of/base.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/of/base.c b/d

Re: [PATCH 17/18] cpufreq: powerpc: move cpufreq driver to drivers/cpufreq

2013-04-09 Thread Viresh Kumar
On 5 April 2013 12:16, Viresh Kumar wrote: > On 4 April 2013 18:24, Viresh Kumar wrote: >> This patch moves cpufreq driver of powerpc platform to drivers/cpufreq. >> >> Cc: Benjamin Herrenschmidt >> Cc: Paul Mackerras >> Cc: Olof Johansson >> Cc: linuxppc-dev@lists.ozlabs.org >> Signed-off-by:

[PATCH v4] cpufreq: powerpc: Add cpufreq driver for Freescale e500mc SoCs

2013-04-09 Thread Yuantian.Tang
From: Tang Yuantian Add cpufreq driver for Freescale e500mc, e5500 and e6500 SoCs which are capable of changing the CPU frequency dynamically Signed-off-by: Tang Yuantian Signed-off-by: Li Yang --- v4: - rebase on bleeding-edge branch of Rafael's linux-pm.git - #define pr_fmt(

[PATCH v3] clk: add PowerPC corenet clock driver support

2013-04-09 Thread Yuantian.Tang
From: Tang Yuantian This adds the clock driver for Freescale PowerPC corenet series SoCs using common clock infrastructure. Signed-off-by: Tang Yuantian Signed-off-by: Li Yang --- v3: - remove the module author and description v2: - add the document for device tree clock bindin

[PATCH] powerpc/mpc85xx: Update the clock device tree nodes

2013-04-09 Thread Yuantian.Tang
From: Tang Yuantian The following SoCs will be affected: p2041, p3041, p4080, p5020, p5040 Signed-off-by: Tang Yuantian Signed-off-by: Li Yang --- * resend for review arch/powerpc/boot/dts/fsl/p2041si-post.dtsi | 62 - arch/powerpc/boot/dts/fsl/p2041si-pre.dtsi | 4 ++ ar

Re: [PATCH v4] cpufreq: powerpc: Add cpufreq driver for Freescale e500mc SoCs

2013-04-09 Thread Viresh Kumar
Mostly good now, V5 should be the final one. On 9 April 2013 14:02, wrote: > diff --git a/drivers/cpufreq/ppc-corenet-cpufreq.c > b/drivers/cpufreq/ppc-corenet-cpufreq.c > +static int corenet_cpufreq_target(struct cpufreq_policy *policy, > + unsigned int target_freq, unsigned int

RE: [PATCH v4] cpufreq: powerpc: Add cpufreq driver for Freescale e500mc SoCs

2013-04-09 Thread Tang Yuantian-B29983
Thanks, you make my code look better each review. Thanks, Yuantian > -Original Message- > From: Viresh Kumar [mailto:viresh.ku...@linaro.org] > Sent: 2013年4月9日 17:47 > To: Tang Yuantian-B29983 > Cc: r...@sisk.pl; cpuf...@vger.kernel.org; linux...@vger.kernel.org; > linux-ker...@vger.kern

[PATCH] powerpc/crypto: Add property for 'era' in SEC dts crypto node

2013-04-09 Thread Vakul Garg
The crypto node now contains a new property 'fsl,sec-era'. This is required so that applications can retrieve era info without having to be able to read SEC's register space. Signed-off-by: Vakul Garg --- arch/powerpc/boot/dts/fsl/pq3-sec4.4-0.dtsi |1 + arch/powerpc/boot/dts/fsl/qoriq-sec

[PATCH] powerpc/perf: Add an explict flag indicating presence of SLOT field

2013-04-09 Thread Michael Ellerman
In perf_ip_adjust() we potentially use the MMCRA[SLOT] field to adjust the reported IP of a sampled instruction. Currently the logic is written so that if the backend does NOT have the PPMU_ALT_SIPR flag set then we assume MMCRA[SLOT] exists. This is wrong on power7, where we have SIPR in the "al

Re: powerpc userspace address space layout information

2013-04-09 Thread Chris Friesen
On 04/06/2013 11:58 PM, David Gibson wrote: On Thu, Apr 04, 2013 at 10:53:58PM -0600, Chris Friesen wrote: Third, what's the most reliable way to ensure a block of addresses around 0xf600 don't get used for shared libraries? (We want to preserve those addresses for emulating hardware in a

[PATCH] powerpc/fsl-booke: Minor fixes to T4240 Si device tree

2013-04-09 Thread Kumar Gala
* Fix cpu unit address to match reg * Update compatible for rcpm & clockgen to be 2.0 instead of 2 Signed-off-by: Kumar Gala --- arch/powerpc/boot/dts/fsl/t4240si-post.dtsi |4 ++-- arch/powerpc/boot/dts/fsl/t4240si-pre.dtsi | 22 +++--- 2 files changed, 13 insertions(+),

Re: Build regressions/improvements in v3.9-rc6

2013-04-09 Thread Geert Uytterhoeven
On Tue, 9 Apr 2013, Geert Uytterhoeven wrote: > JFYI, when comparing v3.9-rc6 to v3.9-rc5[3], the summaries are: > - build errors: +8/-13 Ignoring R_PPC64_REL24 truncated relocations, as usual: + error: binder.c: undefined reference to `get_vm_area': => .text+0x2fe8b8) + error: binder.c: u

Re: [PATCH] powerpc/crypto: Add property for 'era' in SEC dts crypto node

2013-04-09 Thread Kim Phillips
On Tue, 9 Apr 2013 17:20:33 +0530 Vakul Garg wrote: > The crypto node now contains a new property 'fsl,sec-era'. > This is required so that applications can retrieve era info without > having to be able to read SEC's register space. > > Signed-off-by: Vakul Garg > --- > arch/powerpc/boot/dts/f

[PATCH] fadump: allow duplicate assignment to /sys/kernel/fadump_registered when it's assigned the desired value already

2013-04-09 Thread Wang Sheng-Hui
When the fadump is enabled, we have /sys/kernel/fadump_enabled assigned 1. But sometimes we need to restart the fadump service by 'service kdump restart', in case the kdump script has added the fadump detect/support already. In current implementation, we cannot re-assign 1 to /sys/kernel/fadump_en

Re: [PATCH] fadump: allow duplicate assignment to /sys/kernel/fadump_registered when it's assigned the desired value already

2013-04-09 Thread Mahesh Jagannath Salgaonkar
On 04/10/2013 06:16 AM, Wang Sheng-Hui wrote: > When the fadump is enabled, we have /sys/kernel/fadump_enabled assigned 1. > But sometimes we need to restart the fadump service by 'service kdump > restart', > in case the kdump script has added the fadump detect/support already. > In current impleme

Re: [RFC PATCH powerpc] try secondary hash before BUG in kernel_map_linear_page()

2013-04-09 Thread Michael Ellerman
On Mon, Feb 25, 2013 at 05:29:35PM +0800, Li Zhong wrote: > This patch tries to fix following issue when CONFIG_DEBUG_PAGEALLOC > is enabled: > > [ 543.075675] [ cut here ] > [ 543.075701] kernel BUG at arch/powerpc/mm/hash_utils_64.c:1239! > [ 543.075714] Oops: Exceptio

RE: [PATCH V4] powerpc/MPIC: Add get_version API both for internal and external use

2013-04-09 Thread Jia Hongtao-B38951
Hi Kumar and Scott, Any more comments for this patch and MSI-X erratum patch? Thanks. -Hongtao. > -Original Message- > From: Jia Hongtao-B38951 > Sent: Monday, April 08, 2013 10:02 AM > To: linuxppc-dev@lists.ozlabs.org; ga...@kernel.crashing.org > Cc: Wood Scott-B07421; Li Yang-R58472

RE: [PATCH V5] powerpc/85xx: Add machine check handler to fix PCIe erratum on mpc85xx

2013-04-09 Thread Jia Hongtao-B38951
Hi Scott, I added load instruction handler for the skipped instruction. For now most common load instructions are handled in this patch. Any advice for this? Thanks. -Hongtao. > -Original Message- > From: Jia Hongtao-B38951 > Sent: Monday, April 08, 2013 4:27 PM > To: linuxppc-dev@lists

Re: [PATCH V4] powerpc/MPIC: Add get_version API both for internal and external use

2013-04-09 Thread Scott Wood
On 04/07/2013 09:01:54 PM, Jia Hongtao wrote: diff --git a/arch/powerpc/sysdev/mpic.c b/arch/powerpc/sysdev/mpic.c index d30e6a6..48c8fae 100644 --- a/arch/powerpc/sysdev/mpic.c +++ b/arch/powerpc/sysdev/mpic.c @@ -1165,10 +1165,30 @@ static struct irq_domain_ops mpic_host_ops = { .xlate

RE: [PATCH V4] powerpc/MPIC: Add get_version API both for internal and external use

2013-04-09 Thread Jia Hongtao-B38951
> -Original Message- > From: Wood Scott-B07421 > Sent: Wednesday, April 10, 2013 10:32 AM > To: Jia Hongtao-B38951 > Cc: linuxppc-dev@lists.ozlabs.org; ga...@kernel.crashing.org; Wood Scott- > B07421; Li Yang-R58472; Jia Hongtao-B38951 > Subject: Re: [PATCH V4] powerpc/MPIC: Add get_versi

RE: [PATCH V4] powerpc/MPIC: Add get_version API both for internal and external use

2013-04-09 Thread Jia Hongtao-B38951
> -Original Message- > From: Wood Scott-B07421 > Sent: Wednesday, April 10, 2013 10:32 AM > To: Jia Hongtao-B38951 > Cc: linuxppc-dev@lists.ozlabs.org; ga...@kernel.crashing.org; Wood Scott- > B07421; Li Yang-R58472; Jia Hongtao-B38951 > Subject: Re: [PATCH V4] powerpc/MPIC: Add get_versi

Re: [PATCH V4] powerpc/MPIC: Add get_version API both for internal and external use

2013-04-09 Thread Scott Wood
On 04/09/2013 10:04:44 PM, Jia Hongtao-B38951 wrote: > -Original Message- > From: Wood Scott-B07421 > Sent: Wednesday, April 10, 2013 10:32 AM > To: Jia Hongtao-B38951 > Cc: linuxppc-dev@lists.ozlabs.org; ga...@kernel.crashing.org; Wood Scott- > B07421; Li Yang-R58472; Jia Hongtao-B3

RE: [PATCH V4] powerpc/MPIC: Add get_version API both for internal and external use

2013-04-09 Thread Jia Hongtao-B38951
> -Original Message- > From: Wood Scott-B07421 > Sent: Wednesday, April 10, 2013 11:08 AM > To: Jia Hongtao-B38951 > Cc: Wood Scott-B07421; linuxppc-dev@lists.ozlabs.org; > ga...@kernel.crashing.org; Li Yang-R58472 > Subject: Re: [PATCH V4] powerpc/MPIC: Add get_version API both for > int

Re: [PATCH V4] powerpc/MPIC: Add get_version API both for internal and external use

2013-04-09 Thread Scott Wood
On 04/09/2013 10:10:37 PM, Jia Hongtao-B38951 wrote: > -Original Message- > From: Wood Scott-B07421 > Sent: Wednesday, April 10, 2013 11:08 AM > To: Jia Hongtao-B38951 > Cc: Wood Scott-B07421; linuxppc-dev@lists.ozlabs.org; > ga...@kernel.crashing.org; Li Yang-R58472 > Subject: Re: [PAT

RE: [PATCH V4] powerpc/MPIC: Add get_version API both for internal and external use

2013-04-09 Thread Jia Hongtao-B38951
> -Original Message- > From: Wood Scott-B07421 > Sent: Wednesday, April 10, 2013 11:12 AM > To: Jia Hongtao-B38951 > Cc: Wood Scott-B07421; linuxppc-dev@lists.ozlabs.org; > ga...@kernel.crashing.org; Li Yang-R58472 > Subject: Re: [PATCH V4] powerpc/MPIC: Add get_version API both for > int

Re: [PATCH V4] powerpc/MPIC: Add get_version API both for internal and external use

2013-04-09 Thread Scott Wood
On 04/09/2013 10:14:06 PM, Jia Hongtao-B38951 wrote: > -Original Message- > From: Wood Scott-B07421 > Sent: Wednesday, April 10, 2013 11:12 AM > To: Jia Hongtao-B38951 > Cc: Wood Scott-B07421; linuxppc-dev@lists.ozlabs.org; > ga...@kernel.crashing.org; Li Yang-R58472 > Subject: Re: [PAT

RE: [PATCH V4] powerpc/MPIC: Add get_version API both for internal and external use

2013-04-09 Thread Jia Hongtao-B38951
> -Original Message- > From: Wood Scott-B07421 > Sent: Wednesday, April 10, 2013 11:20 AM > To: Jia Hongtao-B38951 > Cc: Wood Scott-B07421; linuxppc-dev@lists.ozlabs.org; > ga...@kernel.crashing.org; Li Yang-R58472 > Subject: Re: [PATCH V4] powerpc/MPIC: Add get_version API both for > int

[PATCH V5] powerpc/MPIC: Add get_version API both for internal and external use

2013-04-09 Thread Jia Hongtao
MPIC version is useful information for both mpic_alloc() and mpic_init(). The patch provide an API to get MPIC version for reusing the code. Also, some other IP block may need MPIC version for their own use. The API for external use is also provided. Signed-off-by: Jia Hongtao Signed-off-by: Li Y

[PATCH v2] of/base: release the node correctly in of_parse_phandle_with_args()

2013-04-09 Thread Yuantian.Tang
From: Tang Yuantian Call of_node_put() only when the out_args is NULL on success, or the node's reference count will not be correct because the caller will call of_node_put() again. Signed-off-by: Tang Yuantian --- v2: - modified the title and description. the 1st patch title is:

Re: [PATCH -V5 06/25] powerpc: Reduce PTE table memory wastage

2013-04-09 Thread David Gibson
On Thu, Apr 04, 2013 at 11:27:44AM +0530, Aneesh Kumar K.V wrote: > From: "Aneesh Kumar K.V" > > We allocate one page for the last level of linux page table. With THP and > large page size of 16MB, that would mean we are wasting large part > of that page. To map 16MB area, we only need a PTE spac

Re: [RFC PATCH v2 6/6] powerpc: Use generic code for exception handling

2013-04-09 Thread Michael Ellerman
On Fri, Mar 29, 2013 at 06:00:21PM +0800, Li Zhong wrote: > After the exception handling moved to generic code, and some changes in ... > diff --git a/arch/powerpc/mm/hash_utils_64.c b/arch/powerpc/mm/hash_utils_64.c > index 360fba8..eeab30f 100644 > --- a/arch/powerpc/mm/hash_utils_64.c > +++ b/ar

Re: [PATCH] powerpc: fixing ptrace_get_reg to return an error

2013-04-09 Thread Michael Neuling
Alexey Kardashevskiy wrote: > Currently ptrace_get_reg returns error as a value > what make impossible to tell whether it is a correct value or error code. > > The patch adds a parameter which points to the real return data and > returns an error code. > > As get_user_msr() never fails and it i

RE: [PATCH 2/2] powerpc/dma/raidengine: enable Freescale RaidEngine device

2013-04-09 Thread Shi Xuelin-B29237
Hi Dan & vinod, Do you have any comments about this patch? Thanks, Forrest -Original Message- From: Shi Xuelin-B29237 Sent: 2012年11月21日 17:01 To: dan.j.willi...@gmail.com; vinod.k...@intel.com; linuxppc-dev@lists.ozlabs.org; linux-ker...@vger.kernel.org Cc: i...@ovro.caltech.edu; Shi X

Re: [RFC PATCH powerpc] try secondary hash before BUG in kernel_map_linear_page()

2013-04-09 Thread Li Zhong
On Wed, 2013-04-10 at 12:21 +1000, Michael Ellerman wrote: > On Mon, Feb 25, 2013 at 05:29:35PM +0800, Li Zhong wrote: > > This patch tries to fix following issue when CONFIG_DEBUG_PAGEALLOC > > is enabled: > > > > [ 543.075675] [ cut here ] > > [ 543.075701] kernel BUG a

Re: [RFC PATCH v2 6/6] powerpc: Use generic code for exception handling

2013-04-09 Thread Li Zhong
On Wed, 2013-04-10 at 14:56 +1000, Michael Ellerman wrote: > On Fri, Mar 29, 2013 at 06:00:21PM +0800, Li Zhong wrote: > > After the exception handling moved to generic code, and some changes in > ... > > diff --git a/arch/powerpc/mm/hash_utils_64.c > > b/arch/powerpc/mm/hash_utils_64.c > > index

Re: [RFC PATCH v2 6/6] powerpc: Use generic code for exception handling

2013-04-09 Thread Li Zhong
On Wed, 2013-04-10 at 13:32 +0800, Li Zhong wrote: > On Wed, 2013-04-10 at 14:56 +1000, Michael Ellerman wrote: > > On Fri, Mar 29, 2013 at 06:00:21PM +0800, Li Zhong wrote: > > > After the exception handling moved to generic code, and some changes in > > ... > > > diff --git a/arch/powerpc/mm/hash

[patch] mm, hotplug: avoid compiling memory hotremove functions when disabled

2013-04-09 Thread David Rientjes
__remove_pages() is only necessary for CONFIG_MEMORY_HOTREMOVE. PowerPC pseries will return -EOPNOTSUPP if unsupported. Adding an #ifdef causes several other functions it depends on to also become unnecessary, which saves in .text when disabled (it's disabled in most defconfigs besides powerpc, i

Re: [PATCH -V5 06/25] powerpc: Reduce PTE table memory wastage

2013-04-09 Thread Aneesh Kumar K.V
David Gibson writes: > On Thu, Apr 04, 2013 at 11:27:44AM +0530, Aneesh Kumar K.V wrote: >> From: "Aneesh Kumar K.V" >> >> We allocate one page for the last level of linux page table. With THP and >> large page size of 16MB, that would mean we are wasting large part >> of that page. To map 16MB

Re: [PATCH v2 11/11] Add /proc interface to control topology updates

2013-04-09 Thread Michael Ellerman
On Mon, Mar 25, 2013 at 02:02:09PM -0500, Nathan Fontenot wrote: > There are instances in which we do not want topology updates to occur. > In order to allow this a /proc interface (/proc/powerpc/topology_updates) > is introduced so that topology updates can be enabled and disabled. > > This patch