Message ID | 20230120074306.1326298-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 s9csp65620wrn; Thu, 19 Jan 2023 23:45:02 -0800 (PST) X-Google-Smtp-Source: AMrXdXs366ct96Hl0GHZ2bIRCrVAn3fkgPYfSWm1Xm0AA82LNC4+l/EMji4dvif3tUoJM1fDxYW/ X-Received: by 2002:a05:6a20:6f62:b0:b2:48e8:e3a9 with SMTP id gu34-20020a056a206f6200b000b248e8e3a9mr12285427pzb.12.1674200702441; Thu, 19 Jan 2023 23:45:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674200702; cv=none; d=google.com; s=arc-20160816; b=UPtojvB7w48TF/jbSPkTyxusnbNAfpcdugVybtYsHEWlo8h8jmFx8S1FRIHKf2SDHS plWlmWjtcCCPkx/O6h+uxkYQMOjDXVpUp07hrX2B+r1kdYMkUNOPGcBoeqRNKOwaYUqU tAbizPBxnSyKGCtxCqcyRmXTUodADRtSKzxhAkQagRAEJrnfYm6HvUXTxzZgopbQc3pD e9UC+A16HauTAmwPBMA6rfYcdrCC32EUr2LR5J9CHyhPFH2TL92toO08+6YHROpSh5AH lmbfsDUV06hS/4MI7AfahN/rsnfuTiM7qEPwADA8QiUSL2xEoaZ+Q9GTQef4WWor9MEB lTwA== 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=rfBM11O1uo4fVgZLPMMsN8uo2nYM4broTpk33QZCriu4RPW9FIhZ9p9EU33iCB9RIK AiYCA3EJqJL/eWfAlhMZjdEW27r5dUno7wC5x6z33W8oyB26Hhu//o//r1441Ivg87Uc eL3q/lWngjNGqrz8J4/o+ZlqTzpoEZoDx37pFzRQaMQu63CfeUZ5Rc7zv8nx2HE+iDXl gPrC6RuL/DIaHMqURwiHciuCZW3aBwlUH4Egz1RNen9GZzeb2MDm5+duO+AvqDsqKtAe TQjUvBrVNdLmrkEsYLwhl+P2Fz/p8UE7EHpHBddGOU0YNqsyFNk59Uuj9bh0xRI4S68a ee6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=Y47Npgif; 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 t10-20020a63224a000000b00478f9831638si39144801pgm.286.2023.01.19.23.44.49; Thu, 19 Jan 2023 23:45:02 -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=Y47Npgif; 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 S230495AbjATHob (ORCPT <rfc822;changwoo.m@gmail.com> + 99 others); Fri, 20 Jan 2023 02:44:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230215AbjATHnv (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 20 Jan 2023 02:43:51 -0500 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B94E182D5D; Thu, 19 Jan 2023 23:43:49 -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 30K7Jg6A027759; Fri, 20 Jan 2023 07:43:42 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=Y47NpgifnlQQHTrcv4FMeqFkQlN6XsjaOKJuxua3EpLU/pcTjtO6wm4goDMtEm2AEcJg 0zCazLZ87ST2ObDNPgmvfeGRIeS4089fZ+eECpm3ZwbuRgYYldUrclwAwDncvriYB51f PwGeHE/F18a+bIob2ZKBK2ngo6eAXGrTc4vrLNVhh5Kj8pNlfNKZh4szOVK9xdA7Ciw7 JWNf+dq7mZNynfPrW9NBxKYZJ5krziwwNpDlAZ31n83ypo5qpuefp1MyOjZqW+ykW+5t BJ15CGW4QPeSij/AvKFRC9QqZPyq+LDEBS0Z9W8soGrDJp/ZMy5VPMC9EiMqZkKmhk+F Aw== Received: from ppma03ams.nl.ibm.com (62.31.33a9.ip4.static.sl-reverse.com [169.51.49.98]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3n7pfj8cka-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Jan 2023 07:43:41 +0000 Received: from pps.filterd (ppma03ams.nl.ibm.com [127.0.0.1]) by ppma03ams.nl.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 30JJerVX023792; Fri, 20 Jan 2023 07:43:39 GMT Received: from smtprelay07.fra02v.mail.ibm.com ([9.218.2.229]) by ppma03ams.nl.ibm.com (PPS) with ESMTPS id 3n3m16qp3f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Jan 2023 07:43:39 +0000 Received: from smtpav05.fra02v.mail.ibm.com (smtpav05.fra02v.mail.ibm.com [10.20.54.104]) by smtprelay07.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 30K7hbix47120850 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 20 Jan 2023 07:43:37 GMT Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1C1E420049; Fri, 20 Jan 2023 07:43:37 +0000 (GMT) Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 948FB20043; Fri, 20 Jan 2023 07:43:36 +0000 (GMT) Received: from ozlabs.au.ibm.com (unknown [9.192.253.14]) by smtpav05.fra02v.mail.ibm.com (Postfix) with ESMTP; Fri, 20 Jan 2023 07:43:36 +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 3CF906096D; Fri, 20 Jan 2023 18:43:30 +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, joel@jms.id.au Subject: [PATCH v4 17/24] powerpc/pseries: Log hcall return codes for PLPKS debug Date: Fri, 20 Jan 2023 18:42:59 +1100 Message-Id: <20230120074306.1326298-18-ajd@linux.ibm.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230120074306.1326298-1-ajd@linux.ibm.com> References: <20230120074306.1326298-1-ajd@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: 0kkhtdPqLJuZrYuqIpQ8sXzzYby9r8vR X-Proofpoint-GUID: 0kkhtdPqLJuZrYuqIpQ8sXzzYby9r8vR X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-20_04,2023-01-19_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 impostorscore=0 mlxlogscore=999 phishscore=0 lowpriorityscore=0 malwarescore=0 spamscore=0 adultscore=0 bulkscore=0 suspectscore=0 clxscore=1015 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301200070 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?1755526675392714497?= X-GMAIL-MSGID: =?utf-8?q?1755526675392714497?= |
Series |
pSeries dynamic secure boot secvar interface + platform keyring loading
|
|
Commit Message
Andrew Donnellan
Jan. 20, 2023, 7:42 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; }