Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2968834ybt; Mon, 29 Jun 2020 11:43:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzS4gNDhSLTU05xlxlI/GcEWYkcaB6MvJdyYMiiwFX4TuWO6uE+D8XoXOCObaZNCD43OTDN X-Received: by 2002:a17:906:2c18:: with SMTP id e24mr15981086ejh.335.1593456237949; Mon, 29 Jun 2020 11:43:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593456237; cv=none; d=google.com; s=arc-20160816; b=j7T7lVItWiRbGjMiH5wh/9+XIKNYM4COEOtB5Aord8WeVpQT/FvX1PEyAKeRBuz7fU vbl1x6pV/IJFUIqGTTrj2Gc2SBYt8Fb64xO93jCw1aar32/0yxU/Gd4hiCBnaaHXippK tiTE2pJiriLVNQfci3Np9Wkyws6jrV3aFsD3vXS0ZMYHMnKOZ8Bnn/A+Kxp3Q9feHAj2 /UsB6rBZszEJF079Wy6u8kvsceKu2wc5ta8ZTmNMV8NKinSKyWTRGxsJGMa7VyXQnxjh bnTvFuAsL0sQ/kSm8zu+JSEmjHoQy/Wn6GAekPmLX7D4u4hpu77/dsivmF7bdf1RpXML yHxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=lNea3NzfvvHcRgoJm8HSdQWwCNLLy0+WBw3Vyh5STFo=; b=HXvyjHgIPq10/GTl27mtUYsVW5d5vxlOZQaEQukGiKFFLqdsM41CW+Gp+Vb/qSoiN3 cS9jo1QALTtoBqR2nrXmmYPlQTZxT44xnX2shg7aw93SGBCJY6EKIfQVPhSlohnIy2bb XebYACizX0om5TwI1ZoXqKtwnGD2bFq79MuSbQ6demzECT3vJGOkOSSAGOJAgqxbbVp7 vDPIwBbuu7tts5clV5XReUBZ9ortAIi3DWlcY+LI/fH/ct4oqraV2OpLkn+ixbenkkqv IyZSP20GeNe+W+Hct3oPEj4sxQFJaeEsJKXbRpnXxtrDbynQl2INiMZbSlQCv6V5Z484 yzow== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oa20si229900ejb.714.2020.06.29.11.43.34; Mon, 29 Jun 2020 11:43:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728040AbgF2Sna (ORCPT + 99 others); Mon, 29 Jun 2020 14:43:30 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:1808 "EHLO mx0b-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726158AbgF2Sn3 (ORCPT ); Mon, 29 Jun 2020 14:43:29 -0400 Received: from pps.filterd (m0127361.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 05T62F0i179145; Mon, 29 Jun 2020 02:23:18 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 31xkqjaqjf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Jun 2020 02:23:17 -0400 Received: from m0127361.ppops.net (m0127361.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 05T62PWK179837; Mon, 29 Jun 2020 02:23:17 -0400 Received: from ppma04fra.de.ibm.com (6a.4a.5195.ip4.static.sl-reverse.com [149.81.74.106]) by mx0a-001b2d01.pphosted.com with ESMTP id 31xkqjaqht-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Jun 2020 02:23:17 -0400 Received: from pps.filterd (ppma04fra.de.ibm.com [127.0.0.1]) by ppma04fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 05T6L5Tu011514; Mon, 29 Jun 2020 06:23:15 GMT Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by ppma04fra.de.ibm.com with ESMTP id 31wwr80whk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Jun 2020 06:23:15 +0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 05T6NCjx2621908 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 29 Jun 2020 06:23:12 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 46019A4053; Mon, 29 Jun 2020 06:23:12 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 14DC8A405B; Mon, 29 Jun 2020 06:23:09 +0000 (GMT) Received: from [9.102.0.109] (unknown [9.102.0.109]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 29 Jun 2020 06:23:08 +0000 (GMT) Subject: Re: [PATCH 02/11] powerpc/kexec_file: mark PPC64 specific code To: Christophe Leroy , Michael Ellerman , Andrew Morton Cc: Pingfan Liu , Kexec-ml , Petr Tesarik , Mahesh J Salgaonkar , Sourabh Jain , lkml , linuxppc-dev , Mimi Zohar , Thiago Jung Bauermann , Dave Young , Vivek Goyal , Eric Biederman References: <159319825403.16351.7253978047621755765.stgit@hbathini.in.ibm.com> <159319829236.16351.3935863082429593906.stgit@hbathini.in.ibm.com> <68d59c00-da02-b362-7bd9-a9631eca0fdd@csgroup.eu> From: Hari Bathini Message-ID: <29542b4a-eb44-5330-60e8-c0b0d294d72f@linux.ibm.com> Date: Mon, 29 Jun 2020 11:53:08 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <68d59c00-da02-b362-7bd9-a9631eca0fdd@csgroup.eu> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216,18.0.687 definitions=2020-06-29_04:2020-06-26,2020-06-29 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 bulkscore=0 mlxscore=0 adultscore=0 clxscore=1011 phishscore=0 priorityscore=1501 malwarescore=0 lowpriorityscore=0 suspectscore=0 cotscore=-2147483648 spamscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006290039 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Christophe Thanks for the review... On 27/06/20 12:12 pm, Christophe Leroy wrote: > > > Le 26/06/2020 à 21:04, Hari Bathini a écrit : >> Some of the kexec_file_load code isn't PPC64 specific. Move PPC64 >> specific code from kexec/file_load.c to kexec/file_load_64.c. Also, >> rename purgatory/trampoline.S to purgatory/trampoline_64.S in the >> same spirit. > > At the time being, CONFIG_KEXEC_FILE depends on PPC64. Right. > Are you planning to make it work on PPC32 as well ? No. > Otherwise I don't understand the purpose of this patch. But I want to make sure the changes I am adding in this series do not get in the way of adding PPC32 changes whenever they are submitted as there is common code currently and some more of it in the changes I am adding in this series... > Also, what is being done in this patch seems to go far beyond what you describe above.> It is propably worth splitting in several patches with proper explanation. Hmmm.. I don't see any other reason beyond what I mentioned above. Will try to split the patch but the changelog would still be the same, afaics. > Christophe > >> >> Signed-off-by: Hari Bathini >> --- >>   arch/powerpc/include/asm/kexec.h       |   11 +++ >>   arch/powerpc/kexec/Makefile            |    2 - >>   arch/powerpc/kexec/elf_64.c            |    7 +- >>   arch/powerpc/kexec/file_load.c         |   37 ++-------- >>   arch/powerpc/kexec/file_load_64.c      |  108 ++++++++++++++++++++++++++++++ >>   arch/powerpc/purgatory/Makefile        |    4 + >>   arch/powerpc/purgatory/trampoline.S    |  117 -------------------------------- >>   arch/powerpc/purgatory/trampoline_64.S |  117 ++++++++++++++++++++++++++++++++ >>   8 files changed, 248 insertions(+), 155 deletions(-) >>   create mode 100644 arch/powerpc/kexec/file_load_64.c >>   delete mode 100644 arch/powerpc/purgatory/trampoline.S >>   create mode 100644 arch/powerpc/purgatory/trampoline_64.S Thanks Hari