Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp656744ybz; Wed, 29 Apr 2020 07:08:49 -0700 (PDT) X-Google-Smtp-Source: APiQypKv9L/2SavJQctjT1HiUT1arVsMNC9vtKQeMcsu9qbF3aY1hckonIPPJJeQZ8bvSziGKQum X-Received: by 2002:a17:906:1fd6:: with SMTP id e22mr2866967ejt.150.1588169329376; Wed, 29 Apr 2020 07:08:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588169329; cv=none; d=google.com; s=arc-20160816; b=aN3JJq8zJ7RpTyyyt/jhSSO31WtwmvdZ3G9nWdL7/CC/SYQzeYls6SLsGH9wa7Puxy QVvM6dzjT4C3AAqrUctprYLMATkry/22D4LmWY+Ahm778tlrSoCO/I1TN78TngPqNbPp +sIK8hzPOwpmdZAFk6xJwpgg6jG2OcvXH1kOfCjEAiwfCPzS5Yy15kMoTigohruPgmtm W+do3r/ntvdfbCxn6yuHBUDGSh3d+7bvseVTeXB0pMQP2YD9Qwe0Rt4h+xG+Mbwp3JWQ cudCr/wJ/mwLno8wpRBy15MpwANIoVMb5QLXkZY/msP1L4y28asfhgHGMEMWtjTl5pqR QSKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:reply-to:message-id:subject:cc:to:from:date; bh=3Wsq75jRQ2i2Axk63ZkgY7BVCY0zgthZMy86NEhsOw4=; b=SIJVBGIl4viRLYGXk1yIoWS8lq/UyaAcy0D0kygk5kxVLNl4zTJCvj3/oZ241SSIa/ t5XI1NjEpdHkZJrMam6vWiQwsGgsYT+nyhlDBYOcmp/Lum2y5i7ZaPU+9i+wZv6ncZuU Gtj/I3QO9oOgQCUYoq7gpsW6FQ5dThbzQOn6fy0zxveqnCKyasjBGzoOjL7W3wXl+ews fqZkQjBIUtT5VMAxbL+auAVRRwh+1yjb6NEBDIVjOLVQGv/WNiHtSIaRm+VQk9qAsqUH uQR5EPRp2Ol0rR0/3UR5VwnRUH7CZyrGEKnTqhqXna0Ju8hIXGSTKgN8npNVAFGdzfwN DY8Q== 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 c7si3928513ejx.28.2020.04.29.07.08.16; Wed, 29 Apr 2020 07:08:49 -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 S1728001AbgD2OGE (ORCPT + 99 others); Wed, 29 Apr 2020 10:06:04 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:40308 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726974AbgD2OGD (ORCPT ); Wed, 29 Apr 2020 10:06:03 -0400 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 03TE2M0R087844; Wed, 29 Apr 2020 10:05:52 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 30me469ts9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 29 Apr 2020 10:05:52 -0400 Received: from m0098393.ppops.net (m0098393.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 03TE2it7090253; Wed, 29 Apr 2020 10:05:52 -0400 Received: from ppma02fra.de.ibm.com (47.49.7a9f.ip4.static.sl-reverse.com [159.122.73.71]) by mx0a-001b2d01.pphosted.com with ESMTP id 30me469tm4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 29 Apr 2020 10:05:51 -0400 Received: from pps.filterd (ppma02fra.de.ibm.com [127.0.0.1]) by ppma02fra.de.ibm.com (8.16.0.27/8.16.0.27) with SMTP id 03TE3Vdh010400; Wed, 29 Apr 2020 14:05:41 GMT Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by ppma02fra.de.ibm.com with ESMTP id 30mcu7wsqv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 29 Apr 2020 14:05:41 +0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 03TE5cCm65732862 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 29 Apr 2020 14:05:38 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DC4034C04E; Wed, 29 Apr 2020 14:05:38 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 851594C040; Wed, 29 Apr 2020 14:05:36 +0000 (GMT) Received: from drishya.in.ibm.com (unknown [9.85.83.72]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Wed, 29 Apr 2020 14:05:36 +0000 (GMT) Date: Wed, 29 Apr 2020 19:35:33 +0530 From: Vaidyanathan Srinivasan To: Pratik Rajesh Sampat Cc: linux-kernel@vger.kernel.org, linuxppc-dev@ozlabs.org, mpe@ellerman.id.au, skiboot@lists.ozlabs.org, oohall@gmail.com, ego@linux.vnet.ibm.com, linuxram@us.ibm.com, pratik.r.sampat@gmail.com Subject: Re: [PATCH v8 2/3] API to verify the STOP API and image compatibility Message-ID: <20200429140533.GC4852@drishya.in.ibm.com> Reply-To: svaidy@linux.ibm.com References: <20200423105438.29034-1-psampat@linux.ibm.com> <20200423105438.29034-3-psampat@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20200423105438.29034-3-psampat@linux.ibm.com> X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.676 definitions=2020-04-29_05:2020-04-29,2020-04-29 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 bulkscore=0 lowpriorityscore=0 priorityscore=1501 mlxscore=0 impostorscore=0 spamscore=0 malwarescore=0 mlxlogscore=999 clxscore=1015 phishscore=0 suspectscore=2 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004290115 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Pratik Rajesh Sampat [2020-04-23 16:24:37]: > From: Prem Shanker Jha > > Commit defines a new API primarily intended for OPAL to determine > cpu register save API's compatibility with HOMER layout and > self save restore. It can help OPAL determine if version of > API integrated with OPAL is different from hostboot. > > Change-Id: Ic0de45a336cfb8b6b6096a10ac1cd3ffbaa44fc0 > Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/77612 > Tested-by: FSP CI Jenkins > Tested-by: Jenkins Server > Tested-by: Hostboot CI > Reviewed-by: RANGANATHPRASAD G. BRAHMASAMUDRA > Reviewed-by: Gregory S Still > Reviewed-by: Jennifer A Stofer > Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/77614 > Tested-by: Jenkins OP Build CI > Tested-by: Jenkins OP HW > Reviewed-by: Daniel M Crowell > Signed-off-by: Pratik Rajesh Sampat Reviewed-by: Vaidyanathan Srinivasan > --- > include/p9_stop_api.H | 25 ++++++++++ > libpore/p9_cpu_reg_restore_instruction.H | 7 ++- > libpore/p9_hcd_memmap_base.H | 7 +++ > libpore/p9_stop_api.C | 58 +++++++++++++++++++++++- > libpore/p9_stop_api.H | 26 ++++++++++- > libpore/p9_stop_util.H | 20 ++++---- > 6 files changed, 130 insertions(+), 13 deletions(-) This stop-api code will help OPAL check and use self-save functions so that different versions of OPAL can be loaded and run with different versions of low level firmware stack. --Vaidy