From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 7D9B4AC0C3E for ; Fri, 5 Jan 2024 06:19:34 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=P4rqWa8XM3frP7KqvtyjJ5Dhfztb6TMDzGxV3UzvJfE=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:Message-ID:Date:User-Agent:Subject:To:References:From:In-Reply-To:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20140610; t=1704435573; v=1; b=dF95jzWmkIHjMIfb3GZHSL/wiuxln6e3YVoo6w0YPIEoEnNRNelpbQ1zFNRNOEIojDdsqPLQ e04OD2IEl+rwErE51WMcQY96l8LDtSGI/Mtvo4G2kQfCaZhSFEhL4XWJa3nlrFgUCJs9ySajszN k37VG0Ug3Hm+aHDAcl5qjubw= X-Received: by 127.0.0.2 with SMTP id 3ObeYY7687511xr5nrgOtngF; Thu, 04 Jan 2024 22:19:33 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by mx.groups.io with SMTP id smtpd.web10.18311.1704435572200734786 for ; Thu, 04 Jan 2024 22:19:32 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10943"; a="387892101" X-IronPort-AV: E=Sophos;i="6.04,332,1695711600"; d="scan'208";a="387892101" X-Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jan 2024 22:19:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,332,1695711600"; d="scan'208";a="22749072" X-Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by fmviesa001.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 04 Jan 2024 22:19:23 -0800 X-Received: from orsmsx603.amr.corp.intel.com (10.22.229.16) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 4 Jan 2024 22:19:22 -0800 X-Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Thu, 4 Jan 2024 22:19:22 -0800 X-Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.169) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Thu, 4 Jan 2024 22:19:22 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SX+u/PjO1EUp+4HaOfViloTqTchsLqioxQFGNGl2bFI4J+cHjDHB9faGKRTpTeQtnhuO2cG+2wOq9Ivm+km1Y+SZviMnwDGK6ooQIoMELGGxmxX37KvQPxzQhQn0GzKCbL0P/SJReafskJytOCI9waCrAdS0s6fAJJxWzvrRFhPSCEOF7T6bCvoDf8il2C0Xdd7D7ZfOT4dUTrTFbhMSB5DoVZgVPune9wCTmEFNrzJwqMQEFZF0sAQ4OLjFeLXmfgdQFtTWH10ctUenhuAMF/AmfnA7MR/CvK9uayipcybxuzukei66iRdUefD8inibRewrSOZ846qTtdGHEpTNFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/sh9hJL7k9EY+HC0XOeV0eRKka+H4qvl7D2/k/lBj2o=; b=liNwmEBP6ecewFWY5DAJ0XdiU9ejHLMRqaTQxDnOBBqdi6Fz/FGpjssQXU1xlYzhaP43PwWwUyfJB5/IXMWRY0CC5YrTD7BrFII68Xnj0McARjkhQvG0Jb9YjAFW5XhpkMWVYkTJ3dB5gnXPq/u0AjnA4HMSmpjKAiaNHe3sPs5ppRwMmc1vOchdQADSleQi3/Q1V1XdbPR5J5d05h8c80KisUDBUwdXCi1P9PafY3fptaQi5bkr2L1U5jaUq/lZm0uoilhZc7h+tJjzfbTPaHLn52lNNPvCh1QsDBTIzpd6d3t3MXPX2a8niXhjFOZ/+KxdVI0Abym+V71/q2Xamg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none X-Received: from BYAPR11MB2549.namprd11.prod.outlook.com (2603:10b6:a02:c4::33) by CH0PR11MB5316.namprd11.prod.outlook.com (2603:10b6:610:bf::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.16; Fri, 5 Jan 2024 06:19:19 +0000 X-Received: from BYAPR11MB2549.namprd11.prod.outlook.com ([fe80::6122:964d:bf17:c267]) by BYAPR11MB2549.namprd11.prod.outlook.com ([fe80::6122:964d:bf17:c267%6]) with mapi id 15.20.7159.015; Fri, 5 Jan 2024 06:19:19 +0000 Message-ID: <3c2e3cd4-a891-e32f-7488-87762c69502a@intel.com> Date: Fri, 5 Jan 2024 14:19:12 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [edk2-devel] [PATCH] UefiPayloadPkg: Add macro to enable selection of timer To: , Gua Guo , Guo Dong , James Lu , Sean Rhodes References: <17A75CEA85AC7172.16812@groups.io> From: "Ma, Hua" In-Reply-To: <17A75CEA85AC7172.16812@groups.io> X-ClientProxiedBy: SI1PR02CA0014.apcprd02.prod.outlook.com (2603:1096:4:1f7::9) To BYAPR11MB2549.namprd11.prod.outlook.com (2603:10b6:a02:c4::33) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BYAPR11MB2549:EE_|CH0PR11MB5316:EE_ X-MS-Office365-Filtering-Correlation-Id: 42533bdd-a197-45ac-b18f-08dc0db64030 X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: 1yKFEdDOfESPOMYnkAhULhfNigDEyKuD901wGu4R3PCV1KQdJtmgpJRPNqN0DdPadA2PhxTBvvNXsVbTwCz/ZLn1tib9WzNXCXgoNjt9lFb6WYIOzJGRJBw6vVozU8/dXvIA8rW49Sh57xpWQKU9tEb3wLjxhKYIPaLlYbQzsaChEhr8HwPnqpGy0XwDrmvQ9Z75p6L88CqqF6ckB1Q1dvgjejPB4HIasPOf+u9hpFeSiR6v1qrYlvZ8RHrt5YCsHT7/lr2M9X4YGOJ9AUWLLDFwekV05mwSzbEFSggt5A7JgYu1J88Wv8xIMt457S6Hf5ElADMfZpsoZ4lH86mAMbLMWoco8Lbgl6mQrKHyloyo3hkuGgGcpPp8SGFFLs/95tJ61wuDoyR8ypAjJAQ7zNLd8yV8gNZmKOYXlnMqEjbWJBc8rlDXOq1H1mi5fnElrQxA/5kughEFFG0TcpuhtsogI/RNClR5mBzDtgu1E59DYWxljukbtmdghqMzQDjSb/cWcCglW5QXxctF54qat58mwATRRJgno2ImOpy2tuodjnCEvvcu2lCPXHfQz90DvEfAdIvimrDJQmvdo3wVqaZzEXZ8BkjsRXzV3EzwwzlMN1QhWYvrBPVQUdr1hU7VgK4GL8zpLdQ5+B5iCgDejw== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-A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yRDFaRDFqSXRlaFJERk1YaHpkSTNUTHhFTVh3?= =?utf-8?B?ZitLUFBvWmxObE9uazJ4eFNnZUxIOW1SL05YZ3ljY1cvamVpcGtVQ0ZVZkNm?= =?utf-8?B?WUZwSmZNQ3l0c3VGM2FjeGNScm9ZcTBNWFhCT3hwWktBU2lTR0VmbHZaRlhh?= =?utf-8?B?ZTNqNEd6enVsNW8vbXFEdUtBWWhCUEFTK0N3Qkp5MFRKbHBYRnBQUk1hV2J2?= =?utf-8?B?NGQrdVJCUWtDaFBvblNEeG5oWXlLM2kwNnBacFRNUXhKaGZTelRhUkxRU0pE?= =?utf-8?B?eTBZVkR3U3FnVEJMekVBdURqMkc3VTRhOEJpTHRpZGNUN1V3NmhRMUVjUFNN?= =?utf-8?Q?1fBxzGBS9xdTBQu3f5JNFRIzC?= X-MS-Exchange-CrossTenant-Network-Message-Id: 42533bdd-a197-45ac-b18f-08dc0db64030 X-MS-Exchange-CrossTenant-AuthSource: BYAPR11MB2549.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jan 2024 06:19:19.5261 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: kSWm94RvgZGy9LFSrHkxInzFWMszSVGTlur+6i3d4fELSpHZcvlLZ5rfdnn0NQJNBn/u0uOvT7gfhSXUvhYFow== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR11MB5316 X-OriginatorOrg: intel.com Precedence: Bulk 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,hua.ma@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: F2t31mFrPlBzZKcXJyS6uogGx7686176AA= Content-Language: en-US Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=dF95jzWm; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io Add maintainers to help review the patch, thank you, Ma Hua On 1/5/2024 1:38 PM, Ma, Hua wrote: > Add macro to enable selection of timer >=20 > - HPET: UEFI Payload will use HPET timer > - LAPIC: UEFI Payload will use local APIC timer >=20 > Signed-off-by: Hua Ma > --- > UefiPayloadPkg/UefiPayloadPkg.dsc | 16 ++++++++++++++++ > UefiPayloadPkg/UefiPayloadPkg.fdf | 4 ++++ > 2 files changed, 20 insertions(+) >=20 > diff --git a/UefiPayloadPkg/UefiPayloadPkg.dsc b/UefiPayloadPkg/UefiPaylo= adPkg.dsc > index b8b13ad201..4f195c1e52 100644 > --- a/UefiPayloadPkg/UefiPayloadPkg.dsc > +++ b/UefiPayloadPkg/UefiPayloadPkg.dsc > @@ -139,6 +139,12 @@ > # Note: for emulation platform such as QEMU, this may not work and sh= ould set it as FALSE > DEFINE CPU_TIMER_LIB_ENABLE =3D TRUE > =20 > + # > + # HPET: UEFI Payload will use HPET timer > + # LAPIC: UEFI Payload will use local APIC timer > + # > + DEFINE TIMER_SUPPORT =3D HPET > + > DEFINE MULTIPLE_DEBUG_PORT_SUPPORT =3D FALSE > =20 > [BuildOptions] > @@ -676,7 +682,17 @@ > MdeModulePkg/Application/BootManagerMenuApp/BootManagerMenuApp.inf > =20 > =20 > +!if $(TIMER_SUPPORT) =3D=3D "HPET" > PcAtChipsetPkg/HpetTimerDxe/HpetTimerDxe.inf > +!elseif $(TIMER_SUPPORT) =3D=3D "LAPIC" > + OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf { > + > + NestedInterruptTplLib|OvmfPkg/Library/NestedInterruptTplLib/Nested= InterruptTplLib.inf > + } > +!else > + !error "Invalid TIMER_SUPPORT" > +!endif > + > MdeModulePkg/Universal/Metronome/Metronome.inf > MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf > MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf > diff --git a/UefiPayloadPkg/UefiPayloadPkg.fdf b/UefiPayloadPkg/UefiPaylo= adPkg.fdf > index 835798be1c..7d04a8cffd 100644 > --- a/UefiPayloadPkg/UefiPayloadPkg.fdf > +++ b/UefiPayloadPkg/UefiPayloadPkg.fdf > @@ -161,7 +161,11 @@ INF MdeModulePkg/Universal/SecurityStubDxe/SecurityS= tubDxe.inf > !endif > INF UefiCpuPkg/CpuDxe/CpuDxe.inf > =20 > +!if $(TIMER_SUPPORT) =3D=3D "HPET" > INF PcAtChipsetPkg/HpetTimerDxe/HpetTimerDxe.inf > +!elseif $(TIMER_SUPPORT) =3D=3D "LAPIC" > +INF OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf > +!endif > INF MdeModulePkg/Universal/Metronome/Metronome.inf > INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf > INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf -=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 (#113220): https://edk2.groups.io/g/devel/message/113220 Mute This Topic: https://groups.io/mt/103538255/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-