[PATCH v3] cpufreq: Add cpufreq driver for Freescale e500mc SoCs

2013-03-28 Thread Yuantian.Tang
From: Tang Yuantian Add cpufreq driver for Freescale e500mc, e5500 and e6500 SoCs which are capable of changing the frequency of CPU dynamically Signed-off-by: Tang Yuantian Signed-off-by: Li Yang --- v3: - change sizeof(struct name).. to sizeof(*p) - remove the struct cpufreq_

[PATCH] powerpc/pci: fix 64 bit pci size issue

2013-03-28 Thread Roy Zang
The size might be 64 bit, so use ilog2() instead of __ilog2() or __ilog2_u64(). ilog2() can select 32bit or 64bit funciton automatically. Signed-off-by: Roy Zang --- arch/powerpc/sysdev/fsl_pci.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/powerpc/sysde

Re: [PATCH 2/2 v2] cpufreq: Add cpufreq driver for Freescale e500mc SoCs

2013-03-28 Thread Viresh Kumar
On 29 March 2013 10:17, Tang Yuantian-B29983 wrote: > I thought it was OK here. Apparently, sizeof(*table) is better. > But kcalloc is OK. Yes yes, Kcalloc is okay... I have misread that part earlier when i suggested kzalloc. In last mail i was referring to sizeof() only.

RE: [PATCH 2/2 v2] cpufreq: Add cpufreq driver for Freescale e500mc SoCs

2013-03-28 Thread Tang Yuantian-B29983
> -Original Message- > From: Viresh Kumar [mailto:viresh.ku...@linaro.org] > Sent: 2013年3月29日 11:17 > To: Tang Yuantian-B29983 > Cc: r...@sisk.pl; cpuf...@vger.kernel.org; linux...@vger.kernel.org; > linuxppc-dev@lists.ozlabs.org; Li Yang-R58472 > Subject: Re: [PATCH 2/2 v2] cpufreq: Add

Re: [upstream] mtd/ifc: fix ifc driver memory release issue

2013-03-28 Thread Brian Norris
On Wed, Mar 27, 2013 at 5:25 AM, Roy Zang wrote: > memory is allocated by devm_kzalloc, so release it using > devm_kfree() instead kfree(); You are correct that it should not be freed with kfree(). But the correct solution is that it does not need to be freed (explicitly) at all. That's the whole

Re: [PATCH 2/2 v2] cpufreq: Add cpufreq driver for Freescale e500mc SoCs

2013-03-28 Thread Viresh Kumar
On 29 March 2013 08:21, Tang Yuantian-B29983 wrote: >> > +static int corenet_cpufreq_cpu_init(struct cpufreq_policy *policy) { >> > + unsigned int cpu = policy->cpu; >> > + struct device_node *np; >> > + int i, count; >> > + struct clk *clk; >> > + struct cpufreq_freq

RE: [PATCH 2/2 v2] cpufreq: Add cpufreq driver for Freescale e500mc SoCs

2013-03-28 Thread Tang Yuantian-B29983
> > +static int corenet_cpufreq_cpu_init(struct cpufreq_policy *policy) { > > + unsigned int cpu = policy->cpu; > > + struct device_node *np; > > + int i, count; > > + struct clk *clk; > > + struct cpufreq_frequency_table *table; > > + struct cpu_data *data; > >

RE: [PATCH 2/3] powerpc/mpic: add global timer support

2013-03-28 Thread Wang Dongsheng-B40534
> -Original Message- > From: Wood Scott-B07421 > Sent: Friday, March 29, 2013 3:48 AM > To: Wang Dongsheng-B40534 > Cc: Wood Scott-B07421; Gala Kumar-B11780; linuxppc-dev@lists.ozlabs.org; > Li Yang-R58472 > Subject: Re: [PATCH 2/3] powerpc/mpic: add global timer support > > On 03/27/201

perf test failures on Power

2013-03-28 Thread Sukadev Bhattiprolu
The 'perf' tool has some built-in test cases and one of them checks to see if the symbols in vmlinux match those in /proc/kallsyms. This test is failing on Power for several reasons. I fixed a couple of them (described briefly at the end of the mail) and these fixes take the test further. One p

[PATCH 4/5 v11] iommu/fsl: Add additional iommu attributes required by the PAMU driver.

2013-03-28 Thread Varun Sethi
Added the following domain attributes for the FSL PAMU driver: 1. Added new iommu stash attribute, which allows setting of the LIODN specific stash id parameter through IOMMU API. 2. Added an attribute for enabling/disabling DMA to a particular memory window. 3. Added domain attribute to chec

[PATCH 3/5 v11] iommu/fsl: Add the window permission flag as a parameter to iommu_window_enable API.

2013-03-28 Thread Varun Sethi
Each iommu window can have access permissions associated with it. Extended the window_enable API to incorporate window access permissions. In case of PAMU each window can have its specific set of permissions. Signed-off-by: Varun Sethi --- - no change in v11. - no change in v10. drivers/iommu/i

[PATCH 2/5 v11] powerpc: Add iommu domain pointer to device archdata

2013-03-28 Thread Varun Sethi
Add an iommu domain pointer to device (powerpc) archdata. Devices are attached to iommu domains and this pointer provides a mechanism to correlate between a device and the associated iommu domain. This field is set when a device is attached to a domain. Signed-off-by: Varun Sethi --- - no chang

[PATCH 1/5 v11] iommu/fsl: Make iova dma_addr_t in the iommu_iova_to_phys API.

2013-03-28 Thread Varun Sethi
This is required in case of PAMU, as it can support a window size of up to 64G (even on 32bit). Signed-off-by: Varun Sethi --- changes in v11: - Made iova dma_addr_t instead of u64. - no change in v10. drivers/iommu/amd_iommu.c |2 +- drivers/iommu/exynos-iommu.c |2 +- drivers/i

[PATCH 0/5 v11] iommu/fsl: Freescale PAMU driver and IOMMU API implementation.

2013-03-28 Thread Varun Sethi
This patchset provides the Freescale PAMU (Peripheral Access Management Unit) driver and the corresponding IOMMU API implementation. PAMU is the IOMMU present on Freescale QorIQ platforms. PAMU can authorize memory access, remap the memory address, and remap the I/O transaction type. This set

Re: [PATCH 2/3] powerpc/mpic: add global timer support

2013-03-28 Thread Scott Wood
On 03/27/2013 09:29:26 PM, Wang Dongsheng-B40534 wrote: > -Original Message- > From: Wood Scott-B07421 > Sent: Thursday, March 28, 2013 1:12 AM > To: Wang Dongsheng-B40534 > Cc: Wood Scott-B07421; Gala Kumar-B11780; linuxppc-dev@lists.ozlabs.org; > Li Yang-R58472 > Subject: Re: [PATC

weird elf header issues, is it binutils or my linker script?

2013-03-28 Thread Chris Friesen
Hi all, We're running into an problem with a (somewhat complicated) 32-bit powerpc binary. When we try to run it, it hits the null-terminated interpreter test in the kernel and bails out with ENOEXEC. Looking at the binary with readelf, the program headers contain the following: Program Heade

Re: [PATCH 2/2 v2] cpufreq: Add cpufreq driver for Freescale e500mc SoCs

2013-03-28 Thread Viresh Kumar
On 28 March 2013 15:25, wrote: > From: Tang Yuantian > > Add cpufreq driver for Freescale e500mc, e5500 and e6500 SoCs > which are capable of changing the frequency of CPU dynamically > > Signed-off-by: Tang Yuantian > Signed-off-by: Li Yang > --- > v2: > - change the per_cpu variable

[PATCH 1/2 V2] clk: add PowerPC corenet clock driver support

2013-03-28 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 --- v2: add the document for device tree clock bindings .../bindings/clock/freescale-corenet-clock.txt | 67 +++

[PATCH 2/2 v2] cpufreq: Add cpufreq driver for Freescale e500mc SoCs

2013-03-28 Thread Yuantian.Tang
From: Tang Yuantian Add cpufreq driver for Freescale e500mc, e5500 and e6500 SoCs which are capable of changing the frequency of CPU dynamically Signed-off-by: Tang Yuantian Signed-off-by: Li Yang --- v2: - change the per_cpu variable to point type - fixed other issues driver