[PATCH] arch/powerpc: dtc is required to build dtb files

2012-09-18 Thread Matthew McClintock
--silentoldconfig Kconfig DTC arch/powerpc/boot/p4080ds.dtb /bin/sh: /local/home/mattsm/git/linux/scripts/dtc/dtc: No such file or directory make[1]: *** [arch/powerpc/boot/p4080ds.dtb] Error 1 make: *** [p4080ds.dtb] Error 2 Signed-off-by: Matthew McClintock m...@freescale.com --- arch/powerpc/Makefile

[PATCH] powerpc: Fix build dependencies for c files requiring libfdt.h

2012-09-06 Thread Matthew McClintock
) NOTE: recipe linux-qoriq-sdk-3.0.34-r5: task do_compile: Failed Signed-off-by: Matthew McClintock m...@freescale.com --- arch/powerpc/boot/Makefile |1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile index b7d8333..6a15c96 100644

[PATCH] powerpc/hugepage: Fix missing header file for parse_args

2012-02-15 Thread Matthew McClintock
is of type 'int (*)(char *, char *)' arch/powerpc/mm/hugetlbpage.c:313: error: too few arguments to function 'parse_args' Signed-off-by: Matthew McClintock m...@freescale.com --- arch/powerpc/mm/hugetlbpage.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/mm

[PATCH] powerpc/mm: Fix parse_arg build error

2012-01-12 Thread Matthew McClintock
This fixes this build issue: arch/powerpc/mm/hugetlbpage.c: In function 'reserve_hugetlb_gpages': arch/powerpc/mm/hugetlbpage.c:312:2: error: implicit declaration of function 'parse_args' make[1]: *** [arch/powerpc/mm/hugetlbpage.o] Error 1 Signed-off-by: Matthew McClintock m...@freescale.com

[PATCH v2] powerpc/setup_{32, 64}.c: remove unneeded boot_cpuid{, _phys}

2011-11-28 Thread Matthew McClintock
is not around to store this info This patch also has the effect of having the logical cpu number of the boot cpu be updated correctly independently of the ordering of the cpu nodes in the device tree. Signed-off-by: Matthew McClintock m...@freescale.com --- v2: Fix compile issue for peries Remove

[PATCH 1/5] powerpc/85xx: issue 15 EOI after core reset for FSL CoreNet devices

2011-10-26 Thread Matthew McClintock
This is listed as a requirement for Freescale CoreNet based devices (e.g p4080ds with MPIC v4.x) after issuing a core reset to properly clear pending interrupts. Signed-off-by: Matthew McClintock m...@freescale.com --- v2: Updated commit message arch/powerpc/sysdev/mpic.c |7 +++ 1

[PATCH v3 1/5] powerpc/85xx: issue 15 EOI after core reset for FSL CoreNet devices

2011-10-26 Thread Matthew McClintock
This is listed as a requirement for Freescale CoreNet based devices (e.g p4080ds with MPIC v4.x) after issuing a core reset to properly clear pending interrupts. Signed-off-by: Matthew McClintock m...@freescale.com --- v2: Updated commit message v3: Added detail in code comment as well arch

[PATCH v4 1/5] powerpc/85xx: issue 15 EOI after core reset for FSL CoreNet devices

2011-10-26 Thread Matthew McClintock
This is listed as a requirement for Freescale CoreNet based devices (e.g p4080ds with MPIC v4.x) after issuing a core reset to properly clear pending interrupts. Signed-off-by: Matthew McClintock m...@freescale.com --- v2: Updated commit message v3: Added detail in code comment as well v4

[PATCH 2/5] powerpc/fsl_booke: Fix comment in head_fsl_booke.S

2011-10-25 Thread Matthew McClintock
Fix typo in comments introduced by: commit 6dece0eb69b2a28e18d104bc5d707f1cb673f5e0 Author: Scott Wood scottw...@freescale.com Date: Mon Jul 25 11:29:33 2011 + powerpc/32: Pass device tree address as u64 to machine_init Signed-off-by: Matthew McClintock m...@freescale.com cc: Scott

[PATCH 1/5] powerpc/85xx: issue 15 EOI after core reset

2011-10-25 Thread Matthew McClintock
This is listed as a requirement after issuing a core reset to properly clear pending interrupts Signed-off-by: Matthew McClintock m...@freescale.com --- arch/powerpc/sysdev/mpic.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/sysdev/mpic.c b/arch

[PATCH 3/5] powerpc/85xx: Make kexec to interate over online cpus

2011-10-25 Thread Matthew McClintock
This is not strictly required, because this iterates over logical cpus and they are not (currently) discontigous. But, it's cleaner code and more obvious what is going on Signed-off-by: Matthew McClintock m...@freescale.com --- arch/powerpc/platforms/85xx/smp.c |2 +- 1 files changed, 1

[PATCH 4/5] powerpc/85xx: use physical cpu from device tree

2011-10-25 Thread Matthew McClintock
Currently, we assume the first CPU to come up is the boot cpu. Instead we can use the boot_cpu_phys from the device tree. Signed-off-by: Matthew McClintock m...@freescale.com --- arch/powerpc/kernel/asm-offsets.c|4 arch/powerpc/kernel/head_fsl_booke.S |9 ++--- 2 files

[PATCH 5/5] powerpc/setup_{32, 64}.c: remove unneeded boot_cpuid{, _phys}

2011-10-25 Thread Matthew McClintock
is not around to store this info This patch also has the effect of having the logical cpu number of the boot cpu be updated correctly independently of the ordering of the cpu nodes in the device tree. Signed-off-by: Matthew McClintock m...@freescale.com --- Could also just change boot_cpuid every

[PATCH] powerpc/85xx: Fix doorbells

2011-10-11 Thread Matthew McClintock
Commit 765342526246c97600e5344c0949824d94bb51c3 made some small changes to IPI, message_pass in smp_ops was initialized to NULL for other platforms but not for 85xx which causes us to always use the mpic for IPI's. This patch makes doorbells work again. Signed-off-by: Matthew McClintock m

[PATCH] powerpc: Fix build dependencies for epapr.c which needs libfdt.h

2011-07-19 Thread Matthew McClintock
Currently, the build can (very rarely) fail to build because libfdt.h has not been created or is in the process of being copied. Signed-off-by: Matthew McClintock m...@freescale.com --- I think this fixes this build error. Please comment as it's really hard to reproduce this build error. I've

[PATCH] powerpc/module: Remove unused variable err

2010-10-05 Thread Matthew McClintock
Commit 5336377d6225959624146629ce3fc88ee8ecda3d removed the need for err, remove the variable Signed-off-by: Matthew McClintock m...@freescale.com --- arch/powerpc/kernel/module.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/kernel/module.c b/arch/powerpc

[PATCH 2/4] powerpc/85xx: Remove call to mpic_teardown_this_cpu in kexec

2010-09-16 Thread Matthew McClintock
We no longer need to call this explicitly as a generic version is called by default Signed-off-by: Matthew McClintock m...@freescale.com --- arch/powerpc/platforms/85xx/smp.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/85xx/smp.c b/arch

[PATCH 1/4] powerpc/kexec: make masking/disabling interrupts generic

2010-09-16 Thread Matthew McClintock
Right now just the kexec crash pathway turns turns off the interrupts. Pull that out and make a generic version for use elsewhere Signed-off-by: Matthew McClintock m...@freescale.com --- arch/powerpc/include/asm/kexec.h |1 + arch/powerpc/kernel/crash.c| 13

[PATCH 4/4] powerpc/85xx: flush dcache before resetting cores

2010-09-16 Thread Matthew McClintock
When we do an mpic_reset_core we need to make sure the dcache is flushed Signed-off-by: Matthew McClintock m...@freescale.com --- arch/powerpc/platforms/85xx/smp.c | 50 + 1 files changed, 50 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/platforms

[PATCH 3/4] powerpc/85xx: Minor fixups for kexec on 85xx

2010-09-16 Thread Matthew McClintock
Make kexec_down_cpus atmoic since it will be incremented by all cores as they are coming down Remove duplicate calls to mpc85xx_smp_kexec_down, now it's called by the crash and normal kexec pathway only once Increase the timeout to wait for other cores to shutdown Signed-off-by: Matthew

kexec on ppc64

2010-09-07 Thread Matthew McClintock
All, I'm trying to determine how kexec'ing works on 64 bit powerpc. When allocating a region for the kexec'ed kernel is it ever the same as the currently running kernel or do you always boot the kexec'ed kernel from a different memory region? I understand that a crash kernel will be in a

[RFC] arch/powerpc: Remove duplicate/redundant Altivec entries

2010-09-07 Thread Matthew McClintock
In lieu of having multiple similiar lines, we can just have one generic cpu-as line for CONFIG_ALTIVEC --- Was hoping to get comments about this change and if anyone sees any potential problems? arch/powerpc/Makefile |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git

Re: [PATCH] powerpc/fsl_soc: Search all global-utilities nodes for rstccr

2010-08-31 Thread Matthew McClintock
On Aug 28, 2010, at 5:34 PM, Timur Tabi wrote: m...@freescale.com wrote: + + for_each_node_by_name(np, global-utilities) { + if ((of_get_property(np, fsl,has-rstcr, NULL))) { + rstcr = of_iomap(np, 0) + 0xb0; + if (!rstcr)

[PATCH v2] powerpc/fsl_soc: Search all global-utilities nodes for rstccr

2010-08-31 Thread Matthew McClintock
The first global-utilities node might not contain the rstcr property, so we should search all the nodes Signed-off-by: Matthew McClintock m...@freescale.com --- -Changed KERN_EMERG to KERN_ERR -Break if we do not find rstcr mapped -Restore of_put_node that was dropped arch/powerpc/sysdev

[PATCH 2/2] powerpc/fsl_booke: Add support to boot from core other than 0

2010-08-31 Thread Matthew McClintock
smp_processor_id() and related functions will return the default initialization value of the struct or 0. Signed-off-by: Matthew McClintock m...@freescale.com --- arch/powerpc/kernel/head_fsl_booke.S | 10 -- arch/powerpc/kernel/setup_32.c |2 +- 2 files changed, 9 insertions(+), 3

[PATCH 1/2] powerpc/mm: Assume first cpu is boot_cpuid not 0

2010-08-31 Thread Matthew McClintock
arch/powerpc/mm/mmu_context_nohash.c assumes the boot cpu will always have smp_processor_id() == 0. This patch fixes that assumption Signed-off-by: Matthew McClintock m...@freescale.com --- arch/powerpc/mm/mmu_context_nohash.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff

[PATCH] powerpc/fsl_soc: Search all global-utilities nodes for rstccr

2010-08-27 Thread Matthew McClintock
The first global-utilities node might not contain the rstcr property, so we should search all the nodes Signed-off-by: Matthew McClintock m...@freescale.com --- arch/powerpc/sysdev/fsl_soc.c | 20 +++- 1 files changed, 11 insertions(+), 9 deletions(-) diff --git a/arch/powerpc

[PATCH] powerpc/kernel: Adds correct calling convention for kexec purgatory

2010-08-27 Thread Matthew McClintock
of this chunk (master only) As such, we need to set r3 to the current core, r4 happens to be unused by purgatory at the moment but we go ahead and set it here as well Signed-off-by: Matthew McClintock m...@freescale.com --- arch/powerpc/kernel/misc_32.S |3 +++ 1 files changed, 3 insertions

[PATCH v2 1/3] Ramdisk address was not copied correctly on kexec'ed kernel

2010-08-18 Thread Matthew McClintock
Signed-off-by: Matthew McClintock m...@freescale.com --- kexec/arch/ppc/fixup_dtb.c |2 +- kexec/arch/ppc/kexec-ppc.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kexec/arch/ppc/fixup_dtb.c b/kexec/arch/ppc/fixup_dtb.c index 26c23a3..09f9ac1 100644 --- a/kexec

[PATCH v2 0/3] Misc. bug fixes for ppc32

2010-08-18 Thread Matthew McClintock
This patch series fixes a few issues I have discovered with my previous patch series. Nothing new has been added. v2: Missed signoff, removed initializing variable twice Matthew McClintock (3): Ramdisk address was not copied correctly on kexec'ed kernel Prevent multiple reservations for cpu

[PATCH v2 3/3] Prevent initrd-start and initrd-end from appearing multiple times

2010-08-18 Thread Matthew McClintock
We always remove the old entry, and add it back if it is needed on for the kexec'ed kernel Signed-off-by: Matthew McClintock m...@freescale.com --- kexec/arch/ppc/fixup_dtb.c | 20 ++-- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/kexec/arch/ppc/fixup_dtb.c

[PATCH v2 2/3] Prevent multiple reservations for cpu-release-addr

2010-08-18 Thread Matthew McClintock
Currently, we can add a lot of reservations over a small range, this does a simple check to verify the previous entry is not the same as the current one and skips it if so Signed-off-by: Matthew McClintock m...@freescale.com --- kexec/arch/ppc/fixup_dtb.c | 28 +--- 1

Re: [PATCH v2 5/7] Add support for ramdisk on ppc32 for uImage-ppc and Elf-ppc

2010-07-29 Thread Matthew McClintock
On Jul 29, 2010, at 3:33 AM, Simon Horman wrote: On Tue, Jul 20, 2010 at 03:14:58PM -0500, Matthew McClintock wrote: This fixes --reuseinitrd and --ramdisk option for ppc32 on uImage-ppc and Elf. It works for normal kexec as well as for kdump. When using --reuseinitrd you need

Re: [PATCH v3 0/7] Fixup booting with device trees and uImage/elf on ppc32

2010-07-26 Thread Matthew McClintock
On Jul 26, 2010, at 9:55 PM, Simon Horman wrote: [Cced linuxppc-dev] On Tue, Jul 20, 2010 at 11:42:57PM -0500, Matthew McClintock wrote: This patch series adds full support for booting with a flat device tree with either uImage or elf file formats. Kexec and Kdump should work, and you

[PATCH v2 0/2] kexec/crash support on mpc85xx parts

2010-07-21 Thread Matthew McClintock
paths both work correctly - this was exposed by the above fix Disable modifying the PAGE_OFFSET and PHYSICAL_START when we build a crash kernel w/ relocation enabled. We don't need to change these values as a default action. Matthew McClintock (2): powerpc/85xx: kexec for SMP 85xx BookE systems

[PATCH v2 1/2] powerpc/85xx: kexec for SMP 85xx BookE systems

2010-07-21 Thread Matthew McClintock
Adds support for kexec on 85xx machines for the BookE platform. Including support for SMP machines Based off work from Maxim Uvarov muva...@mvista.com Signed-off-by: Matthew McClintock m...@freescale.com --- arch/powerpc/Kconfig | 10 +++--- arch/powerpc/platforms/85xx/smp.c

[PATCH v2 2/2] powerpc/crashdump: Fix issues with kexec and 36bit physical addr

2010-07-21 Thread Matthew McClintock
Fix sizes of variables so correct values are exported via /proc. Cast variable in comparison to avoid compiler error. Signed-off-by: Matthew McClintock m...@freescale.com --- arch/powerpc/kernel/crash_dump.c|4 ++-- arch/powerpc/kernel/machine_kexec.c | 10 +- 2 files changed

[PATCH v2 4/7] Update Elf-ppc to support crash kernel and misc fixes

2010-07-20 Thread Matthew McClintock
address Set the kernel entry address in the relocatable purgatory code so we jump to the correct start address if not the default. Useful for relocatable kernels Signed-off-by: Matthew McClintock m...@freescale.com --- kexec/arch/ppc/kexec-elf-ppc.c | 26 ++ kexec/arch/ppc

[PATCH v2 3/7] Update uImage to support crash kernel and misc fixes

2010-07-20 Thread Matthew McClintock
address. Only allocate 1 MiB extra for bss space after kernel as it appears to be more than adequate. Signed-off-by: Matthew McClintock m...@freescale.com --- kexec/arch/ppc/kexec-uImage-ppc.c | 32 ++-- 1 files changed, 22 insertions(+), 10 deletions(-) diff --git

[PATCH v2 7/7] Add documentation/howto for mpc85xx systems

2010-07-20 Thread Matthew McClintock
Signed-off-by: Matthew McClintock m...@freescale.com --- doc/mpc85xx.txt | 190 +++ 1 files changed, 190 insertions(+), 0 deletions(-) create mode 100644 doc/mpc85xx.txt diff --git a/doc/mpc85xx.txt b/doc/mpc85xx.txt new file mode 100644

[PATCH v2 6/7] Add support for reworking flat device tree support

2010-07-20 Thread Matthew McClintock
is borrowed from the u-boot routines which do similiar things Also, now if no flat device tree is passed to kexec it will attempt to rebuild one from the /proc/device-tree file system to use for the kexec'ed kernel for both uImage and elf formats Signed-off-by: Matthew McClintock m...@freescale.com

[PATCH v2 5/7] Add support for ramdisk on ppc32 for uImage-ppc and Elf-ppc

2010-07-20 Thread Matthew McClintock
region otherwise the kdump kernel will not be able to access it. The --ramdisk option should always work. Signed-off-by: Matthew McClintock m...@freescale.com --- kexec/arch/ppc/Makefile |1 + kexec/arch/ppc/include/arch/options.h |3 + kexec/arch/ppc/kexec-elf-ppc.c

[PATCH v2 1/7] Restore kexec uImage-ppc to working state

2010-07-20 Thread Matthew McClintock
Booting with uImage-ppc was broken by previous work, this patch should restore it to working order Signed-off-by: Matthew McClintock m...@freescale.com --- kexec/arch/ppc/kexec-ppc.c | 68 ++- kexec/arch/ppc/kexec-uImage-ppc.c |5 +-- purgatory/arch

[PATCH v2 2/7] Fix case where phys_addr_t != unsigned long when reading proc entries

2010-07-20 Thread Matthew McClintock
On some actitectures the physical memory can be 64 bits, therefore the code that reads proc entries needs to take into account it could read either a 32 bit or 64bit value for the physical addresses. Signed-off-by: Matthew McClintock m...@freescale.com --- kexec/arch/ppc/kexec-elf-ppc.c |1

Re: [PATCH V4] powerpc/prom: Export device tree physical address via proc

2010-07-18 Thread Matthew McClintock
On Jul 17, 2010, at 11:41 AM, Segher Boessenkool wrote: Yes. Where would we get a list of memreserve sections? I would say the list of reserves that are not under the control of Linux should be explicitly described in the device tree proper. For instance, if you have a region that

Re: [PATCH V4] powerpc/prom: Export device tree physical address via proc

2010-07-18 Thread Matthew McClintock
On Jul 18, 2010, at 6:41 PM, Benjamin Herrenschmidt wrote: On Thu, 2010-07-15 at 00:21 -0600, Grant Likely wrote: On Wed, Jul 14, 2010 at 9:18 AM, Matthew McClintock m...@freescale.com wrote: To build a proper flat device tree for kexec we need to know which memreserve region was used

Re: [PATCH V4] powerpc/prom: Export device tree physical address via proc

2010-07-18 Thread Matthew McClintock
On Jul 18, 2010, at 7:09 PM, Benjamin Herrenschmidt wrote: On Thu, 2010-07-15 at 10:22 -0600, Grant Likely wrote: What is your starting point? Where does the device tree (and memreserve list) come from that you're passing to kexec? My first impression is that if you have to scrub the

Re: [PATCH V4] powerpc/prom: Export device tree physical address via proc

2010-07-15 Thread Matthew McClintock
On Wed, 2010-07-14 at 17:46 +0200, Segher Boessenkool wrote: What about just one node called flat-device-tree? But *what* flat device tree? It cannot be the flat device tree, or it would be useless information, since we are already reading it! I thought about it all day and did not come

Re: [PATCH V4] powerpc/prom: Export device tree physical address via proc

2010-07-15 Thread Matthew McClintock
On Thu, 2010-07-15 at 00:21 -0600, Grant Likely wrote: On Wed, Jul 14, 2010 at 9:18 AM, Matthew McClintock m...@freescale.com wrote: To build a proper flat device tree for kexec we need to know which memreserve region was used for the device tree for the currently running kernel, so we can

Re: [PATCH V4] powerpc/prom: Export device tree physical address via proc

2010-07-15 Thread Matthew McClintock
On Thu, 2010-07-15 at 10:22 -0600, Grant Likely wrote: Thanks for taking a look. My first thought was to just blow away all the memreserve regions and start over. But, there are reserve regions for other things that I might not want to blow away. For example, on mpc85xx SMP systems we

Re: [PATCH V4] powerpc/prom: Export device tree physical address via proc

2010-07-15 Thread Matthew McClintock
On Thu, 2010-07-15 at 10:57 -0600, Grant Likely wrote: On Thu, Jul 15, 2010 at 10:39 AM, Matthew McClintock m...@freescale.com wrote: On Thu, 2010-07-15 at 10:22 -0600, Grant Likely wrote: Thanks for taking a look. My first thought was to just blow away all the memreserve regions

Re: [PATCH V4] powerpc/prom: Export device tree physical address via proc

2010-07-15 Thread Matthew McClintock
On Thu, 2010-07-15 at 12:37 -0600, Grant Likely wrote: On Thu, Jul 15, 2010 at 12:03 PM, Matthew McClintock m...@freescale.com wrote: On Thu, 2010-07-15 at 10:57 -0600, Grant Likely wrote: On Thu, Jul 15, 2010 at 10:39 AM, Matthew McClintock m...@freescale.com wrote: On Thu, 2010-07

[PATCH V4] powerpc/prom: Export device tree physical address via proc

2010-07-14 Thread Matthew McClintock
To build a proper flat device tree for kexec we need to know which memreserve region was used for the device tree for the currently running kernel, so we can remove it and replace it with the new memreserve for the kexec'ed kernel Signed-off-by: Matthew McClintock m...@freescale.com --- V4: Fixed

Re: [PATCH V4] powerpc/prom: Export device tree physical address via proc

2010-07-14 Thread Matthew McClintock
On Wed, 2010-07-14 at 17:35 +0200, Segher Boessenkool wrote: V4: Fixed misspelling Any particular reason you fixed only one of the two mispelings I pointed out? (device tree is two words, not one). Ahh, my fault. + prop = of_find_property(node, linux,devicetree-start, NULL); +

[PATCH] powerpc:prom Export device tree physical address via proc

2010-07-13 Thread Matthew McClintock
To build a proper flat device tree for kexec we need to know which memreserve region was used for the device tree for the currently running kernel, so we can remove it and replace it with the new memreserve for the kexec'ed kernel Signed-off-by: Matthew McClintock m...@freescale.com --- arch

[PATCH V2] powerpc:prom Export device tree physical address via proc

2010-07-13 Thread Matthew McClintock
To build a proper flat device tree for kexec we need to know which memreserve region was used for the device tree for the currently running kernel, so we can remove it and replace it with the new memreserve for the kexec'ed kernel Signed-off-by: Matthew McClintock m...@freescale.com --- Removed

[PATCH V3] powerpc:prom Export device tree physical address via proc

2010-07-13 Thread Matthew McClintock
To build a proper flat device tree for kexec we need to know which memreserve region was used for the device tree for the currently running kernel, so we can remove it and replace it with the new memreserve for the kexec'ed kernel Signed-off-by: Matthew McClintock m...@freescale.com --- V3

Re: [1/2] powerpc/crashdump: Fix issues with kexec and 36bit physical addr

2010-07-08 Thread Matthew McClintock
On Thu, 2010-07-08 at 04:07 -0500, Milton Miller wrote: On Wed, 07 Jul 2010 around 10:51:20 - Matthew McClintock wrote: Fix sizes of variables so correct values are exported via /proc. Cast variable in comparison to avoid compiler error. Signed-off-by: Matthew McClintock m

Re: [1/2] powerpc/crashdump: Fix issues with kexec and 36bit physical addr

2010-07-08 Thread Matthew McClintock
On Fri, 2010-07-09 at 15:18 -0500, Milton Miller wrote: I don't disagree but this can break kexec if phys_addr_t != unsigned long. Also, doesn't the crash kernel have to live below 2GB so unsigned long is always fine? Its could only break kexec for the case of phys_addr_t != unsigned

[PATCH 1/2] powerpc/crashdump: Fix issues with kexec and 36bit physical addr

2010-07-08 Thread Matthew McClintock
Fix sizes of variables so correct values are exported via /proc. Cast variable in comparison to avoid compiler error. Signed-off-by: Matthew McClintock m...@freescale.com --- arch/powerpc/kernel/crash_dump.c|4 ++-- arch/powerpc/kernel/machine_kexec.c | 10 +- 2 files changed

[PATCH 2/2] powerpc/booke: Enable building of a crash dump kernel

2010-07-07 Thread Matthew McClintock
Enable building crash dump kernel as well as expose the flat device tree for kexec to update to boot the crash kernel --- arch/powerpc/Kconfig |2 +- arch/powerpc/kernel/prom.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/Kconfig

[PATCH 1/2] powerpc/crashdump: Fix issues with kexec and 36bit physical addr

2010-07-07 Thread Matthew McClintock
Fix sizes of variables so correct values are exported via /proc. Cast variable in comparison to avoid compiler error. Signed-off-by: Matthew McClintock m...@freescale.com --- arch/powerpc/kernel/crash_dump.c|4 ++-- arch/powerpc/kernel/machine_kexec.c |4 +++- 2 files changed, 5

[PATCH] powerpc/fsl-booke: Fix address issue when using relocatable kernels

2010-06-29 Thread Matthew McClintock
in the common code path Signed-off-by: Matthew McClintock m...@freescale.com --- arch/powerpc/kernel/fsl_booke_entry_mapping.S |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/kernel/fsl_booke_entry_mapping.S b/arch/powerpc/kernel/fsl_booke_entry_mapping.S

[PATCH 1/2] powerpc/mpic: Add ability to reset a core via MPIC

2010-06-29 Thread Matthew McClintock
We need the ability to reset cores for use with kexec/kdump for SMP systems. Calling this function with the specific core you want to reset will cause the CPU to spin in reset. Signed-off-by: Matthew McClintock m...@freescale.com --- arch/powerpc/sysdev/mpic.c | 18 ++ arch

[PATCH 2/2] powerpc/85xx platorms: kexec for SMP 85xx BookE systems

2010-06-29 Thread Matthew McClintock
Adds support for kexec on 85xx machines for the BookE platform. Including support for SMP machines Based off work from Maxim Uvarov muva...@mvista.com Signed-off-by: Matthew McClintock m...@freescale.com --- To test/use you will need to fetch kexec from GIT and apply the following patch