Re: [PATCH v2 5/7] mmc: sdhci: consolidate sdhci-of-esdhc and sdhci-esdhc-imx

2011-05-25 Thread Shawn Guo
On Tue, May 24, 2011 at 09:40:54PM +0200, Wolfram Sang wrote: On Thu, May 05, 2011 at 09:22:56PM +0800, Shawn Guo wrote: This patch is to consolidate SDHCI driver for Freescale eSDHC controller found on both MPCxxx and i.MX platforms. It merges sdhci-of-esdhc.c into sdhci-esdhc.c, so that

Cannot run tcl program of PPC460EX

2011-05-25 Thread efti
Hi, I am trying to run tcl of my PPC460ex board. I have download the tcl-8.3.3-sol26-sparc-local.gz file. But when I run it I get the Syntax error. I am not sure if I missed out something. I would really appreciate it if somebody could help me on this. Thanks, efti -- View this message in

[PATCH 8/8] powerpc: fix irq_free_virt by adjusting bounds before loop

2011-05-25 Thread Milton Miller
Instead of looping over each irq and checking against the irq array bounds, adjust the bounds before looping. The old code will not free any irq if the irq + count is above irq_virq_count because the test in the loop is testing irq + count instead of irq + i. This code checks the limits to avoid

[PATCH 0/8] ipi and irq cleanups and fixes

2011-05-25 Thread Milton Miller
Here are a few cleanups and fies mostly around the previous series and a few more as I continue to explore exporting the irq_host concept for other architectures. milton ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org

[PATCH 3/8] powerpc irq: remove stale and misleading comment

2011-05-25 Thread Milton Miller
The comment claims we will call host-ops-map() to update the flags if we find a previously established mapping, but we never did. We used to call remap, but that call was removed in da05198002 (powerpc: Remove irq_host_ops-remap hook). Signed-off-by: Milton Miller milt...@bga.com Index:

[PATCH 5/8] powerpc: check desc in handle_one_irq and expand generic_handle_irq

2011-05-25 Thread Milton Miller
Look up the descriptor and check that it is found in handle_one_irq before checking if we are on the irq stack, and call the handler directly using the descriptor if we are on the stack. We need check irq_to_desc finds the descriptor to avoid a NULL pointer dereference. It could have failed

[PATCH 6/8] powerpc 8xx: cascade eoi will be performed by generic_handle_irq handler

2011-05-25 Thread Milton Miller
The 8xx cpm_cascade was calling irq_eoi for the cascaded irq, but that will already have been called by the handle_fasteoi_irq that generic_handle_irq will call. The handler is set in arch/powerpc/sysdev/cpm1.c by the host map routine. Signed-off-by: Milton Miller milt...@bga.com Index:

[PATCH 4/8] powerpc irq: always free duplicate IRQ_LEGACY hosts

2011-05-25 Thread Milton Miller
Since kmem caches are allocated before init_IRQ as noted in 3af259d155 (powerpc: Radix trees are available before init_IRQ), we now call kmalloc in all cases and can can always call kfree if we are asked to allocate a duplicate or conflicting IRQ_HOST_MAP_LEGACY host. Signed-off-by: Milton Miller

[PATCH 2/8] powerpc cell: rename ipi functions to match current abstractions

2011-05-25 Thread Milton Miller
Rename functions and arguments to reflect current usage. iic_cause_ipi becomes iic_message_pass and iic_ipi_to_irq becomes iic_msg_to_irq, and iic_request_ipi now takes a message (msg) instead of an ipi number. Also mesg is renamed to msg. Commit f1072939b6 (powerpc: Remove checks for MSG_ALL

[PATCH 7/8] powerpc irq: protect irq_radix_revmap_lookup against irq_free_virt

2011-05-25 Thread Milton Miller
The radix-tree code uses call_rcu when freeing internal elements. We must protect against the elements being freed while we traverse the tree, even if the returned pointer will still be valid. While preparing a patch to expand the context in which irq_radix_revmap_lookup will be called, I

Re: [PATCH v2 5/7] mmc: sdhci: consolidate sdhci-of-esdhc and sdhci-esdhc-imx

2011-05-25 Thread Uwe Kleine-König
Hello Shawn, +#ifndef CONFIG_MMC_SDHCI_ESDHC_IMX +#define cpu_is_mx25()(0) +#define cpu_is_mx35()(0) +#define cpu_is_mx51()(0) +#define cpu_is_imx() (0) +#else +#define cpu_is_imx() (1) +#endif ... e.g. that looks a bit frightening. Agree.

Re: [PATCH][upstream] NAND Machine support for Integrated Flash Controller

2011-05-25 Thread Artem Bityutskiy
Hi, On Wed, 2011-05-25 at 09:30 +0530, Dipen Dudhat wrote: + ret = nand_scan_tail(priv-mtd); + if (ret) + goto err; + +#ifdef CONFIG_MTD_PARTITIONS We've just removed this macro, it should be merged upstream soon, but it is in the mtd tree so far. + /* First look

Re: [v5] powerpc: Force page alignment for initrd reserved memory

2011-05-25 Thread Milton Miller
On Mon, 23 May 2011 about 12:54:25 -, Dave Carroll wrote: When using 64K pages with a separate cpio rootfs, U-Boot will align the rootfs on a 4K page boundary. When the memory is reserved, and subsequent early memblock_alloc is called, it will allocate memory between the 64K page alignment

Re: [PATCH v2 5/7] mmc: sdhci: consolidate sdhci-of-esdhc and sdhci-esdhc-imx

2011-05-25 Thread Shawn Guo
Hi Uwe, On Wed, May 25, 2011 at 08:46:19AM +0200, Uwe Kleine-König wrote: Hello Shawn, +#ifndef CONFIG_MMC_SDHCI_ESDHC_IMX +#define cpu_is_mx25() (0) +#define cpu_is_mx35() (0) +#define cpu_is_mx51() (0) +#define cpu_is_imx() (0) +#else +#define cpu_is_imx()

Re: Kernel cannot see PCI device

2011-05-25 Thread Stefan Roese
On Tuesday 24 May 2011 23:43:08 Benjamin Herrenschmidt wrote: On Tue, 2011-05-24 at 10:25 +0530, Prashant Bhole wrote: Fixed the problem by soft resetting the PCIe port in the function ppc460ex_pciex_port_init_hw(). Is it a right thing to do? snip Well, it's odd that you'd have to do

Re: [PATCH 3/5] v2 seccomp_filters: Enable ftrace-based system call filtering

2011-05-25 Thread Thomas Gleixner
On Tue, 24 May 2011, Ingo Molnar wrote: * Peter Zijlstra pet...@infradead.org wrote: On Tue, 2011-05-24 at 10:59 -0500, Will Drewry wrote: include/linux/ftrace_event.h |4 +- include/linux/perf_event.h| 10 +--- kernel/perf_event.c | 49

Re: Best Linux choice for POWER7?

2011-05-25 Thread Josh Boyer
On Wed, May 25, 2011 at 11:49:55AM +1000, Michael Neuling wrote: Gabriel, I am looking for the most-tested Linux distro for POWER7 architecture. IBM partnered with RedHat and Novell to make sure RHEL6 and SLES11 SP1 are well tested with POWER7. Essential back-ports and bug are included in

Re: Cannot run tcl program of PPC460EX

2011-05-25 Thread Josh Boyer
On Tue, May 24, 2011 at 11:16:12PM -0700, efti wrote: Hi, I am trying to run tcl of my PPC460ex board. I have download the tcl-8.3.3-sol26-sparc-local.gz file. But when I run it I get the Syntax error. That tarball seems to indicate it's for both Solaris and Sparc. PPC460ex is neither of those.

Re: Kernel cannot see PCI device

2011-05-25 Thread Prashant Bhole
On Wed, May 25, 2011 at 3:27 PM, Stefan Roese s...@denx.de wrote: On Tuesday 24 May 2011 23:43:08 Benjamin Herrenschmidt wrote: On Tue, 2011-05-24 at 10:25 +0530, Prashant Bhole wrote: Fixed the problem by soft resetting the PCIe port in the function ppc460ex_pciex_port_init_hw(). Is it a

RE: Cannot run tcl program of PPC460EX

2011-05-25 Thread David Laight
On Tue, May 24, 2011 at 11:16:12PM -0700, efti wrote: I am trying to run tcl of my PPC460ex board. I have download the tcl-8.3.3-sol26-sparc-local.gz file. But when I run it I get the Syntax error. That tarball seems to indicate it's for both Solaris and Sparc. PPC460ex is neither

[PATCH v3 0/4] Consolidate sdhci pltfm OF drivers and get them self registered

2011-05-25 Thread Shawn Guo
Here are what the patch set does. * Remove .probe and .remove hooks from sdhci-pltfm.c and make it be a pure common helper function providers. * Add .probe and .remove hooks for sdhci pltfm drivers sdhci-cns3xxx, sdhci-dove, sdhci-tegra, and sdhci-esdhc-imx to make them self registered with

[PATCH v3 1/4] mmc: sdhci: make sdhci-pltfm device drivers self registered

2011-05-25 Thread Shawn Guo
The patch turns the common stuff in sdhci-pltfm.c into functions, and add device drivers their own .probe and .remove which in turn call into the common functions, so that those sdhci-pltfm device drivers register itself and keep all device specific things away from common sdhci-pltfm file.

[PATCH v3 3/4] mmc: sdhci: make sdhci-of device drivers self registered

2011-05-25 Thread Shawn Guo
The patch turns the sdhci-of-core common stuff into helper functions added into sdhci-pltfm.c, and makes sdhci-of device drviers self registered using the same pair of .probe and .remove used by sdhci-pltfm device drivers. As a result, sdhci-of-core.c and sdhci-of.h can be eliminated with those

[PATCH v3 4/4] mmc: sdhci: merge two sdhci-pltfm.h into one

2011-05-25 Thread Shawn Guo
The structure sdhci_pltfm_data is not necessarily to be in a public header like include/linux/mmc/sdhci-pltfm.h, so the patch moves it into drivers/mmc/host/sdhci-pltfm.h and eliminates the former one. Signed-off-by: Shawn Guo shawn@linaro.org Reviewed-by: Grant Likely

[PATCH v3 2/4] mmc: sdhci: eliminate sdhci_of_host and sdhci_of_data

2011-05-25 Thread Shawn Guo
The patch migrates the use of sdhci_of_host and sdhci_of_data to sdhci_pltfm_host and sdhci_pltfm_data, so that the former pair can be eliminated. Signed-off-by: Shawn Guo shawn@linaro.org Reviewed-by: Grant Likely grant.lik...@secretlab.ca Reviewed-by: Wolfram Sang w.s...@pengutronix.de

Re: Best Linux choice for POWER7?

2011-05-25 Thread Michael Neuling
I am looking for the most-tested Linux distro for POWER7 architecture. IBM partnered with RedHat and Novell to make sure RHEL6 and SLES11 SP1 are well tested with POWER7. Essential back-ports and bug are included in ^ bug _fixes_ We

Booting p4080ds on non-0 cpu

2011-05-25 Thread Gabbasov, Andrew
Hello Matthew, You have made a patch powerpc/fsl_booke: Add support to boot from core other than 0 some time ago, so you probably worked with booting the kernel on a cpu subset, particularly on the core other than 0. Could you please describe any details how you ran the kernel from u-boot on

Re: [PATCH 3/5] v2 seccomp_filters: Enable ftrace-based system call filtering

2011-05-25 Thread Ingo Molnar
* Thomas Gleixner t...@linutronix.de wrote: On Tue, 24 May 2011, Ingo Molnar wrote: * Peter Zijlstra pet...@infradead.org wrote: On Tue, 2011-05-24 at 10:59 -0500, Will Drewry wrote: include/linux/ftrace_event.h |4 +- include/linux/perf_event.h| 10 +---

Re: [PATCH 3/5] v2 seccomp_filters: Enable ftrace-based system call filtering

2011-05-25 Thread Peter Zijlstra
On Wed, 2011-05-25 at 17:01 +0200, Ingo Molnar wrote: We do _NOT_ make any decision based on the trace point so what's the pre-existing active role in the syscall entry code? The seccomp code we are discussing in this thread. That isn't pre-existing, that's proposed. But face it, you can

Re: [PATCH 3/5] v2 seccomp_filters: Enable ftrace-based system call filtering

2011-05-25 Thread Thomas Gleixner
On Wed, 25 May 2011, Ingo Molnar wrote: * Thomas Gleixner t...@linutronix.de wrote: On Tue, 24 May 2011, Ingo Molnar wrote: * Peter Zijlstra pet...@infradead.org wrote: On Tue, 2011-05-24 at 10:59 -0500, Will Drewry wrote: include/linux/ftrace_event.h |4 +-

Re: [PATCH 5/8] powerpc: override dma_get_required_mask by platform hook and ops

2011-05-25 Thread Nishanth Aravamudan
Ben, On 19.05.2011 [10:46:25 -0700], Nishanth Aravamudan wrote: On 19.05.2011 [17:43:56 +1000], Benjamin Herrenschmidt wrote: On Wed, 2011-05-11 at 15:25 -0700, Nishanth Aravamudan wrote: From: Milton Miller milt...@bga.com The hook dma_get_required_mask is supposed to return the

Re: Booting p4080ds on non-0 cpu

2011-05-25 Thread McClintock Matthew-B29882
On Wed, May 25, 2011 at 7:16 AM, Gabbasov, Andrew andrew_gabba...@mentor.com wrote: Hello Matthew, You have made a patch powerpc/fsl_booke: Add support to boot from core other than 0 some time ago, so you probably worked with booting the kernel on a cpu subset, particularly on the core other

Re: [PATCH 7/8] powerpc irq: protect irq_radix_revmap_lookup against irq_free_virt

2011-05-25 Thread Paul E. McKenney
On Wed, May 25, 2011 at 01:34:18AM -0500, Milton Miller wrote: The radix-tree code uses call_rcu when freeing internal elements. We must protect against the elements being freed while we traverse the tree, even if the returned pointer will still be valid. While preparing a patch to expand

Re: [rtc-linux] [PATCH] RTC driver(Linux) for PT7C4338 chip.

2011-05-25 Thread Andrew Morton
On Thu, 10 Mar 2011 11:06:27 + Jain Priyanka-B32167 b32...@freescale.com wrote: Hi Wolfram, -Original Message- From: Wolfram Sang [mailto:w.s...@pengutronix.de] Sent: Thursday, March 10, 2011 2:24 PM To: Jain Priyanka-B32167 Cc: rtc-li...@googlegroups.com;

Re: [PATCH 6/8] powerpc 8xx: cascade eoi will be performed by generic_handle_irq handler

2011-05-25 Thread Benjamin Herrenschmidt
On Wed, 2011-05-25 at 01:34 -0500, Milton Miller wrote: The 8xx cpm_cascade was calling irq_eoi for the cascaded irq, but that will already have been called by the handle_fasteoi_irq that generic_handle_irq will call. The handler is set in arch/powerpc/sysdev/cpm1.c by the host map routine.

[PATCH v6] powerpc: Force page alignment for initrd reserved memory

2011-05-25 Thread Dave Carroll
From: Dave Carroll dcarr...@astekcorp.com When using 64K pages with a separate cpio rootfs, U-Boot will align the rootfs on a 4K page boundary. When the memory is reserved, and subsequent early memblock_alloc is called, it will allocate memory between the 64K page alignment and reserved memory.

[PATCH v7] powerpc: Force page alignment for initrd reserved memory

2011-05-25 Thread Dave Carroll
From: Dave Carroll dcarr...@astekcorp.com When using 64K pages with a separate cpio rootfs, U-Boot will align the rootfs on a 4K page boundary. When the memory is reserved, and subsequent early memblock_alloc is called, it will allocate memory between the 64K page alignment and reserved memory.

[PATCH] powerpc: Replace boot_cpu_count with spinning_secondaries, fix off-by-one cpu wait

2011-05-25 Thread Matt Evans
smp_release_cpus() waits for all cpus (including the bootcpu) due to an off-by-one count on boot_cpu_count (which is all CPUs). This patch replaces that with spinning_secondaries (which is all secondary CPUs). Signed-off-by: Matt Evans m...@ozlabs.org --- arch/powerpc/include/asm/smp.h |2

[git pull] Please pull powerpc.git merge branch

2011-05-25 Thread Benjamin Herrenschmidt
Hi Linus ! This is a bit more than I expected to send you that late in the merge window, but hopefully none of it should be problematic. A couple of patches were simply delayed due to misunderstandings as to which tree they should go through (4xx MSI and ftrace). There's a generic patch to

Re: [PATCH v4]PPC4xx: Adding PCI(E) MSI support

2011-05-25 Thread Benjamin Herrenschmidt
On Wed, 2011-03-30 at 14:40 +0530, Rupjyoti Sarmah wrote: This patch adds MSI support for 440SPe, 460Ex, 460Sx and 405Ex. Signed-off-by: Rupjyoti Sarmah rsar...@apm.com Signed-off-by: Tirumala R Marri tma...@apm.com Ok so I sent the patch to Linus today. However I had to manually fix it up