Re: [Cbe-oss-dev] [RFC 1/3] powerpc: __copy_tofrom_user tweaked for Cell

2008-06-20 Thread David Miller
From: Paul Mackerras <[EMAIL PROTECTED]> Date: Sat, 21 Jun 2008 14:30:02 +1000 > Is this application really transferring bulk data and using buffers > that aren't a multiple of the page size? Do you know whether the > copies ended up being misaligned? We used to cache align the sub-buffers carve

Re: [PATCH 2/6] MPC5121 clock driver

2008-06-20 Thread Stephen Rothwell
Hi John, On Fri, 20 Jun 2008 10:58:35 -0600 John Rigby <[EMAIL PROTECTED]> wrote: > > +struct module; Since you include linux/module.h, you don't need this. > +static unsigned long devtree_getfreq(char *nodetype, char *clockname) > +{ > + struct device_node *node; > + const unsigned int

Re: [Cbe-oss-dev] [RFC 1/3] powerpc: __copy_tofrom_user tweaked for Cell

2008-06-20 Thread Paul Mackerras
Arnd Bergmann writes: > On Friday 20 June 2008, Paul Mackerras wrote: > > > Transferring data over loopback is possibly an exception to that. > > However, it's very rare to transfer large amounts of data over > > loopback, unless you're running a benchmark like iperf or netperf. :-/ > > Well, it

Re: [Cbe-oss-dev] [RFC 1/3] powerpc: __copy_tofrom_user tweaked for Cell

2008-06-20 Thread Arnd Bergmann
On Friday 20 June 2008, Paul Mackerras wrote: > Transferring data over loopback is possibly an exception to that. > However, it's very rare to transfer large amounts of data over > loopback, unless you're running a benchmark like iperf or netperf. :-/ Well, it is the exact case that came up in a

Re: [RFC 0/3] powerpc: memory copy routines tweaked for Cell

2008-06-20 Thread Mark Nelson
On Fri, 20 Jun 2008 09:49:29 am Mark Nelson wrote: > On Thu, 19 Jun 2008 09:53:16 pm Arnd Bergmann wrote: > > On Thursday 19 June 2008, Mark Nelson wrote: > > > The plan is to use Michael Ellerman's code patching work so that at > > > runtime > > > if we're running on a Cell machine the new routin

Re: [RFC 1/3] powerpc: __copy_tofrom_user tweaked for Cell

2008-06-20 Thread Sanjay Patel
--- On Fri, 6/20/08, Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > I though OS X had a trick with a CR bit that would disable > the dcbz optimization on the first alignment fault ? Or did they > totally remove it ? Ah, it's coming back to me. :) Apple added 'dcbz', removed it, and then t

Re: [PATCH][WIP][RFC] powerpc: fixup lwsync at runtime

2008-06-20 Thread Benjamin Herrenschmidt
On Fri, 2008-06-20 at 11:36 -0500, Kumar Gala wrote: > This is a work in progress towards make lwsync fixed up at runtime. The > patch is based (requires) the module refactoring patch. Some of this code > should be reworked based on the code patching work from Michael. Also, > ppc64 and vdso sup

Re: [RFC 1/3] powerpc: __copy_tofrom_user tweaked for Cell

2008-06-20 Thread Benjamin Herrenschmidt
On Fri, 2008-06-20 at 10:46 -0700, Sanjay Patel wrote: > --- On Fri, 6/20/08, Gunnar von Boehn <[EMAIL PROTECTED]> wrote: > > How important is best performance for the unaligned copy > > to/from uncacheable memory? > > The challenge of the CELL chip is that X-form of the shift > > instructions are

Re: [PATCH 1/5] Allow drc indexes to be specified in formats other than decimal

2008-06-20 Thread Sergei Shtylyov
Hello. Nathan Fontenot wrote: Allow the drc index passed to the /proc/ppc64/ofdt file to be specified in formats other than decimal. This allows us to easily specify drc indexes in hex that would otherwise appears as negative integers. Signed-off-by: Nathan Fontenot <[EMAIL PROTECTED]> ---

Re: [RFC] 4xx hardware watchpoint support

2008-06-20 Thread Luis Machado
On Thu, 2008-05-22 at 13:51 +1000, Paul Mackerras wrote: > Luis Machado writes: > > > This is a patch that has been sitting idle for quite some time. I > > decided to move it further because it is something useful. It was > > originally written by Michel Darneille, based off of 2.6.16. > > > > T

Re: [PATCH 5/6] MPC5121 Add PCI support

2008-06-20 Thread Scott Wood
Kumar Gala wrote: diff --git a/arch/powerpc/platforms/512x/pci.c b/arch/powerpc/platforms/512x/pci.c new file mode 100644 index 000..7ed9b34 --- /dev/null +++ b/arch/powerpc/platforms/512x/pci.c @@ -0,0 +1,84 @@ +/* + * Copyright (C) 2008 Freescale Semiconductor, Inc. All rights reserved. +

Re: [PATCH 5/6] MPC5121 Add PCI support

2008-06-20 Thread Kumar Gala
On Jun 20, 2008, at 11:58 AM, John Rigby wrote: Copied from 83xx minus support for two busses. Signed-off-by: John Rigby <[EMAIL PROTECTED]> --- arch/powerpc/Kconfig |2 +- arch/powerpc/platforms/512x/Kconfig |1 + arch/powerpc/platforms/512x/Makefile |

[PATCH 5/5] Add ability to associate drconf memory sections in hotplug memory add

2008-06-20 Thread Nathan Fontenot
Update the association of a memory section with a numa node that occurs during hotplug add of a memory section. This adds a check for the ibm,dyamic-reconfiguration-memory node in the device tree and calls the new hot_add_drconf_scn_to_nid that can properly parse the device tree and make the prop

[PATCH 4/5] Helper routines for parsing drconf memory

2008-06-20 Thread Nathan Fontenot
This patch pulls several pieces of exisitng code for parsing memory under the ibm,dynamic-reconfiguration-memory node of the device tree into helper routines. This is in preparation for the next patch that will also use these same helper routines. There are no functional changes in this patch.

[PATCH 3/5] Update device tree correctly for drconf memory add/remove

2008-06-20 Thread Nathan Fontenot
Memory dlpar updates to correctly update the device tree when an lmb is added/removed. The main difference for memory under the ibm,dynamic-reconfiguration-memory node is that dlpar adding or removing an lmb only requires an update to the ibm,dynamic-memory property. Previously, entire nodes wer

[PATCH 2/5] Use the base address of lmbs instead of drc index for dlpar

2008-06-20 Thread Nathan Fontenot
Use the base address of the lmb to get the starting page frame number instead of trying to extract it from the drc index of the lmb. In the previous representations of memory in the device tree, the drc index of a lmb would match up with the base address of the lmb. For example a lmb woulf have

[PATCH 1/5] Allow drc indexes to be specified in formats other than decimal

2008-06-20 Thread Nathan Fontenot
Allow the drc index passed to the /proc/ppc64/ofdt file to be specified in formats other than decimal. This allows us to easily specify drc indexes in hex that would otherwise appears as negative integers. Signed-off-by: Nathan Fontenot <[EMAIL PROTECTED]> --- Index: linux-2.6.git/arch/powerpc/

[PATCH 0/5] Updates for memory dlpar and dynamic reconfiguration memory

2008-06-20 Thread Nathan Fontenot
The following patchset corrects a couple of issues with memory dlpar and adds support for the new memory layout in the device tree on the latest Power hardware and kernels. On newer hardware and kernels, the device tree has changed so that all memory appears under the node ibm,dynamic-reconfigura

Re: [PATCH 2/2][Rev4] fs_enet: add MPC5121 FEC support

2008-06-20 Thread Scott Wood
John Rigby wrote: + select PPC_CPM_NEW_BINDING if PPC_MPC512x Don't bother with this. It's always selected on arch/powerpc -- and now that arch/ppc is gone, there are patches floating around to remove the ifdefs. -Scott ___ Linuxppc-dev ma

[PATCH 2/2][Rev4] fs_enet: add MPC5121 FEC support

2008-06-20 Thread John Rigby
Add support for MPC512x to fs_enet driver MPC5121 has an FEC core that is nearly identical to the FEC in 8xx. The only problem is that the registers locations have been shuffled. Because of this shuffling of registers, one needs a different structure to describe the 5121 FEC. This is not a huge

Re: [PATCH] fs_enet: restore promiscuous and multicast settings in restart()

2008-06-20 Thread Bill Fink
On Fri, 20 Jun 2008, Laurent Pinchart wrote: > On Friday 20 June 2008 05:01, Bill Fink wrote: > > On Wed, 18 Jun 2008, Laurent Pinchart wrote: > > > > > The restart() function is called when the link state changes and resets > > > multicast and promiscous settings. This patch restores those setti

Re: [RFC 1/3] powerpc: __copy_tofrom_user tweaked for Cell

2008-06-20 Thread Sanjay Patel
--- On Fri, 6/20/08, Gunnar von Boehn <[EMAIL PROTECTED]> wrote: > How important is best performance for the unaligned copy > to/from uncacheable memory? > The challenge of the CELL chip is that X-form of the shift > instructions are microcoded. > The shifts are needed to implement a copy that rea

Re: [PATCH] IB/ehca: Reject recv WRs if QP is in RESET state

2008-06-20 Thread Roland Dreier
thanks, applied. ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

[PATCH 5/6] MPC5121 Add PCI support

2008-06-20 Thread John Rigby
Copied from 83xx minus support for two busses. Signed-off-by: John Rigby <[EMAIL PROTECTED]> --- arch/powerpc/Kconfig |2 +- arch/powerpc/platforms/512x/Kconfig |1 + arch/powerpc/platforms/512x/Makefile |1 + arch/powerpc/platforms/512x/mpc5121_ads.c |

[PATCH 2/6] MPC5121 clock driver

2008-06-20 Thread John Rigby
Implements the api defined in include/clk.h Current only getting frequencies is supported not setting. Signed-off-by: John Rigby <[EMAIL PROTECTED]> --- arch/powerpc/platforms/512x/Makefile |1 + arch/powerpc/platforms/512x/clock.c | 729 ++ 2 files changed,

[PATCH 6/6] MPC5121 Hide pci bridge

2008-06-20 Thread John Rigby
The class of the MPC5121 pci host bridge is PCI_CLASS_BRIDGE_OTHER while other freescale host bridges have class set to PCI_CLASS_PROCESSOR_POWERPC. This patch makes fixup_hide_host_resource_fsl match PCI_CLASS_BRIDGE_OTHER in addition to PCI_CLASS_PROCESSOR_POWERPC. Signed-off-by: John Rigby <[E

[PATCH 4/6] MPC5121 Add MPC5121ADS cpld support

2008-06-20 Thread John Rigby
Add a interrupt host for the interrupt controller in the mpc5121ads cpld. PCI interrupts are 0-7 the rest are 8-15 Touchscreen pendown irq is hardwired to irq1 All other irqs are chainged to irq0 Signed-off-by: John Rigby <[EMAIL PROTECTED]> --- arch/powerpc/platforms/512x/Kconfig|

[PATCH 3/6] MPC5121 Add generic board support

2008-06-20 Thread John Rigby
Move shared code from mpc5121_ads.c to mpc512x_shared.c. Add new generic board setup mpc5121_generic.c Signed-off-by: John Rigby <[EMAIL PROTECTED]> --- arch/powerpc/platforms/512x/Kconfig | 15 - arch/powerpc/platforms/512x/Makefile |3 +- arch/powerpc/platforms/512x

[PATCH 0/6] MPC5121 Updates

2008-06-20 Thread John Rigby
The following patches contain updates for MPC5121 1/6 Updates the device tree. 2/6 Adds a clock driver. 3/6 Adds support for generic boards. This is nearly identical to David Jander's patch but does not delete the ADS board option. ADS is not a candidate for generic since it h

Re: [Cbe-oss-dev] [RFC 1/3] powerpc: __copy_tofrom_user tweaked for Cell

2008-06-20 Thread Gunnar von Boehn
Hi Paul, Of course, I can only speak for the test result that I got on our platforms. We did test on PS3, QS21 single/dual, QS22 single/dual, and JS21 The performance of the old Linux routine and the new routine is about the same for copies of less than 128 Bytes. At 512 byte the new routine is a

[PATCH][WIP][RFC] powerpc: fixup lwsync at runtime

2008-06-20 Thread Kumar Gala
This is a work in progress towards make lwsync fixed up at runtime. The patch is based (requires) the module refactoring patch. Some of this code should be reworked based on the code patching work from Michael. Also, ppc64 and vdso support needs a bit of cleaning up. Some questions: * How do we

[PATCH] powerpc: Move common module code into its own file

2008-06-20 Thread Kumar Gala
Refactor common code between ppc32 and ppc64 module handling into a shared filed. Signed-off-by: Kumar Gala <[EMAIL PROTECTED]> --- arch/powerpc/kernel/Makefile|2 +- arch/powerpc/kernel/module.c| 110 +++ arch/powerpc/kernel/module_32.c | 72 ---

Re: [PATCH] CPM2 i2c driver

2008-06-20 Thread Wolfram Sang
Hello Esben, On Fri, Jun 20, 2008 at 11:09:48AM +0200, Esben Haabendal wrote: > Here is an i2c driver for Freescale processors with CPM2. It is based on > previous work by Angelos Manousaridis which again were based on a driver > from Heiko Schocher. Just recently a similar driver was added to th

Re: [RFC 0/3] powerpc: memory copy routines tweaked for Cell

2008-06-20 Thread Gunnar von Boehn
Hi Paul, I wrote a small benchmark tool that compares various memcpy routines under a number of conditions. The benchmark test a number of different block sizes from a few Bytes to 16 MB. Each test is repeated in a loop several times. Three main types of copies are benchmarked. a) Copies that are

Re: Merging seperate FDT-blobs?

2008-06-20 Thread Wolfram Sang
On Fri, Jun 13, 2008 at 02:23:04PM +1000, David Gibson wrote: > > a project I am working on consists of different hardware modules, which > > can be combined in a lot of variations (not at runtime, though). As each > > module shall contain an I2C-eeprom, the idea is now to put a fragment of > > a

[PATCH] CPM2 i2c driver

2008-06-20 Thread Esben Haabendal
Hi Here is an i2c driver for Freescale processors with CPM2. It is based on previous work by Angelos Manousaridis which again were based on a driver from Heiko Schocher. I am using it on an in-house MPC8270 target, and don't have access to any other boards with CPM2. So if anybody is able to tes

RE: [RFC] Kprobes for book-e

2008-06-20 Thread Sulibhavi, Madhvesh
Kumar Gala wrote on Thursday, June 19, 2008 10:15 PM > To: Sulibhavi, Madhvesh > > No!!, this code cannot be removed. My tests fail > > while doing the probe test for do_gettimeofday and __kmalloc. > > I get Oops and Segfault. I think i had got similar results > > in my initial port using 2.6.26.39

Re: [PATCH 11/19][v2] powerpc: iommu enablement for CMO

2008-06-20 Thread Robert Jennings
To support Cooperative Memory Overcommitment (CMO), we need to check for failure from some of the tce hcalls. These changes for the pseries platform affect the powerpc architecture; patches for the other affected platforms are included in this patch. pSeries platform IOMMU code changes: * platfo

Re: [PATCH 11/19] powerpc: iommu enablement for CMO

2008-06-20 Thread Robert Jennings
* Olof Johansson ([EMAIL PROTECTED]) wrote: > Hi, > > Some comments and questions below. > > > -Olof > > On Thu, Jun 12, 2008 at 05:19:36PM -0500, Robert Jennings wrote: > > Index: b/arch/powerpc/kernel/iommu.c > > === > > --- a/ar

Re: [PATCH] Added support for PRTLVT based boards (MPC5121)

2008-06-20 Thread John Rigby
I have a set of patches that I will be submitting later today that adds the generic board support without removing ADS. So I would prefer for you to just submit a device tree file for your board. On Fri, Jun 20, 2008 at 3:01 AM, David Jander <[EMAIL PROTECTED]> wrote: > > Hi John, > > On Wednesda

[RFC 2/3 v2] virtio_console: use virtqueue notification for hvc_console

2008-06-20 Thread Christian Borntraeger
This patch exploits the new notifier callbacks of the hvc_console. We can use the virtio callbacks instead of the polling code. I also added a small Kconfig change that allows the user to specify the virtio console in menuconfig. Signed-off-by: Christian Borntraeger <[EMAIL PROTECTED]> --- dr

[RFC 3/3 v2] s390: use virtio_console for KVM on s390

2008-06-20 Thread Christian Borntraeger
This patch enables virtio_console as the default console on kvm for s390. We currently use the same notify hack as lguest for early console output. I will try to address this for lguest and s390 later. Signed-off-by: Christian Borntraeger <[EMAIL PROTECTED]> --- arch/s390/Kconfig |

[RFC 1/3 v2] hvc_console: rework setup to replace irq functions with callbacks

2008-06-20 Thread Christian Borntraeger
This patch tries to change hvc_console to not use request_irq/free_irq if the backend does not use irqs. This allows virtio_console to use hvc_console without having a linker reference to request_irq/free_irq. In addition, together with patch 2/3 it improves the performance for virtio console inpu

Re: [PATCH] fix mpc83xx spi prescale modulus calculate

2008-06-20 Thread Kumar Gala
On Jun 20, 2008, at 4:38 AM, Chen Gong wrote: Signed-off-by: Chen Gong <[EMAIL PROTECTED]> --- drivers/spi/spi_mpc83xx.c | 29 - 1 files changed, 16 insertions(+), 13 deletions(-) Please CC the SPI devel list. - k ___

Re: [PATCH] fix mpc83xx spi prescale modulus calculate

2008-06-20 Thread Anton Vorontsov
On Fri, Jun 20, 2008 at 05:38:17PM +0800, Chen Gong wrote: > Signed-off-by: Chen Gong <[EMAIL PROTECTED]> The patch lacks any description. E.g. at which frequencies the current math breaks, and why? > --- > drivers/spi/spi_mpc83xx.c | 29 - > 1 files changed, 16 ins

Re: [RFC 1/3] powerpc: __copy_tofrom_user tweaked for Cell

2008-06-20 Thread Gunnar von Boehn
Hi Sanjay, > I suppose it would still function correctly via the handler, but horribly slowly. How important is best performance for the unaligned copy to/from uncacheable memory? The challenge of the CELL chip is that X-form of the shift instructions are microcoded. The shifts are needed to impl

RE: [PATCH] fix mpc83xx spi prescale modulus calculate

2008-06-20 Thread Li Yang
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > On Behalf Of Chen Gong > Sent: Friday, June 20, 2008 5:38 PM > To: linuxppc-dev@ozlabs.org > Cc: Chen Gong > Subject: [PATCH] fix mpc83xx spi prescale modulus calculate > > Signed-off-by: Chen Gong <[EMAIL PROTE

[PATCH] fix mpc83xx spi prescale modulus calculate

2008-06-20 Thread Chen Gong
Signed-off-by: Chen Gong <[EMAIL PROTECTED]> --- drivers/spi/spi_mpc83xx.c | 29 - 1 files changed, 16 insertions(+), 13 deletions(-) diff --git a/drivers/spi/spi_mpc83xx.c b/drivers/spi/spi_mpc83xx.c index 6832da6..070c621 100644 --- a/drivers/spi/spi_mpc83xx.c +++

Re: [PATCH] Added support for PRTLVT based boards (MPC5121)

2008-06-20 Thread David Jander
Hi John, On Wednesday 18 June 2008 17:33:48 John Rigby wrote: > Hi David, > > Looks like your device tree is based on the beta ltib bsp. There were > some changes in release 1 that you may want to incorporate: > > First as a convention I changed all the interrupt numbers in the > tuples to be de

Re: [PATCH] fs_enet: restore promiscuous and multicast settings in restart()

2008-06-20 Thread Matvejchikov Ilya
>> > diff --git a/drivers/net/fs_enet/mac-fcc.c b/drivers/net/fs_enet/mac-fcc.c >> > index ce40cf9..1a95cf1 100644 >> > --- a/drivers/net/fs_enet/mac-fcc.c >> > +++ b/drivers/net/fs_enet/mac-fcc.c >> > @@ -464,6 +464,9 @@ static void restart(struct net_device *dev) >> > C32(fccp, fcc_fp

Re: [PATCH] fs_enet: restore promiscuous and multicast settings in restart()

2008-06-20 Thread Laurent Pinchart
On Friday 20 June 2008 05:01, Bill Fink wrote: > On Wed, 18 Jun 2008, Laurent Pinchart wrote: > > > The restart() function is called when the link state changes and resets > > multicast and promiscous settings. This patch restores those settings at the > > end of restart(). > > > > Signed-off-by

Re: [PATCH 0/9] powerpc: Add kernel support for POWER7 VSX.

2008-06-20 Thread Michael Neuling
In message <[EMAIL PROTECTED]> you wrote : > > On Jun 19, 2008, at 11:13 PM, Michael Neuling wrote: > > > The following set of patches adds Vector Scalar Extentions (VSX) > > support for POWER7. Includes context switch, ptrace and signals > > support. > > > > Signed-off-by: Michael Neuling <