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 S

[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 --- arch/powerpc/platforms/52xx/mpc52xx_gpio.c | 117

[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 Signed-off-by: Prabhakar Kushwaha --- Based upon g

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 25

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 Acked-by: Segher Boessenkool One tiny th

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 Cc: Harry Ciao Cc: Doug Thompson Signed-off-by:

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

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 >

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 https://lists.ozlabs.org/listinfo/linuxppc-

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 su

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 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 > > page-stride lat_mem_rd from

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 res

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 file?

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 thi

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 wrote: > On Fri, 2011-05-20 at 14:00 -0500, Scott Wood wrote: > > Signed-off-by: Scott Wood > > --- > > arch/powerpc/kernel/exceptions-64e.S | 22 +- > > 1 files changed, 21 insertions(+), 1 deletions(-) > > You ca

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 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

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 wrote: > > > On Fri, 2011-05-20 at 14:00 -0500, Scott Wood wrote: > > > Signed-off-by: Scott Wood > > > --- > > > arch/powerpc/kernel/exceptions-64e.S | 22 +-

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 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 http://git.kernel.org/?p=linux/kernel/git/galak/powerpc.git;a=shortlog;h=refs/heads/test -- Timur Tab

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 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 > > http://git.kernel.org/?p=linux/ke

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-of

[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 free

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 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 we can't map with 16 e

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 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 m

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 ab

Re: Kernel cannot see PCI device

2011-05-23 Thread Prashant Bhole
Hi, On Fri, May 20, 2011 at 4:49 AM, Bjorn Helgaas wrote: > On Thu, May 19, 2011 at 5:12 PM, Benjamin Herrenschmidt > 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 >>> need a powerpc expert to help here