From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 393F4C38A2D for ; Tue, 25 Oct 2022 09:07:11 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id CC8258E0003; Tue, 25 Oct 2022 05:07:10 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C783A8E0001; Tue, 25 Oct 2022 05:07:10 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B40B08E0003; Tue, 25 Oct 2022 05:07:10 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id A81F48E0001 for ; Tue, 25 Oct 2022 05:07:10 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 7261AC09A4 for ; Tue, 25 Oct 2022 09:07:10 +0000 (UTC) X-FDA: 80058892620.02.2640D51 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by imf14.hostedemail.com (Postfix) with ESMTP id C7A50100030 for ; Tue, 25 Oct 2022 09:07:09 +0000 (UTC) Received: from zn.tnic (p200300ea9733e753329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9733:e753:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 560641EC0138; Tue, 25 Oct 2022 11:07:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1666688828; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=RpZt/ekhm97/GCrxTm62WjrwmkfB+Hl6PYEoWkmLcSs=; b=cJSawZk/4f1kVEpXP4DnaqZQDZCWU4J9ov+SV+016eVWeC8LfSqUNPn/mqfTwrdFMdHY41 NVlCjUdHw55zGKATrjh+CCmZY5qM1WeQeEJ6UX55CYy5aACwbF6dxJ+yRGmqVH6e82zKve d1WhLf8YwB22RIEdI4LVqnlyjQjqDRQ= Date: Tue, 25 Oct 2022 11:07:04 +0200 From: Borislav Petkov To: "Kalra, Ashish" Cc: x86@kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-coco@lists.linux.dev, linux-mm@kvack.org, linux-crypto@vger.kernel.org, tglx@linutronix.de, mingo@redhat.com, jroedel@suse.de, thomas.lendacky@amd.com, hpa@zytor.com, ardb@kernel.org, pbonzini@redhat.com, seanjc@google.com, vkuznets@redhat.com, jmattson@google.com, luto@kernel.org, dave.hansen@linux.intel.com, slp@redhat.com, pgonda@google.com, peterz@infradead.org, srinivas.pandruvada@linux.intel.com, rientjes@google.com, dovmurik@linux.ibm.com, tobin@ibm.com, michael.roth@amd.com, vbabka@suse.cz, kirill@shutemov.name, ak@linux.intel.com, tony.luck@intel.com, marcorr@google.com, sathyanarayanan.kuppuswamy@linux.intel.com, alpergun@google.com, dgilbert@redhat.com, jarkko@kernel.org Subject: Re: [PATCH Part2 v6 12/49] crypto: ccp: Add support to initialize the AMD-SP for SEV-SNP Message-ID: References: <87a0481526e66ddd5f6192cbb43a50708aee2883.1655761627.git.ashish.kalra@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1666688830; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=RpZt/ekhm97/GCrxTm62WjrwmkfB+Hl6PYEoWkmLcSs=; b=rYH0GuqbJZDPoayktSjJVZ3X66QQcc8QMPz632mMrshsTNUuswy/dddLP01/p6/1FeamIs 9Ywl/UzsSMo7JbZI/C6OEFELeVLXfAAHeC9tEqlKWY2D9rCsVZv4YysJugM2fhCju9k+jL dqXBtUqCQz7HRgZq4KrbWTuQICqsFuo= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=pass header.d=alien8.de header.s=dkim header.b="cJSawZk/"; dmarc=pass (policy=none) header.from=alien8.de; spf=pass (imf14.hostedemail.com: domain of bp@alien8.de designates 5.9.137.197 as permitted sender) smtp.mailfrom=bp@alien8.de ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1666688830; a=rsa-sha256; cv=none; b=2/ljOUb5fqil199igcsUWcKulbOZF8tphEMvMpJXyvJmy8UQZy0kJCFodGkQZk9rIQAeX1 A+0EPFOsUxykJsUwZ0/o7YO1cdp2QYq74v6BT2nG8jmdoIt5gW9F51cop92Mwtd5gjgwqf Qr2kXPt5uwJSNekUIyHscCqorSDsz4k= X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: C7A50100030 X-Rspam-User: Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=alien8.de header.s=dkim header.b="cJSawZk/"; dmarc=pass (policy=none) header.from=alien8.de; spf=pass (imf14.hostedemail.com: domain of bp@alien8.de designates 5.9.137.197 as permitted sender) smtp.mailfrom=bp@alien8.de X-Stat-Signature: kc6pge7iqztozpt45kj8mq66eoustagj X-HE-Tag: 1666688829-528006 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Wed, Oct 19, 2022 at 01:48:48PM -0500, Kalra, Ashish wrote: > I see that other drivers are also using the same convention: It is only convention. Look at the .rst output: 0 if the SEV successfully processed the command -``ENODEV`` if the SEV device is not available -``ENOTSUPP`` if the SEV does not support SEV -``ETIMEDOUT`` if the SEV command timed out -``EIO`` if the SEV returned a non-zero return code vs 0 if the SEV successfully processed the command ``-ENODEV`` if the SEV device is not available ``-ENOTSUPP`` if the SEV does not support SEV ``-ETIMEDOUT`` if the SEV command timed out ``-EIO`` if the SEV returned a non-zero return code so in the html output of this, the minus sign will be displayed either with text font or with monospaced font as part of the error type. I wanna say the second is better as the '-' is part of the error code but won't waste too much time debating this. :) Btw $ ./scripts/kernel-doc include/linux/psp-sev.h complains a lot. Might wanna fix those up when bored or someone else who's reading this and feels bored too. :-) Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette