Message ID | 20230210080401.345462-19-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 s9csp821675wrn; Fri, 10 Feb 2023 00:08:34 -0800 (PST) X-Google-Smtp-Source: AK7set9zpt7xl+AsWugIf3ogL1BG0C84TaBQjUvBXLa48+AWeegqBG5c2CemYEnGBYr/pAgsL7A1 X-Received: by 2002:a50:9512:0:b0:4ab:1c05:a513 with SMTP id u18-20020a509512000000b004ab1c05a513mr5360093eda.10.1676016514388; Fri, 10 Feb 2023 00:08:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676016514; cv=none; d=google.com; s=arc-20160816; b=a7wCF0uHcVkhY+veqgTBgPa48ysJbmX51FgwfrbY2NUfVcLUqXLyzOWjjRUbgAaJLH QyVkBLZ7ykYi1mfM9bVhhzoSsau3RiOnrBiisi5v4tjRX+YWp7jA8nVh2KzABPOLXsDf wR50Hm71/mQ4S5W1v3DzYDE/5zoARR+iowYZNsl713vTbwrM7+IFhORISpFab0Dz57eL QoWS9+fXB5kMfRScouhfyaMhKp32pZ4BKHGlJTDLeM4jVjd4zH8kpuwViSLZ1Vv9TR0/ RNPdIB3NGqiYHEkrU5U8gxflfRtZrXW2uvksJwYOIibYZ3Ltuv26HxxUJNMch7/sbQg4 hUkA== 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=UnzXq2OcvfxiXutsiymzBCI87K9XMb/T4J2mZtLKH8w=; b=gcg38xAU4C3xWmoqcgelMKxBbfOYLrw4hxNqhLMratQSkW9Xbxlkn7Hic6WZAdeb4F ueuxkbSvD6Esb6ugh9L+FJMuHyzD5DMlVGHT57TIieb6z3EbgIBKQJ8kayGtHKe76J7+ 86mfiG2OWwnZM0EtsbC/S+K3jf7LBjakeTv/OVO9ARUU3wlKOKtBGM9ryMxrxYyzlXa/ hHadcyrbhziutRN3BTWcoXukCAnPa+9qQhKrUvf+UPdLC+eWD82rKxRBMNR3E3shni1e 5PZPcdr4hRrs+QIJUbTI4tsjqrhXyiz1wsFQo02jNOWeEdxujEDyIvwcLsBSb9sJOjkW O9Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=DYK8v+AK; 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 x24-20020aa7dad8000000b004ab1d672074si4543975eds.167.2023.02.10.00.08.11; Fri, 10 Feb 2023 00:08:34 -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=DYK8v+AK; 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 S231635AbjBJIFU (ORCPT <rfc822;ybw1215001957@gmail.com> + 99 others); Fri, 10 Feb 2023 03:05:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231573AbjBJIEw (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 10 Feb 2023 03:04:52 -0500 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC7E981848; Fri, 10 Feb 2023 00:04:36 -0800 (PST) Received: from pps.filterd (m0127361.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31A7hLk1006955; Fri, 10 Feb 2023 08:04:28 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=UnzXq2OcvfxiXutsiymzBCI87K9XMb/T4J2mZtLKH8w=; b=DYK8v+AKfYOGB/9fmd08CcXmMQFuizHB8LOUETUYroRKhuuc7nn4tnF6sA+ocYUpags/ qGO80miOAE82rxYV+NhJPjFiMc9UL9GY/A7N/mM80xBafeFygo+Ap1yyzyaJSKJ/jrSg +VoNU2rLUy2ydfQgZ9YFXm01MbVq5bXW8xlDyjdY4e2OnKCCS7j+lNfaI/DR66+L26YP ALfd5ShY1kcVMUKOzKJK3RYzwmUzFwnWAGWFENLPTAPTxyDYjPYH/vSfAc71NNeO6sd6 L6YC7pdeYI82cUoBBq08jzcQkDbe4K9i0WA1/QJu2UQ1es+k3A4gt51PDU06QLQ7aH64 +Q== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3nnhsjrhqw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 10 Feb 2023 08:04:28 +0000 Received: from m0127361.ppops.net (m0127361.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 31A7hbCj007522; Fri, 10 Feb 2023 08:04:27 GMT Received: from ppma01fra.de.ibm.com (46.49.7a9f.ip4.static.sl-reverse.com [159.122.73.70]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3nnhsjrhn7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 10 Feb 2023 08:04:27 +0000 Received: from pps.filterd (ppma01fra.de.ibm.com [127.0.0.1]) by ppma01fra.de.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 31A2XHcQ027437; Fri, 10 Feb 2023 08:04:24 GMT Received: from smtprelay06.fra02v.mail.ibm.com ([9.218.2.230]) by ppma01fra.de.ibm.com (PPS) with ESMTPS id 3nhf06n40g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 10 Feb 2023 08:04:24 +0000 Received: from smtpav02.fra02v.mail.ibm.com (smtpav02.fra02v.mail.ibm.com [10.20.54.101]) by smtprelay06.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 31A84MGR17826356 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 08:04:22 GMT Received: from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 370692005A; Fri, 10 Feb 2023 08:04:22 +0000 (GMT) Received: from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A72C72004E; Fri, 10 Feb 2023 08:04:21 +0000 (GMT) Received: from ozlabs.au.ibm.com (unknown [9.192.253.14]) by smtpav02.fra02v.mail.ibm.com (Postfix) with ESMTP; Fri, 10 Feb 2023 08:04:21 +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 9D4B5609BC; Fri, 10 Feb 2023 19:04:15 +1100 (AEDT) From: Andrew Donnellan <ajd@linux.ibm.com> To: linuxppc-dev@lists.ozlabs.org, linux-integrity@vger.kernel.org Cc: ruscur@russell.cc, bgray@linux.ibm.com, nayna@linux.ibm.com, gcwilson@linux.ibm.com, gjoyce@linux.ibm.com, brking@linux.ibm.com, stefanb@linux.ibm.com, sudhakar@linux.ibm.com, erichte@linux.ibm.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, zohar@linux.ibm.com, joel@jms.id.au, npiggin@gmail.com Subject: [PATCH v6 18/26] powerpc/pseries: Log hcall return codes for PLPKS debug Date: Fri, 10 Feb 2023 19:03:53 +1100 Message-Id: <20230210080401.345462-19-ajd@linux.ibm.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230210080401.345462-1-ajd@linux.ibm.com> References: <20230210080401.345462-1-ajd@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: 7LGYDyi6Q9j_itlTahZ7zdVAB23O6riU X-Proofpoint-ORIG-GUID: qWP16HyoJjYkqM1ZDssMDwNXzFGIH6rL X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-10_03,2023-02-09_03,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 bulkscore=0 suspectscore=0 lowpriorityscore=0 adultscore=0 spamscore=0 mlxscore=0 clxscore=1015 mlxlogscore=999 impostorscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302100070 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,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?1757430692483715537?= X-GMAIL-MSGID: =?utf-8?q?1757430692483715537?= |
Series |
pSeries dynamic secure boot secvar interface + platform keyring loading
|
|
Commit Message
Andrew Donnellan
Feb. 10, 2023, 8:03 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> Reviewed-by: Stefan Berger <stefanb@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 cee06fb9a370..e5755443d4a4 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; }