From nobody Tue Feb 10 15:29:42 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+95993+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+95993+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1667720146; cv=none; d=zohomail.com; s=zohoarc; b=h2Jr5uO9kg6sGYoeCYG7m0+ydRpv4Z7sOgEf1pzG1SKOCz67MXkPdfFjhLYRU6ZQ2cJR8CSAR0fmFrZw8btsI2WI4kbQsh6HCWtLS0zII0GU2VA5x8M1E6qpxOSwkLNbDZJ44cxlp9pYokglX1f+L+hXgdSFJnb41yKSX/DhKHs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1667720146; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=2qc5vWrX7QpsGeTGDarOV2KE2OQ/QpH2oUB442w6RPk=; b=SNGC1A/Iw+RuAidOHyZSwxenUIk7brBEBB7ExkKNJrTsauYTrMvc/6o/UBDSrRlCq0nwRUG9+hQukIaomKhzWRuRey9XYxK9xGqm1mvREt72RKKHMlSwX6tT9j+UkKPUnkGnUbeLmnGgqtVZIaSV9l2JUERGZxsHFg6HqbV+Hdc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+95993+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1667720146811339.0836504242578; Sun, 6 Nov 2022 00:35:46 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id YjerYY1788612xS7T8gPH5vn; Sun, 06 Nov 2022 00:35:46 -0700 X-Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web08.14178.1667720143243526126 for ; Sun, 06 Nov 2022 00:35:43 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10522"; a="396534276" X-IronPort-AV: E=Sophos;i="5.96,142,1665471600"; d="scan'208";a="396534276" X-Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Nov 2022 00:35:31 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10522"; a="810513473" X-IronPort-AV: E=Sophos;i="5.96,142,1665471600"; d="scan'208";a="810513473" X-Received: from jvang-mobl.amr.corp.intel.com ([10.209.139.244]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Nov 2022 00:35:30 -0700 From: "Judah Vang" To: devel@edk2.groups.io Cc: Jian J Wang , Jiewen Yao , Nishant C Mistry Subject: [edk2-devel] [PATCH v5 13/19] SecurityPkg: Update RPMC APIs with index Date: Sun, 6 Nov 2022 00:35:03 -0700 Message-Id: <20221106073509.3071-14-judah.vang@intel.com> In-Reply-To: <20221106073509.3071-1-judah.vang@intel.com> References: <20221106073509.3071-1-judah.vang@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,judah.vang@intel.com X-Gm-Message-State: cnm0AZUake6g09MpHSNoLmCKx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1667720146; bh=jIEc54ChUA9+mUe1xEXfJBn5RNncVuu0xun/eEeKJ0w=; h=Cc:Date:From:Reply-To:Subject:To; b=JVswjPf6jLYj1D1d/viOoRprNuuw5h5dqABvHqKgvNqznCRzRR4OsuUTuSGSDODLMCA cIawM9wlU6O+qSEuoOah8gdfQ1RcrNiXqLz8Rtd1jV+uJFUHcaILgUafM39R0P3H+Hfyq nlHCxCo49FZLTi4O2wHUfa+2JaWqac3LfSU= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1667720148883100044 Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2594 Update RPMC APIs with index parameter because sometimes there are more than 1 RPMC counter on the platform. Cc: Jian J Wang Cc: Jiewen Yao Cc: Nishant C Mistry Signed-off-by: Jian J Wang Signed-off-by: Nishant C Mistry Signed-off-by: Judah Vang Reviewed-by: Jian J Wang --- SecurityPkg/Library/RpmcLibNull/RpmcLibNull.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/SecurityPkg/Library/RpmcLibNull/RpmcLibNull.c b/SecurityPkg/Li= brary/RpmcLibNull/RpmcLibNull.c index 792e48250e5d..557aeb6abf09 100644 --- a/SecurityPkg/Library/RpmcLibNull/RpmcLibNull.c +++ b/SecurityPkg/Library/RpmcLibNull/RpmcLibNull.c @@ -1,7 +1,7 @@ /** @file NULL RpmcLib instance for build purpose. =20 -Copyright (c) 2020, Intel Corporation. All rights reserved.
+Copyright (c) 2020 - 2022, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent =20 **/ @@ -12,6 +12,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent /** Requests the monotonic counter from the designated RPMC counter. =20 + @param[in] CounterIndex The RPMC index @param[out] CounterValue A pointer to a buffer to store the= RPMC value. =20 @retval EFI_SUCCESS The operation completed successful= ly. @@ -21,6 +22,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent EFI_STATUS EFIAPI RequestMonotonicCounter ( + IN UINT8 CounterIndex, OUT UINT32 *CounterValue ) { @@ -31,6 +33,8 @@ RequestMonotonicCounter ( /** Increments the monotonic counter in the SPI flash device by 1. =20 + @param[in] CounterIndex The RPMC index + @retval EFI_SUCCESS The operation completed successful= ly. @retval EFI_DEVICE_ERROR A device error occurred while atte= mpting to update the counter. @retval EFI_UNSUPPORTED The operation is un-supported. @@ -38,7 +42,7 @@ RequestMonotonicCounter ( EFI_STATUS EFIAPI IncrementMonotonicCounter ( - VOID + IN UINT8 CounterIndex ) { ASSERT (FALSE); --=20 2.35.1.windows.2 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#95993): https://edk2.groups.io/g/devel/message/95993 Mute This Topic: https://groups.io/mt/94840829/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-