Re: Maple PPC970 kexec crash-dump problems

2009-01-23 Thread Milton Miller
On Sat Jan 24 at 07:59:47 EST in 2009, Benjamin Walsh wrote: I am trying to use kexec with a crash dump kernel on a Maple board (Motorola ATCA6101 to be precise). This board is running a two-CPU PPC970FX. I am running a 2.6.27-10 kernel and have tried both older kexec-tools and the newest

Re: Maple PPC970 kexec crash-dump problems

2009-02-06 Thread Milton Miller
added to the linear map -- except it should be mapped cache inhibited so that may not work either. Basically, I am trying to figure out if I patched the tool correctly. Thanks, Ben On Sat, Jan 24, 2009 at 2:52 AM, Milton Miller milt...@bga.com wrote: On Sat Jan 24 at 07:59:47 EST in 2009

Re: [PATCH] powerpc: use common cpu_die

2009-02-06 Thread Milton Miller
On Feb 3, 2009, at 10:07 PM, Benjamin Herrenschmidt wrote: --- work.git.orig/arch/powerpc/platforms/powermac/setup.c-static void pmac_cpu_die(void) +static void pmac64_cpu_die(void) ... --- work.git.orig/arch/powerpc/platforms/powermac/smp.c 2009-01-05 02:09:08.0 -0600 -void

Re: [RFC][POWERPC] bootwrapper: Add a firmware-independent

2008-02-10 Thread Milton Miller
On Friday, Feb 8, 2008 David Gibson wrote: On Fri, Feb 01, 2008 at 11:55:42PM -0700, Grant Likely wrote: From: Grant Likely grant.likely at secretlab.ca [snip] +void platform_init(unsigned long r3, unsigned long r4, unsigned long r5, + unsigned long r6, unsigned long r7) +{ +const u32

Re: [PATCH] booting-without-of: add Xilinx uart 16550.

2008-02-15 Thread Milton Miller
On Sat Feb 16 00:40:01 EST 2008, Pavel Kiryukhin pkiryukhin wrote: Add uart 16550 properties description to Xilinx portion of booting-without-of.txt This patch description is a bit weak. How about adding what properties are being added. Also, as described below, it's going to become more

Re: [PATCH v2] [POWERPC] Enable correct operation of serial ports with

2008-02-15 Thread Milton Miller
On Sat Feb 16 00:30:09 EST 2008, Pavel Kiryukhin wrote: Add regshift reading to serial drivers. This enables correct operation of serial ports with nonzero regshift such as Xilinx opb 16550 uart. Signed-off-by: Pavel Kiryukhin pkiryukhin at ru.mvista.com This patch is incomplete in that it

Re: [PATCH] mpic: make sparse happy

2008-02-20 Thread Milton Miller
At Wed Feb 20 22:31:44 EST 2008, Johannes Berg wrote: I was running sparse on something else and noticed sparse warnings and especially the bogus code that is fixed by the first hunk of this patch, so I fixed them all while at it. But your change is not equivalent! ---

Re: How to dynamically disable/enable CPU features?

2008-02-22 Thread Milton Miller
At Fri Feb 22 07:07:58 EST 2008, Gerhard Pircher wrote: I'm wondering how to disable or enable CPU features based on the board the kernel is running on. In my case I want to disable the CPU_FTR_NEED_COHERENT flag for 74xx CPUs, because it locks up the machine. I tried to clear the flag in

[PATCH 02/11] dtc: move declaration of yyerror

2007-07-07 Thread Milton Miller
yyerror() is used by both dtc-parser.y and dtc-lexer.l, so move the declaration to srcpos.h. Signed-off-by: Milton Miller [EMAIL PROTECTED] --- eliminates implicit declaration warning. Index: dtc/dtc-parser.y === --- dtc.orig/dtc

[PATCH 05/11] dtc: clean up grow_data_for()

2007-07-07 Thread Milton Miller
struct data or directly copying empty_data. Signed-off-by: Milton Miller [EMAIL PROTECTED] --- It took me a bit of time to find the source of the uninitialized pointer that was causing my changes to segfault. diff --git a/data.c b/data.c index 5d7db17..3d68792 100644 --- a/data.c +++ b/data.c

[PATCH 11/11] dtc: format memory reserve as pairs on two lines

2007-07-07 Thread Milton Miller
When writing the memory reserve table in assembly output, emit both halves of each 64 bit number on a single .long statement. This results in two lines per memory reserve slot instead of four, each line contains one field (start or size). Signed-off-by: Milton Miller [EMAIL PROTECTED

[PATCH 09/11] dtc: add a testcase with labels

2007-07-07 Thread Milton Miller
Create a source file with labels for use as a testcase to check parsing dts files. Signed-off-by: Milton Miller [EMAIL PROTECTED] --- I started with the existing test01.dts and added labels and a labeled subnode. The labels could instead be added to that file if desired, but that would mean

[PATCH 0/15] bootwrapper: support for kexec to zImage

2007-07-10 Thread Milton Miller
This series 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 elf is also packaged as a 64 bit elf for use by kexec-tools for 64 bit kernels. This series also adds

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

2007-07-10 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] --- Index: work.git/arch/powerpc/boot/gunzip_util.c

[PATCH 3/15] boot: simplfy gunzip_finish

2007-07-10 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] --- Index: work.git/arch/powerpc/boot/gunzip_util.c

[PATCH 4/15] bootwrapper: smp support code

2007-07-10 Thread Milton Miller
requirements. Note: this code works with kernel head_64.S. head_6xx.S needs the 0x60 entry point (it currently uses something closer to 0xC0; but the similar code is at 0xC4); the other heads don't appear to support SMP. Signed-off-by: Milton Miller [EMAIL PROTECTED] --- Cleaned up documentation

[PATCH 5/15] bootwrapper: occupied memory ranges

2007-07-10 Thread Milton Miller
, then then call init_malloc for fine grain allocation. Also, an optional vmlinux_alloc. Signed-off-by: Milton Miller [EMAIL PROTECTED] --- Fixed a bug when extending across multiple ranges. Cleaned up documentation Index: work.git/arch/powerpc/boot/memranges.c

[PATCH 6/15] bootwrapper: switch 64 bit cpus to 32 bit mode

2007-07-10 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

[PATCH/EXAMPLE 15/15] bootwrapper: example sreset marshalling

2007-07-10 Thread Milton Miller
An example using the marshalling code that can be entered by sreset. By linking the marshalling code is at 0 and differentiating a cpu id from a device tree, it also works for kexec. Signed-off-by: Milton Miller [EMAIL PROTECTED] --- For reference only, not intended to be merged. Index

Re: [PATCH 2/2] fix showing xmon help

2007-07-18 Thread Milton Miller
On Wed Jul 18 19:26:40 EST 2007, Ishizaki Kou wrote: In some configuration, xmon help string is larger than xmon_printf buffer. We need not to use printf. This patch adds xmon_puts and change to use it to show help string. [Since I'm requesting changes I'll suggest a new change log.] In some

Re: [PATCH 3/15] boot: simplfy gunzip_finish

2007-07-18 Thread Milton Miller
On Jul 18, 2007, at 9:39 PM, David Gibson wrote: On Tue, Jul 10, 2007 at 05:08:32PM -0500, Milton Miller wrote: 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

Re: [PATCH 10/61] bootwrapper: flatdevtree fixes

2007-07-18 Thread Milton Miller
On Jul 18, 2007, at 1:56 PM, Scott Wood wrote: Milton Miller wrote: In-Reply-To: [EMAIL PROTECTED] On Wed Jul 18 11:33:08 EST 2007, Scott Wood wrote: 1. ft_create_node was returning the internal pointer rather than a phandle. 2. ft_find_device_rel was treating lookups relative to root

Re: [PATCH 2/2] fix showing xmon help

2007-07-18 Thread Milton Miller
On Jul 18, 2007, at 11:12 AM, Andreas Schwab wrote: Milton Miller [EMAIL PROTECTED] writes: case '?': - printf(help_string); + xmon_puts(help_string); break; nonstdio.h #defines printf to xmon_printf

Re: [PATCH 2/2] fix showing xmon help

2007-07-23 Thread Milton Miller
On Jul 20, 2007, at 3:15 AM, Ishizaki Kou wrote: Milton Miller [EMAIL PROTECTED] wrote: On Jul 18, 2007, at 11:12 AM, Andreas Schwab wrote: Milton Miller [EMAIL PROTECTED] writes: case '?': - printf(help_string); + xmon_puts

Re: [PATCH 1/2] [POWERPC] Remove cmd_line from head*.S

2007-08-23 Thread Milton Miller
On Thu Aug 23 13:27:31 EST 2007, Kumar Gala wrote: On Aug 22, 2007, at 10:09 PM, Stephen Rothwell wrote: diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c index 0028fe6..dc85005 100644 --- a/arch/powerpc/kernel/prom.c +++ b/arch/powerpc/kernel/prom.c @@ -60,6 +60,8 @@

[PATCH] qemu-system-ppc -prep initial port

2007-08-27 Thread Milton Miller
boot wrapper. + * + * Copyright (C) 2007 Milton Miller, IBM Corp. [EMAIL PROTECTED] + * Copyright (C) 2006 Paul Mackerras, IBM Corp. [EMAIL PROTECTED] + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of version 2 of the GNU General Public License

Re: [PATCH] powerpc: Add workaround for MPICs with broken register reads

2007-09-06 Thread Milton Miller
On Wed Sep 5 12:44:17 EST 2007, Olof Johansson wrote: diff --git a/arch/powerpc/platforms/Kconfig b/arch/powerpc/platforms/Kconfig index 041df77..b9f1efa 100644 --- a/arch/powerpc/platforms/Kconfig +++ b/arch/powerpc/platforms/Kconfig @@ -137,6 +137,10 @@ config MPIC_U3_HT_IRQS

Re: [PATCH v2] powerpc: Add workaround for MPICs with broken register reads

2007-09-07 Thread Milton Miller
On Sep 7, 2007, at 4:21 AM, Olof Johansson wrote: Some versions of PWRficient 1682M have an interrupt controller in which the first register in each pair for interrupt sources doesn't always read with the right polarity/sense values. To work around this, keep a software copy of the register

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

2007-09-09 Thread Milton Miller
On Fri Sep 7 10:58:03 EST 2007, David Gibson wrote: On Wed, Sep 05, 2007 at 02:21:16PM -0500, Scott Wood 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

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

2007-09-10 Thread Milton Miller
On Sep 10, 2007, at 9:30 AM, Scott Wood wrote: On Mon, Sep 10, 2007 at 09:25:13AM -0500, Scott Wood wrote: (5) space below load to decompress vmlinux (no vmlinux_alloc to fallback to malloc) (6) all space above load address available to hold malloc region (7) for console output (or input)

[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

[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.h

[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 4/15] bootwrapper: smp support code

2007-09-21 Thread Milton Miller
requirements. Note: this code works with kernel head_64.S. head_6xx.S needs the 0x60 entry point (it currently mentions something at address 0xC0; but the similar code is at 0xC4); the other heads don't appear to support SMP. Signed-off-by: Milton Miller [EMAIL PROTECTED] --- vs 12171 get barrier from

[PATCH 5/15] bootwrapper: occuppied memory ranges

2007-09-21 Thread Milton Miller
occupied (add_known_ranges et al), initialize malloc in the spaces between (ranges_init_malloc), and optionally use the supplied vmlinux_alloc may be used. Signed-off-by: Milton Miller [EMAIL PROTECTED] --- vs 12172 rename rmo_end to rma_end (real mode area, as used in papr) removed section

[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

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

2007-09-21 Thread Milton Miller
: the device-tree generated by kexec-tools is currently version 2, not the version 16 supported by the boot code base. Signed-off-by: Milton Miller [EMAIL PROTECTED] --- find_rmo_end moved to memranges as find_rma_end. early_scan_flat_tree replaced with calls to its pieces in kexec_platform_init rediff

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

2007-09-21 Thread Milton Miller
the OF_DT_NOPs. Signed-off-by: Milton Miller [EMAIL PROTECTED] --- vs 12175 Rediffed Makefile, ops, kexec.c Index: kernel/arch/powerpc/boot/flatdevtree_conv.c === --- /dev/null 1970-01-01 00:00:00.0 + +++ kernel/arch/powerpc

[PATCH 9/15] bootwrapper: rtas support

2007-09-21 Thread Milton Miller
to add_occupied_range is needed here. Signed-off-by: Milton Miller [EMAIL PROTECTED] --- vs 12176 rtas_put_term_write now takes const char *buf rediff ops.h, Makefile Index: kernel/arch/powerpc/boot/rtas.c === --- /dev/null 1970-01-01

[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 11/15] bootwrapper: allow vmlinuz to be an external payload

2007-09-21 Thread Milton Miller
the kernel to execute and any user space tools such as kexec (for reboot), crash dump, or oprofile. Another use would be to uncompress directly from a memory mapped region such as a flash partition. Signed-off-by: Milton Miller [EMAIL PROTECTED] --- vs 12178, just fuzz. The source and source len

[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

[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

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

[PATCH 1/2] qemu platform, v2

2007-09-21 Thread Milton Miller
/platforms/qemu/pci.c2007-09-19 02:56:36.0 -0500 @@ -0,0 +1,133 @@ +/* + * prep Port to arch/powerpc: + * Copyright 2007 David Gibson, IBM Corporation. + * + * prep Port to qemu: + * Copyright 2007 Milton Miller, IBM Corporation. + * + * Based on OpenHackware 0.4 + * Copyright (c) 2004-2005

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

2007-09-24 Thread Milton Miller
On Sep 23, 2007, at 10:36 PM, David Gibson wrote: On Fri, Sep 21, 2007 at 06:05:06PM -0500, Milton Miller wrote: 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

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

2007-09-24 Thread Milton Miller
On Sep 23, 2007, at 9:58 PM, David Gibson wrote: On Fri, Sep 21, 2007 at 06:03:24PM -0500, Milton Miller wrote: 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

Re: [PATCH 5/15] bootwrapper: occuppied memory ranges

2007-09-24 Thread Milton Miller
On Sep 23, 2007, at 10:09 PM, David Gibson wrote: On Fri, Sep 21, 2007 at 06:04:18PM -0500, Milton Miller wrote: 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

Re: [PATCH 1/2] qemu platform, v2

2007-09-24 Thread Milton Miller
On Sep 24, 2007, at 2:46 AM, Christoph Hellwig wrote: On Mon, Sep 24, 2007 at 02:00:47PM +1000, David Gibson wrote: Basically because PReP support doesn't work under arch/powerpc. Getting it working properly is something that should happen, but will take a while. In the meantime, getting

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

2007-09-27 Thread Milton Miller
On Sep 26, 2007, at 9:45 PM, David Gibson wrote: On Wed, Sep 26, 2007 at 11:19:47AM -0500, Milton Miller wrote: On Sep 24, 2007, at 10:46 PM, David Gibson wrote: On Mon, Sep 24, 2007 at 01:54:32AM -0500, Milton Miller wrote: On Sep 23, 2007, at 10:36 PM, David Gibson wrote: On Fri, Sep 21

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

2007-09-28 Thread Milton Miller
On Sep 27, 2007, at 9:40 PM, David Gibson wrote: On Thu, Sep 27, 2007 at 10:44:27AM -0500, Milton Miller wrote: On Sep 26, 2007, at 9:45 PM, David Gibson wrote: The actual binary structure is compatable, just not the contents of the properties nor how any slave cpus wait (for some trees

Re: Patch: Fix regression. Make hot unlplug of CPU0 work again.

2007-10-05 Thread Milton Miller
at the cpu_mask arg, instead get_irq_server reads it from the irq descriptor. Signed-off-by: Milton Miller [EMAIL PROTECTED] --- On top of tonys patch (13926) I don't have a system to test hotplug, so this is only compile tested. A more complete fix might be to pass the cpu_mask struct

Re: [PATCH v2] powerpc: don't enable cpu hotplug on mpic-based pseries

2007-10-10 Thread Milton Miller
Don't allow cpu hotplug on pSeries systems lacking XICS interrupt controller, since current code is hardcoded to call xics routines. Signed-off-by: Milton Miller [EMAIL PROTECTED] -- Olof's patch searched the device-tree again, looking for an mpic. This code instead checks that we found

Re: crash on shutdown on rs/6000 powerpc

2007-10-10 Thread Milton Miller
Joel Schoopp wrote: Paulus wrote: [c0003f923c40] c003bff4 .xics_migrate_irqs_away+0x3c/0x20c [c0003f923d00] c0040d54 .pseries_cpu_disable+0x98/0xb4 [c0003f923d80] c0028e4c .__cpu_disable+0x44/0x58 [c0003f923df0] c007e204 .take_cpu_down+0x34/0x60

Re: [PATCH v2] powerpc: don't enable cpu hotplug on mpic-based pseries

2007-10-11 Thread Milton Miller
On Oct 10, 2007, at 11:43 AM, Olof Johansson wrote: On Wed, Oct 10, 2007 at 05:08:44AM -0500, Milton Miller wrote: Olof's patch searched the device-tree again, looking for an mpic. This code instead checks that we found an xics the first time by checking the init function. I'm glad you

Re: Hard hang in hypervisor!?

2007-10-11 Thread Milton Miller
On Thu Oct 11 10:04:40 EST 2007, Paul Mackerras wrote: Linas Vepstas writes: Err .. it was cpu 0 that was spinlocked. Are interrupts not distributed? We have some bogosities in the xics code that I noticed a couple of days ago. Basically we only set the xics to distribute interrupts to

Re: [PATCH v2] powerpc: don't enable cpu hotplug on mpic-based pseries

2007-10-11 Thread Milton Miller
Paul Mackerras writes: Olof Johansson writes: Don't allow cpu hotplug on systems lacking XICS interrupt controller, since current code is hardcoded for it. ... +for (np = NULL; (np = of_find_node_by_name(np, + interrupt-controller));) {

Re: [PATCH 1/2] qemu platform, v2

2007-10-18 Thread Milton Miller
On Oct 18, 2007, at 4:59 AM, Matt Sealey wrote: Grant Likely wrote: On 9/30/07, David Gibson [EMAIL PROTECTED] wrote: On Fri, Sep 28, 2007 at 06:53:28PM +0200, Segher Boessenkool wrote: I'm working on merging dtc into the kernel tree instead. I'm kind of late to this party; but I have to say

Re: Merge dtc

2007-10-18 Thread Milton Miller
On Tue Oct 16 15:02:17 EST 2007, David Gibson wrote: This very large patch incorporates a copy of dtc into the kernel source, in arch/powerpc/boot/dtc-src. This means that dtc is no longer an external dependency to build kernels with configurations which need a dtb file. Signed-off-by:

Re: Merge dtc

2007-10-18 Thread Milton Miller
On Oct 18, 2007, at 8:45 PM, David Gibson wrote: On Thu, Oct 18, 2007 at 09:59:26PM +0200, Sam Ravnborg wrote: On Thu, Oct 18, 2007 at 12:49:54PM -0500, Milton Miller wrote: On Tue Oct 16 15:02:17 EST 2007, David Gibson wrote: This very large patch incorporates a copy of dtc into the kernel

Re: Merge dtc

2007-10-18 Thread Milton Miller
On Oct 18, 2007, at 8:30 PM, David Gibson wrote: On Thu, Oct 18, 2007 at 12:49:54PM -0500, Milton Miller wrote: On Tue Oct 16 15:02:17 EST 2007, David Gibson wrote: Too big for the list, full patch at http://ozlabs.org/~dgibson/home/merge-dtc.patch+ So split it up. The obvious one

[PATCH] restore arch/ppc/boot cflags

2007-10-20 Thread Milton Miller
to KBUILD_CFLAGS instead. Signed-off-by: Milton Miller [EMAIL PROTECTED] --- The commit also changed xtensia to export EXTRA_CFLAGS from its boot directory, that needs to be fixed too. from ARCH=ppc prep_defconfig: /data/home/miltonm/work.git/arch/ppc/boot/of1275/write.c:11:20: error: of1275.h

Re: [PATCH 01/11] [POWERPC] Add 'machine: ...' line to common show_cpuinfo()

2007-10-24 Thread Milton Miller
On Wed Oct 24 17:11:29 EST 2007, Stephen Rothwell wrote: On Wed, 24 Oct 2007 01:13:09 +0200 Marian Balakowicz wrote: +root = of_find_node_by_path(/); +if (root) +model = of_get_property(root, model, NULL); +of_node_put(root); The

Re: [PATCH RT] ehea: make receive irq handler non-threaded (IRQF_NODELAY)

2010-05-21 Thread Milton Miller
On Thu, 20 May 2010 at 10:21:36 +0200 (CEST) Thomas Gleixner wrote: On Thu, 20 May 2010, Michael Ellerman wrote: On Wed, 2010-05-19 at 16:38 +0200, Thomas Gleixner wrote: On Wed, 19 May 2010, Darren Hart wrote: On 05/18/2010 06:25 PM, Michael Ellerman wrote: On Tue, 2010-05-18

Re: [PATCH RT] ehea: make receive irq handler non-threaded (IRQF_NODELAY)

2010-05-21 Thread Milton Miller
On Thu May 20 at 11:28:36 EST in 2010, Michael Ellerman wrote: On Wed, 2010-05-19 at 07:16 -0700, Darren Hart wrote: On 05/18/2010 06:25 PM, Michael Ellerman wrote: On Tue, 2010-05-18 at 15:22 -0700, Darren Hart wrote: On 05/18/2010 02:52 PM, Brian King wrote: Is IRQF_NODELAY

[RFC PATCH] powerpc: Emulate most load and store instructions in emulate_step()

2010-05-21 Thread Milton Miller
[resending to hit the list] + if (regs-gpr[0] == 0x1ebe + cpu_has_feature(CPU_FTR_REAL_LE)) { + regs-msr ^= MSR_LE; + goto instr_done; + } regs-gpr[9] = regs-gpr[13]; + regs-gpr[10]

[RFC] (almost) booting allyesconfig -- please don't poke super-io without request_region

2008-07-10 Thread Milton Miller
After the following patch to mark the isa region busy and applying a few patches[1], I was able to kexec boot into an all-yes-config kernel from linux-next, with the following KCONFIG_ALLCONFIG file: # CONFIG_KALLSYMS_EXTRA_PASS is not set # CONFIG_CRASH_DUMP is not set

mtd: remove __PPC__ hardcoded address from nand/diskonchip and devices/docprobe

2008-07-10 Thread Milton Miller
or find the address in the device tree. Signed-off-by: Milton Miller [EMAIL PROTECTED] --- There is no powerpc defconfig that sets either CONFIG_DOC200{0,1*} nor CONFIG_MTD_NAND_DISKONCHIP in next-20080710. diff --git a/drivers/mtd/devices/docprobe.c b/drivers/mtd/devices/docprobe.c index 6e5d811

powerpc: numa.c: always trim to lmb_end_of_DRAM

2008-07-10 Thread Milton Miller
a fatal DSI. Signed-off-by: Milton Miller [EMAIL PROTECTED] -- Previously this patch tried to check if iommu=off was specified, but it was requested that the check just be removed. http://patchwork.ozlabs.org/linuxppc/patch?id=11774 diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c

powerpc: pseries, cell: use cpu_thread_in_core in smp_init for of_spin_map

2008-07-10 Thread Milton Miller
skip bringing the cpu online, leaving the thread spinning on the paca. We don't handle this case in kexec, and will leave the thread wild during another kexec. Signed-off-by: Milton Miller [EMAIL PROTECTED] --- I added a debug print and manually verified the correct cpumask was generated on pSeries

powerpc: find and destroy possible stale kernel added properties

2008-07-10 Thread Milton Miller
and remove these stale properties before adding the new values. Signed-off-by: Milton Miller [EMAIL PROTECTED] --- While there is an override flag to tell kexec a minimum memory to use, that is a crude workaround and this should be applied to stable. diff --git a/arch/powerpc/kernel

[PATCH] spufs: correct kcalloc usage

2008-07-10 Thread Milton Miller
kcalloc is supposed to be called with the count as its first argument and the element size as the second. Signed-off-by: Milton Miller [EMAIL PROTECTED] --- Both arguments are size_t so does not affect correctness. This callsite is during module_init and therefore not performance critical

Re: [lm-sensors] [RFC] (almost) booting allyesconfig -- please don't poke super-io without request_region

2008-07-10 Thread Milton Miller
On Jul 10, 2008, at 4:33 PM, Hans de Goede wrote: Milton Miller wrote: After the following patch to mark the isa region busy and applying a few patches[1], I was able to kexec boot into an all-yes-config kernel from linux-next, with the following KCONFIG_ALLCONFIG file: ... While the first

Re: linux-next: kbuild tree build failure

2008-07-12 Thread Milton Miller
In-Reply-To: [EMAIL PROTECTED] On Fri Jul 11 00:59:25 EST 2008, Roman Zippel wrote: On Thu, 10 Jul 2008, Michael Ellerman wrote: Well yes :) But I think that's because you're thinking of end-users and I'm thinking of users like myself - ie. _I_ use Kconfig and I do expect myself to be able

Re: linux-next: kbuild tree build failure

2008-07-14 Thread Milton Miller
Hi Roman. I saw your reply on the list archives but can not find it in my inbox. On Sun Jul 13 at 09:21:08 EST 2008, Roman Zippel wrote: On Sat, 12 Jul 2008, Milton Miller wrote: (1) #define PAGE_OFFSET(ASM_CONST(CONFIG_PAGE_OFFSET) 32) It creates unreadable code, where two defines

Re: [RFC] (almost) booting allyesconfig -- please don't poke super-io without request_region

2008-07-14 Thread Milton Miller
On Jul 14, 2008, at 2:59 AM, Jean Delvare wrote: On Sun, 13 Jul 2008 15:26:56 -0600, David Hubbard wrote: Hi Hans, I propose writing a subsystem driver. (Is that properly called The SuperIO Bus Driver?) If no one thinks it's a really bad idea I will put together some code and submit it for

[HOW] binutils-2.17 breaks the 2.6.26 kernel

2008-07-16 Thread Milton Miller
Hi. I've been working with Debian bintuils 2.17-3 (which identifies itself as 2.17) on my build box for some time. When testing all-yes-config, I was getting warnings, but the vmlinux was booting via kexec. Since I was replicating the warnings from BFD about section lmas overlapping in

Re: Calling the kernel from a mini-bootloader

2008-07-17 Thread Milton Miller
On Thu Jul 17 at 23:22:28 EST in 2008, Guillaume Dargaud wrote: Hello all, I'm in the process of writing a mini-bootloaler for a custom board and would like some feedback on my boot methodology. Basically the kernel code (elf file) is copied into memory by a JTAG debugger. A custom program

Re: [RFC v3 PATCH 1/4] Extract list of relocation offsets

2008-07-18 Thread Milton Miller
On Jul 18, 2008, at 12:32 AM, Mohan Kumar M wrote: Benjamin Herrenschmidt wrote: On Fri, 2008-07-18 at 00:10 +0530, Mohan Kumar M wrote: Extract list of relocation offsets Please, provide an indication of what changed since the previous version of the patch to make the reviewer's life easier

Re: Calling the kernel from a mini-bootloader

2008-07-18 Thread Milton Miller
On Jul 17, 2008, at 10:47 PM, David Gibson wrote: On Thu, Jul 17, 2008 at 11:14:11AM -0500, Milton Miller wrote: On Thu Jul 17 at 23:22:28 EST in 2008, Guillaume Dargaud wrote: [snip] [more snip] We call this the flattened device tree. Your firmware doesn't have to deal with this though

Re: Calling the kernel from a mini-bootloader

2008-07-18 Thread Milton Miller
On Fri Jul 18 18:43:11 EST 2008, Guillaume Dargaud wrote: Hello Milton and David, thanks for the answers. This is a very reasonable approach, and is quite similar to what I do. Makes me feel better !!! You actually have a few choices. You can put just the loaded data, or you can put the

Re: [RFC,PATCH] scripts/package: add powerpc images to tarball

2008-07-24 Thread Milton Miller
Currently, tarball builds for powerpc kernels don't have any boot images (other than vmlinux) present. Add support for powerpc builds in the buildtar script, to include a few default images. Signed-off-by: Jeremy Kerr jk at ozlabs.org --- RFC: any requests for more/less boot images?

Re: 82xx performance

2008-07-25 Thread Milton Miller
On Jul 25, 2008, at 3:41 PM, Rune Torgersen wrote: From: Arnd Bergmann [mailto:[EMAIL PROTECTED] On Thursday 17 July 2008, Rune Torgersen wrote: Arnd Bergmann wrote: So again, nothing conclusive. I'm running out of ideas. Is the syscall path different or the same on ppc and powerpc? Any

Re: [RFC,PATCH] scripts/package: add powerpc images to tarball

2008-07-25 Thread Milton Miller
On Jul 24, 2008, at 8:11 PM, Jeremy Kerr wrote: Milton, Yes. How about all dtbImage, zImage, cuboot, treeboot, etc that are newer than vmlinux? The existing arch code doesn't do any checks for timestamps, perhaps this would be better implemented as an arch-independent change? The

[PATCH] Memset the kernel copy of rtas args before using

2008-07-25 Thread Milton Miller
On Sat Jul 26 at 07:25:47 EST in 2008, Nathan Fontenot wrote: The kernel copy of the rtas args struct that is read in from user space is a stack variable. This structure should be zero'ed out before we do any reads/writes to/from the user when handling a rtas call request. This patch adds a

Re: [RFC] reorganize cputypes for PPC64

2008-07-25 Thread Milton Miller
On Sun Jul 13 22:20:28 EST 2008, Marvin wrote: On Saturday 12 July 2008 20:00:05 Arnd Bergmann wrote: On Saturday 12 July 2008, Marvin wrote: attached patch introduces a processor type menu similar to ppc32. It _should_ not change anything upto now. The aim is to allow future fine graded

Re: [RFC,PATCH] scripts/package: add powerpc images to tarball

2008-07-26 Thread Milton Miller
On Jul 25, 2008, at 11:55 PM, Grant Likely wrote: On Thu, Jul 24, 2008 at 9:08 PM, Milton Miller [EMAIL PROTECTED] wrote: Add support for powerpc builds in the buildtar script, to include a few default images. --- RFC: any requests for more/less boot images? .. + for img in zImage

Re: [PATCH] hvc - register all available consoles (was: Re: [PATCH] powerpc/lpar - defer prefered console setup)

2008-07-30 Thread Milton Miller
On Wed Jul 30 at 17:34:38 EST in 2008, Bastian Blank wrote: On Wed, Jul 30, 2008 at 08:29:19AM +0200, Bastian Blank wrote: Okay, so hvc_console is the culprit. It don't register a preferred console if it knows it is not the first in the list. The patch registers all available hvc consoles. It

Re: [PATCH] hvc - register all available consoles (was: Re: [PATCH] powerpc/lpar - defer prefered console setup)

2008-07-30 Thread Milton Miller
Please CC me, I'm not subscribed to the list. On Wed Jul 30 at 20:07:01 EST in 2008, Bastian Blank wrote: On Wed, Jul 30, 2008 at 04:13:47AM -0500, Milton Miller wrote: On Wed Jul 30 at 17:34:38 EST in 2008, Bastian Blank wrote: On Wed, Jul 30, 2008 at 08:29:19AM +0200, Bastian Blank wrote

Re: [PATCH 5/8] Silence warning in arch/powerpc/mm/ppc_mmu_32.c

2008-07-31 Thread Milton Miller
On Thu Jul 31 at 15:21:25 EST in 2008, Stephen Rothwell wrote: On Thu, 31 Jul 2008 13:51:43 +1000 (EST) Tony Breeds tony at bakeyournoodle.com wrote: total_memory is a 'phys_addr_t', cast to unsigned long to silence warning. diff --git a/arch/powerpc/mm/ppc_mmu_32.c

Re: [RFC/PATCH 2/3] of: add of_lookup_stdout() utility function

2008-08-07 Thread Milton Miller
TimurTabi wrote: Yoder Stuart wrote: The second was the idea that we may need a /aliases/stdin as well. You could conceptually have stdout be a monitor and a stdin be a keyboard. I don't think the hypervisor console subsystem supports this. I don't see any way of registering separate

Re: qemu platform patches

2008-08-19 Thread Milton Miller
On Aug 18, 2008, at 9:17 PM, Miklos Vajna wrote: Hi! I recently started to search for a solution to boot a Linux-2.6-based kernel in qemu-system-ppc. Google found two of your interesting patches: http://patchwork.ozlabs.org/linuxppc/patchcontent?id=13689

Re: [BUG] linux-next: Tree for August 26 - Badness at kernel/notifier.c:25

2008-08-28 Thread Milton Miller
David Woodhouse dwmw2 at infradead.org Fri Aug 29 00:55:07 EST 2008 On Thu, 2008-08-28 at 15:23 +0100, David Woodhouse wrote: On Thu, 2008-08-28 at 00:38 +1000, Stephen Rothwell wrote: Hi Arjan, On Thu, 28 Aug 2008 00:33:08 +1000 Stephen Rothwell sfr at canb.auug.org.au wrote: The

[RFC] powerpc/boot: add kernel,end node to the cuboot target

2008-09-23 Thread Milton Miller
On Wed Sep 24 at about 05:54:04 EST 2008, Sebastian Siewior wrote: this could be used by the kexec userland code. NACK. First of all, you fail to justify why it is needed. Second of all, its in the wrong place, if it were needed. The code in arch/powerpc/boot does not get executed on all

[RFC] powerpc/boot: compare _start against ei.loadsize instead ei.memsize

2008-09-23 Thread Milton Miller
On Wed Sep 24 at about 06:38:57 EST in 2008, Sebastian Siewior wrote: My mylinux binary incl. bss is ~5 MiB without bss less than 4 MiB. Therefore I though that I could replace ei.memsize with ei.loadsize. It didn't work. I'm not sure why it did not work but I guess that the memset() of bss in

Re: [PATCH HACK] powerpc: quick hack to get a functional eHEA with hardirq preemption

2008-09-24 Thread Milton Miller
Jan-Bernd wrote: Ben, can you / your team look into the implementation of the set_irq_type functionality needed for XICS? I'm not volunteering to look at or implement any changes for how xics works with generic irq, but I'm trying to understand what the rt kernel is trying to accomplish with

Re: [PATCH HACK] powerpc: quick hack to get a functional eHEA with hardirq preemption

2008-09-24 Thread Milton Miller
On Sep 24, 2008, at 5:17 AM, Benjamin Herrenschmidt wrote: On Wed, 2008-09-24 at 04:58 -0500, Milton Miller wrote: The per-interrupt mask and unmask calls have to go through RTAS, a single-threaded global context, which in addition to increasing path length will really limit scalability

Re: [PATCH HACK] powerpc: quick hack to get a functional eHEA with hardirq preemption

2008-09-24 Thread Milton Miller
On Sep 24, 2008, at 7:30 AM, Sebastien Dugue wrote: Hi Milton, On Wed, 24 Sep 2008 04:58:22 -0500 (CDT) Milton Miller [EMAIL PROTECTED] wrote: On Mon Sep 15 at 18:04:06 EST in 2008, Sebastien Dugue wrote: When entering the low level handler, level sensitive interrupts are masked, then eio'd

Re: [PATCH HACK] powerpc: quick hack to get a functional eHEA with hardirq preemption

2008-09-24 Thread Milton Miller
On Sep 24, 2008, at 4:16 PM, Benjamin Herrenschmidt wrote: On Wed, 2008-09-24 at 11:42 -0500, Milton Miller wrote: I was trying to understand why the mask and early eoi, but I guess its to handle other more limited interrupt controllers where the interrupts stack in hardware instead

  1   2   3   4   >