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

2007-12-11 Thread Paul Mackerras
Benjamin Herrenschmidt (7): [POWERPC] Make isa_mem_base common to 32 and 64 bits [POWERPC] Merge pci_process_bridge_OF_ranges() [POWERPC] Fix powerpc 32-bit resource fixup for 64-bit resources [POWERPC] Change 32-bit PCI message about resource allocation [POWERPC]

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

2007-12-11 Thread Balbir Singh
On Dec 11, 2007 10:59 AM, Paul Mackerras [EMAIL PROTECTED] wrote: [snip] Hi, Paul, Any chance we could get in Fake NUMA nodes patch at http://lkml.org/lkml/2007/12/7/294? Should I get it into -mm first? It was acked by Olof at http://lkml.org/lkml/2007/12/10/247. Thanks, Balbir Singh

[PATCH 2.6.25 4/5] via-pmu: kill sleep notifiers completely

2007-12-11 Thread Johannes Berg
This patch kills off the remnants of the ancient sleep notifiers. Signed-off-by: Johannes Berg [EMAIL PROTECTED] Cc: Benjamin Herrenschmidt [EMAIL PROTECTED] --- drivers/macintosh/via-pmu.c | 71 include/linux/pmu.h | 36

[PATCH 2.6.25 0/5] PMU updates including suspend

2007-12-11 Thread Johannes Berg
Since none of the patches seem to have made it into any git tree so far, here's a resend of my patch series that removes/replaces the adb suspend notifiers and makes PMU suspend usable via /sys/power/state. I have submitted a patch to allow turning off the freezer to Rafael separately who had

[PATCH 2.6.25 1/5] PMU: dont lock_kernel()

2007-12-11 Thread Johannes Berg
I see nothing that this lock_kernel() actually protects against so remove it. Signed-off-by: Johannes Berg [EMAIL PROTECTED] Acked-by: Benjamin Herrenschmidt [EMAIL PROTECTED] --- drivers/macintosh/via-pmu.c |3 --- 1 file changed, 3 deletions(-) ---

[PATCH 2.6.25 3/5] adb: replace sleep notifier with platform driver suspend/resume hooks

2007-12-11 Thread Johannes Berg
This patch replaces the pmu sleep notifier that adb had with suspend/resume hooks in a new platform driver/device. Signed-off-by: Johannes Berg [EMAIL PROTECTED] Cc: Benjamin Herrenschmidt [EMAIL PROTECTED] --- drivers/macintosh/adb.c | 96 1

[PATCH 2.6.25 2/5] PMU: remove dead code

2007-12-11 Thread Johannes Berg
Some code in via-pmu.c is never compiled because of compile options within the file. Remove the code completely. Signed-off-by: Johannes Berg [EMAIL PROTECTED] Acked-by: Benjamin Herrenschmidt [EMAIL PROTECTED] --- drivers/macintosh/via-pmu.c | 42 +- 1

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

2007-12-11 Thread Jon Loeliger
So, like, the other day Paul Mackerras mumbled: Jon Loeliger (2): [POWERPC] Clean out asm/of_{platform, device}.h [POWERPC] Clean out asm/of_{platform, device}.h from sysdev/ Excellent, thanks! That leaves just this following patch from my janitor series.

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

2007-12-11 Thread Kumar Gala
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 stdio.h #include math.h #include bits/nan.h #ifdef __SPE__ #include spe.h int getSPEFSCR() { return

Re: [RFC][POWERPC] Provide a way to protect 4k subpages when using 64k pages

2007-12-11 Thread Christoph Hellwig
On Fri, Dec 07, 2007 at 05:09:27PM +1100, Paul Mackerras wrote: Implicit in this is that the regions of the address space that are protected are switched to use 4k hardware pages rather than 64k hardware pages (on machines with hardware 64k page support). In fact the whole process is switched

Re: [PATCH] [POWERPC][RFC] MPC8360E-RDK: Device tree and board file

2007-12-11 Thread Anton Vorontsov
On Tue, Dec 11, 2007 at 11:30:27AM +1100, Stephen Rothwell wrote: On Mon, 10 Dec 2007 23:29:34 +0300 Anton Vorontsov [EMAIL PROTECTED] wrote: +++ b/arch/powerpc/platforms/83xx/mpc836x_rdk.c + +static void __init mpc836x_rdk_setup_arch(void) +{ + struct device_node *np; + + if

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

2007-12-11 Thread Arnd Bergmann
On Tuesday 11 December 2007, Jon Loeliger wrote: So, like, the other day Paul Mackerras mumbled: Jon Loeliger (2):       [POWERPC] Clean out asm/of_{platform, device}.h       [POWERPC] Clean out asm/of_{platform, device}.h from sysdev/ Excellent, thanks! That leaves just this

Re: [PATCH] [POWERPC][RFC] MPC8360E-RDK: Device tree and board file

2007-12-11 Thread Kumar Gala
On Dec 10, 2007, at 2:29 PM, Anton Vorontsov wrote: This is new board made by Freescale Semiconductor Inc. and Logic Product Development. Currently supported: 1. UEC1,2 (UEC2 doesn't work, but I'm sure this is firmware issue) 2. I2C 3. SPI 4. NS16550 serial Not supported so far: 1.

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

2007-12-11 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.c

[PATCH 1/2] wrapper: rename offset in offset_devp().

2007-12-11 Thread Scott Wood
fdt_wrapper_create_node passes a variable called offset to offset_devp(), which uses said parameter to initialize a local variable called offset. Due to one of the odder aspects of the C language, the result is an undefined variable, with no error or warning. Signed-off-by: Scott Wood [EMAIL

[PATCH 2/2] wrapper: Treat NULL as root node in devp_offset; add devp_offset_find().

2007-12-11 Thread Scott Wood
Many operations, as currently used in the wrapper, assume they can pass NULL and have it be treated as the root node. However, libfdt-wrapper converts NULL to -1, which is only appropriate when searching for nodes, and will cause an error otherwise. Signed-off-by: Scott Wood [EMAIL PROTECTED]

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

2007-12-11 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/ep8248e.c

Re: [RFC][POWERPC] Provide a way to protect 4k subpages when using 64k pages

2007-12-11 Thread Arnd Bergmann
On Tuesday 11 December 2007, Christoph Hellwig wrote: Using 4k pages should basically be a pre-process flag (which it already is as an implementation detail in your patch), and thus the proper way to mark it should be a personality flag.  This also means it could be implied by certain

Re: [RFC][POWERPC] Provide a way to protect 4k subpages when using 64k pages

2007-12-11 Thread Paul Mackerras
Christoph Hellwig writes: As Arnd said reusing an old system call slot seems rather dangerous, I'd rather avoid it. Sure. I don't mind allocating a new syscall for this. But I wonder whether we really need a new syscall. Using 4k pages should basically be a pre-process flag (which it

Re: [PATCH 0/5] Series to add device tree naming to i2c

2007-12-11 Thread Geert Uytterhoeven
On Mon, 10 Dec 2007, Jon Smirl wrote: Respin to split error return fixups out of mpc-i2c to of_platform change The following series implements standard linux module aliasing for i2c modules It then converts the mpc i2c driver from being a platform driver to an open firmware one. I2C device

Re: [PATCH 0/5] Series to add device tree naming to i2c

2007-12-11 Thread Jon Smirl
On 12/11/07, Geert Uytterhoeven [EMAIL PROTECTED] wrote: On Mon, 10 Dec 2007, Jon Smirl wrote: Respin to split error return fixups out of mpc-i2c to of_platform change The following series implements standard linux module aliasing for i2c modules It then converts the mpc i2c driver

Re: [RFC][POWERPC] Provide a way to protect 4k subpages when using 64k pages

2007-12-11 Thread Benjamin Herrenschmidt
On Tue, 2007-12-11 at 16:53 +0100, Christoph Hellwig wrote: All these process would use plain mmap/ mprotect to deal with the subpage protections. That seems very hard to do ... all of the generic code here only knows about the base page size, so except if we're going to fully re-implement the

Re: [PATCH 2/5] PowerPC 74xx: Minor updates to MV64x60 boot code

2007-12-11 Thread Mark A. Greer
On Thu, Nov 29, 2007 at 06:35:55PM +0300, Andrei Dolnikov wrote: Hi Andrei. I have a few comments below. This patch adds new functionality to MV64x60 boot code. The changes are required to access DevCS windows registers and set PCI bus and devfn numbers for MV644x60 PCI/PCI-X interfaces.

[PATCH] Introduce driver_create/remove_dir

2007-12-11 Thread Stephen Rothwell
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 changed, 34 insertions(+), 8 deletions(-) Greg, does this look like a reasonable

Re: [PATCH 3/5] PowerPC 74xx: Katana Qp bootwrapper

2007-12-11 Thread Mark A. Greer
On Thu, Nov 29, 2007 at 06:39:51PM +0300, Andrei Dolnikov wrote: Bootwrapper sources for Emerson Katana Qp Signed-off-by: Andrei Dolnikov [EMAIL PROTECTED] --- Makefile |3 cuboot-katanaqp.c | 470 ++ 2 files changed,

Re: [PATCH] Introduce driver_create/remove_dir

2007-12-11 Thread Randy Dunlap
On Wed, 12 Dec 2007 10:56:33 +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 changed, 34

Re: [PATCH 4/5] PowerPC 74xx: Katana Qp base support

2007-12-11 Thread Mark A. Greer
On Thu, Nov 29, 2007 at 06:42:00PM +0300, Andrei Dolnikov wrote: Emerson Katana Qp platform specific code Signed-off-by: Andrei Dolnikov [EMAIL PROTECTED] Acked-by: Mark A. Greer [EMAIL PROTECTED] ___ Linuxppc-dev mailing list

initrd - /dev

2007-12-11 Thread Siva Prasad
Hi, I have a initrd image that I am trying to use on 8641D. When I mount it on a regular PC (using mount -o loop ramdisk file dir), I can see all the required files in /dev directory. However, after loading the same ramdisk file.gz into the target board, all the files in /dev is missing, making

apm_emulation regression

2007-12-11 Thread Benjamin Herrenschmidt
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 mechanism for notifying user applications and waiting for their ACK before

Re: [PATCH] Introduce driver_create/remove_dir

2007-12-11 Thread Stephen Rothwell
On Tue, 11 Dec 2007 16:40:39 -0800 Randy Dunlap [EMAIL PROTECTED] wrote: On Wed, 12 Dec 2007 10:56:33 +1100 Stephen Rothwell wrote: +/** + * driver_remove_dir - remove a subdirectory for a driver. + * @drv: driver. + * @attr: driver attribute descriptor. Second arg below is

Re: [PATCH 2.6.25 5/5] powermac: proper sleep management

2007-12-11 Thread Paul Mackerras
I wrote: Johannes Berg writes: This adds platform_suspend_ops for PMU based machines, directly in the PMU driver. This finally allows suspending via /sys/power/state on powerbooks. Does this depend on your Kconfig patches? You add references to CONFIG_SUSPEND but I don't see that

Re: [PATCH 2.6.25 5/5] powermac: proper sleep management

2007-12-11 Thread Paul Mackerras
Johannes Berg writes: This adds platform_suspend_ops for PMU based machines, directly in the PMU driver. This finally allows suspending via /sys/power/state on powerbooks. Does this depend on your Kconfig patches? You add references to CONFIG_SUSPEND but I don't see that symbol being added

[PATCH] [POWERPC] iSeries: don't printk with HV spinlock held.

2007-12-11 Thread Stephen Rothwell
Printk was observed to hang during module unload due to a limited window of characters that may be sent to the hypervisor. The window only reexpands when we receive an ack from the HV and the spinlock here prevents us from ever processing that ack. Signed-off-by: Stephen Rothwell [EMAIL

[PATCH] [POWERPC] iSeries: fix unregistering HV event handlers.

2007-12-11 Thread Stephen Rothwell
Commit fbd568a3e61a7decb8a754ad952aaa5b5c82e9e5 (Change synchronize_kernel to _rcu and _sched) changed the deprecated synchronize_kernel() in HvLpEvent_unregisterHandler() to synchronize_rcu(). It turns out that it should have been synchronize_sched(). Signed-off-by: Stephen Rothwell [EMAIL

Re: [PATCH 1/2] wrapper: rename offset in offset_devp().

2007-12-11 Thread Stephen Rothwell
On Tue, 11 Dec 2007 15:23:04 -0600 Scott Wood [EMAIL PROTECTED] wrote: #define offset_devp(off) \ ({ \ - int offset = (off); \ - check_err(offset) ? NULL : (void *)(offset+1); \ + int _offset = (off); \ + check_err(_offset) ? NULL :

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

2007-12-11 Thread Stephen Rothwell
On Tue, 11 Dec 2007 15:22:47 -0600 Scott Wood [EMAIL PROTECTED] wrote: +++ b/arch/powerpc/platforms/82xx/ep8248e.c + +static int __devinit ep8248e_mdio_probe(struct of_device *ofdev, +const struct of_device_id *match) +{ + struct mii_bus *bus; +

[PATCH] [POWERPC] FSL: I2C device tree cleanups

2007-12-11 Thread Kumar Gala
* Removed device_type = i2c * Added missing second I2C controller on MPC8548 CDS, MPC8544 DS * Added #address-cells, #size-cells, and cell-index where missing --- arch/powerpc/boot/dts/kuroboxHD.dts |2 +- arch/powerpc/boot/dts/kuroboxHG.dts |2 +-

[PATCH 0/13] [POWERPC] PCI updates merges

2007-12-11 Thread Benjamin Herrenschmidt
(THIS SERIES STILL NEEDS MORE TESTING) (This version is rebased on top of current for-2.6.25, my remaining 4xx patches will apply on top of this) This serie of patches converts the 32 bits PCI code to use the generic pci_assign_unassigned_resources() instead of its own assignment code which was

[PATCH 2/13] [POWERPC] pci32: use generic pci_assign_unassign_resources

2007-12-11 Thread Benjamin Herrenschmidt
This makes the 32 bits PowerPC PCI code use the generic code to assign resources to devices that had unassigned or conflicting resources. This allow to remove the local implementation that was incomplete and could not assign for example a PCI-PCI bridge from scratch, which is needed on various

[PATCH 3/13] [POWERPC] pci32: Remove PowerMac P2P bridge IO hack

2007-12-11 Thread Benjamin Herrenschmidt
The 32 bits PowerPC PCI code has a hack for use by some PowerMacs to try to re-open PCI-PCI bridge IO resources that were closed by the firmware. This is no longer necessary as the generic code will now do that for us. Signed-off-by: Benjamin Herrenschmidt [EMAIL PROTECTED] ---

[PATCH 4/13] [POWERPC] pci32: Add flags modifying the PCI code behaviour

2007-12-11 Thread Benjamin Herrenschmidt
This adds to the 32 bits PCI code some flags, replacing the old pci_assign_all_busses global, that allow to control various aspects of the PCI probing, such as whether to re-assign all resources or not, or to not try to assign anything at all. This also adds the flag x86 already has to avoid ISA

[PATCH 1/13] [POWERPC] pci32: remove bogus alignment message

2007-12-11 Thread Benjamin Herrenschmidt
There's a stale bogus piece of code in 32 bits PCI code that complains about ISA related alignment issues. Just remove it. Signed-off-by: Benjamin Herrenschmidt [EMAIL PROTECTED] --- arch/powerpc/kernel/pci_32.c |7 --- 1 file changed, 7 deletions(-) diff --git

[PATCH 5/13] [POWERPC] pci32: Remove obsolete PowerMac bus number hack

2007-12-11 Thread Benjamin Herrenschmidt
The 32 bits PCI code carries an old hack that was only useful for G5 machines. Nowdays, the 32 bits kernel doesn't support any of those machines anymore so the hack is basically never used, remove it. Signed-off-by: Benjamin Herrenschmidt [EMAIL PROTECTED] --- arch/powerpc/kernel/pci_32.c |

[PATCH 6/13] [POWERPC] pci32: Add platform option to enable /proc PCI domains

2007-12-11 Thread Benjamin Herrenschmidt
This adds flags the platforms can use to enable domain numbers in /proc/bus/pci. Signed-off-by: Benjamin Herrenschmidt [EMAIL PROTECTED] --- arch/powerpc/kernel/pci-common.c | 16 arch/powerpc/kernel/pci_64.c |8 include/asm-powerpc/pci-bridge.h |5 +

[PATCH 7/13] [POWERPC] Merge pcibios_resource_to_bus/bus_to_resource

2007-12-11 Thread Benjamin Herrenschmidt
This merges the PowerPC 32 and 64 bits version of pcibios_resource_to_bus and pcibios_bus_to_resource(). Signed-off-by: Benjamin Herrenschmidt [EMAIL PROTECTED] --- arch/powerpc/kernel/pci-common.c | 36 arch/powerpc/kernel/pci_32.c | 32

[PATCH 8/13] [POWERPC] Merge PCI resource fixups

2007-12-11 Thread Benjamin Herrenschmidt
The PCI code in 32 and 64 bits fixes up resources differently. 32 bits uses a header quirk plus handles bridges in pcibios_fixup_bus() while 64 bits does things in various places depending on whether you are using OF probing, using PCI hotplug, etc... This merges those by basically using the 32

[PATCH 9/13] [POWERPC] Merge PCI resource allocation assignment

2007-12-11 Thread Benjamin Herrenschmidt
The 32 bits PCI code now uses the generic code for assigning unassigned resources and an algorithm similar to x86 for claiming existing ones. This works far better than the 64 bits code which basically can only claim existing ones (pci_probe_only=1) or would fall appart completely. This merges

[PATCH 10/13] [POWERPC] Updates/fixes to 32 bits pcibios_enable_device()

2007-12-11 Thread Benjamin Herrenschmidt
Our implementation of pcibios_enable_device() incorrectly ignores the mask argument and always checks that all resources have been allocated which isn't the right thing to do anymore. Signed-off-by: Benjamin Herrenschmidt [EMAIL PROTECTED] --- arch/powerpc/kernel/pci_32.c | 10 -- 1

[PATCH 12/13] [POWERPC] Fixup powermac enable device hook

2007-12-11 Thread Benjamin Herrenschmidt
Powermac's use of the pcibios_enable_device_hook() got slightly broken by the recent PCI merge in that it won't be called for the initial case of assigning resources to a previously unassigned device. This was an abuse of that hook anyway, so instead we now use a header quirk. While at it, we

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

2007-12-11 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. Signed-off-by: Michael Neuling [EMAIL PROTECTED] --- arch/powerpc/kernel/misc_64.S | 124

[PATCH 2/2] kdump shutdown hook support

2007-12-11 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

Re: [PATCH] [POWERPC] iSeries: fix unregistering HV event handlers.

2007-12-11 Thread Paul E. McKenney
On Wed, Dec 12, 2007 at 03:00:56PM +1100, Stephen Rothwell wrote: Commit fbd568a3e61a7decb8a754ad952aaa5b5c82e9e5 (Change synchronize_kernel to _rcu and _sched) changed the deprecated synchronize_kernel() in HvLpEvent_unregisterHandler() to synchronize_rcu(). It turns out that it should have

[PATCH 11/13] [POWERPC] Merge 32 and 64 bits pcibios_enable_device

2007-12-11 Thread Benjamin Herrenschmidt
This merge the two implementations, based on the previously fixed up 32 bits one. The pcibios_enable_device_hook in ppc_md is now available for ppc64 use. Also remove the new unused initial parameter from it and fixup users. Signed-off-by: Benjamin Herrenschmidt [EMAIL PROTECTED] ---

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

2007-12-11 Thread Olof Johansson
[POWERPC] pasemi: Implement MSI support Implement MSI support for PA Semi PWRficient platforms. MSI is done through a special range of sources on the openpic controller, and they're unfortunately breaking the usual concepts of how sources are programmed: * The source is calculated as 512 + the

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

2007-12-11 Thread Michael Ellerman
On Wed, 2007-12-12 at 00:44 -0600, Olof Johansson wrote: [POWERPC] pasemi: Implement MSI support Implement MSI support for PA Semi PWRficient platforms. MSI is done through a special range of sources on the openpic controller, and they're unfortunately breaking the usual concepts of how

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

2007-12-11 Thread Olof Johansson
Hi, A couple of comments below. -Olof On Wed, Dec 12, 2007 at 04:45:12PM +1100, Michael Neuling wrote: Index: linux-2.6-ozlabs/arch/powerpc/kernel/crash.c === --- linux-2.6-ozlabs.orig/arch/powerpc/kernel/crash.c +++

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

2007-12-11 Thread Olof Johansson
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 was kosher or not. Hmm, maybe. I can forsee MSI and legacy

[PATCH] [POWERPC] FSL: enet device tree cleanups

2007-12-11 Thread Kumar Gala
* Removed address fields in ethernet nodes * Removed #address-cells, #size-cells from gianfar nodes * Added cell-index to gianfar and ucc ethernet nodes * Added enet[0..3] labels * Renamed compatible node for gianfar mdio to fsl,gianfar-mdio * Removed device_type = mdio The matching for gianfar

[PATCH] [POWERPC] FSL: Added aliases node to device trees

2007-12-11 Thread Kumar Gala
Added aliases nodes for kurobox, 83xx, 85xx, and 86xx platforms. This included added labels and cell-index properties for serial and pci nodes. Signed-off-by: Kumar Gala [EMAIL PROTECTED] --- arch/powerpc/boot/dts/kuroboxHD.dts | 14 +++--- arch/powerpc/boot/dts/kuroboxHG.dts