From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web08.3802.1662102189891245694 for ; Fri, 02 Sep 2022 00:03:10 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=JdUQKIc2; spf=permerror, err=too many SPF records (domain: intel.com, ip: 134.134.136.100, mailfrom: james.lu@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662102190; x=1693638190; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=xp1nm1fICKjILkKOzJZXBZoak1NTwITlKoJcahFJIwI=; b=JdUQKIc2uygBaiQZG+B42ip9xNLuI6NYhMQYxczUh42eD5SAvjgK6Vrh MWwS7PkilEg6fqFbLeRzq0IgI5BBfz88u3q2DAh3ifTVFIlFIZpmoxoAK ofkeuElQHX8yYTVXTb3M9r03EhGMBVrBoYPq2JEXmU4nBUgN/pnbTKK0t p1g1n+mz0Y9fnh2/SGoPYzu1LoS4r3/ZviKeFDcyqi32rvN6tO4+1+o0E I5ZP3bWwwyr+02sljPR4BchAcJUZZ82HhSuxQ3rLDDRcrL4kvSZgJqFpo y8kJ1SDT2kKY8KSH0+Zs1AWTBf8dq/7QhzKZMhOLMZ3Pur1BNR9Un5qK9 Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10457"; a="359869698" X-IronPort-AV: E=Sophos;i="5.93,283,1654585200"; d="scan'208";a="359869698" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Sep 2022 00:03:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,283,1654585200"; d="scan'208";a="858138275" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmsmga006.fm.intel.com with ESMTP; 02 Sep 2022 00:03:04 -0700 Received: from orsmsx608.amr.corp.intel.com (10.22.229.21) 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.2375.31; Fri, 2 Sep 2022 00:03:03 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX608.amr.corp.intel.com (10.22.229.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 2 Sep 2022 00:03:02 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Fri, 2 Sep 2022 00:03:02 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.177) 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.2375.31; Fri, 2 Sep 2022 00:03:02 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mdc8j1e1QyOnV1+ThKnZvwDUKbc95+8dLzuU4b1ZWIN3ctv9MU7cirNyEm2mmYzsl8dKVKDWHb8H9B9VcPaEjjzEEnx7kfHOf17iNidc7hA25Nade0dM30MGDVBpMEw1R4zn1OiLvYdTLRQhDLyu1/DpIPYHykd57pmLFybTKVe7l84Pg0Z6Y6ablsRq/KqTMyPedhRnnPZrBuk3B810L2QyaIEL3PdORyF1yc4vl4yxteVPY7X/qR0CVu9HH46DjtiEmNBfoyeag9XuLdzpDJTJNXxL8krGRblOCOAxtw+xH0k53cwsNa7Xeko5cwtk1KFha+PhXfP6BVTYaBL58g== 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=k34aDl5AC0q0XuS804yth46NxmF5DAnEloFtQcjCTK4=; b=bXENiFGqushhIGtxFDtn33YSvQmda5eP5yt6CJn5gCwJyAcC3bdJHwafS+qosz39pmXAD+xNWiEJjxcQIp6iP6L3GtfBVKSgW7jaZirfj6Z8Va8T8QvuetqZIozBKAq7riu3wkNYhkRyrRk8blvbO8IspZbkl1/dOIqO8GEn0a8aAI+2LKhl9IuVvhpevDAILtsRWX1FSw+4oTBuhE7q1V2gRwUqGFmHyxXLUIcUXp+HccR343p0tx5eagdbtQKbqgeHnjqBwY2ub4OgshVQg57H5RiCUm1DlLGyHqLhaulj+oeQ/h8NjHH5dg+24YsVyS/07VpPgrAO+TgFYllakw== 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 Received: from BN6PR11MB1908.namprd11.prod.outlook.com (2603:10b6:404:103::13) by CH2PR11MB4343.namprd11.prod.outlook.com (2603:10b6:610:3e::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5588.10; Fri, 2 Sep 2022 07:02:59 +0000 Received: from BN6PR11MB1908.namprd11.prod.outlook.com ([fe80::9c39:88cf:f55:b7a]) by BN6PR11MB1908.namprd11.prod.outlook.com ([fe80::9c39:88cf:f55:b7a%11]) with mapi id 15.20.5588.011; Fri, 2 Sep 2022 07:02:58 +0000 From: "Lu, James" To: "Guo, Gua" , "Sravanthi, K KavyaX" , "devel@edk2.groups.io" CC: "Dong, Guo" , "Ni, Ray" , "Rhodes, Sean" Subject: Re: [PATCH v6 2/2] UefiPayloadPkg: Allow DxeMain.inf to consume the new SerialPortLib Thread-Topic: [PATCH v6 2/2] UefiPayloadPkg: Allow DxeMain.inf to consume the new SerialPortLib Thread-Index: AQHYvet4F+fkYLqZdEaHxhs9ekKJYq3LRZYAgAByhLA= Date: Fri, 2 Sep 2022 07:02:58 +0000 Message-ID: References: <20220901101252.1370-1-k.kavyax.sravanthi@intel.com> <20220901101252.1370-2-k.kavyax.sravanthi@intel.com> In-Reply-To: Accept-Language: en-001, en-US, zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.6.500.17 dlp-product: dlpe-windows authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 1d69f94a-7db2-4018-d0ca-08da8cb12b08 x-ms-traffictypediagnostic: CH2PR11MB4343:EE_ x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: QKKTbopo+Qh+ZqoUKjwcuXkoa5R4ynGN/sYmgNnMh9psEcXhO6L8oSlafcJKk4W7vpY5cPc0NPlg/ATV9svqx6g4km2+ppblVATc7xF2eg9Q1CJ1+NHxTPes12OUhxCPoH9Rxn8qo//kPDmgRgYwlRlGtK5pUa3Cy44AWCbomdtSCb0d1L3a0YBuS9TU0nZ7huOVYdD8STU2xqv4CwdjcqvqiQNlUeJv84SOmCiOlugzF14hlQnmQeoYehZBiAkRZLPOyXZtsbOePE2zo0rMwWJoYCvJqKA59giofAzv2jHn4tvD9wJEMDDdy4cOuPYVmlPudfaUUJyB7EHi5+lWBd4Y2aIAUPE6Wxg5UuMS2Dnira6wMV03in+bzEE5eJ/XSPBBQxlLwWu6t85Im0miW1Yb5ik+ISGdLhX7REqEahmkJubs3qvw97L9TuebVzf9Iq/69IGiSqnGQxCIiJ7acl7sKiZkAHSTFiMGngjsvLKsz5/UjQnyILdyBWDPvUSDKvoTIZu30ZaBcVKpLcuISrnePr6SHyM+cq60zYvi+tJLMCU62k7woeoCeLzwoNwe8hv6dFToCXGGLsP+nMb72C8FiwrgcU4E0PphCbWyr21Fs4H5y3UG4XndXWQdAu/Besrt7oPkqEOB89tRSs4f/xs8F0jqyuKiQAZp3NgjJTkXiKLJIWnxmgdFIN0+aMQsO9UzRswi9UAybpxWdUVfDW5Pni42n9hg7RWxYnu9txODSZUiQvol37Oi9c22vx35/zX/kJ62v2r/HoIl/x153w== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN6PR11MB1908.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(366004)(376002)(136003)(396003)(39860400002)(346002)(38100700002)(83380400001)(26005)(64756008)(82960400001)(2906002)(66446008)(9686003)(86362001)(55016003)(4326008)(38070700005)(186003)(66556008)(8676002)(76116006)(66476007)(66946007)(122000001)(478600001)(52536014)(8936002)(110136005)(41300700001)(71200400001)(5660300002)(54906003)(33656002)(53546011)(6506007)(7696005)(316002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?U5rVzRSri/C8S6UsMXtzGxBdbToxk1DyQ7eblHDJfumxWxLE/Fv2tMSQjz0i?= =?us-ascii?Q?hdqXnp/mnGzaG27ZMWCws3pFR7AuRPJKpui2OvvDf4eSC/M3Wj/1bN2XZBZl?= =?us-ascii?Q?21TP8wPe3dvR9Rb3lOY5h03uMMWA4fO3Y0esLbHFOkvhNl0LXkM6l4BWuPnX?= =?us-ascii?Q?oYte1dYU/qhDzB03UNinnN+icTVcH0/9Xz5klxMaBOzNdORHzMiFKJyqA0cl?= =?us-ascii?Q?R8cMR7q8bEzeLdbVXZzbETfjUR/QjMFN5nB9zoKdblKigu2FwkKqWrOPEdm4?= =?us-ascii?Q?lMnk8LNB7CWmUFPb8hxsIwMcanU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Q?L58KuRFySjU9hKdteIvmgcnnfAVGGuB9H093ke+jdBg9ijkYV1dTu3OlPUX5?= =?us-ascii?Q?UqrX/NNs6DpvZdgCQedJ4G844NULKhhnjapLPXXkuYuPccZExbTjdWCHsBpL?= =?us-ascii?Q?+0rzxx0ZmSc2MWuCKeyPQVphOgQf4pamvHJJ1P4EaeTbr1p3t+nvdjrfzmEB?= =?us-ascii?Q?KlinbwSD35+5NQM6CYLa4HLYfU0ZDktgmrxR5vJJ5RnwB//RtgrA/jGt7Erv?= =?us-ascii?Q?R+YLl0Lka4eqV0Q5bkhxX7CXI0n9HPIRtxv+tx1s5D09eNDb0Y7iJXtyeqlc?= =?us-ascii?Q?6vXob4Q9j5/tqhz5f/2CdzA4dez0pxfwmY4vJR2D+IPsqTYBiTWZTSiJd3HG?= =?us-ascii?Q?+S6k3Up0SCSKdVc1OCqiRkZjKougAq4PItl46UTC?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN6PR11MB1908.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1d69f94a-7db2-4018-d0ca-08da8cb12b08 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Sep 2022 07:02:58.5288 (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: 1X7DDxHp1MYX7dsBqlfE78S2rsRQrTaU8qj4xTjQPVx/+yFKvcskxss02XVT4GZu0UbiprYI3rsCdqF8ATrS6w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR11MB4343 Return-Path: james.lu@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: James Lu Thanks, James -----Original Message----- From: Guo, Gua =20 Sent: Friday, September 2, 2022 8:13 AM To: Sravanthi, K KavyaX ; devel@edk2.groups.i= o Cc: Dong, Guo ; Ni, Ray ; Rhodes, Sea= n ; Lu, James Subject: RE: [PATCH v6 2/2] UefiPayloadPkg: Allow DxeMain.inf to consume th= e new SerialPortLib Reviewed-by: Gua Guo -----Original Message----- From: Sravanthi, K KavyaX =20 Sent: Thursday, September 1, 2022 6:13 PM To: devel@edk2.groups.io Cc: Sravanthi, K KavyaX ; Dong, Guo ; Ni, Ray ; Rhodes, Sean ; Lu, James ; Guo, Gua Subject: [PATCH v6 2/2] UefiPayloadPkg: Allow DxeMain.inf to consume the ne= w SerialPortLib Let DxeMain.inf consume new SerialPortLib to support multiple channel debug= message on early DXE if the macro MULTIPLE_DEBUG_PORT_SUPPORT is TRUE. Cc: Guo Dong Cc: Ray Ni Cc: Sean Rhodes Cc: James Lu Cc: Gua Guo Signed-off-by: Kavya --- UefiPayloadPkg/UefiPayloadPkg.dsc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/UefiPayloadPkg/UefiPayloadPkg.dsc b/UefiPayloadPkg/UefiPayload= Pkg.dsc index 1b23ff3dbc..70828ea633 100644 --- a/UefiPayloadPkg/UefiPayloadPkg.dsc +++ b/UefiPayloadPkg/UefiPayloadPkg.dsc @@ -132,6 +132,8 @@ # Note: for emulation platform such as QEMU, this may not work and shoul= d set it as FALSE DEFINE CPU_TIMER_LIB_ENABLE =3D TRUE =20 + DEFINE MULTIPLE_DEBUG_PORT_SUPPORT =3D FALSE + [BuildOptions] *_*_*_CC_FLAGS =3D -D DISABLE_NEW_DEPRECATED_INTERFACES !if $(USE_CBMEM_FOR_CONSOLE) =3D=3D FALSE @@ -615,6 +617,10 @@ # MdeModulePkg/Core/Dxe/DxeMain.inf { + !if $(MULTIPLE_DEBUG_PORT_SUPPORT) =3D=3D TRUE + DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialP= ort.inf + SerialPortLib|UefiPayloadPkg/Library/BaseSerialPortLibHob/BaseSeri= alPortLibHob.inf + !endif NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompre= ssLib.inf } =20 -- 2.30.2.windows.1