From nobody Sat May 18 14:54:20 2024 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+105432+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+105432+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1685435437; cv=none; d=zohomail.com; s=zohoarc; b=e3F68TbWyC5Exgn3VCByt9kkkl5bQejgRvQ8MitBUVvkZB92vdwwvBbFaw4IUmeWFQi6KI9JFTgFCLntCSa/k0NpA7xqriGq2aQzu+wC8eDtsbtobJ9KaMAQ0D6mEodrPN+EHnAPl2jhoHHx/qW8PqgHvUt5pdVj1/gwuSbhCfA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1685435437; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=3bbbgFMK9zjGTFBWyiO9IjlD85QTsFAqRZeiyUZb5Lk=; b=jYnDTvK8LZnIvODtRyVnguCMSyERWoS+jMSsLtcTGFTdQcJzDndu58tesP+tGfIMXdiDnhcS9dJB2fekjAKjena3r/KfDALW5fV1Wfz7EbD28HOngF31hZLFPwvyQIhnX8atYw+31p9BTHik66OFIoant5dwD8Xx7WXX5/hMfPo= 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+105432+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 1685435436938470.20816158062337; Tue, 30 May 2023 01:30:36 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 6pVbYY1788612xN56kiv926U; Tue, 30 May 2023 01:30:36 -0700 X-Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mx.groups.io with SMTP id smtpd.web10.5150.1685435435143085491 for ; Tue, 30 May 2023 01:30:35 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10725"; a="344353786" X-IronPort-AV: E=Sophos;i="6.00,203,1681196400"; d="scan'208";a="344353786" X-Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 May 2023 01:30:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10725"; a="880682786" X-IronPort-AV: E=Sophos;i="6.00,203,1681196400"; d="scan'208";a="880682786" X-Received: from ray-dev.ccr.corp.intel.com ([10.239.158.139]) by orsmga005.jf.intel.com with ESMTP; 30 May 2023 01:30:33 -0700 From: "Ni, Ray" To: devel@edk2.groups.io Cc: Nate DeSimone , Zhiguang Liu Subject: [edk2-devel] [PATCH] SimicsOpenBoard: Use default 10ms as delay between INIT and SIPI Date: Tue, 30 May 2023 16:30:36 +0800 Message-Id: <20230530083036.696-1-ray.ni@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,ray.ni@intel.com X-Gm-Message-State: qVsxTRiL1Fdju9aZ2yRQg8Znx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1685435436; bh=6td7KTMgNDfdTT4tlvllKd5y9MLx1fXvezt+SgWTnEo=; h=Cc:Date:From:Reply-To:Subject:To; b=u07ofAjEOvcPXbkSEuayYQv8sYiszIL9hzlWaAJKi5OgR98/xN+pwmnVQCCl2EwehsI vMrfIrpBXeXwlVPnvUb4vl4Y4AR2P33VXqdhGAF58gEOUzJKJ2zGeyQ2awAmVNe2+zvym 5s72IN68hfc6sXTCP28UdYqsugngxVUFosE= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1685435438926100003 Content-Type: text/plain; charset="utf-8" Today the delay is 10us but the QSP simulates the multiprocessor by dividing time into segments and serializing processors within a segment. The length of the segment is configurable and Simics open board is configured using 100us. But the firmware configures the delay between INIT and SIPI is 10us. That results a possible senarino that BSP sends a INIT and SIPI in one segment (100us) while APs are still in SMM environment. The INIT is queued but SIPI is ignored by Simics, resulting all APs being put in wait-for-SIPI state when they receive INIT. Signed-off-by: Ray Ni Cc: Nate DeSimone Cc: Zhiguang Liu Reviewed-by: Zhiguang Liu --- .../Intel/SimicsOpenBoardPkg/BoardX58Ich10/OpenBoardPkgPcd.dsc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Platform/Intel/SimicsOpenBoardPkg/BoardX58Ich10/OpenBoardPkgPc= d.dsc b/Platform/Intel/SimicsOpenBoardPkg/BoardX58Ich10/OpenBoardPkgPcd.dsc index 732d95e44f..06c479b619 100644 --- a/Platform/Intel/SimicsOpenBoardPkg/BoardX58Ich10/OpenBoardPkgPcd.dsc +++ b/Platform/Intel/SimicsOpenBoardPkg/BoardX58Ich10/OpenBoardPkgPcd.dsc @@ -1,7 +1,7 @@ ## @file # PCD configuration build description file for the X58Ich10 board. # -# Copyright (c) 2019 - 2022, Intel Corporation. All rights reserved.
+# Copyright (c) 2019 - 2023, Intel Corporation. All rights reserved.
# # SPDX-License-Identifier: BSD-2-Clause-Patent # @@ -148,7 +148,6 @@ gPcAtChipsetPkgTokenSpaceGuid.PcdAcpiIoPortBaseAddressMask|0xFFFC gPcAtChipsetPkgTokenSpaceGuid.PcdAcpiPm1TmrOffset|0x0008 gUefiCpuPkgTokenSpaceGuid.PcdCpuApStackSize|0x1000 - gUefiCpuPkgTokenSpaceGuid.PcdCpuInitIpiDelayInMicroSeconds|10 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|512 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmApSyncTimeout|10000 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmStackSize|0x4000 --=20 2.37.2.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 (#105432): https://edk2.groups.io/g/devel/message/105432 Mute This Topic: https://groups.io/mt/99215876/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/leave/3901457/1787277/102458076= /xyzzy [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-