From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from e23smtp01.au.ibm.com ([202.81.31.143]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Qif53-0001HY-RM for kexec@lists.infradead.org; Mon, 18 Jul 2011 04:05:19 +0000 Received: from d23relay03.au.ibm.com (d23relay03.au.ibm.com [202.81.31.245]) by e23smtp01.au.ibm.com (8.14.4/8.13.1) with ESMTP id p6I40aZo025769 for ; Mon, 18 Jul 2011 14:00:36 +1000 Received: from d23av03.au.ibm.com (d23av03.au.ibm.com [9.190.234.97]) by d23relay03.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p6I454jJ983262 for ; Mon, 18 Jul 2011 14:05:04 +1000 Received: from d23av03.au.ibm.com (loopback [127.0.0.1]) by d23av03.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p6I45235002936 for ; Mon, 18 Jul 2011 14:05:03 +1000 Message-ID: <4E23B0EB.2050301@in.ibm.com> Date: Mon, 18 Jul 2011 09:34:59 +0530 From: Suzuki Poulose MIME-Version: 1.0 Subject: Re: [PATCH v2] powerpc32: Kexec support for PPC440X chipsets References: <20110712064356.28567.48722.stgit@suzukikp.in.ibm.com> In-Reply-To: <20110712064356.28567.48722.stgit@suzukikp.in.ibm.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: kexec-bounces@lists.infradead.org Errors-To: kexec-bounces+dwmw2=twosheds.infradead.org@lists.infradead.org To: Benjammin Herrenschmidt , Kumar Gala Cc: Michal Simek , Sebastian Andrzej Siewior , kexec , lkml , Josh Boyer , Vivek Goyal , "Suzuki K. Poulose" , linux ppc dev , Paul Mackerras On 07/12/11 12:14, 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. Forgot to mention: You would need the current snapshot of kexec-tools, available at git://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git The following commits(in the current tree) are needed for the support of ppc32. commit 13f6d71bdf9836b90ae4ec21209383f1a3c56b0f kexec-tools: ppc32: Fixup ThreadPointer for purgatory code commit 9ec3fac7e8840fb31891ba49a626c5dd33e09e86 kexec-tools: powerpc: Use the #address-cells information to parsememory/reg commit 806ef8870539a6c74a2a98188d0207a038b16f77 Fix memory errors on ppc Thanks Suzuki _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from e23smtp04.au.ibm.com (e23smtp04.au.ibm.com [202.81.31.146]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "e23smtp04.au.ibm.com", Issuer "GeoTrust SSL CA" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id 07D00B6F88 for ; Mon, 18 Jul 2011 14:05:07 +1000 (EST) Received: from d23relay05.au.ibm.com (d23relay05.au.ibm.com [202.81.31.247]) by e23smtp04.au.ibm.com (8.14.4/8.13.1) with ESMTP id p6I3wlnV001274 for ; Mon, 18 Jul 2011 13:58:47 +1000 Received: from d23av03.au.ibm.com (d23av03.au.ibm.com [9.190.234.97]) by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p6I44Z8S1036434 for ; Mon, 18 Jul 2011 14:04:35 +1000 Received: from d23av03.au.ibm.com (loopback [127.0.0.1]) by d23av03.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p6I45237002936 for ; Mon, 18 Jul 2011 14:05:04 +1000 Message-ID: <4E23B0EB.2050301@in.ibm.com> Date: Mon, 18 Jul 2011 09:34:59 +0530 From: Suzuki Poulose MIME-Version: 1.0 To: Benjammin Herrenschmidt , Kumar Gala Subject: Re: [PATCH v2] powerpc32: Kexec support for PPC440X chipsets References: <20110712064356.28567.48722.stgit@suzukikp.in.ibm.com> In-Reply-To: <20110712064356.28567.48722.stgit@suzukikp.in.ibm.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Cc: Michal Simek , Sebastian Andrzej Siewior , kexec , lkml , Josh Boyer , Vivek Goyal , "Suzuki K. Poulose" , linux ppc dev , Paul Mackerras List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 07/12/11 12:14, 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. Forgot to mention: You would need the current snapshot of kexec-tools, available at git://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git The following commits(in the current tree) are needed for the support of ppc32. commit 13f6d71bdf9836b90ae4ec21209383f1a3c56b0f kexec-tools: ppc32: Fixup ThreadPointer for purgatory code commit 9ec3fac7e8840fb31891ba49a626c5dd33e09e86 kexec-tools: powerpc: Use the #address-cells information to parsememory/reg commit 806ef8870539a6c74a2a98188d0207a038b16f77 Fix memory errors on ppc Thanks Suzuki From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751469Ab1GREFO (ORCPT ); Mon, 18 Jul 2011 00:05:14 -0400 Received: from e23smtp03.au.ibm.com ([202.81.31.145]:47709 "EHLO e23smtp03.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750725Ab1GREFJ (ORCPT ); Mon, 18 Jul 2011 00:05:09 -0400 Message-ID: <4E23B0EB.2050301@in.ibm.com> Date: Mon, 18 Jul 2011 09:34:59 +0530 From: Suzuki Poulose User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110621 Fedora/3.1.11-1.fc14 Thunderbird/3.1.11 MIME-Version: 1.0 To: Benjammin Herrenschmidt , Kumar Gala CC: "Suzuki K. Poulose" , Sebastian Andrzej Siewior , kexec , lkml , Josh Boyer , Paul Mackerras , linux ppc dev , Vivek Goyal , Michal Simek Subject: Re: [PATCH v2] powerpc32: Kexec support for PPC440X chipsets References: <20110712064356.28567.48722.stgit@suzukikp.in.ibm.com> In-Reply-To: <20110712064356.28567.48722.stgit@suzukikp.in.ibm.com> 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/12/11 12:14, 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. Forgot to mention: You would need the current snapshot of kexec-tools, available at git://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git The following commits(in the current tree) are needed for the support of ppc32. commit 13f6d71bdf9836b90ae4ec21209383f1a3c56b0f kexec-tools: ppc32: Fixup ThreadPointer for purgatory code commit 9ec3fac7e8840fb31891ba49a626c5dd33e09e86 kexec-tools: powerpc: Use the #address-cells information to parsememory/reg commit 806ef8870539a6c74a2a98188d0207a038b16f77 Fix memory errors on ppc Thanks Suzuki