From nobody Sun Feb 8 09:12:41 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+40250+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+40250+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1557376279; cv=none; d=zoho.com; s=zohoarc; b=QXEUMWUDjxpG8TAwzGcxldMKOaUb6a1k8hoKKUET1N0MwF9HKIq14BK0x3YZOiKG2XeZfKGgzP0OqZQxXqZCbgtv+lEU9GaKuH1Dn2XyY249YMrPZ3YM2XALjSQ5MzGXLQLtKedcGXpkoaQA7vTccKvJ6RhsaGyvbTglOKHDmqI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1557376279; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To:ARC-Authentication-Results; bh=uSabKJn9dZXVEFDZCFMWWKP5SHx2faXHmggdUl7BP2k=; b=AZbjj8bmwXhN7oqlwYGoJSY1fCYbC0tyw1Upg5XloELBVpbSyZWqp9VnnbfnMI/oGYCGbpoQPze9xpUgmLLu+O2pbyb1btQopTlhFz//T+QuLq6zGyNhq8iOY30MXZXtjQqkvUs6/lwLO6/OnapPsUwKFeeDix0LUMBHUIJn04Y= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+40250+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1557376279042951.2873641249602; Wed, 8 May 2019 21:31:19 -0700 (PDT) Return-Path: X-Received: from mga12.intel.com (mga12.intel.com []) by groups.io with SMTP; Wed, 08 May 2019 21:31:17 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 May 2019 21:31:16 -0700 X-ExtLoop1: 1 X-Received: from unknown (HELO mdkinney-MOBL2.amr.corp.intel.com) ([10.241.98.74]) by orsmga004.jf.intel.com with ESMTP; 08 May 2019 21:31:16 -0700 From: "Michael D Kinney" To: devel@edk2.groups.io Cc: Zailiang Sun , Yi Qian Subject: [edk2-devel] [Patch 04/16] Vlv2TbltDevicePkg/PpmPolicy: Fix call to MP Services Protocol Date: Wed, 8 May 2019 21:30:59 -0700 Message-Id: <20190509043111.15272-5-michael.d.kinney@intel.com> In-Reply-To: <20190509043111.15272-1-michael.d.kinney@intel.com> References: <20190509043111.15272-1-michael.d.kinney@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: 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,michael.d.kinney@intel.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1557376278; bh=F2WjeGYXWPmLrx2xSgtHTbvnBk4JrbwX/LDV/aWaaV0=; h=Cc:Date:From:Reply-To:Subject:To; b=tRHeVj43HLcGN/qH2LctR9Knm0kOJUlfkuZbu43SV3KAMouNX4UYDpFnrNdAxnN8U2c kH/oJkSjkGeX26VCFkKFvWXY6gSUL8wvlhgKy+m4esy1OgmpZs4ULNawu+dtoGnsaHiYE mPkNa2YXI59ZlilFxNT1bE4mWbQrqt543uE= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" The NumberOfEnabledProcessors parameter to the MP Services Protocol service GetNumberOfProcessors() is not optional and is not allowed to be NULL. Add the CpuEnabledCount local variable and pass it into GetNumberOfProcessors(). Cc: Zailiang Sun Cc: Yi Qian Signed-off-by: Michael D Kinney Reviewed-by: Zailiang Sun --- Vlv2TbltDevicePkg/PpmPolicy/PpmPolicy.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Vlv2TbltDevicePkg/PpmPolicy/PpmPolicy.c b/Vlv2TbltDevicePkg/Pp= mPolicy/PpmPolicy.c index 28de8457ce..3583e324e6 100644 --- a/Vlv2TbltDevicePkg/PpmPolicy/PpmPolicy.c +++ b/Vlv2TbltDevicePkg/PpmPolicy/PpmPolicy.c @@ -1,5 +1,5 @@ /**=20 - Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved.
+ Copyright (c) 2009 - 2019, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent =20 =20 @@ -40,6 +40,7 @@ PpmPolicyEntry( EFI_HANDLE Handle; EFI_STATUS Status; UINTN CpuCount; + UINTN CpuEnabledCount; UINT8 CPUMobileFeature; =20 PCH_STEPPING Stepping; @@ -63,7 +64,7 @@ PpmPolicyEntry( // // Get processor count from MP service. // - Status =3D MpService->GetNumberOfProcessors (MpService, &CpuCount, NULL); + Status =3D MpService->GetNumberOfProcessors (MpService, &CpuCount, &CpuE= nabledCount); ASSERT_EFI_ERROR (Status); =20 // --=20 2.21.0.windows.1 -=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 (#40250): https://edk2.groups.io/g/devel/message/40250 Mute This Topic: https://groups.io/mt/31551773/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-