From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web11.12513.1686314962064124615 for ; Fri, 09 Jun 2023 05:49:22 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=KIJ7o+5Z; spf=pass (domain: intel.com, ip: 192.55.52.43, mailfrom: kurugodumelmatamx.aishwarya@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686314962; x=1717850962; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=gWSU1SHcruR+Z7by7RTf+faaqLzAsX7wOsuutzzGoT8=; b=KIJ7o+5Zqy+u7gDb/WCzflogcrBqRAxWbJzUzZGf+OJREYvnA4P/M+e3 7ZQhBHjRI98sZGP8YR7vkX8kFhw2Ow67TN1cqw3qcWJB96babUV93/P5v TOIttzXLa0bINHBlaHGmmJiJppP1Irv0/dGc6u2vRYsumjUhTAjbM5S8E KK9cAaqxeOnlQhuMHq3MC7sXtI1m5V44Mz3ynEcppmxB7BbdivLZ+lecZ rupqAgAbm60TXqEY5JaAQzTNze5DuTIblABINNqJxK/CS71swBKnDBgZ7 9WwYSEuPGdA8CvEAhjWWULj8GuOzTvvaFaSBsRWHkJErMBiagB6LAabZb A==; X-IronPort-AV: E=McAfee;i="6600,9927,10736"; a="443958019" X-IronPort-AV: E=Sophos;i="6.00,229,1681196400"; d="scan'208";a="443958019" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jun 2023 05:49:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10736"; a="957143369" X-IronPort-AV: E=Sophos;i="6.00,229,1681196400"; d="scan'208";a="957143369" Received: from kurugodx-desk.gar.corp.intel.com ([10.66.234.59]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jun 2023 05:49:10 -0700 From: kurugodx To: devel@edk2.groups.io Cc: kurugodx , Chasel Chiu , Nate DeSimone , Duggapu Chinni B , Chen Gang C , Star Zeng , Ted Kuo , Ashraf Ali S , Susovan Mohapatra Subject: [PATCH] Get HobListPtr before calling the Multiphase FSPS Date: Fri, 9 Jun 2023 05:48:42 -0700 Message-ID: <6770d140b575e01fe33d36eaa550c246c3186fd5.1686314178.git.kurugodumelmatamx.aishwarya@intel.com> X-Mailer: git-send-email 2.41.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit REF : https://bugzilla.tianocore.org/show_bug.cgi?id=4480 In the FspsWrapperPeim, before calling FspWrapperVariableRequestHandler and FspWrapperMultiPhaseHandler ,FspHobListPtr should be available so that BL will be able to get the correct FspHobListPtr value Signed-off-by: kurugodx Cc: Chasel Chiu Cc: Nate DeSimone Cc: Duggapu Chinni B Cc: Chen Gang C Cc: Star Zeng Cc: Ted Kuo Cc: Ashraf Ali S Cc: Susovan Mohapatra --- IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.c b/IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.c index 08fe0fdb7e..c9ed78ef62 100644 --- a/IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.c +++ b/IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.c @@ -336,6 +336,14 @@ PeiMemoryDiscoveredNotify ( DEBUG ((DEBUG_INFO, "FspSiliconInit status: %r\n", Status)); + // + // Get FspHobList + // + GuidHob = GetFirstGuidHob (&gFspHobGuid); + ASSERT (GuidHob != NULL); + FspHobListPtr = *(VOID **)GET_GUID_HOB_DATA (GuidHob); + DEBUG ((DEBUG_INFO, "FspHobListPtr - 0x%x\n", FspHobListPtr)); + if (Status == FSP_STATUS_VARIABLE_REQUEST) { // // call to Variable request handler -- 2.26.2.windows.1