Re: [PATCH v2] pcmcia: Convert io_req_t to use kio_addr_t

2007-09-21 Thread Matthew Wilcox
On Fri, Sep 21, 2007 at 11:39:36PM +0100, Alan Cox wrote: > On Fri, 21 Sep 2007 17:15:16 -0500 > Olof Johansson <[EMAIL PROTECTED]> wrote: > > > Convert the io_req_t members to kio_addr_t, to allow use on machines with > > more than 16 bits worth of IO ports (i.e. secondary busses on ppc64, etc).

Re: 2.6.23-rc6-mm1: Build failures on ppc64_defconfig

2007-09-21 Thread Satyam Sharma
On Thu, 20 Sep 2007, Satyam Sharma wrote: > > BTW ppc64_defconfig didn't quite like 2.6.23-rc6-mm1 either ... > IIRC I got build failures in: > drivers/net/spider_net.c [PATCH -mm] spider_net: Misc build fixes after recent netdev stats changes Unbreak the following: drivers/net/spider_net.c

Re: 2.6.23-rc6-mm1: Build failures on ppc64_defconfig

2007-09-21 Thread Satyam Sharma
On Thu, 20 Sep 2007, Satyam Sharma wrote: > > BTW ppc64_defconfig didn't quite like 2.6.23-rc6-mm1 either ... > IIRC I got build failures in: > drivers/md/raid6int8.c This turned out to be a gcc bug -- I was using an old cross-compiler. ___ Linuxppc-

Re: 2.6.23-rc6-mm1: Build failures on ppc64_defconfig

2007-09-21 Thread Satyam Sharma
On Thu, 20 Sep 2007, Satyam Sharma wrote: > > BTW ppc64_defconfig didn't quite like 2.6.23-rc6-mm1 either ... > IIRC I got build failures in: > drivers/ata/pata_scc.c http://lkml.org/lkml/2007/9/21/557 ___ Linuxppc-dev mailing list Linuxppc-dev@ozlab

Re: [patch 04/28] Add cmpxchg64 and cmpxchg64_local to powerpc

2007-09-21 Thread Paul Mackerras
Mathieu Desnoyers writes: > Make sure that at least cmpxchg64_local is available on all architectures to > use > for unsigned long long values. > > Signed-off-by: Mathieu Desnoyers <[EMAIL PROTECTED]> Acked-by: Paul Mackerras <[EMAIL PROTECTED]> ___ L

Re: 2.6.23-rc6-mm1: Build failure on ppc64 drivers/ata/pata_scc.c

2007-09-21 Thread Satyam Sharma
Hi, On Thu, 20 Sep 2007, Alan Cox wrote: > > On Thu, 20 Sep 2007 14:13:15 +0100 > [EMAIL PROTECTED] (Mel Gorman) wrote: > > > PPC64 building allmodconfig fails to compile drivers/ata/pata_scc.c . It > > doesn't show up on other arches because this driver is specific to the > > architecture. > >

Re: DTC Patch for Cygwin

2007-09-21 Thread David Gibson
On Fri, Sep 21, 2007 at 03:42:04PM -0400, Matt Tyrlik wrote: > >Scott Wood <[EMAIL PROTECTED]> wrote on 09/21/2007 02:46:39 PM: > > On Fri, Sep 21, 2007 at 11:26:04AM -0400, Matt Tyrlik wrote: > > > > > > Changes required to compile DTC under Cygwin A S-o-b line will be needed before this can be a

[PATCH 2/2] qemu platform rom, v2

2007-09-21 Thread Milton Miller
Here is the second rev of patches to boot a powerpc port kernel on qemu with the prep architecture. The goal is to provide a environment for use with the existing qemu hardware suppplied hardware, as oposed to changing the qemu machine description. This patch has the changes to the boot wrapper a

[PATCH 1/2] qemu platform, v2

2007-09-21 Thread Milton Miller
Here is the second rev of patches to boot a arch powerpc kernel on qemu with the prep architecture. The goal is to provide an environment for use with the existing qemu hardware suppplied hardware, as oposed to changing the qemu machine description. This patch contains only the kernel portion. W

[PATCH 15/15] bootwrapper: recheck for command line after fixups

2007-09-21 Thread Milton Miller
After the fixups hook has run, if we still have not set a command line, check to see if fixups pointed us to one. Running as a part of fixup allows device tree interaction and error messages to be displayed. Signed-off-by: Milton Miller <[EMAIL PROTECTED]> --- The code in main presently checks fo

[PATCH 14/15] boot: add a hook to start cpus

2007-09-21 Thread Milton Miller
The kexec code is doing strange contortions with dtops.finalize and platform_ops.vmlinux_alloc to manage the slave cpus. Add a hook with the needed information. Signed-off-by: Milton Miller <[EMAIL PROTECTED]> --- vs 12181 rediff fuzz. Index: kernel/arch/powerpc/boot/kexec.c ===

[PATCH 13/15] bootwrapper: attach an empty vmlinux

2007-09-21 Thread Milton Miller
Allow the boot wrapper code to be linked without an attached vmlinux. Rather than invent a new syntax to invoke the wrapper, attach the stripped version of empty.o, which produces the same result. This new intermediary is called zBoot. Signed-off-by: Milton Miller <[EMAIL PROTECTED]> --- vs 121

[PATCH 12/15] bootwrapper: kexec extract vmlinux from initramfs

2007-09-21 Thread Milton Miller
Teach the kexec platform to find the vmlinux from the initramfs. The implementation searches the initramfs for a path specified by the property linux,kernel-path in chosen. Signed-off-by: Milton Miller <[EMAIL PROTECTED]> --- vs 12179 change property from boot-file to linux,kernel-path context d

[PATCH 11/15] bootwrapper: allow vmlinuz to be an external payload

2007-09-21 Thread Milton Miller
Allow the boot wrapper to obtain the vmlinux elf from an external platform supplied location instead of embedding it at link time. When used with the cpio library, the kernel can be stored as a file in the initramfs, allowing the same (compressed) copy of the vmlinux elf to be used for both the ke

[PATCH 10/15] bootwrapper: add cpio file extraction library.

2007-09-21 Thread Milton Miller
Add a library to search through a cpio or initramfs buffer for a specified path name. No canocalization of the path is performed. Signed-off-by: Milton Miller <[EMAIL PROTECTED]> --- vs 12177 rediff Makefile cpio.c should be reusable by a stand alone user space applicaton. Index: kernel/arch/

[PATCH 9/15] bootwrapper: rtas support

2007-09-21 Thread Milton Miller
This code provides a console write that calls put-term-char. To avoid PIC relocation of the absolute rtas addresses, hide the actual call to rtas in assembly and declare all variables as int. An instantiated rtas will be protected by a reserved range in the device tree, so no explicit call to add

[PATCH 8/15] bootwrapper: convert flatdevtree to version 16

2007-09-21 Thread Milton Miller
kexec-tools still produces a version 2 device tree, while the libraries in the wrapper only support version 16 and later. Add a routine to convert a v2 flat device tree to a v16 one inplace by inserting OF_DT_NOP and chomping full path. Make space for new headers by moving and then chomping the O

[PATCH 7/15] bootwrapper: Add kexec callable zImage wrapper

2007-09-21 Thread Milton Miller
This code creates a 32 bit zImage wrapper for a 32 or 64 bit PowerPC Linux kernel. This allows you to kexec a zImage with its compressed vmlinux instead of the uncompressed vmlinux elf. The code is also packaged as a 64 bit elf for use by kexec-tools on 64 bit kernels. Limitations: Note: the de

[PATCH 6/15] bootwrapper: help for 64 bit cpus

2007-09-21 Thread Milton Miller
Add code to check if the processor is in 64 or 32 bit mode using only instructions from the 32 bit subset. If the processor is in 64 bit mode, switch to 32 bit mode by clearing MSR[SF]. Also add a 64 bit procedure descriptor to use as a elf64 entry point. Signed-off-by: Milton Miller <[EMAIL PRO

[PATCH 5/15] bootwrapper: occuppied memory ranges

2007-09-21 Thread Milton Miller
Add a set of library routines to manage gross memory allocations. This code uses an array in bss to store upto 32 entrys with merging representing a range of memory below rma_end (aka end of real mode memory at 0). To use this code, a platform would set rma_end (find_rma_end), mark memory ranges

[PATCH 4/15] bootwrapper: smp support code

2007-09-21 Thread Milton Miller
Support code to move cpus around, both a spin loop and c code to move the cpus before uncompressing and copying the kernel to 0. The low level code is designed to be included in a crt0 or other assembly file because it may need to be at a fixed location or there may be other entry point requireme

[PATCH 3/15] boot: simplfy gunzip_finish

2007-09-21 Thread Milton Miller
Call gunzip_partial to calculate the remaining length and copy the data to the user buffer. This makes it shorter and reduces duplication. Signed-off-by: Milton Miller <[EMAIL PROTECTED]> Acked-by: David Gibson <[EMAIL PROTECTED]> --- identical content to 12170, removed extra space in change lo

[PATCH 2/15] boot: record header bytes in gunzip_start

2007-09-21 Thread Milton Miller
Record the number of header bytes skipped in the total bytes read field. This is needed for the initramfs parsing code to find the end of the zip file. Signed-off-by: Milton Miller <[EMAIL PROTECTED]> --- Identical to 12169 Index: kernel/arch/powerpc/boot/gunzip_util.c

[PATCH 1/15] boot: find initrd location from device-tree

2007-09-21 Thread Milton Miller
Some platforms have a boot agent that can create or modify properties in the device-tree and load images into memory. Provide a helper to set loader_info used by prep_initrd(). Signed-off-by: Milton Miller <[EMAIL PROTECTED]> Acked-by: David Gibson <[EMAIL PROTECTED]> --- re 12168 rediffed types

[PATCH 0/15] bootwrapper: kexec and external payloads

2007-09-21 Thread Milton Miller
The following series of 15 patches implement support for 64-bit powerpc zImage to be loaded by kexec-tools the wrapper uses the same startup interface as the kernel support for obtaining the kernel externally to the zImage link including via search

Re: [PATCH v2] pcmcia: Convert io_req_t to use kio_addr_t

2007-09-21 Thread Alan Cox
On Fri, 21 Sep 2007 17:15:16 -0500 Olof Johansson <[EMAIL PROTECTED]> wrote: > Convert the io_req_t members to kio_addr_t, to allow use on machines with > more than 16 bits worth of IO ports (i.e. secondary busses on ppc64, etc). What about the formatting and field widths ? ulong would probably

[PATCH v2] pcmcia: Convert io_req_t to use kio_addr_t

2007-09-21 Thread Olof Johansson
Convert the io_req_t members to kio_addr_t, to allow use on machines with more than 16 bits worth of IO ports (i.e. secondary busses on ppc64, etc). I've also gone through the drivers, changed the few occurrances of ioaddr_t to kio_addr_t where relevant, and changed format strings for printk()

Re: [PATCH v3 2/4] Implement generic time of day clocksource for powerpc machines.

2007-09-21 Thread Tony Breeds
Signed-off-by: Tony Breeds <[EMAIL PROTECTED]> --- Updated to create a clocksource driver specific to the 601 Updated to address feedback from sfr Only compile tested. arch/powerpc/Kconfig |6 arch/powerpc/kernel/time.c | 255 - 2 files changed, 9

Re: [PATCH v2 2/4] Implement generic time of day clocksource for powerpc machines.

2007-09-21 Thread Tony Breeds
On Fri, Sep 21, 2007 at 02:52:12PM +1000, Stephen Rothwell wrote: > Small comments. Thanks. > I think this is redundant as if __USE_RTC() is true, you register > clocksource_rtc below. Yup you're right. > The #ifdef is redundant since if CONFIG_ISERIES is not set, > firmware_has_feature(FW_FEAT

Re: DTC Patch for Cygwin

2007-09-21 Thread Matt Tyrlik
>Scott Wood <[EMAIL PROTECTED]> wrote on 09/21/2007 02:46:39 PM: > On Fri, Sep 21, 2007 at 11:26:04AM -0400, Matt Tyrlik wrote: > > > > Changes required to compile DTC under Cygwin > > > > === > > --- dtc-org.orig/tests/supernode_atdep

Re: DTC Patch for Cygwin

2007-09-21 Thread Scott Wood
On Fri, Sep 21, 2007 at 11:26:04AM -0400, Matt Tyrlik wrote: > > Changes required to compile DTC under Cygwin > > === > --- dtc-org.orig/tests/supernode_atdepth_offset.c > +++ dtc-org/tests/supernode_atdepth_offset.c > @@ -63,8 +63,1

Re: 44x bug: funny TLB writes?

2007-09-21 Thread Hollis Blanchard
On Fri, 2007-09-21 at 15:42 +1000, David Gibson wrote: > On Thu, Sep 20, 2007 at 10:34:12PM -0500, Hollis Blanchard wrote: > > I seem to have come across a strange bug while doing KVM development. It > > seems that the final tlbwe in finish_tlb (head_44x.S) is actually > > leaking RPN bits into the

Re: [PATCH 08/10] bootwrapper: Add a firmware-independent "raw" target.

2007-09-21 Thread Scott Wood
On Fri, Sep 21, 2007 at 11:31:11AM -0600, Grant Likely wrote: > Are these makefile changes complete? When I attempt to compile with > this patch I get the following error: > > [EMAIL PROTECTED]:~/hacking/linux-2.6$ ppc4xx make > CHK include/linux/version.h > CHK include/linux/utsrelea

Re: [PATCH 08/10] bootwrapper: Add a firmware-independent "raw" target.

2007-09-21 Thread Grant Likely
On 9/5/07, Scott Wood <[EMAIL PROTECTED]> wrote: > This target produces a flat binary rather than an ELF file, > fixes the entry point at the beginning of the image, and takes > a complete device tree with no fixups needed. > > The device tree must have labels on /#address-cells, the timebase > fre

DTC Patch for Cygwin

2007-09-21 Thread Matt Tyrlik
Changes required to compile DTC under Cygwin === --- dtc-org.orig/tests/supernode_atdepth_offset.c +++ dtc-org/tests/supernode_atdepth_offset.c @@ -63,8 +63,11 @@ int path_prefix(const char *path, int de return 1;

Re: AMCC yosemite 440ep PCI slot doesn't work.

2007-09-21 Thread Valentine Barshak
Andrew Liu wrote: > Hello All, > > when insert a RealTek RTL8139 network card into PCI slot, > After system boot up, > > [EMAIL PROTECTED]:/root> ifconfig eth2 192.168.17.12 > irq 25: nobody cared (try booting with the "irqpoll" option) > Call Trace: > [cf135af0] [c0008820] show_stack+0x48/0x190

AMCC yosemite 440ep PCI slot doesn't work.

2007-09-21 Thread Andrew Liu
Hello All, when insert a RealTek RTL8139 network card into PCI slot, After system boot up, [EMAIL PROTECTED]:/root> ifconfig eth2 192.168.17.12 irq 25: nobody cared (try booting with the "irqpoll" option) Call Trace: [cf135af0] [c0008820] show_stack+0x48/0x190 (unreliable) [cf135b20] [c003c414]

[PATCH 3/3] PowerPC: 440EPx/GRx incorrect write to DDR SDRAM errata workaround

2007-09-21 Thread Valentine Barshak
Add a workaround for PowerPC 440EPx/GRx incorrect write to DDR SDRAM errata. Data can be written to wrong address in SDRAM when write pipelining enabled on plb0. We disable it in the cpu_setup for these processors at early init. Signed-off-by: Valentine Barshak <[EMAIL PROTECTED]> --- arch/powe

[PATCH 2/3] PowerPC: Move 440EP(x) FPU setup from head_44x to cpu_setup_4xx

2007-09-21 Thread Valentine Barshak
The PowerPC 440EP(x) FPU init is currently done in head_44x under ifdefs. Since we should support more then one board in the same kernel, we move FPU initialization code from head_44x to cpu_setup_44x and add cpu_setup callbacks for 440EP(x). Signed-off-by: Valentine Barshak <[EMAIL PROTECTED]> --

[PATCH 1/3] PowerPC: Introduce cpu_setup functionality to 44x platform

2007-09-21 Thread Valentine Barshak
This adds cpu_setup functionality for ppc44x platform. Low level cpu-spefic initialization routines should be placed in cpu_setup_44x.S and a callback should be added to cputable. The cpu_setup is invoked by identify_cpu() function at early init. Signed-off-by: Valentine Barshak <[EMAIL PROTECTE

[PATCH 0/3] PowerPC: Add cpu_setup functionality to 44x platform

2007-09-21 Thread Valentine Barshak
This patchset adds cpu_setup functionality to PowerPC 44x, moves FPU init to cpu_setup callback and adds 440EPx/440GRx incorrect write to DDR SDRAM errata workaround. ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinf

Re: [PATCH 09/11] [POWERPC] iSeries: move detection of virtual tapes

2007-09-21 Thread Stephen Rothwell
On Fri, 21 Sep 2007 10:29:52 +0200 Christoph Hellwig <[EMAIL PROTECTED]> wrote: > > I think we should generate these device tree entires unconditionally. > They're just a conversion of what the iseries firmware/hypervisor > provides and not dependent on a specific driver. > > (dito for the other p

Re: [PATCH 09/11] [POWERPC] iSeries: move detection of virtual tapes

2007-09-21 Thread Christoph Hellwig
> +#if defined(CONFIG_VIOTAPE) || defined(CONFIG_VIOTAPE_MODULE) > +/* Handle interrupt events for tape */ > +static void __init handle_tape_event(struct HvLpEvent *event) > +{ > + struct vio_waitevent *we; > + struct viotapelpevent *tevent = (struct viotapelpevent *)event; I think we shou

[PATCH] [POWERPC] Prepare to remove of_platform_driver name

2007-09-21 Thread Stephen Rothwell
The name field of of_platform_driver is just copied into the included device_driver. By not overriding an already initialised device_driver name, we can convert the drivers over time to stop using the of_platform_driver name. Also we were not copying the owner field from of_platform_driver, so do

Re: [patch 3/3] mpc8349emitx.dts: Add ds1339 RTC

2007-09-21 Thread Peter Korsgaard
> "Scott" == Scott Wood <[EMAIL PROTECTED]> writes: Hi, Scott> #size-cells is zero on i2c, so it should just be reg = <68>. Scott> You'll probably need to add #address-cells and #size-cells to the Scott> controller node, as well. Ahh - Thanks. This should be better. --- [PATCH] mpc8349e

Triggered BUG_ON in prom.c/of_get_flat_dt_root()

2007-09-21 Thread Gerhard Pircher
Hi, I was able to boot the first cuImage build from a 2.6.23-rc7 kernel source on my AmigaOne. Unfortunately the kernel triggers a BUG_ON statement in of_get_flat_dt_root(), which is called in the probe function of my platform code. I wasn't able to capture the kernel log, but it looks similar to