Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp8089170rwi; Tue, 25 Oct 2022 02:15:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7gh4EdqPQXIgyk15ZCvUgttZsgXPPxI9IKOMM+RqNdAhDH1V1Kl1Qde9oqr1JDL4nKCrhc X-Received: by 2002:a17:907:980e:b0:78d:b6d8:f53c with SMTP id ji14-20020a170907980e00b0078db6d8f53cmr32350656ejc.70.1666689325863; Tue, 25 Oct 2022 02:15:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666689325; cv=none; d=google.com; s=arc-20160816; b=QQeobQfDKacGjR13ik7vZZ4Q/odkYZAYXPaRVfrZ5+LXlMKZU8MONcp7ta5Xylh0fL rWbRxcFgtqTLEHmeaTXYa2FQD3ZGbZHWXl5Okxm97EKsn1Q/dvVxxo4yyHUe6u8p92uO uDmFZybWsL2Xkt08dTfrW/X/rh39RunFlklzAh0DlSVotUdzfBxnY6T2/mBbxsXK6j8A MAPa8WMTvM8OhpWg+tvezGjAdDOTSe+vN5V8rXEs5O5vFI2CNgMqOlOlf6lSBds2mbSG nnZN/yt5XLZ4kxQD42wv8/9Eq+bkRMfGRopVgfo7u8BuPvL4wpGQHe/MkQ3uH0daOOwK AhLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=RpZt/ekhm97/GCrxTm62WjrwmkfB+Hl6PYEoWkmLcSs=; b=bgXl5CqWAROvSRyWe3SdmkZYasGSgk7j5FimZU1ceH2Vyx4ZmOSSQRfVcDaA+gKfr1 WLI0KK1A73lPgvJbSGdRu0meuB5/wDOBLs5ElnyhQKB2hBriclSxTFdzAj99t0kgSyDC i1l3ghQucZ8I2NNVqx/Py6FWuQzMP3wq6gN2hJqmd+FehdSRGQ7E5MwNWFoqROMa7OdW UEvo1iKhEpN+J9bJg+IaWSP0bW1hS1yzNeQZnkCwqeOkS5TRuxVxGWmNv6HOicZfpPWq Babvz63Hf5FWjgKAFTIMltT69XEqlcpvtK19kreB2IKMnQBkg/sHBUp2xWif3jYj2Dic holg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b="cJSawZk/"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e10-20020a056402190a00b00461b96334eesi43970edz.500.2022.10.25.02.14.59; Tue, 25 Oct 2022 02:15:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=@alien8.de header.s=dkim header.b="cJSawZk/"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229937AbiJYJO2 (ORCPT + 99 others); Tue, 25 Oct 2022 05:14:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230169AbiJYJNn (ORCPT ); Tue, 25 Oct 2022 05:13:43 -0400 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35D13176B88; Tue, 25 Oct 2022 02:07:19 -0700 (PDT) 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: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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: X-Mailing-List: linux-crypto@vger.kernel.org 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