[PATCH][v2] powerpc/85xx: add host-pci(e) bridge only for RC

2011-05-23 Thread Prabhakar Kushwaha
FSL PCIe controller can act as agent(EP) or host(RC). Under Agent(EP) mode they are configured via Host. So it is not required to add with the PCI(e) sub-system. Add and configure PCIe controller only for RC mode. Signed-off-by: Vivek Mahajan vivek.maha...@freescale.com Signed-off-by: Prabhakar

UART #1 access on Sequoia board

2011-05-23 Thread Muhammad Waseem
Hello, I am working on PPC440EPx (Sequoia) to access its UART # 1 port for data transfer, while UART # 0 is connected to remote terminal access on host. However there is no module/driver listed for UART # 1 using 'lsmod'. The kernel version is 2.6.23. How can I access the UART # 1 in user space

PCI DMA to user mem on mpc83xx

2011-05-23 Thread Andre Schwarz
Ira, we have a pretty old PCI device driver here that needs some basic rework running on 2.6.27 on several MPC83xx. It's a simple char-device with give me some data implemented using read() resulting in zero-copy DMA to user mem. There's get_user_pages() working under the hood along with

[PATCH] powerpc/5200: add GPIO functions for simple interrupt GPIOs

2011-05-23 Thread Anatolij Gustschin
The mpc52xx_gpio driver currently supports 8 wakeup GPIOs and 32 simple GPIOs. Extend it to also support GPIO function of 8 simple interrupt GPIOs controlled in the standard GPIO register module. Signed-off-by: Anatolij Gustschin ag...@denx.de --- arch/powerpc/platforms/52xx/mpc52xx_gpio.c |

[PATCH][v3] powerpc/85xx: add host-pci(e) bridge only for RC

2011-05-23 Thread Prabhakar Kushwaha
FSL PCIe controller can act as agent(EP) or host(RC). Under Agent(EP) mode they are configured via Host. So it is not required to add with the PCI(e) sub-system. Add and configure PCIe controller only for RC mode. Signed-off-by: Vivek Mahajan vivek.maha...@freescale.com Signed-off-by: Prabhakar

Re: UART #1 access on Sequoia board

2011-05-23 Thread Josh Boyer
On Mon, May 23, 2011 at 11:34:26AM +0500, Muhammad Waseem wrote: Hello, I am working on PPC440EPx (Sequoia) to access its UART # 1 port for data transfer, while UART # 0 is connected to remote terminal access on host. However there is no module/driver listed for UART # 1 using 'lsmod'. The

[PATCH] oprofile, powerpc: Handle events that raise an exception without overflowing

2011-05-23 Thread Eric B Munson
Commit 0837e3242c73566fc1c0196b4ec61779c25ffc93 fixes a situation on POWER7 where events can roll back if a specualtive event doesn't actually complete. This can raise a performance monitor exception. We need to catch this to ensure that we reset the PMC. In all cases the PMC will be less than

Re: [PATCH V2 1/2] Maple: register CPC925 EDAC device on all boards with CPC925

2011-05-23 Thread Segher Boessenkool
Currently Maple setup code creates cpc925_edac device only on Motorola ATCA-6101 blade. Make setup code check bridge revision and enable EDAC on all U3H bridges. Verified on Momentum MapleD (ppc970fx kit) board. Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com Acked-by: Segher

Re: [PATCH V2 2/2] cpc925_edac: support single-processor configurations

2011-05-23 Thread Segher Boessenkool
If second CPU is not enabled, CPC925 EDAC driver will spill out warnings about errors on second Processor Interface. Support masking that out, by detecting at runtime which CPUs are present in device tree. Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com Cc: Harry Ciao

RE: [ v4] powerpc: Force page alignment for initrd reserved memory

2011-05-23 Thread Dave Carroll
I'm withdrawing this patch for the moment, due to two areas that need further research; 1) An adjacent FDT blob, as mentioned by Milton Miller, and 2) Potential interaction with the crash kernel, as used in init/initramfs.c If anyone sees other interactions, please feel free to let me

Re: PCI DMA to user mem on mpc83xx

2011-05-23 Thread Ira W. Snyder
On Mon, May 23, 2011 at 11:12:41AM +0200, Andre Schwarz wrote: Ira, we have a pretty old PCI device driver here that needs some basic rework running on 2.6.27 on several MPC83xx. It's a simple char-device with give me some data implemented using read() resulting in zero-copy DMA to user

RE: [ v4] powerpc: Force page alignment for initrd reserved memory

2011-05-23 Thread Milton Miller
On Mon, 23 May 2011 about 10:50:07 -0600, Dave Carroll wrote: I'm withdrawing this patch for the moment, due to two areas that need further research; 1) An adjacent FDT blob, as mentioned by Milton Miller, and Ok ... by the way, see move_device_tree() in arch/powerpc/kernel/prom.c 2)

Best Linux choice for POWER7?

2011-05-23 Thread Gabriel Menini
Hello, list. I am looking for the most-tested Linux distro for POWER7 architecture. Sorry if it is not the correct list. Regards, -- Gabriel Menini ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org

Re: Best Linux choice for POWER7?

2011-05-23 Thread Josh Boyer
On Mon, May 23, 2011 at 02:43:14PM -0300, Gabriel Menini wrote: Hello, list. I am looking for the most-tested Linux distro for POWER7 architecture. One of the enterprise distributions are going to be the best bet for a well tested and supported POWER7. They, of course, require purchasing a

Re: [PATCH 2/7] powerpc/mm: 64-bit 4k: use a PMD-based virtual page table

2011-05-23 Thread Scott Wood
On Sat, 21 May 2011 08:15:36 +1000 Benjamin Herrenschmidt b...@kernel.crashing.org wrote: On Fri, 2011-05-20 at 15:57 -0500, Scott Wood wrote: I see a 2% cost going from virtual pmd to full 4-level walk in the benchmark mentioned above (some type of sort), and just under 3% in

Re: [PATCH] oprofile, powerpc: Handle events that raise an exception without overflowing

2011-05-23 Thread Eric B Munson
On Mon, 23 May 2011, Eric B Munson wrote: Commit 0837e3242c73566fc1c0196b4ec61779c25ffc93 fixes a situation on POWER7 where events can roll back if a specualtive event doesn't actually complete. This can raise a performance monitor exception. We need to catch this to ensure that we reset

Fwd: UART #1 access on Sequoia board

2011-05-23 Thread Muhammad Waseem
I am using kernel version 2.6.23 which came with the Sequoia support CD. So that means UART # 1 BSP would probably not there? But device file /dev/ttyS1 is present in rootfs when listed using 'ls'. Do you think updating the kernel might solve the problem? BTW where can I see the board's DTS

Re: [PATCH] oprofile, powerpc: Handle events that raise an exception without overflowing

2011-05-23 Thread Maynard Johnson
Eric B Munson wrote: On Mon, 23 May 2011, Eric B Munson wrote: Commit 0837e3242c73566fc1c0196b4ec61779c25ffc93 fixes a situation on POWER7 where events can roll back if a specualtive event doesn't actually complete. This can raise a performance monitor exception. We need to catch this to

Re: [PATCH 2/2] powerpc/book3e-64: reraise doorbell when masked by soft-irq-disable

2011-05-23 Thread Scott Wood
On Sat, 21 May 2011 08:32:58 +1000 Benjamin Herrenschmidt b...@kernel.crashing.org wrote: On Fri, 2011-05-20 at 14:00 -0500, Scott Wood wrote: Signed-off-by: Scott Wood scottw...@freescale.com --- arch/powerpc/kernel/exceptions-64e.S | 22 +- 1 files changed, 21

Re: Fwd: UART #1 access on Sequoia board

2011-05-23 Thread Josh Boyer
On Tue, May 24, 2011 at 12:22:14AM +0500, Muhammad Waseem wrote: Please don't top post. I am using kernel version 2.6.23 which came with the Sequoia support CD. So that means UART # 1 BSP would probably not there? But device file /dev/ttyS1 is present in rootfs when listed using 'ls'. Do you

Re: [PATCH 2/7] powerpc/mm: 64-bit 4k: use a PMD-based virtual page table

2011-05-23 Thread Benjamin Herrenschmidt
On Mon, 2011-05-23 at 13:54 -0500, Scott Wood wrote: On Sat, 21 May 2011 08:15:36 +1000 Benjamin Herrenschmidt b...@kernel.crashing.org wrote: On Fri, 2011-05-20 at 15:57 -0500, Scott Wood wrote: I see a 2% cost going from virtual pmd to full 4-level walk in the benchmark mentioned

Re: [PATCH 2/2] powerpc/book3e-64: reraise doorbell when masked by soft-irq-disable

2011-05-23 Thread Benjamin Herrenschmidt
On Mon, 2011-05-23 at 15:26 -0500, Scott Wood wrote: On Sat, 21 May 2011 08:32:58 +1000 Benjamin Herrenschmidt b...@kernel.crashing.org wrote: On Fri, 2011-05-20 at 14:00 -0500, Scott Wood wrote: Signed-off-by: Scott Wood scottw...@freescale.com ---

Re: [PATCH 0/7] This patchset adds support for running Linux under the Freescale hypervisor,

2011-05-23 Thread Tabi Timur-B04825
On Fri, May 20, 2011 at 3:29 PM, Kumar Gala kumar.g...@freescale.com wrote: Applied to 'test' branch.  (grabbed 'v2' of tty patch).  Fixed merged conflicts. I don't think you pushed this branch to git.kernel.org

Re: [PATCH 0/7] This patchset adds support for running Linux under the Freescale hypervisor,

2011-05-23 Thread Kumar Gala
On May 23, 2011, at 4:09 PM, Tabi Timur-B04825 wrote: On Fri, May 20, 2011 at 3:29 PM, Kumar Gala kumar.g...@freescale.com wrote: Applied to 'test' branch. (grabbed 'v2' of tty patch). Fixed merged conflicts. I don't think you pushed this branch to git.kernel.org

Re: [PATCH][v3] powerpc/85xx: add host-pci(e) bridge only for RC

2011-05-23 Thread Kumar Gala
On May 23, 2011, at 5:23 AM, Prabhakar Kushwaha wrote: FSL PCIe controller can act as agent(EP) or host(RC). Under Agent(EP) mode they are configured via Host. So it is not required to add with the PCI(e) sub-system. Add and configure PCIe controller only for RC mode. Signed-off-by:

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

2011-05-23 Thread Dave Carroll
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. When the reserved memory is subsequently

Re: [PATCH 2/7] powerpc/mm: 64-bit 4k: use a PMD-based virtual page table

2011-05-23 Thread Scott Wood
On Tue, 24 May 2011 06:51:01 +1000 Benjamin Herrenschmidt b...@kernel.crashing.org wrote: Is your linear mapping bolted ? If it is you may be able to cut out most of the save/restore stuff (SRR0,1, ...) since with a normal walk you won't take nested misses. It is bolted -- we ignore anything

Re: [PATCH 2/7] powerpc/mm: 64-bit 4k: use a PMD-based virtual page table

2011-05-23 Thread Benjamin Herrenschmidt
On Mon, 2011-05-23 at 18:31 -0500, Scott Wood wrote: On Tue, 24 May 2011 06:51:01 +1000 Benjamin Herrenschmidt b...@kernel.crashing.org wrote: Is your linear mapping bolted ? If it is you may be able to cut out most of the save/restore stuff (SRR0,1, ...) since with a normal walk you

RE: [PATCH 0/1] ppc4xx: Fix PCIe scanning for the 460SX

2011-05-23 Thread Benjamin Herrenschmidt
On Thu, 2011-05-12 at 11:16 -0700, Tirumala Marri wrote: So what is the best way to handle this? It appears (based on the comments of others and my own experience) that there is no DCR that exists and behaves the way that previous SOCs behaved to give us the link status? The register above

Re: Kernel cannot see PCI device

2011-05-23 Thread Prashant Bhole
Hi, On Fri, May 20, 2011 at 4:49 AM, Bjorn Helgaas bhelg...@google.com wrote: On Thu, May 19, 2011 at 5:12 PM, Benjamin Herrenschmidt b...@kernel.crashing.org wrote: On Thu, 2011-05-19 at 11:58 -0600, Bjorn Helgaas wrote: The scan below PCIX0 (bus 0001:00) doesn't find anything.  You really