Message ID | 20230118061049.1006141-18-ajd@linux.ibm.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2173960wrn; Tue, 17 Jan 2023 22:31:18 -0800 (PST) X-Google-Smtp-Source: AMrXdXt3Z4CUjPUa+7g6ISEaiIg/cRmcb1/R3mCXRijJWze8KJ5pCjIRs4vZZdgQRG0eqqzPFIEf X-Received: by 2002:a05:6a00:4089:b0:58a:d606:4258 with SMTP id bw9-20020a056a00408900b0058ad6064258mr6595672pfb.10.1674023478519; Tue, 17 Jan 2023 22:31:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674023478; cv=none; d=google.com; s=arc-20160816; b=Ea8kCsIsIE8rCkSlA83KPshPQxLMRHKRj7n+C9qGP4ryr/YGc4LJz0mfR2mQGwhFke vIL3nSP1x8C1+5R4dK/1qnqNLOzgDMArwEU6Xg616bB/DXwN0gj/B3iOJQlKdpFBwcw8 IPMF34MX+p8TYmR5yJnystraUePVQaa1Af2au1zLz8btgEtZ5ChF64T82X0CCcCGHSR6 D27za7ZgIvoZ9azNhQqvm/FpsJD52VbThbON1SFsmgDw1Hj7fSfbJhXDnoBa80SIPEkO d9udMiCb72G5iOeEHkeXlXikVZTpE96XOrNk+szfgF67IEGp1Yd3Di/RAo2GV1yJgy5r liCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=pI3uCdNIdbUl/d/24uN/7o7/82qohxj6n/F3JEnXxcE=; b=bi/8s+i57fLp1XTX4NEDOceHboWrLfqJU+Nf6sH1y6lYgShkjzrMTM2DuJeiZFqjKC gPAQ4QKovM/R8rTXChn4gSbVA3lUaJxSZz16/YHLrlJNdmUDUN5i90jLmJgYlu2D7xSd EXEtCB0Ri4ngF9krD3BfJEzD83VD+ibXOcbsLy5fOVXGbERj13JkkvjtUrIA2ll42jya U2MTDzDhPQcZgfdU3fAoB9lCBq/AeVEg/csPG9yYdSqddvDww+GXXoRugHcR744BAEeW hofJSNUR6xqdM4u/0jZFUV159Y7wIfGT0a5hgdmYyw13IFhKLUvKMcFP+sPn34P+5U59 Tgjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="l5uQe0+/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y22-20020a626416000000b0058bb8f860bcsi14630730pfb.124.2023.01.17.22.31.06; Tue, 17 Jan 2023 22:31:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="l5uQe0+/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229904AbjARG3O (ORCPT <rfc822;pfffrao@gmail.com> + 99 others); Wed, 18 Jan 2023 01:29:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229646AbjARGWK (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 18 Jan 2023 01:22:10 -0500 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B5A64DE2D; Tue, 17 Jan 2023 22:11:27 -0800 (PST) Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30I4WsZ6029973; Wed, 18 Jan 2023 06:11:19 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pp1; bh=pI3uCdNIdbUl/d/24uN/7o7/82qohxj6n/F3JEnXxcE=; b=l5uQe0+/WMZdU3DJcOwHz6DKOsy/DBoby7ql2JmG9YvYStk4Dr894DfG57rJ/6IfIpiB vryRUs8vriW89otFYoa+MtTPpO+6PmdmDeqKx3nhzPQS/NLum7SSujlZkLnf7QMVcy6U f6l0uieNPSgRqhUwxt35E/fk91vZgDPWDfLhR+rmk1pgp4HuVHrJr3KEEtXK1DGmqZod Klbax/VNrWnpdkbH4uYYF10rVHzYHaAilcl2g5+zvQwFmdu7jcR7myKIUz+5zTWEsdL1 xHsQ8Ilt8GE6Y3A6REXdQ5/hOgz6TaH80M7KP4Plz1rQpsW5QunCXMTPp9fuyvrdllJS +w== Received: from ppma06ams.nl.ibm.com (66.31.33a9.ip4.static.sl-reverse.com [169.51.49.102]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3n66eydg06-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 18 Jan 2023 06:11:19 +0000 Received: from pps.filterd (ppma06ams.nl.ibm.com [127.0.0.1]) by ppma06ams.nl.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 30HMOD3M006223; Wed, 18 Jan 2023 06:11:17 GMT Received: from smtprelay03.fra02v.mail.ibm.com ([9.218.2.224]) by ppma06ams.nl.ibm.com (PPS) with ESMTPS id 3n3knfmtkk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 18 Jan 2023 06:11:17 +0000 Received: from smtpav02.fra02v.mail.ibm.com (smtpav02.fra02v.mail.ibm.com [10.20.54.101]) by smtprelay03.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 30I6BEif44761470 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 18 Jan 2023 06:11:14 GMT Received: from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B78752004E; Wed, 18 Jan 2023 06:11:14 +0000 (GMT) Received: from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3C66620040; Wed, 18 Jan 2023 06:11:14 +0000 (GMT) Received: from ozlabs.au.ibm.com (unknown [9.192.253.14]) by smtpav02.fra02v.mail.ibm.com (Postfix) with ESMTP; Wed, 18 Jan 2023 06:11:14 +0000 (GMT) Received: from jarvis-ozlabs-ibm-com.ozlabs.ibm.com (haven.au.ibm.com [9.192.254.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.au.ibm.com (Postfix) with ESMTPSA id 8166860996; Wed, 18 Jan 2023 17:11:08 +1100 (AEDT) From: Andrew Donnellan <ajd@linux.ibm.com> To: linuxppc-dev@lists.ozlabs.org, linux-integrity@vger.kernel.org Cc: gregkh@linuxfoundation.org, gcwilson@linux.ibm.com, linux-kernel@vger.kernel.org, nayna@linux.ibm.com, ruscur@russell.cc, zohar@linux.ibm.com, mpe@ellerman.id.au, gjoyce@linux.ibm.com, sudhakar@linux.ibm.com, bgray@linux.ibm.com, erichte@linux.ibm.com Subject: [PATCH v3 17/24] powerpc/pseries: Log hcall return codes for PLPKS debug Date: Wed, 18 Jan 2023 17:10:42 +1100 Message-Id: <20230118061049.1006141-18-ajd@linux.ibm.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230118061049.1006141-1-ajd@linux.ibm.com> References: <20230118061049.1006141-1-ajd@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: WoA4VEG5Z_XH5FeGV_9cvB1laQ8zKfe_ X-Proofpoint-GUID: WoA4VEG5Z_XH5FeGV_9cvB1laQ8zKfe_ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.923,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-18_01,2023-01-17_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 priorityscore=1501 impostorscore=0 malwarescore=0 spamscore=0 mlxscore=0 bulkscore=0 adultscore=0 mlxlogscore=999 suspectscore=0 clxscore=1015 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301180051 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755340843190664784?= X-GMAIL-MSGID: =?utf-8?q?1755340843190664784?= |
Series |
pSeries dynamic secure boot secvar interface + platform keyring loading
|
|
Commit Message
Andrew Donnellan
Jan. 18, 2023, 6:10 a.m. UTC
From: Russell Currey <ruscur@russell.cc> The plpks code converts hypervisor return codes into their Linux equivalents so that users can understand them. Having access to the original return codes is really useful for debugging, so add a pr_debug() so we don't lose information from the conversion. Signed-off-by: Russell Currey <ruscur@russell.cc> Signed-off-by: Andrew Donnellan <ajd@linux.ibm.com> --- arch/powerpc/platforms/pseries/plpks.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/arch/powerpc/platforms/pseries/plpks.c b/arch/powerpc/platforms/pseries/plpks.c index 796ed5544ee5..96a026a37285 100644 --- a/arch/powerpc/platforms/pseries/plpks.c +++ b/arch/powerpc/platforms/pseries/plpks.c @@ -117,6 +117,8 @@ static int pseries_status_to_err(int rc) err = -EINVAL; } + pr_debug("Converted hypervisor code %d to Linux %d\n", rc, err); + return err; }