[PATCH 12/20] [POWERPC] Wire up 440EP USB controlle support to Bamboo board

2007-12-12 Thread Benjamin Herrenschmidt
This adds the definition of the on-chip OHCI controller to the Bamboo board's device-tree. This is enough to get it probed and working, though a separate patch fixing a bug in the OHCI driver is needed to make it reliable. Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- arch/powerp

[PATCH 11/20] [POWERPC] Wire up PCI on Bamboo board

2007-12-12 Thread Benjamin Herrenschmidt
This adds the device-tree bits & call to ppc4xx_pci_find_bridges() to make PCI work on the Bamboo board Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/bamboo.dts | 40 ++- 1 file changed, 39 insertions(+), 1 deletion(-)

[PATCH 10/20] [POWERPC] Base support for 440GX Taishan eval board

2007-12-12 Thread Benjamin Herrenschmidt
From: Hugh Blemings <[EMAIL PROTECTED]> This patch adds base support for the AMCC Taishan 440GX evaluation board. Signed-off-by: Hugh Blemings <[EMAIL PROTECTED]> Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- arch/powerpc/Kconfig.debug |6 arch/powerpc/boot/Make

[PATCH 9/20] [POWERPC] Add PCI to Walnut platform

2007-12-12 Thread Benjamin Herrenschmidt
This wires up the 4xx PCI support & device-tree bits for the 405GP based Walnut platform. Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- This one is untested, haven't had time to dig my walnut and put it back into working condition. Josh, can you verify that IRQs are working (routi

[PATCH 8/20] [POWERPC] EP405 boards support for arch/powerpc

2007-12-12 Thread Benjamin Herrenschmidt
Brings EP405 support to arch/powerpc. The IRQ routing for the CPLD comes from a device-tree property, PCI is working to the point where I can see the video card, USB device, and south bridge. This should work with both EP405 and EP405PC. I've not totally figured out how IRQs are wired on this har

[PATCH 7/20] [POWERPC] Add early udbg support for 40x processors

2007-12-12 Thread Benjamin Herrenschmidt
This adds some basic real mode based early udbg support for 40x in order to debug things more easily Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- arch/powerpc/Kconfig.debug | 13 +++ arch/powerpc/kernel/misc_32.S | 39

[PATCH 6/20] [POWERPC] PCI support for 4xx Ebony board

2007-12-12 Thread Benjamin Herrenschmidt
This wires up the 4xx PCI support & device tree bits for 440GP based Ebony platform. Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/ebony.dts | 41 +++- 1 file changed, 36 insertions(+), 5 deletions(-) --- linux-work.ori

[PATCH 5/20] [POWERPC] 4xx PLB to PCI Express support

2007-12-12 Thread Benjamin Herrenschmidt
This adds to the previous 2 patches the support for the 4xx PCI Express cells as found in the 440SPe revA, revB and 405EX. Unfortunately, due to significant differences between these, and other interesting "features" of those pieces of HW, the code isn't as simple as it is for PCI and PCI-X and so

[PATCH 4/20] [POWERPC] 4xx PLB to PCI 2.x support

2007-12-12 Thread Benjamin Herrenschmidt
This adds to the previous patch the support for the 4xx PCI 2.x bridges. Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- This version implement the basic support for the 405GP bridge, I haven't yet looked at differences that other implementations may have for the PCI 2.x part. arc

[PATCH 3/20] [POWERPC] 4xx PLB to PCI-X support

2007-12-12 Thread Benjamin Herrenschmidt
This adds base support code for the 4xx PCI-X bridge. It also provides placeholders for the PCI and PCI-E version but they aren't supported with this patch. The bridges are configured based on device-tree properties. Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- Tested on 440GP o

[PATCH 2/20] [POWERPC] Improve support for 4xx indirect DCRs

2007-12-12 Thread Benjamin Herrenschmidt
Accessing indirect DCRs is done via a pair of address/data DCRs. Such accesses are thus inherently racy, vs. interrupts, preemption and possibly SMP if 4xx SMP cores are ever used. This updates the mfdcri/mtdcri macros in dcr-native.h (which were so far unused) to use a spinlock. In addition, ad

[PATCH 1/20] [POWERPC] Reworking machine check handling and Fix 440/440A

2007-12-12 Thread Benjamin Herrenschmidt
This adds a cputable function pointer for the CPU-side machine check handling. The semantic is still the same as the old one, the one in ppc_md. overrides the one in cputable, though ultimately we'll want to change that so the CPU gets first. This removes CONFIG_440A which was a problem for multip

Re: drivers/net/iseries_veth.c dubious sysfs usage

2007-12-12 Thread Greg KH
On Thu, Dec 06, 2007 at 02:48:18PM +1100, Michael Ellerman wrote: > igoeast:~# cd /sys/class/net/eth1/ > igoeast:/sys/class/net/eth1# ls -la > total 0 > drwxr-xr-x 4 root root0 Dec 6 10:22 . > drwxr-xr-x 6 root root0 Dec 6 10:21 .. > -r--r--r-- 1 root root 4096 Dec 6 10:30 addr_len >

Re: [PATCH] Introduce driver_create/remove_dir

2007-12-12 Thread Greg KH
On Wed, Dec 12, 2007 at 10:56:33AM +1100, Stephen Rothwell wrote: > > Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> > --- > drivers/base/driver.c | 24 > drivers/net/iseries_veth.c | 15 +++ > include/linux/device.h |3 +++ > 3 files cha

Re: [RFC] ehea: kdump support using new shutdown hook

2007-12-12 Thread Michael Ellerman
On Wed, 2007-12-12 at 17:53 +0100, Thomas Klein wrote: > This patch adds kdump support using the new PPC crash shutdown hook to the > ehea driver. The driver now keeps a list of firmware handles which have to > be freed in case of a crash. The crash handler does the minimum required: it > frees the

Re: [RFC] ehea: kdump support using new shutdown hook

2007-12-12 Thread Michael Ellerman
On Wed, 2007-12-12 at 12:04 -0500, Dave Jones wrote: > On Wed, Dec 12, 2007 at 05:53:43PM +0100, Thomas Klein wrote: > > > +static void ehea_update_adapter_handles(struct ehea_adapter *adapter) > > +{ > > + int i, k; > > + int j = 0; > > + > > + memset(adapter->res_handles, sizeof(adapter

[PATCH] Do ioremap and allocation for sleep on 3400 once at boot

2007-12-12 Thread Paul Mackerras
Currently the sleep code on the old powerbook 3400 does an ioremap and a kmalloc on each sleep/wakeup cycle. This moves the ioremap and kmalloc to boot-time code (via_pmu_start) so that they only need to be done once. This will be more convenient when we change to using the generic suspend code,

Re: [PATCH 2/2] kdump shutdown hook support

2007-12-12 Thread Olof Johansson
On Wed, Dec 12, 2007 at 11:12:24PM -0600, Olof Johansson wrote: > Hi, > > + __delay(SETJMP_MACHINE_CHECK_DELAY); > > Where is this defined? Oops, nevermind. In 1/2, of course. :-) -Olof ___ Linuxppc-dev mailing list Linuxppc-dev@ozl

Re: [PATCH 2/2] kdump shutdown hook support

2007-12-12 Thread Olof Johansson
Hi, On Thu, Dec 13, 2007 at 02:16:18PM +1100, Michael Neuling wrote: > Index: clone3/arch/powerpc/kernel/crash.c > === > --- clone3.orig/arch/powerpc/kernel/crash.c > +++ clone3/arch/powerpc/kernel/crash.c > @@ -32,6 +32,8 @@ > #inc

[PATCH] Convert therm_windtunnel.c to use the kthread API

2007-12-12 Thread Paul Mackerras
This is fairly straightforward, and lets us get rid of x.completion as well. Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]> --- diff --git a/drivers/macintosh/therm_windtunnel.c b/drivers/macintosh/therm_windtunnel.c index 5452da1..3722402 100644 --- a/drivers/macintosh/therm_windtunnel.c +++

[PATCH] Convert therm_pm72.c to use the kthread API

2007-12-12 Thread Paul Mackerras
This converts the therm_pm72.c driver to use the kthread API. I thought about making it use kthread_stop() instead of the `state' variable and the `ctrl_complete' completion, but that isn't simple and will require changing the way that `state' is used. Signed-off-by: Paul Mackerras <[EMAIL PROTEC

[PATCH] Convert adb.c to use kthread API and not spin on ADB requests

2007-12-12 Thread Paul Mackerras
This converts adb.c to use the kthread API. It also changes adb_request so that if the ADBREQ_SYNC flag is specified, we now sleep waiting for the request to finish using an on-stack completion rather than spinning. To implement this, we now require that if the ADBREQ_SYNC flag is set, the `done'

[PATCH] Convert media-bay.c to use the kthread API

2007-12-12 Thread Paul Mackerras
We aren't supposed to use kernel_thread directly in drivers any more, and in fact using kthread_run is a bit simpler. Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]> --- diff --git a/drivers/macintosh/mediabay.c b/drivers/macintosh/mediabay.c index 48d647a..080844b 100644 --- a/drivers/macintosh

printf - How does it work?

2007-12-12 Thread Siva Prasad
Hi, Can some one point me to an URL or some thing that explains how exactly the characters from printf in user program gets printed on to the console. Some thing like "it goes to /dev/console, and kernel reads from ." would be great, so that I can trace it out. Is there any way, we can

[PATCH 2/2] kdump shutdown hook support

2007-12-12 Thread Michael Neuling
This adds hooks into the default_machine_crash_shutdown so drivers can register a function to be run in the first kernel before we hand off to the second kernel. This should only be used in exceptional circumstances, like where the device can't be reset in the second kernel alone (as is the case w

[PATCH 1/2] Make setjmp/longjmp code generic

2007-12-12 Thread Michael Neuling
This makes the setjmp/longjmp code used by xmon, generically available to other code. It also removes the requirement for debugger hooks to be only called on 0x300 (data storage) exception and adds some documentation. Signed-off-by: Michael Neuling <[EMAIL PROTECTED]> --- arch/powerpc/kernel/mi

[PATCH 0/2] Add crashdump shutdown hooks

2007-12-12 Thread Michael Neuling
The following patches add crashdump shutdown hooks for POWERPC. Signed-off-by: Michael Neuling <[EMAIL PROTECTED]> --- This is an updated series following comments from the first post. Adds some documentation, better code flow, fixes 32 bit compiles and other updates based on feedback Again these

Re: [PATCH RFC 0/7] "NAND on UPM" and related patches

2007-12-12 Thread Chris Fester
On Mon, 2007-12-10 at 23:47 +0300, Anton Vorontsov wrote: > Hi all, > > Here are patches to support NAND on UPM. That driver is generic for > all processors with FSL UPMs. And because of that, few more patches are > needed -- GPIO API and generic FSL UPM functions. > I would appreciate any comment

RE: initrd - console

2007-12-12 Thread Siva Prasad
Thanks for the response Michael. Yes!... I do have /dev/console I also have the following line in /etc/inittab (::respawn:/sbin/getty -L ttyS0 115200 VT100) Still it does not print any thing from the user land. All the kernel printk's are working fine. I tried to print the arguments and enviro

Re: [PATCH 1/3] ps3: vuart: fix error path locking

2007-12-12 Thread Geoff Levand
> This stray down would cause a permanent sleep which doesn't seem correct. > The other uses of this semaphore appear fairly mutex like it's even > initialized > with init_MUTEX() .. So here a patch for removing this one down(). > > Signed-off-by: Daniel Walker <[EMAIL PROTECTED]> > > --- > d

Re: [PATCH/RFC] CPM1: implement GPIO API

2007-12-12 Thread Anton Vorontsov
On Wed, Dec 12, 2007 at 11:16:33PM +0100, Arnd Bergmann wrote: > On Wednesday 12 December 2007, Jochen Friedrich wrote: > > > +static spinlock_t *cpm1_port_locks; > > +static int cpm1_num_ports; > > Having an array of spinlocks is rather unusual and normally not necessary. > Did you measure a sig

Re: [PATCH 2/3] mpc82xx: Embedded Planet EP8248E support

2007-12-12 Thread Stephen Rothwell
On Wed, 12 Dec 2007 16:48:24 -0600 Scott Wood <[EMAIL PROTECTED]> wrote: > > Stephen Rothwell wrote: > >> + ep8248e_bcsr = of_iomap(ep8248e_bcsr_node, 0); > > > > of_node_put(ep8248e_bcsr_node; > > No, because we hold on to the node for later use in ep8248e_mdio_probe(). Sorry, you are right, I

Re: [PATCH 2/2] kdump shutdown hook support

2007-12-12 Thread Michael Neuling
> > > + if (setjmp(crash_shutdown_buf) == 0) { > > + asm volatile("sync; isync"); > > + crash_shutdown_handles[i](); > > + asm volatile("sync; isync"); > > + __delay(200); > > This looks a bit random. Why the handc

[PATCH 1/3] ps3: vuart: fix error path locking

2007-12-12 Thread Daniel Walker
This stray down would cause a permanent sleep which doesn't seem correct. The other uses of this semaphore appear fairly mutex like it's even initialized with init_MUTEX() .. So here a patch for removing this one down(). Signed-off-by: Daniel Walker <[EMAIL PROTECTED]> --- drivers/ps3/ps3-vuar

Re: [PATCH 6/8] mpc83xx: timer driver for PM wakeup

2007-12-12 Thread Stephen Rothwell
Hi Scott, On Wed, 12 Dec 2007 11:36:04 -0600 Scott Wood <[EMAIL PROTECTED]> wrote: > > +static int __devinit gtm_probe(struct of_device *dev, > + const struct of_device_id *match) > +{ . . . > +out: Just for consistency, you probably want

Re: [PATCH 2/2] kdump shutdown hook support

2007-12-12 Thread Michael Neuling
In message <[EMAIL PROTECTED]> you wrote: > > --=-Kza0KCx0MG8nsjfq7kOz > Content-Type: text/plain > Content-Transfer-Encoding: quoted-printable > > On Wed, 2007-12-12 at 16:45 +1100, Michael Neuling wrote: > > This adds hooks into the default_machine_crash_shutdown so drivers can > > register a

Re: [PATCH 1/2] Make setjmp/longjmp code generic

2007-12-12 Thread Michael Neuling
> > arch/powerpc/xmon/setjmp.S| 135 > > -- > > +#ifdef CONFIG_XMON > > +/* > > + * Grab the register values as they are now. > > + * This won't do a particularily good job because we really > > + * want our caller's caller's registers, and our cal

Re: [PATCH v2] [POWERPC] pasemi: Implement MSI support

2007-12-12 Thread Michael Ellerman
On Thu, 2007-12-13 at 09:51 +1100, Michael Ellerman wrote: > On Wed, 2007-12-12 at 01:23 -0600, Olof Johansson wrote: > > Patch looks good otherwise. By which I mean: Acked-by: Michael Ellerman <[EMAIL PROTECTED]> This patch is double-plus-good! cheers -- Michael Ellerman OzLabs, IBM Austral

Re: [PATCH 2/2] kdump shutdown hook support

2007-12-12 Thread Michael Ellerman
On Wed, 2007-12-12 at 16:45 +1100, Michael Neuling wrote: > This adds hooks into the default_machine_crash_shutdown so drivers can > register a function to be run in the first kernel before we hand off > to the second kernel. This should only be used in exceptional > circumstances, like where the

Re: [PATCH 4/8] fsl_soc: Factor fsl_get_sys_freq() out of the wdt init.

2007-12-12 Thread Stephen Rothwell
Hi Scott, Just one little nit ... On Wed, 12 Dec 2007 11:36:01 -0600 Scott Wood <[EMAIL PROTECTED]> wrote: > > - ret = platform_device_add_data(dev, freq, sizeof(int)); > + ret = platform_device_add_data(dev, &freq, sizeof(int)); ^

Re: [PATCH 1/2] Make setjmp/longjmp code generic

2007-12-12 Thread Michael Ellerman
On Wed, 2007-12-12 at 16:45 +1100, Michael Neuling wrote: > This makes the setjmp/longjmp code used by xmon, generically available > to other code. It also removes the requirement for debugger hooks to > be only called on 0x300 (data storage) exception. > > Signed-off-by: Michael Neuling <[EMAIL

[PATCH v2 2/3] mpc82xx: Embedded Planet EP8248E support

2007-12-12 Thread Scott Wood
This board is also resold by Freescale under the names "QUICCStart MPC8248 Evaluation System" and "CWH-PPC-8248N-VE". Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- arch/powerpc/boot/Makefile |3 +- arch/powerpc/boot/dts/ep8248e.dts | 193 +++ arch/powerpc/boot/ep8248

[PATCH v2 3/3] Eliminate section mismatch warning in cpm2_reset().

2007-12-12 Thread Scott Wood
Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- arch/powerpc/sysdev/cpm2_common.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/sysdev/cpm2_common.c b/arch/powerpc/sysdev/cpm2_common.c index 859362f..c1d8240 100644 --- a/arch/powerpc/sysdev/cpm2_common.

Re: [PATCH v2] [POWERPC] pasemi: Implement MSI support

2007-12-12 Thread Michael Ellerman
On Wed, 2007-12-12 at 01:23 -0600, Olof Johansson wrote: > On Wed, Dec 12, 2007 at 05:49:39PM +1100, Michael Ellerman wrote: > > Before the ugliness spreads .. I'm pretty sure we can get this from the > > chip_data of the virq - I haven't fixed it though because I wasn't sure > > if using chip_data

Re: [PATCH 2/3] mpc82xx: Embedded Planet EP8248E support

2007-12-12 Thread Scott Wood
Stephen Rothwell wrote: >> +ep8248e_bcsr = of_iomap(ep8248e_bcsr_node, 0); > > of_node_put(ep8248e_bcsr_node; No, because we hold on to the node for later use in ep8248e_mdio_probe(). BTW, is there any actual node removal done that justifies dealing with refcounts everywhere? -Scot ___

[PATCH v2 5/8] mpc83xx: Power Management support

2007-12-12 Thread Scott Wood
Basic PM support for 83xx. Standby is implemented as sleep. Suspend-to-RAM is implemented as "deep sleep" (with the processor turned off) on 831x. Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- The enabling of i-cache at the end of the suspend code somehow fell off of the code that was sent ou

Re: [PATCH/RFC] CPM1: implement GPIO API

2007-12-12 Thread Arnd Bergmann
On Wednesday 12 December 2007, Jochen Friedrich wrote: > +static spinlock_t *cpm1_port_locks; > +static int cpm1_num_ports; Having an array of spinlocks is rather unusual and normally not necessary. Did you measure a significant performance impact by using a global lock for all ports? If not, I

Re: [PATCH v5] qe: add ability to upload QE firmware

2007-12-12 Thread Arnd Bergmann
On Friday 07 December 2007, Timur Tabi wrote: > Define the layout of a binary blob that contains a QE firmware and > instructions > on how to upload it.  Add function qe_upload_firmware() to parse the blob > and perform the actual upload.  Fully define 'struct rsp' in immap_qe.h to > include the a

Re: Patches added to for-2.6.25 and master branches of powerpc.git

2007-12-12 Thread Geoff Levand
Hi Paul, This one seems to have got skipped: http://ozlabs.org/pipermail/linuxppc-dev/2007-November/046765.html -Geoff ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

Re: [PATCH RFC 0/7] "NAND on UPM" and related patches

2007-12-12 Thread Scott Wood
Scott Wood wrote: > Anton Vorontsov wrote: >> As the compromise I might suggest this: forbid pattern_start/pattern_end >> from the ISRs (by marking them as might_sleep()), and replace _irqsave >> spinlock with simple spinlock. > > No, you cannot use a bare spinlock with IRQs enabled. You'll deadl

Re: [PATCH RFC 0/7] "NAND on UPM" and related patches

2007-12-12 Thread Scott Wood
Anton Vorontsov wrote: > As the compromise I might suggest this: forbid pattern_start/pattern_end > from the ISRs (by marking them as might_sleep()), and replace _irqsave > spinlock with simple spinlock. No, you cannot use a bare spinlock with IRQs enabled. You'll deadlock on SMP, and you'll hav

Re: [PATCH RFC 0/7] "NAND on UPM" and related patches

2007-12-12 Thread Anton Vorontsov
On Wed, Dec 12, 2007 at 10:54:29AM -0600, Scott Wood wrote: > Anton Vorontsov wrote: > >On Wed, Dec 12, 2007 at 10:40:35AM -0600, Scott Wood wrote: > >>Not enough to be worth the complexity compared to the overhead of NAND > >>access -- especially in the likely case of a non-SMP build. > > > >I'm a

Re: [PATCH] IB/ehca: Serialize HCA-related hCalls if necessary

2007-12-12 Thread Roland Dreier
thanks, applied. With your next batch of patches for 2.6.25, could you clean up: > --- a/drivers/infiniband/hw/ehca/hcp_if.c > +++ b/drivers/infiniband/hw/ehca/hcp_if.c > @@ -89,6 +89,7 @@ > #define HCALL9_REGS_FORMAT HCALL7_REGS_FORMAT " r11=%lx r12=%lx" > > static DEFINE_SPINLOCK(hcal

Re: [PATCH] IB/ehca: Return correct #SGEs for SRQ

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

Re: [ewg] Re: [PATCH] IB/ehca: Serialize HCA-related hCalls on POWER5

2007-12-12 Thread Roland Dreier
> What is the fix you suggest, to add a device query that tells you for > which verbs the documentation does not apply? or enhance the code of the > map_phys_fmr verb within the ehca driver to return error if called > from non-sleepable context? I think the right fix for iSER would be to

Re: apm_emulation regression

2007-12-12 Thread Johannes Berg
On Wed, 2007-12-12 at 13:45 +1100, Benjamin Herrenschmidt wrote: > I only just noticed a huge regression that was introduced when we moved > PowerPC to the generic APM emulation code instead of our own. I'm in > large part to blame since I acked the patch... > > Basically, what we lost is the mec

Re: [ewg] Re: [PATCH] IB/ehca: Serialize HCA-related hCalls on POWER5

2007-12-12 Thread Or Gerlitz
Joachim Fenkes wrote: > Roland Dreier <[EMAIL PROTECTED]> wrote on 10.12.2007 22:47:37: >> It's an optional device feature, so this should be OK >> (although the iSER driver currently seems to depend on a device >> supporting FMRs, which is probably going to be a problem with iWARP >> support in t

[PATCH 8/8] gianfar: Magic Packet and suspend/resume support.

2007-12-12 Thread Scott Wood
Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- Jeff, can you ack this to go through Paul's tree (assuming nothing wrong with it)? drivers/net/gianfar.c | 137 - drivers/net/gianfar.h | 13 +++- drivers/net/gianfar_ethtool.c | 41

[PATCH 5/8] mpc83xx: Power Management support

2007-12-12 Thread Scott Wood
Basic PM support for 83xx. Standby is implemented as sleep. Suspend-to-RAM is implemented as "deep sleep" (with the processor turned off) on 831x. Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- arch/powerpc/platforms/83xx/Kconfig |5 + arch/powerpc/platforms/83xx/Makefile |

[PATCH 7/8] gianfar: Add flags for magic packet and MDIO.

2007-12-12 Thread Scott Wood
The magic packet flag indicates that the hardware has this capability. The MDIO flag indicates that this device's registers contain active MDIO registers, and thus this device should not be put to sleep. Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- arch/powerpc/sysdev/fsl_soc.c |7 +

[PATCH 6/8] mpc83xx: timer driver for PM wakeup

2007-12-12 Thread Scott Wood
This is a driver for the mpc83xx's GTM4 timer. It's functionality is limited to providing a wakeup source for suspend-to-RAM. Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- arch/powerpc/platforms/83xx/Kconfig |9 + arch/powerpc/platforms/83xx/Makefile |1 + arch/powerpc/platforms/83x

[PATCH 4/8] fsl_soc: Factor fsl_get_sys_freq() out of the wdt init.

2007-12-12 Thread Scott Wood
Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- arch/powerpc/sysdev/fsl_soc.c | 44 ++-- arch/powerpc/sysdev/fsl_soc.h |1 + 2 files changed, 25 insertions(+), 20 deletions(-) diff --git a/arch/powerpc/sysdev/fsl_soc.c b/arch/powerpc/sysdev/fsl_soc.c in

[PATCH 3/8] Add 6xx-style HID0_SLEEP support.

2007-12-12 Thread Scott Wood
Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- arch/powerpc/sysdev/6xx-suspend.S | 52 + arch/powerpc/sysdev/Makefile |4 +++ include/asm-powerpc/mpc6xx.h |6 3 files changed, 62 insertions(+), 0 deletions(-) create mode 100644 arch/

[PATCH 2/8] pm: Add TLF_SLEEPING hack to delay interrupt delivery when waking from sleep.

2007-12-12 Thread Scott Wood
The e300 core (and probably most other 6xx chips) can only come out of sleep mode with an interrupt. However, interrupts are logically disabled by the power management layer. This hack extends the existing doze/nap hack to also suppress the running of the interrupt handler when in sleep mode. Si

Re: cpu frequency governor regression (?)

2007-12-12 Thread Johannes Berg
Hi, > bizarre. It should default back to whatever CONFIG_CPU_FREQ_DEFAULT_* option > was set. (Arguably a bug in itself, as we don't track & restore them > on resume, so if you changed from the default after booting: splat) Hah ok, but it's still odd that it changes to a different one. > Why yo

[PATCH 1/8] Implement arch disable/enable irq hooks.

2007-12-12 Thread Scott Wood
These hooks ensure that a decrementer interrupt is not pending when suspending; otherwise, problems may occur. For example, with deep sleep on the 831x, a pending decrementer will cause a system freeze because the SoC thinks the decrementer interrupt would have woken the system, but the core must

Re: cpu frequency governor regression (?)

2007-12-12 Thread Dave Jones
On Tue, Dec 11, 2007 at 07:52:45PM +0100, Johannes Berg wrote: > Hi, > > No idea who to bother with this and maybe it's just a > misconfiguration... Apologies if my guesses are totally wrong. > > I'm currently on 2.6.24-rc3 (+wireless-2.6#everything) but couldn't find > any patches between

cpu frequency governor regression (?)

2007-12-12 Thread Johannes Berg
Hi, No idea who to bother with this and maybe it's just a misconfiguration... Apologies if my guesses are totally wrong. I'm currently on 2.6.24-rc3 (+wireless-2.6#everything) but couldn't find any patches between that and 2.6.24-rc5 that seemed relevant. On my quad powermac, I'm seeing the cpuf

Re: [PATCH RFC 1/7] [POWERPC] Implement GPIO API embryo

2007-12-12 Thread Anton Vorontsov
On Wed, Dec 12, 2007 at 10:48:47AM -0600, Scott Wood wrote: > On Mon, Dec 10, 2007 at 11:48:25PM +0300, Anton Vorontsov wrote: > > diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig > > index 232c298..596982f 100644 > > --- a/arch/powerpc/Kconfig > > +++ b/arch/powerpc/Kconfig > > @@ -73,6 +7

Re: [RFC] ehea: kdump support using new shutdown hook

2007-12-12 Thread Dave Jones
On Wed, Dec 12, 2007 at 05:53:43PM +0100, Thomas Klein wrote: > +static void ehea_update_adapter_handles(struct ehea_adapter *adapter) > +{ > +int i, k; > +int j = 0; > + > +memset(adapter->res_handles, sizeof(adapter->res_handles), 0); arguments wrong way around. Dave

Re: [PATCH RFC 7/7] [POWERPC] MPC8360E-RDK: add support for NAND on UPM

2007-12-12 Thread Scott Wood
On Mon, Dec 10, 2007 at 11:49:51PM +0300, Anton Vorontsov wrote: > + [EMAIL PROTECTED] { > + #address-cells = <2>; > + #size-cells = <1>; > + compatible = "fsl,mpc8360erdk-localbus", > + "fsl,mpc8360e-localbus", > +

[RFC] ehea: kdump support using new shutdown hook

2007-12-12 Thread Thomas Klein
This patch adds kdump support using the new PPC crash shutdown hook to the ehea driver. The driver now keeps a list of firmware handles which have to be freed in case of a crash. The crash handler does the minimum required: it frees the firmware resource handles plus broadcast/multicast registratio

Re: [PATCH RFC 3/7] [POWERPC] CPM2: implement GPIO API

2007-12-12 Thread Scott Wood
On Mon, Dec 10, 2007 at 11:48:45PM +0300, Anton Vorontsov wrote: > +EXPORT_SYMBOL_GPL(gpio_request); > +EXPORT_SYMBOL_GPL(gpio_direction_input); > +EXPORT_SYMBOL_GPL(gpio_direction_output); > +EXPORT_SYMBOL_GPL(gpio_get_value); > +EXPORT_SYMBOL_GPL(gpio_set_value); These look like APIs, not intern

Re: [PATCH RFC 0/7] "NAND on UPM" and related patches

2007-12-12 Thread Scott Wood
Anton Vorontsov wrote: > On Wed, Dec 12, 2007 at 10:40:35AM -0600, Scott Wood wrote: >> Not enough to be worth the complexity compared to the overhead of NAND >> access -- especially in the likely case of a non-SMP build. > > I'm allowing UPM access from the IRQ handlers (because nothing prevents

Re: [PATCH RFC 0/7] "NAND on UPM" and related patches

2007-12-12 Thread Anton Vorontsov
On Wed, Dec 12, 2007 at 10:40:35AM -0600, Scott Wood wrote: > On Mon, Dec 10, 2007 at 11:47:05PM +0300, Anton Vorontsov wrote: > > 5 - FSL UPM infrastructure: > > --- > > UPM address register is shared among UPMs, so we have to do > > proper locking. On the other hand, if we

Re: [PATCH RFC 1/7] [POWERPC] Implement GPIO API embryo

2007-12-12 Thread Scott Wood
On Mon, Dec 10, 2007 at 11:48:25PM +0300, Anton Vorontsov wrote: > diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig > index 232c298..596982f 100644 > --- a/arch/powerpc/Kconfig > +++ b/arch/powerpc/Kconfig > @@ -73,6 +73,10 @@ config GENERIC_FIND_NEXT_BIT > bool > default y >

[PATCH/RFC] [POWERPC] Add fixed-phy support for fs_enet

2007-12-12 Thread Jochen Friedrich
This patch adds support to use the fixed-link property of an ethernet node to fs_enet for the CONFIG_PPC_CPM_NEW_BINDING case. Signed-off-by: Jochen Friedrich <[EMAIL PROTECTED]> --- drivers/net/fs_enet/fs_enet-main.c |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff --git

[PATCH/RFC] CPM1: implement GPIO API

2007-12-12 Thread Jochen Friedrich
This is based on [PATCH RFC 3/7] [POWERPC] CPM2: implement GPIO API. Signed-off-by: Jochen Friedrich <[EMAIL PROTECTED]> --- arch/powerpc/platforms/8xx/Kconfig |1 + arch/powerpc/sysdev/commproc.c | 199 +++- 2 files changed, 199 insertions(+), 1 deletions

Re: [PATCH RFC 0/7] "NAND on UPM" and related patches

2007-12-12 Thread Scott Wood
On Mon, Dec 10, 2007 at 11:47:05PM +0300, Anton Vorontsov wrote: > 5 - FSL UPM infrastructure: > --- > UPM address register is shared among UPMs, so we have to do > proper locking. On the other hand, if we know that specific > board using only one UPM we could bypass locking

Re: [PATCH RFC 0/7] "NAND on UPM" and related patches

2007-12-12 Thread Scott Wood
On Mon, Dec 10, 2007 at 11:47:05PM +0300, Anton Vorontsov wrote: > 6. FSL UPM NAND driver: > --- > It's using FSL UPM functions and GPIO API. It does not implement > device tree partitions parsing. That issue is completely other > matter, that is, I have to factor out parsing fu

Re: [PATCH v5] qe: add ability to upload QE firmware

2007-12-12 Thread Kumar Gala
On Dec 12, 2007, at 9:17 AM, Timur Tabi wrote: > Timur Tabi wrote: >> Define the layout of a binary blob that contains a QE firmware and >> instructions >> on how to upload it. Add function qe_upload_firmware() to parse >> the blob >> and perform the actual upload. Fully define 'struct rsp'

Re: [PATCH RFC 3/7] [POWERPC] CPM2: implement GPIO API

2007-12-12 Thread Anton Vorontsov
On Wed, Dec 12, 2007 at 04:49:46PM +0100, Jochen Friedrich wrote: > Hi Anton, > > > +int gpio_direction_input(unsigned int gpio) > > +{ > > + unsigned long flags; > > + int port = gpio / 32; > > + int pin = gpio % 32; > > + > > + spin_lock_irqsave(&cpm2_port_locks[port], flags); > > + > >

Re: [ewg] Re: [PATCH] IB/ehca: Serialize HCA-related hCalls on POWER5

2007-12-12 Thread Christoph Raisch
Or Gerlitz <[EMAIL PROTECTED]> wrote on 12.12.2007 13:14:25: > Joachim Fenkes wrote: > > Roland Dreier <[EMAIL PROTECTED]> wrote on 10.12.2007 22:47:37: > > >> It's an optional device feature, so this should be OK > >> (although the iSER driver currently seems to depend on a device > >> supporting

Re: [PATCH RFC 3/7] [POWERPC] CPM2: implement GPIO API

2007-12-12 Thread Jochen Friedrich
Hi Anton, > +int gpio_direction_input(unsigned int gpio) > +{ > + unsigned long flags; > + int port = gpio / 32; > + int pin = gpio % 32; > + > + spin_lock_irqsave(&cpm2_port_locks[port], flags); > + > + cpm2_set_pin(port, pin, CPM_PIN_INPUT | CPM_PIN_GPIO); > +int gpio_direct

Re: [PATCH 2/2] ucc_geth: use rx-clock-name and tx-clock-name device tree properties

2007-12-12 Thread Timur Tabi
Timur Tabi wrote: > Updates the ucc_geth device driver to check the new rx-clock-name and > tx-clock-name properties first. If present, it uses the new function > qe_clock_source() to obtain the clock source. Otherwise, it checks the > deprecated rx-clock and tx-clock properties. > > Update the

Re: [PATCH 1/2] qe: add function qe_clock_source()

2007-12-12 Thread Timur Tabi
Timur Tabi wrote: > Add function qe_clock_source() which takes a string containing the name of a > QE clock source (as is typically found in device trees) and returns the > matching enum qe_clock value. > > Update booting-without-of.txt to indicate that the UCC properties rx-clock > and tx-clock a

Re: [PATCH v5] qe: add ability to upload QE firmware

2007-12-12 Thread Timur Tabi
Timur Tabi wrote: > Define the layout of a binary blob that contains a QE firmware and > instructions > on how to upload it. Add function qe_upload_firmware() to parse the blob > and perform the actual upload. Fully define 'struct rsp' in immap_qe.h to > include the actual RISC Special Registers

Re: [PATCH] Fix rounding bug in emulation for double floatoperating

2007-12-12 Thread Kumar Gala
>> When I run this on a G5 (w/HW FP) I get: >> >> dmul 3fe0 * 1 = 0 expected 0 (PASS) >> dmul bfe0 * 1 = 8000 expected 0 (PASS) >> dmul 8001 * bfe0 = 0 expected 0 (PASS) >> >> ddiv 1 / 4000 = 0 expected 0 (PASS) >> >> and on th

Re: Lnux 2.6.24-rc5

2007-12-12 Thread Subrata Modak
On Wed, 2007-12-12 at 06:54 -0600, Josh Boyer wrote: > On Wed, 12 Dec 2007 15:25:01 +0530 > Subrata Modak <[EMAIL PROTECTED]> wrote: > > > On Mon, 2007-12-10 at 21:40 -0800, Linus Torvalds wrote: > > > It's been a week, and I promised to be a good boy and try to follow my > > > release rules, so

Re: Lnux 2.6.24-rc5

2007-12-12 Thread Josh Boyer
On Wed, 12 Dec 2007 15:25:01 +0530 Subrata Modak <[EMAIL PROTECTED]> wrote: > On Mon, 2007-12-10 at 21:40 -0800, Linus Torvalds wrote: > > It's been a week, and I promised to be a good boy and try to follow my > > release rules, so here is the next -rc. > > > > Things _have_ slowed down, althoug

Re: [PATCH RFC 0/7] "NAND on UPM" and related patches

2007-12-12 Thread Anton Vorontsov
On Tue, Dec 11, 2007 at 11:36:47AM +1100, David Gibson wrote: [...] > > > > OF device tree GPIOs bindings are similar to IRQs: > > > > > > > > node { > > > > gpios = ; > > > > gpio-parent = <&par_io_controller>; > > > > }; > > > > > > > > "bank pin" scheme is controller specific,

Re: Lnux 2.6.24-rc5

2007-12-12 Thread Subrata Modak
On Mon, 2007-12-10 at 21:40 -0800, Linus Torvalds wrote: > It's been a week, and I promised to be a good boy and try to follow my > release rules, so here is the next -rc. > > Things _have_ slowed down, although I'd obviously be lying if I said we've > got all the regressions handled and under c

Re: [PATCH 1/2] Make setjmp/longjmp code generic

2007-12-12 Thread Michael Neuling
> On Wed, 2007-12-12 at 20:37 +1100, Stephen Rothwell wrote: > > On Wed, 12 Dec 2007 19:06:54 +1100 Benjamin Herrenschmidt <[EMAIL PROTECTED] hing.org> wrote: > > > > > > Time to introduce a merged misc.S ? :-) > > > > We already have one ... > > Hah ! I should have looked :-) Me too! :-) Sorry

Re: [PATCH RFC 0/7] "NAND on UPM" and related patches

2007-12-12 Thread David Gibson
On Tue, Dec 11, 2007 at 02:10:52AM +0300, Anton Vorontsov wrote: > On Tue, Dec 11, 2007 at 10:04:53AM +1100, David Gibson wrote: > > On Mon, Dec 10, 2007 at 11:47:05PM +0300, Anton Vorontsov wrote: > > > Hi all, > > > > > > Here are patches to support NAND on UPM. That driver is generic for > > >

Re: [PATCH 1/2] Make setjmp/longjmp code generic

2007-12-12 Thread Benjamin Herrenschmidt
On Wed, 2007-12-12 at 20:37 +1100, Stephen Rothwell wrote: > On Wed, 12 Dec 2007 19:06:54 +1100 Benjamin Herrenschmidt <[EMAIL PROTECTED]> > wrote: > > > > Time to introduce a merged misc.S ? :-) > > We already have one ... Hah ! I should have looked :-) Ben.

Re: [PATCH 1/2] Make setjmp/longjmp code generic

2007-12-12 Thread Stephen Rothwell
On Wed, 12 Dec 2007 19:06:54 +1100 Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > > Time to introduce a merged misc.S ? :-) We already have one ... -- Cheers, Stephen Rothwell[EMAIL PROTECTED] http://www.canb.auug.org.au/~sfr/ pgpDFBPRg7zUg.pgp Description: PGP signat

Re: [PATCH] Fix rounding bug in emulation for double floatoperating

2007-12-12 Thread Zang Roy-r61911
On Tue, 2007-12-11 at 23:26, Kumar Gala wrote: > >> > >> how did you find this? > >> > > It supposed to run the following test case on a powerpc platform. > > Yu's patch fixes the issue. > > Could you help to merge this patch in your tree? > > --- > > #include > > #include > > #include > > #ifde

Re: [PATCH 1/2] Make setjmp/longjmp code generic

2007-12-12 Thread Benjamin Herrenschmidt
On Wed, 2007-12-12 at 01:59 -0600, Kumar Gala wrote: > On Dec 11, 2007, at 11:45 PM, Michael Neuling wrote: > > > This makes the setjmp/longjmp code used by xmon, generically available > > to other code. It also removes the requirement for debugger hooks to > > be only called on 0x300 (data stor

Re: [PATCH 1/2] Make setjmp/longjmp code generic

2007-12-12 Thread Kumar Gala
On Dec 11, 2007, at 11:45 PM, Michael Neuling wrote: > This makes the setjmp/longjmp code used by xmon, generically available > to other code. It also removes the requirement for debugger hooks to > be only called on 0x300 (data storage) exception. > > Signed-off-by: Michael Neuling <[EMAIL PROT