Re: [PATCH 1/3] perf tests test_arm_coresight: Fix the shellcheck warning in latest test_arm_coresight.sh

2023-10-12 Thread Suzuki K Poulose
Hi, On 12/10/2023 16:56, Athira Rajeev wrote: On 05-Oct-2023, at 3:06 PM, Suzuki K Poulose wrote: On 05/10/2023 06:02, Namhyung Kim wrote: On Thu, Sep 28, 2023 at 9:11 PM Athira Rajeev wrote: ... Thanks for the fix. Nothing to do with this patch, but I am wondering if the original

Re: [PATCH 1/3] perf tests test_arm_coresight: Fix the shellcheck warning in latest test_arm_coresight.sh

2023-10-05 Thread Suzuki K Poulose
On 05/10/2023 06:02, Namhyung Kim wrote: On Thu, Sep 28, 2023 at 9:11 PM Athira Rajeev wrote: Running shellcheck on tests/shell/test_arm_coresight.sh throws below warnings: In tests/shell/test_arm_coresight.sh line 15: cs_etm_path=$(find

Re: [PATCH 09/30] coresight: cpu-debug: Replace mutex with mutex_trylock on panic notifier

2022-05-09 Thread Suzuki K Poulose
Hi On 09/05/2022 14:09, Guilherme G. Piccoli wrote: On 28/04/2022 05:11, Suzuki K Poulose wrote: Hi Guilherme, On 27/04/2022 23:49, Guilherme G. Piccoli wrote: The panic notifier infrastructure executes registered callbacks when a panic event happens - such callbacks are executed in atomic

Re: [PATCH 20/30] panic: Add the panic informational notifier list

2022-04-28 Thread Suzuki K Poulose
c: Mathieu Poirier Cc: Michael Ellerman Cc: Mike Leach Cc: Mikko Perttunen Cc: Neeraj Upadhyay Cc: Nicholas Piggin Cc: Paul Mackerras Cc: Suzuki K Poulose Cc: Thierry Reding Cc: Thomas Bogendoerfer Signed-off-by: Guilherme G. Piccoli --- arch/arm64/kernel/setup.c

Re: [PATCH 09/30] coresight: cpu-debug: Replace mutex with mutex_trylock on panic notifier

2022-04-28 Thread Suzuki K Poulose
be observed (and if it is, that would be likely a deadlock with the regular mutex). Fixes: 2227b7c74634 ("coresight: add support for CPU debug module") Cc: Leo Yan Cc: Mathieu Poirier Cc: Mike Leach Cc: Suzuki K Poulose Signed-off-by: Guilherme G. Piccoli How would you like to proceed wi

Re: [PATCH v2 31/39] docs: ABI: cleanup several ABI documents

2020-10-30 Thread Suzuki K Poulose
-coresight-devices-etb10 | 5 +- For the above, Acked-by: Suzuki K Poulose

Re: [PATCH v2 01/20] perf/doc: update design.txt for exclude_{host|guest} flags

2018-11-26 Thread Suzuki K Poulose
Hi Andrew, On 26/11/2018 11:12, Andrew Murray wrote: Update design.txt to reflect the presence of the exclude_host and exclude_guest perf flags. Signed-off-by: Andrew Murray Thanks a lot for adding this ! --- tools/perf/design.txt | 4 1 file changed, 4 insertions(+) diff --git

Re: [RFT PATCH -next v3] [BUGFIX] kprobes: Fix Failed to find blacklist error on ia64 and ppc64

2014-06-19 Thread Suzuki K. Poulose
On 06/19/2014 10:22 AM, Masami Hiramatsu wrote: (2014/06/19 10:30), Michael Ellerman wrote: On Wed, 2014-06-18 at 17:46 +0900, Masami Hiramatsu wrote: (2014/06/18 16:56), Michael Ellerman wrote: On Fri, 2014-06-06 at 15:38 +0900, Masami Hiramatsu wrote: Ping? I guess this should go to 3.16

Re: [RFT PATCH -next v3] [BUGFIX] kprobes: Fix Failed to find blacklist error on ia64 and ppc64

2014-06-19 Thread Suzuki K. Poulose
On 06/19/2014 12:56 PM, Masami Hiramatsu wrote: (2014/06/19 15:40), Suzuki K. Poulose wrote: On 06/19/2014 10:22 AM, Masami Hiramatsu wrote: (2014/06/19 10:30), Michael Ellerman wrote: On Wed, 2014-06-18 at 17:46 +0900, Masami Hiramatsu wrote: (2014/06/18 16:56), Michael Ellerman wrote

Re: [RFT PATCH -next v2] [BUGFIX] kprobes: Fix Failed to find blacklist error on ia64 and ppc64

2014-05-29 Thread Suzuki K. Poulose
initializing blacklist. Changes in V2: - Use function_entry() macro when lookin up symbols instead of storing it. - Update for the latest -next. Signed-off-by: Masami Hiramatsu masami.hiramatsu...@hitachi.com Reported-by: Tony Luck tony.l...@gmail.com Cc: Suzuki K. Poulose suz...@in.ibm.com

Re: [RFT PATCH -next ] [BUGFIX] kprobes: Fix Failed to find blacklist error on ia64 and ppc64

2014-05-26 Thread Suzuki K. Poulose
On 05/07/2014 05:25 PM, Masami Hiramatsu wrote: On ia64 and ppc64, the function pointer does not point the entry address of the function, but the address of function discriptor (which contains the entry address and misc data.) Since the kprobes passes the function pointer stored by

[PATCH] powerpc: Set the NOTE type for SPE regset

2013-08-27 Thread Suzuki K. Poulose
The regset defintion for SPE doesn't have the core_note_type set, which prevents it from being dumped. Add the note type NT_PPC_SPE for SPE regset. Signed-off-by: Suzuki K Poulose suz...@in.ibm.com Cc: Roland McGrath rol...@hack.frob.com --- arch/powerpc/kernel/ptrace.c |2 +- 1 file

Re: [PATCH] powerpc: don't flush/invalidate the d/icache for an unknown relocation type

2013-06-27 Thread Suzuki K. Poulose
for an invalid memory address on some platforms and then cause the board reset. So we should skip the flush/invalidate the d/icache for an unknown relocation type. Good catch. Thanks for the fix. Acked-by: Suzuki K. Poulose suz...@in.ibm.com ___ Linuxppc-dev

Re: [PATCH] kexec/ppc: Fix kernel program entry point while changing the load addr

2013-03-03 Thread Suzuki K. Poulose
On 03/04/2013 07:11 AM, Simon Horman wrote: [ Cc: linuxppc-dev@lists.ozlabs.org ] On Sun, Mar 03, 2013 at 01:06:00PM +0530, Suzuki K. Poulose wrote: From: Suzuki K. Poulose suz...@in.ibm.com uImage probe fills the entry point (ep) based on the load_addr from the uImage headers. If we change

[PATCH] uprobes/powerpc: Add dependency on single step emulation

2013-01-07 Thread Suzuki K. Poulose
From: Suzuki K. Poulose suz...@in.ibm.com Uprobes uses emulate_step in sstep.c, but we haven't explicitly specified the dependency. On pseries HAVE_HW_BREAKPOINT protects us, but 44x has no such luxury. Consolidate other users that depend on sstep and create a new config option. Signed-off

Re: [PATCH v2 1/4] kprobes/powerpc: Do not disable External interrupts during single step

2012-12-10 Thread Suzuki K. Poulose
On 12/03/2012 08:37 PM, Suzuki K. Poulose wrote: From: Suzuki K. Poulose suz...@in.ibm.com External/Decrement exceptions have lower priority than the Debug Exception. So, we don't have to disable the External interrupts before a single step. However, on BookE, Critical Input Exception(CE) has

[PATCH v2 1/4] kprobes/powerpc: Do not disable External interrupts during single step

2012-12-03 Thread Suzuki K. Poulose
From: Suzuki K. Poulose suz...@in.ibm.com External/Decrement exceptions have lower priority than the Debug Exception. So, we don't have to disable the External interrupts before a single step. However, on BookE, Critical Input Exception(CE) has higher priority than a Debug Exception. Hence we

[PATCH v2 2/4] powerpc: Move the single step enable code to a generic path

2012-12-03 Thread Suzuki K. Poulose
From: Suzuki K. Poulose suz...@in.ibm.com This patch moves the single step enable code used by kprobe to a generic routine header so that, it can be re-used by other code, in this case, uprobes. No functional changes. Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com Cc: Ananth N

Re: [PATCH 1/4] perf/powerpc: Use uapi/unistd.h to fix build error

2012-11-20 Thread Suzuki K. Poulose
the 'unistd.h' from arch/powerpc/include/uapi to build the perf tool. Signed-off-by: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com Without this patch, I couldn't build perf on powerpc, with 3.7.0-rc2 Tested-by: Suzuki K. Poulose suz...@in.ibm.com Thanks Suzuki --- tools/perf/perf.h |2 +- 1

Re: [PATCH v2 1/2] [powerpc] Change memory_limit from phys_addr_t to unsigned long long

2012-09-07 Thread Suzuki K. Poulose
On 09/07/2012 07:05 AM, Benjamin Herrenschmidt wrote: On Tue, 2012-08-21 at 17:12 +0530, Suzuki K. Poulose wrote: There are some device-tree nodes, whose values are of type phys_addr_t. The phys_addr_t is variable sized based on the CONFIG_PHSY_T_64BIT. Change these to a fixed unsigned long

[PATCH v2 0/2][powerpc] Export memory_limit via device tree

2012-08-21 Thread Suzuki K. Poulose
'phys_addr_t' (which is 32bit on some ppc32 and 64 bit on ppc64 and some ppc32) * Rebased the patch to use recently fixed prom_update_property() which would add the property if it didn't exist. --- Suzuki K. Poulose (2): [powerpc] Change memory_limit from phys_addr_t to unsigned

[PATCH v2 1/2] [powerpc] Change memory_limit from phys_addr_t to unsigned long long

2012-08-21 Thread Suzuki K. Poulose
the different sized values and then change the above. Suggested-by: Benjamin Herrenschmidt b...@kernel.crashing.org Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com --- arch/powerpc/include/asm/setup.h|2 +- arch/powerpc/kernel/fadump.c|3 +-- arch/powerpc/kernel

[PATCH v2 2/2] [powerpc] Export memory limit via device tree

2012-08-21 Thread Suzuki K. Poulose
this patch on ppc64 and ppc32(ppc440) with a kexec-tools patch by Mahesh. Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com Tested-by: Mahesh J. Salgaonkar mah...@linux.vnet.ibm.com --- arch/powerpc/kernel/machine_kexec.c | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff

Re: [PATCH] [powerpc] Export memory limit via device tree

2012-07-19 Thread Suzuki K. Poulose
On 07/11/2012 11:06 AM, Benjamin Herrenschmidt wrote: diff --git a/arch/powerpc/kernel/machine_kexec.c b/arch/powerpc/kernel/machine_kexec.c index c957b12..0c9695d 100644 --- a/arch/powerpc/kernel/machine_kexec.c +++ b/arch/powerpc/kernel/machine_kexec.c @@ -207,6 +207,12 @@ static struct

Re: 3.4.0-rc1: No init found

2012-07-05 Thread Suzuki K. Poulose
On 07/06/2012 04:06 AM, Tabi Timur-B04825 wrote: On Wed, Apr 4, 2012 at 7:36 AM, Suzuki K. Poulose suz...@in.ibm.com wrote: Not sure if this is related, but at the end of each kernel compilation, the following messages are printed: SYSMAP System.map SYSMAP

[PATCH] [powerpc] Export memory limit via device tree

2012-07-02 Thread Suzuki K. Poulose
this patch on ppc64 and ppc32(ppc440) with a kexec-tools patch by Mahesh. Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com Tested-by: Mahesh J. Salgaonkar mah...@linux.vnet.ibm.com --- arch/powerpc/kernel/machine_kexec.c | 15 +++ 1 files changed, 15 insertions(+), 0 deletions

Re: [PATCH] [ppc] Do not reserve cpu spin-table for crash kernel

2012-06-18 Thread Suzuki K. Poulose
On 05/24/2012 11:39 AM, Suzuki K. Poulose wrote: As of now, the kexec reserves the spin-table for all the CPUs on an SMP machine. The spin-table is pointed to by the cpu-release-addr property in the device-tree. Reserving the spin-table in the crash kernel will cause a BUG(), if the table lies

[PATCH] [ppc] Do not reserve cpu spin-table for crash kernel

2012-05-24 Thread Suzuki K. Poulose
. Disable reserving the spin-table regions and use maxcpus=1 to use only the crashing CPU to boot the crash kernel. Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com --- kexec/arch/ppc/crashdump-powerpc.c | 19 +-- kexec/arch/ppc/fixup_dtb.c |4 2 files changed

Handling spin table in kdump

2012-05-22 Thread Suzuki K. Poulose
Hi I came across the following issue while testing Kdump on an SMP board(Currituck) running a non-SMP kernel. Even though the kernel is UP, the device-tree has the nodes for second CPU and the related details. The kexec tool adds the spin table area as a reserved section in the device tree

Re: [PATCH 0/2] Kdump support for 47x

2012-04-25 Thread Suzuki K. Poulose
On 04/16/2012 01:56 PM, Suzuki K. Poulose wrote: The following series implements Kexec/Kdump support for PPC_47x based platforms. Doesn't support SMP yet. I have tested these patches on the following simulators: 1) simics 2) IBM ISS for ppc476. Changes since V1

[PATCH] [44x][KEXEC] Fix/Initialize PID to kernel PID before the TLB search

2012-04-16 Thread Suzuki K. Poulose
the hardware/qemu/simics work fine. This patch is harmless and initializes the PID to 0 (kernel PID) which is usually the case during a normal kernel boot. This would fix the kexec on ISS for 440. I have tested this patch on sequoia board. Signed-off-by: Suzuki K Poulose suz...@in.ibm.com Cc: Josh

[PATCH 0/2] Kdump support for 47x

2012-04-16 Thread Suzuki K. Poulose
operations in setup_map_47x --- Suzuki K. Poulose (2): [47x] Enable CRASH_DUMP [47x] Kernel support for KEXEC arch/powerpc/Kconfig |4 - arch/powerpc/kernel/misc_32.S | 195 - 2 files changed, 191 insertions(+), 8 deletions

[PATCH 1/2] [47x] Kernel support for KEXEC

2012-04-16 Thread Suzuki K. Poulose
-2GiB in the original address space and switch to the new mapping. TODO: Add SMP support. Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com --- arch/powerpc/Kconfig |2 arch/powerpc/kernel/misc_32.S | 195 - 2 files changed, 190 insertions

[PATCH 2/2] [47x] Enable CRASH_DUMP

2012-04-16 Thread Suzuki K. Poulose
Now that we have KEXEC and relocatable kernel working on 47x (!SMP) enable CRASH_DUMP. Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com --- arch/powerpc/Kconfig |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 4f64860

Re: 3.4.0-rc1: No init found

2012-04-04 Thread Suzuki K. Poulose
On 04/03/2012 10:48 PM, Christian Kujau wrote: On Tue, 3 Apr 2012 at 18:08, Benjamin Herrenschmidt wrote: I have observed this randomly on the G5 ... sometimes, if I try again, it works... it's very very odd. There is some kind of race maybe with async startup ? Or a problem with the vfs path

Re: [PATCH 0/2] Kdump support for PPC_47x

2012-03-15 Thread Suzuki K. Poulose
On 03/15/2012 11:41 AM, Tony Breeds wrote: On Wed, Mar 14, 2012 at 03:52:30PM +0530, Suzuki K. Poulose wrote: The following series implements Kexec/Kdump support for PPC_47x based platforms. Doesn't support SMP yet. I have tested these patches on simics simulator for ppc476. I'll test

[PATCH 0/2] Kdump support for PPC_47x

2012-03-14 Thread Suzuki K. Poulose
The following series implements Kexec/Kdump support for PPC_47x based platforms. Doesn't support SMP yet. I have tested these patches on simics simulator for ppc476. --- Suzuki K. Poulose (2): [47x] Enable CRASH_DUMP [47x] Kernel support for KEXEC arch/powerpc/Kconfig

[PATCH 2/2] [47x] Enable CRASH_DUMP

2012-03-14 Thread Suzuki K. Poulose
Now that we have KEXEC and relocatable kernel working on 47x (!SMP) enable CRASH_DUMP. Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com --- arch/powerpc/Kconfig |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 975aae5

[PATCH 1/2] [47x] Kernel support for KEXEC

2012-03-14 Thread Suzuki K. Poulose
-2GiB in the original address space and switch to the new mapping. TODO: Add SMP support. Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com --- arch/powerpc/Kconfig |2 arch/powerpc/kernel/misc_32.S | 197 - 2 files changed, 192 insertions

Re: [PATCH 0/2] Kdump support for PPC_47x

2012-03-14 Thread Suzuki K. Poulose
On 03/15/2012 12:27 AM, Josh Boyer wrote: On Wed, Mar 14, 2012 at 6:22 AM, Suzuki K. Poulosesuz...@in.ibm.com wrote: The following series implements Kexec/Kdump support for PPC_47x based platforms. Doesn't support SMP yet. I have tested these patches on simics simulator for ppc476. Do you

Re: [PATCH v1 0/4][makedumpfile] vmalloc translation support for PPC32

2012-02-20 Thread Suzuki K. Poulose
On 02/20/2012 03:26 PM, Atsushi Kumagai wrote: Hi, Benjamin Hi, Suzuki On Fri, 17 Feb 2012 19:39:29 +1100 Benjamin Herrenschmidtb...@kernel.crashing.org wrote: On Fri, 2012-02-17 at 11:25 +0530, Suzuki K. Poulose wrote: Could you tell me what kind of data is stored in vmalloc region in PPC

Re: [PATCH v1 0/4][makedumpfile] vmalloc translation support for PPC32

2012-02-16 Thread Suzuki K. Poulose
. This is similar to what we have implemented for Crash-utility. The patches are based makedumpfile-1.4.2 + PPC32 support patches which is queued in for 1.4.3. --- Suzuki K. Poulose (4): [makedumpfile][ppc] PPC44x page translation definitions [makedumpfile][ppc] Define platform descriptors

[PATCH] [boot] Change the WARN to INFO for boot wrapper overlap message

2011-12-20 Thread Suzuki K. Poulose
boards, where the link_address should be fixed, so that the user can take actions accordingly. Changing the same to INFO. Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com --- arch/powerpc/boot/wrapper |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/boot

[PATCH v5 0/7] Kudmp support for PPC440x

2011-12-15 Thread Suzuki K. Poulose
on PPC_47x yet, as I don't have access to one. However, RELOCATABLE should work fine there as we only depend on the runtime address and the XLAT entry setup by the boot loader. It would be great if somebody could test these patches on a 47x. --- Suzuki K. Poulose (7): [boot] Change the load

[PATCH v5 1/7] [booke] Rename mapping based RELOCATABLE to DYNAMIC_MEMSTART for BookE

2011-12-15 Thread Suzuki K. Poulose
...@freescale.com Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com Cc: Scott Wood scottw...@freescale.com Cc: Kumar Gala ga...@kernel.crashing.org Cc: Josh Boyer jwbo...@gmail.com Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: linux ppc dev linuxppc-dev@lists.ozlabs.org --- arch/powerpc/Kconfig

[PATCH v5 4/7] [ppc] Define virtual-physical translations for RELOCATABLE

2011-12-15 Thread Suzuki K. Poulose
test this on 47x. Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: Kumar Gala ga...@kernel.crashing.org Cc: linuxppc-dev linuxppc-dev@lists.ozlabs.org --- arch/powerpc/include/asm/page.h | 85 ++- arch

[PATCH v5 2/7] [44x] Enable DYNAMIC_MEMSTART for 440x

2011-12-15 Thread Suzuki K. Poulose
DYNAMIC_MEMSTART(old RELOCATABLE) was restricted only to PPC_47x variants of 44x. This patch enables DYNAMIC_MEMSTART for 440x based chipsets. Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com Cc: Josh Boyer jwbo...@gmail.com Cc: Kumar Gala ga...@kernel.crashing.org Cc: Benjamin Herrenschmidt b

[PATCH v5 3/7] [ppc] Process dynamic relocations for kernel

2011-12-15 Thread Suzuki K. Poulose
the processed instructions.(Reported by: Josh Poimboeuf) Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com Signed-off-by: Josh Poimboeuf jpoim...@linux.vnet.ibm.com Cc: Paul Mackerras pau...@samba.org Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: Alan Modra amo...@au1.ibm.com Cc: Kumar Gala

[PATCH v5 5/7] [44x] Enable CONFIG_RELOCATABLE for PPC44x

2011-12-15 Thread Suzuki K. Poulose
access to a 47x board yet. So, it would be great if somebody could test this on 47x. Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: Kumar Gala ga...@kernel.crashing.org Cc: Tony Breeds t...@bakeyournoodle.com Cc: Josh Boyer jwbo...@gmail.com

[PATCH v5 6/7] [44x] Enable CRASH_DUMP for 440x

2011-12-15 Thread Suzuki K. Poulose
Now that we have relocatable kernel, supporting CRASH_DUMP only requires turning the switches on for UP machines. We don't have kexec support on 47x yet. Enabling SMP support would be done as part of enabling the PPC_47x support. Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com Cc: Josh Boyer

[PATCH v5 7/7] [boot] Change the load address for the wrapper to fit the kernel

2011-12-15 Thread Suzuki K. Poulose
: Fixing the link_address of wrapper to (0x60) Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com --- arch/powerpc/boot/wrapper | 20 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/boot/wrapper b/arch/powerpc/boot/wrapper index 14cd4bc..c8d6aaf

[PATCH v4 0/7] Kudmp support for PPC440x

2011-12-09 Thread Suzuki K. Poulose
the RELOCATABLE bits on PPC_47x yet, as I don't have access to one. However, RELOCATABLE should work fine there as we only depend on the runtime address and the XLAT entry setup by the boot loader. It would be great if somebody could test these patches on a 47x. --- Suzuki K. Poulose (7): [boot

[PATCH v4 1/7] [booke] Rename mapping based RELOCATABLE to DYNAMIC_MEMSTART for BookE

2011-12-09 Thread Suzuki K. Poulose
...@freescale.com Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com Cc: Scott Wood scottw...@freescale.com Cc: Kumar Gala ga...@kernel.crashing.org Cc: Josh Boyer jwbo...@gmail.com Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: linux ppc dev linuxppc-dev@lists.ozlabs.org --- arch/powerpc/Kconfig

[PATCH v4 2/7] [44x] Enable DYNAMIC_MEMSTART for 440x

2011-12-09 Thread Suzuki K. Poulose
DYNAMIC_MEMSTART(old RELOCATABLE) was restricted only to PPC_47x variants of 44x. This patch enables DYNAMIC_MEMSTART for 440x based chipsets. Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com Cc: Josh Boyer jwbo...@gmail.com Cc: Kumar Gala ga...@kernel.crashing.org Cc: Benjamin Herrenschmidt b

[PATCH v4 3/7] [ppc] Process dynamic relocations for kernel

2011-12-09 Thread Suzuki K. Poulose
the processed instructions.(Reported by: Josh Poimboeuf) Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com Signed-off-by: Josh Poimboeuf jpoim...@linux.vnet.ibm.com Cc: Paul Mackerras pau...@samba.org Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: Alan Modra amo...@au1.ibm.com Cc: Kumar Gala ga

[PATCH v4 4/7] [ppc] Define virtual-physical translations for RELOCATABLE

2011-12-09 Thread Suzuki K. Poulose
test this on 47x. Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: Kumar Gala ga...@kernel.crashing.org Cc: linuxppc-dev linuxppc-dev@lists.ozlabs.org --- arch/powerpc/include/asm/page.h | 85 ++- arch

[PATCH v4 5/7] [44x] Enable CONFIG_RELOCATABLE for PPC44x

2011-12-09 Thread Suzuki K. Poulose
access to a 47x board yet. So, it would be great if somebody could test this on 47x. Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: Kumar Gala ga...@kernel.crashing.org Cc: Tony Breeds t...@bakeyournoodle.com Cc: Josh Boyer jwbo...@gmail.com

[PATCH v4 6/7] [44x] Enable CRASH_DUMP for 440x

2011-12-09 Thread Suzuki K. Poulose
Now that we have relocatable kernel, supporting CRASH_DUMP only requires turning the switches on for UP machines. We don't have kexec support on 47x yet. Enabling SMP support would be done as part of enabling the PPC_47x support. Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com Cc: Josh Boyer

[PATCH v4 7/7] [boot] Change the load address for the wrapper to fit the kernel

2011-12-09 Thread Suzuki K. Poulose
shifts the load address of the boot wrapper code to the next higher MB, according to the size of the uncompressed vmlinux. Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com --- arch/powerpc/boot/wrapper | 20 1 files changed, 20 insertions(+), 0 deletions(-) diff --git

[UPDATED] [PATCH v4 3/7] [ppc] Process dynamic relocations for kernel

2011-12-09 Thread Suzuki K. Poulose
the processed instructions.(Reported by: Josh Poimboeuf) Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com Signed-off-by: Josh Poimboeuf jpoim...@linux.vnet.ibm.com Cc: Paul Mackerras pau...@samba.org Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: Alan Modra amo...@au1.ibm.com Cc: Kumar Gala ga

[UPDATED] [PATCH v3 1/8] [44x] Fix typo in KEXEC CONFIG dependency

2011-11-14 Thread Suzuki K. Poulose
Kexec is not supported on 47x. 47x is a variant of 44x with slightly different MMU and SMP support. There was a typo in the config dependency for KEXEC. This patch fixes the same. Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com Signed-off-by: Paul Bolle pebo...@tiscali.nl Cc: Kumar Gala ga

[PATCH v3 2/8] [booke] Rename mapping based RELOCATABLE to DYNAMIC_MEMSTART for BookE

2011-11-13 Thread Suzuki K. Poulose
the page alignment (platforms with smaller TLB size). I haven tested this change only on 440x. I don't have an FSL BookE to verify the changes there. Scott, Could you please test this patch on FSL and let me know the results ? Suggested-by: Scott Wood scottw...@freescale.com Signed-off-by: Suzuki K

[PATCH v3 3/8] [44x] Enable DYNAMIC_MEMSTART for 440x

2011-11-13 Thread Suzuki K. Poulose
DYNAMIC_MEMSTART(old RELOCATABLE) was restricted only to PPC_47x variants of 44x. This patch enables DYNAMIC_MEMSTART for 440x based chipsets. Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com Cc: Josh Boyer jwbo...@gmail.com Cc: Kumar Gala ga...@kernel.crashing.org Cc: Benjamin

[PATCH v3 4/8] [ppc] Process dynamic relocations for kernel

2011-11-13 Thread Suzuki K. Poulose
that depend on symbols. The value of the symbols with STB_LOCAL scope should be assumed to be zero. - Alan Modra Changes since v2: * Flush the d-cache'd instructions and invalidate the i-cache to reflect the processed instructions.(Reported by: Josh Poimboeuf) Signed-off-by: Suzuki K. Poulose suz

[PATCH v3 5/8] [ppc] Define virtual-physical translations for RELOCATABLE

2011-11-13 Thread Suzuki K. Poulose
test this on 47x. Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: Kumar Gala ga...@kernel.crashing.org Cc: linuxppc-dev linuxppc-dev@lists.ozlabs.org --- arch/powerpc/include/asm/page.h | 85

[PATCH v3 1/8] [44x] Fix typo in KEXEC Kconfig dependency

2011-11-13 Thread Suzuki K. Poulose
Kexec is not supported on 47x. 47x is a variant of 44x with slightly different MMU and SMP support. There was a typo in the Kconfig dependency for KEXEC. This patch fixes the same. Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com Cc: Kumar Gala ga...@kernel.crashing.org Cc: Josh Boyer

[PATCH v3 6/8] [44x] Enable CONFIG_RELOCATABLE for PPC44x

2011-11-13 Thread Suzuki K. Poulose
if somebody could test this on 47x. Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: Kumar Gala ga...@kernel.crashing.org Cc: Tony Breeds t...@bakeyournoodle.com Cc: Josh Boyer jwbo...@gmail.com Cc: linuxppc-dev linuxppc-dev

[PATCH v3 8/8] [boot] Change the load address for the wrapper to fit the kernel

2011-11-13 Thread Suzuki K. Poulose
shifts the load address of the boot wrapper code to the next higher MB, according to the size of the uncompressed vmlinux. Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com --- arch/powerpc/boot/wrapper | 20 1 files changed, 20 insertions(+), 0 deletions(-) diff --git

[PATCH v3 7/8] [44x] Enable CRASH_DUMP for 440x

2011-11-13 Thread Suzuki K. Poulose
Now that we have relocatable kernel, supporting CRASH_DUMP only requires turning the switches on for UP machines. We don't have kexec support on 47x yet. Enabling SMP support would be done as part of enabling the PPC_47x support. Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com Cc: Josh

[PATCH v3 0/8] Kudmp support for PPC440x

2011-11-13 Thread Suzuki K. Poulose
. --- Suzuki K. Poulose (8): [boot] Change the load address for the wrapper to fit the kernel [44x] Enable CRASH_DUMP for 440x [44x] Enable CONFIG_RELOCATABLE for PPC44x [ppc] Define virtual-physical translations for RELOCATABLE [ppc] Process dynamic relocations for kernel

[PATCH v2 0/5] Kdump support for PPC440x

2011-10-25 Thread Suzuki K. Poulose
depend on the runtime address and the XLAT entry setup by the boot loader. It would be great if somebody could test these patches on a 47x. --- Suzuki K. Poulose (5): [boot] Change the load address for the wrapper to fit the kernel [44x] Enable CRASH_DUMP for 440x [44x] Enable

[PATCH v2 1/5] [ppc] Process dynamic relocations for kernel

2011-10-25 Thread Suzuki K. Poulose
that depend on symbols. The value of the symbols with STB_LOCAL scope should be assumed to be zero. - Alan Modra Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com Cc: Paul Mackerras pau...@samba.org Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: Alan Modra amo...@au1.ibm.com Cc

[PATCH v2 2/5] [ppc] Define virtual-physical translations for PIE relocations

2011-10-25 Thread Suzuki K. Poulose
be great if somebody could test this on 47x. Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: Kumar Gala ga...@kernel.crashing.org Cc: linuxppc-dev linuxppc-dev@lists.ozlabs.org --- arch/powerpc/Makefile |1 arch

[PATCH v2 3/5] [44x] Enable CONFIG_RELOCATABLE for PPC44x

2011-10-25 Thread Suzuki K. Poulose
if somebody could test this on 47x. Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: Kumar Gala ga...@kernel.crashing.org Cc: Tony Breeds t...@bakeyournoodle.com Cc: Josh Boyer jwbo...@gmail.com Cc: linuxppc-dev linuxppc-dev

[PATCH v2 5/5] [boot] Change the load address for the wrapper to fit the kernel

2011-10-25 Thread Suzuki K. Poulose
shifts the load address of the boot wrapper code to the next higher MB, according to the size of the uncompressed vmlinux. Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com --- arch/powerpc/boot/wrapper | 20 1 files changed, 20 insertions(+), 0 deletions(-) diff --git

[PATCH v2 4/5] [44x] Enable CRASH_DUMP for 440x

2011-10-25 Thread Suzuki K. Poulose
Now that we have relocatable kernel, supporting CRASH_DUMP only requires turning the switches on for UP machines. We don't have kexec support on 47x yet. Enabling SMP support would be done as part of enabling the PPC_47x support. Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com Cc: Josh

[PATCH 0/3] Kdump support for PPC440x

2011-10-10 Thread Suzuki K. Poulose
git tree and (preferrably) the following patch for kexec-tools : http://lists.infradead.org/pipermail/kexec/2011-October/005552.html --- Suzuki K. Poulose (3): [44x] Enable CRASH_DUMP for 440x [44x] Enable CONFIG_RELOCATABLE for PPC44x [powerpc32] Process dynamic

[PATCH 1/3] [powerpc32] Process dynamic relocations for kernel

2011-10-10 Thread Suzuki K. Poulose
that depend on symbols. The value of the symbols with STB_LOCAL scope should be assumed to be zero. - Alan Modra Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com Cc: Paul Mackerras pau...@samba.org Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: Alan Modra amo...@au1.ibm.com Cc

[PATCH 2/3] [44x] Enable CONFIG_RELOCATABLE for PPC44x

2011-10-10 Thread Suzuki K. Poulose
this on 47x. Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com Cc: Paul Mackerras pau...@samba.org Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: Kumar Gala ga...@kernel.crashing.org Cc: Tony Breeds t...@bakeyournoodle.com Cc: Josh Boyer jwbo...@gmail.com Cc: linuxppc

[PATCH 3/3] [44x] Enable CRASH_DUMP for 440x

2011-10-10 Thread Suzuki K. Poulose
Now that we have relocatable kernel, supporting CRASH_DUMP only requires turning the switches on for UP machines. We don't have kexec support on 47x yet. Enabling SMP support would be done as part of enabling the PPC_47x support. Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com Cc: Josh

[UPDATED PATCH v2] powerpc32: Kexec support for PPC440X chipsets

2011-07-18 Thread Suzuki K. Poulose
UPDATE: Minor update in Copyright assignment in misc_32.S Added requirement of upstream kexec-tools. Changes from v1: Uses a tmp mapping in the other address space to setup the 1:1 mapping (suggested by Sebastian Andrzej Siewior). Note 1: Should we do the same for kernel

[PATCH v2] powerpc32: Kexec support for PPC440X chipsets

2011-07-12 Thread Suzuki K. Poulose
Changes from V1: Uses a tmp mapping in the other address space to setup the 1:1 mapping (suggested by Sebastian Andrzej Siewior). Note: Should we do the same for kernel entry code for PPC44x ? This patch adds kexec support for PPC440 based chipsets.This work is based on the

[PATCH] [v3] kexec-tools: ppc32: Fixup ThreadPointer for purgatory code

2011-07-12 Thread Suzuki K. Poulose
address overflow in TP allocation. Changes from V1: Fixed the addr calculation for uImage support. Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com Cc: Ryan S. Arnold r...@us.ibm.com --- kexec/arch/ppc/kexec-elf-ppc.c | 19 +++ kexec/arch/ppc/kexec-uImage-ppc.c | 17

[PATCH v1] kexec-tools: ppc32: Fixup the ThreadPointer for purgatory code.

2011-07-11 Thread Suzuki K. Poulose
PPC32 ELF ABI expects r2 to be loaded with Thread Pointer, which is 0x7000 bytes past the end of TCB. Though the purgatory is single threaded, it uses TCB scratch space in vsnprintf(). This patch allocates a 1024byte TCB and populates the TP with the address accordingly. Signed-off-by: Suzuki K

[PATCH v2] kexec-tools: ppc32: Fixup the ThreadPointer for purgatory code.

2011-07-11 Thread Suzuki K. Poulose
the addr calculation for uImage support. Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com Cc: Ryan S. Arnold r...@us.ibm.com --- kexec/arch/ppc/kexec-elf-ppc.c |9 + kexec/arch/ppc/kexec-uImage-ppc.c |8 purgatory/arch/ppc/purgatory-ppc.c |2 +- purgatory/arch

[PATCH v2] kexec-tools: powerpc: Use the #address-cells information to parsememory/reg

2011-06-16 Thread Suzuki K. Poulose
a read_memory_region_limits(), which parses the memory/reg contents based on the values of #address-cells and #size-cells. Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com --- kexec/arch/ppc/crashdump-powerpc.c | 33 ++-- kexec/arch/ppc/fs2dt.c | 14 --- kexec/arch/ppc/kexec-ppc.c

[PATCH v2] kexec-tools: powerpc: Use the #address-cells information to parsememory/reg

2011-06-16 Thread Suzuki K. Poulose
parses the memory/reg contents based on the values of #address-cells and #size-cells. Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com --- kexec/arch/ppc/crashdump-powerpc.c | 33 ++-- kexec/arch/ppc/fs2dt.c | 14 --- kexec/arch/ppc/kexec-ppc.c | 158