From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964923Ab1GMGBw (ORCPT ); Wed, 13 Jul 2011 02:01:52 -0400 Received: from e28smtp09.in.ibm.com ([122.248.162.9]:36599 "EHLO e28smtp09.in.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752502Ab1GMGBv (ORCPT ); Wed, 13 Jul 2011 02:01:51 -0400 Message-ID: <4E1D34CB.8010207@in.ibm.com> Date: Wed, 13 Jul 2011 11:31:47 +0530 From: Suzuki Poulose User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Thunderbird/3.1.10 MIME-Version: 1.0 To: Kumar Gala CC: Benjammin Herrenschmidt , Sebastian Andrzej Siewior , kexec , lkml , Josh Boyer , Paul Mackerras , linux ppc dev , Vivek Goyal Subject: Re: [PATCH v2] powerpc32: Kexec support for PPC440X chipsets References: <20110712064356.28567.48722.stgit@suzukikp.in.ibm.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/13/11 10:58, Kumar Gala wrote: > > On Jul 12, 2011, at 1:44 AM, Suzuki K. Poulose wrote: > >> 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 KEXEC patches for FSL BookE. >> >> The FSL BookE patch and the code flow could be found at the link below: >> >> http://patchwork.ozlabs.org/patch/49359/ >> >> Steps: >> >> 1) Invalidate all the TLB entries except the one this code is run from >> 2) Create a tmp mapping for our code in the other address space and jump to it >> 3) Invalidate the entry we used >> 4) Create a 1:1 mapping for 0-2GiB in blocks of 256M >> 5) Jump to the new 1:1 mapping and invalidate the tmp mapping >> >> I have tested this patches on Ebony, Sequoia boards and Virtex on QEMU. >> It would be great if somebody could test this on the other boards. >> >> Signed-off-by: Suzuki Poulose >> Cc: Sebastian Andrzej Siewior >> --- >> >> arch/powerpc/Kconfig | 2 >> arch/powerpc/include/asm/kexec.h | 2 >> arch/powerpc/kernel/misc_32.S | 170 ++++++++++++++++++++++++++++++++++++++ >> 3 files changed, 172 insertions(+), 2 deletions(-) >> >> diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig >> index 423145a6..d04fae0 100644 >> --- a/arch/powerpc/Kconfig >> +++ b/arch/powerpc/Kconfig >> @@ -349,7 +349,7 @@ config ARCH_ENABLE_MEMORY_HOTREMOVE >> >> config KEXEC >> bool "kexec system call (EXPERIMENTAL)" >> - depends on (PPC_BOOK3S || FSL_BOOKE)&& EXPERIMENTAL >> + depends on (PPC_BOOK3S || FSL_BOOKE || (44x&& !SMP&& !47x))&& EXPERIMENTAL > > Is there something special about 47x that its not supported? At the moment, I have not written the code for doing the 47x TLB setup which is slightly different from 44x. It is in my TODO list. I don't have access to a 47x yet. I will work on it once I get access to the board. Thanks Suzuki > >> help >> kexec is a system call that implements the ability to shutdown your >> current kernel, and to start another kernel. It is like a reboot > > - k > _______________________________________________ > kexec mailing list > kexec@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/kexec