Message ID | 20221228072943.429266-2-ruscur@russell.cc |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp1763347wrt; Tue, 27 Dec 2022 23:32:28 -0800 (PST) X-Google-Smtp-Source: AMrXdXtdfQ3Wby9P2qlT++/ZO8CE1Ll93XKutI7abiT7w+8fMS02eZzLPn1HAXXEw8E9j3LiYmZY X-Received: by 2002:a05:6a20:1a81:b0:ad:87b4:948e with SMTP id ci1-20020a056a201a8100b000ad87b4948emr27535673pzb.12.1672212748219; Tue, 27 Dec 2022 23:32:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672212748; cv=none; d=google.com; s=arc-20160816; b=gpMJSVl9L8S+Paxay3PGScb25sWFe3FKkhUsSOFsFqQy1SN4M0CDVY4iy9lWDxjhqJ /lq2jngN16kznhLyMmqpAQUVwah8trfRGe3gyNaa7TkcwS/Choy+OL+EtG4EGjjAmp3/ JG2Qgae5n9VVWTn3yd0L6+CDjDYbn4NSrtbTz+WrA3Fp+nUAb13L6MFBZKI3vCb+Gkqv qjltnKO6iUIQMMXGVbE6hmcStQZesU2gbGii2OcZPkjXz1wy/ADoysegBYxlr2Q/u15l +2Tp7Y1VpR/+MTsWvtL0xxqdZSOrLOu8Kz6ZoO7w3T49XWKvNP1gFK39hFyKUpLb6K5s PEow== 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 :feedback-id:dkim-signature:dkim-signature; bh=yn/S5ROEzSnOph0KuGPaeywtNTs872W1IHLPpJmU4iY=; b=baUPVIfRAwV7xTwEL0U/4AwvP1aCResAyAAw3gQ0XwPZWIwnsn+BAb3GAwiJH5PoLc rO8bKzRuNQdFYCeuyy+nft2feEoVrSVgEVmdC3mXIylFrRb2MM4FIV5bRkUDMoN9hUFC KnaE3obmj7xtNXlIVrRorBv+PAqEWTpY803JdDn87+CZR4jV2g4RhXF3xQxwnH2mguaI wKqzkB7iZJIpvoUueKF/WDgeTxzCDZ/8nrDiPto2wo/pHQ3UMUoxyovV+cAntMNPGMC4 1RALhLwrI6U1dWoRkJo0+tjECRQ8QptxPqsYuu14x4gJ3Akck8Uc2o5rD5wXnz94bAAB 58HA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@russell.cc header.s=fm3 header.b=L64sfh8y; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=A+lFhYv1; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 27-20020a630c5b000000b0045131d08c18si15915897pgm.244.2022.12.27.23.32.15; Tue, 27 Dec 2022 23:32:28 -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=@russell.cc header.s=fm3 header.b=L64sfh8y; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=A+lFhYv1; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232507AbiL1Han (ORCPT <rfc822;eddaouddi.ayoub@gmail.com> + 99 others); Wed, 28 Dec 2022 02:30:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232618AbiL1Ha1 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 28 Dec 2022 02:30:27 -0500 Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4CCE1119 for <linux-kernel@vger.kernel.org>; Tue, 27 Dec 2022 23:30:26 -0800 (PST) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 6D5DA320090E; Wed, 28 Dec 2022 02:30:25 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Wed, 28 Dec 2022 02:30:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=russell.cc; h=cc :cc:content-transfer-encoding:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1672212624; x=1672299024; bh=yn /S5ROEzSnOph0KuGPaeywtNTs872W1IHLPpJmU4iY=; b=L64sfh8yUDUAW0dE0k T7RuEKTunT8wEC70MkP9XpVQHTFwOtb9gcWg6OG6kHlUWzbDtyoHPkY8rYdAdZR2 lSVwHfgLxGiAOpT+bS/swz7iVvpjI9vPXixdBDeHpm60mqGNX4Z7tu/R6had50bv YfGgYSGxjrOnRIffOrBbhKrabA2mTEajuIYUGvhK35coq3K9NHkip5QllqJXgAdm cQGjD2hdD+3TtZY0ylIZ+hzySMi5+BZ20uybU0y9OlAmnhwoMRhhkhn1y4rlPDAK KKINlPpXBlYKmJL+rbTdhuadWoBGGduBNx67H8R71wyBzNgW/Oj4GbqlD4YX/Tza eEBw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1672212624; x=1672299024; bh=yn/S5ROEzSnOp h0KuGPaeywtNTs872W1IHLPpJmU4iY=; b=A+lFhYv1cVQqKoGr0XyWw/bCHvMKQ immRLXwo9cc9CIUG5Zn8cIQ/dMCt8UkgaWDLYlFBYabpuawh3IiTc+8Ja0NWIH7d e4WIp9YrwrEn0x6uE7bOUUNfqTOurfsX36PGl5wQkbV1tVJtCISkdmcWLgRcVmyD oTqBt2lqgpYm03xM6iT/0SyIbPBIcPZhagl2DXB5ogFxS3kC948ctyGAdVDGYKE3 M7+ADKN9WQ4/6+tgJ1OjlohnnJ6j/elBHhKwn8LJA0iyNKSA7Uvr5xkSiRVvsyAn oWeppeS23e0YSnS7orF+dMP9Cfyu9rv/nkG0WjzFWLG8dyVBKYG4DLTBg== X-ME-Sender: <xms:kPCrY11TsgJfLjuF6bQGrtXn3RxEFL23MhyZhKFUyfRNzKpYwN83Wg> <xme:kPCrY8EohSSFK4VlcQdZzl-r6sbclnBd-oz6H2kWXYcc4MlQQq-gplu7-SYDDsso9 d1lNlswZvICsPKLQw> X-ME-Received: <xmr:kPCrY14YnBbhU2XQYm16ZFBNSsTs187L9VZUor78Iak2-HAIUAyueUZ9hdirtngJOBbUYg6J_W70BaH5OsJiVr3lm9nNSrT2M6sUnfgXij-MBQ> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedriedugdduuddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdlfedtmdenucfjughrpefhvf evufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeftuhhsshgvlhhlucevuhhr rhgvhicuoehruhhstghurhesrhhushhsvghllhdrtggtqeenucggtffrrghtthgvrhhnpe fhvdeugfdtvdeiieegffefffekieegvdfgiedtjeetffevfefhtdehjeffieeivdenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehruhhstghurh esrhhushhsvghllhdrtggt X-ME-Proxy: <xmx:kPCrYy1A5h3LdL9iLj5j0OLj8632us4FXbdSNZr7Nk3lRfikSqSXyg> <xmx:kPCrY4GFcQRwjfWS-FO9Ztjj5PnGeMJ_vvUViMTOfPSUaPPpMUOuRA> <xmx:kPCrYz9aGlRUTCtN9Ed_hTQdD20J9pK5B4o8q0Be55iwhgRyHhOVqQ> <xmx:kPCrYz1l_hk8o2KorjXxrTm3MmlELmuh-Fv302IzeXLe90SwanGYTg> Feedback-ID: i4421424f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 28 Dec 2022 02:30:22 -0500 (EST) From: Russell Currey <ruscur@russell.cc> To: linuxppc-dev@lists.ozlabs.org Cc: gregkh@linuxfoundation.org, gcwilson@linux.ibm.com, linux-kernel@vger.kernel.org, nayna@linux.ibm.com, ajd@linux.ibm.com, zohar@linux.ibm.com, mpe@ellerman.id.au, Russell Currey <ruscur@russell.cc> Subject: [PATCH 1/6] powerpc/pseries: Log hcall return codes for PLPKS debug Date: Wed, 28 Dec 2022 18:29:38 +1100 Message-Id: <20221228072943.429266-2-ruscur@russell.cc> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221228072943.429266-1-ruscur@russell.cc> References: <20221228072943.429266-1-ruscur@russell.cc> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, 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?1753442154717686882?= X-GMAIL-MSGID: =?utf-8?q?1753442154717686882?= |
Series |
pseries dynamic secure boot interface using secvar
|
|
Commit Message
Russell Currey
Dec. 28, 2022, 7:29 a.m. UTC
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>
---
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 9e4401aabf4f..820218eb894f 100644 --- a/arch/powerpc/platforms/pseries/plpks.c +++ b/arch/powerpc/platforms/pseries/plpks.c @@ -131,6 +131,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; }