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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C4C48C74A4B for ; Mon, 13 Mar 2023 10:30:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229937AbjCMKaQ (ORCPT ); Mon, 13 Mar 2023 06:30:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229912AbjCMKaN (ORCPT ); Mon, 13 Mar 2023 06:30:13 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3AD32F7B6; Mon, 13 Mar 2023 03:30:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678703406; x=1710239406; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=juvTocpOjNWKyg7Ep384flMarLN4kvUTHRGBCKg/uHQ=; b=QX60GsnNo1HG7BZtD/8Fzo8AifRw/E/74RJBa+iJCauz0v025TJNmmFv v1VwIBgUp/UsSVO0bGt7EnTdTSDnuEUrUXoi+kkjB/o7KL+r2mxfoLmub IC4h1A5lcWQmf22kS6RnjJGmYifcpXeQNLZuVlKkwUv6GEbV6bHO8uH8G k/qI91TE6++/S11yENFHIkC+uwOrpJWRtPH5r8T3Nb+dDUJ6X+KjOgx8Z nBHdpAtYhyCL9/cMYG8aJ8WNqRxADgNw+bv0JqbcLgYZwucIFRcPSK+aS sEVJYtBQcQOIKinAc2DmblB9Ev+SxBSwTHgtPH/bG7e1GV/0Xp26nO9cQ g==; X-IronPort-AV: E=McAfee;i="6500,9779,10647"; a="316758972" X-IronPort-AV: E=Sophos;i="5.98,256,1673942400"; d="scan'208";a="316758972" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Mar 2023 03:30:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10647"; a="924453415" X-IronPort-AV: E=Sophos;i="5.98,256,1673942400"; d="scan'208";a="924453415" Received: from unknown (HELO [10.237.72.51]) ([10.237.72.51]) by fmsmga006.fm.intel.com with ESMTP; 13 Mar 2023 03:30:02 -0700 Message-ID: Date: Mon, 13 Mar 2023 12:30:01 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.8.0 Subject: Re: [PATCH v4 3/8] crypto: ccp: Move some PSP mailbox bit definitions into common header To: Mario Limonciello , =?UTF-8?B?SmFuIETEhWJyb8Wb?= , Grzegorz Bernacki , Rijo-john.Thomas@amd.com, Thomas.Lendacky@amd.com, herbert@gondor.apana.org.au, John Allen , Brijesh Singh , Andy Shevchenko , Mika Westerberg Cc: Felix.Held@amd.com, "David S. Miller" , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org References: <20230310211954.2490-1-mario.limonciello@amd.com> <20230310211954.2490-4-mario.limonciello@amd.com> Content-Language: en-US From: Jarkko Nikula In-Reply-To: <20230310211954.2490-4-mario.limonciello@amd.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/10/23 23:19, Mario Limonciello wrote: > Some of the bits and fields used for mailboxes communicating with the > PSP are common across all mailbox implementations (SEV, TEE, etc). > > Move these bits into the common `linux/psp.h` so they don't need to > be re-defined for each implementation. > > Acked-by: Rijo Thomas > Acked-by: Tom Lendacky > Signed-off-by: Mario Limonciello > --- > v3->v4: > * Pick up tags > v2->v3: > * Pick up tags > v1->v2: > * Update comment to indicate it's PSP response not PSP ready > --- > drivers/crypto/ccp/psp-dev.h | 3 --- > drivers/crypto/ccp/sev-dev.c | 15 +++++++-------- > drivers/crypto/ccp/sev-dev.h | 2 +- > drivers/crypto/ccp/tee-dev.c | 15 ++++++++------- > drivers/i2c/busses/i2c-designware-amdpsp.c | 16 +++++----------- > include/linux/psp.h | 12 ++++++++++++ > 6 files changed, 33 insertions(+), 30 deletions(-) > For the i2c-designware part: Acked-by: Jarkko Nikula