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.12841.1632149443537617915 for ; Mon, 20 Sep 2021 07:50:44 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=QREWc7DZ; spf=pass (domain: intel.com, ip: 192.55.52.43, mailfrom: maurice.ma@intel.com) X-IronPort-AV: E=McAfee;i="6200,9189,10113"; a="308690879" X-IronPort-AV: E=Sophos;i="5.85,308,1624345200"; d="scan'208";a="308690879" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Sep 2021 07:50:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,308,1624345200"; d="scan'208";a="511388064" Received: from orsmsx605.amr.corp.intel.com ([10.22.229.18]) by fmsmga008.fm.intel.com with ESMTP; 20 Sep 2021 07:50:42 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX605.amr.corp.intel.com (10.22.229.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Mon, 20 Sep 2021 07:50:40 -0700 Received: from orsmsx609.amr.corp.intel.com (10.22.229.22) by ORSMSX610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Mon, 20 Sep 2021 07:50:40 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx609.amr.corp.intel.com (10.22.229.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Mon, 20 Sep 2021 07:50:40 -0700 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.2242.12; Mon, 20 Sep 2021 07:50:40 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=De15ulG6BFAmd9c+kB5F/f56au+ZuvDF//ZPRczgLtfkvl7ocS8G2wEv2UhvHN2UsVbeNdUVzQkJOdNSld1k7gpMIwizoaly8cAYUJYMYLMf3cfO7lQcrngNxhxwcFshT0Cx8OD+wxEhzY3952hgWvWAt+681XtuBJeXUOhY0EovTiyNitbEpXmrFsE66daJA9qKo5u52Pbub6QEXn62LBdlOO997OsMEtrwR5WuQwmycjHcvV4CwI1EasOoZ84n2dNiqc3Pi7xuaMYjM8Id75Q3fhZThP8Y211dJzMfyLV1w0aElE/89HMT0DDm5P273lu3c6IGV1/BJCziCgEIXg== 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; bh=usj2nt+kchDqNY9ZWuYxMJwytyND93ZRHY3klGTTB1s=; b=R/m+b8p0DVWaKWhkypUe5vRnalC05WcLpGV7Wg0m22sFow1NcV41cqRTiziC2QpWKRW8tu+mse5/I2dQDXpKj50+o5X965OvkIivDACbtGC4JZF0HqXmt48FTs1hBj/h4I5Keua3gJBmDc5eKPkPrIb+8Hi2i4aiItADWuPW0b3S9gwsOh4CaW0aB9TdxCMqI0+In7EP214U1bTH9dVky1Bc6S14oJFT32QFucHH+CZahBpr3LkayXtsrDzjI7ARDmiihQoBd1CQzYKFhVr+yp7J7td4u1geHO230rJI/fE0jjUwXjIJz4LLs2kypHjGeEnSYLz61u8CsCMEb+OWuw== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=usj2nt+kchDqNY9ZWuYxMJwytyND93ZRHY3klGTTB1s=; b=QREWc7DZVK2lwuaxURlur94ja9xiyvYKUhGfGvAWbNelQWPvc+ZgqZ8oDgHJAigg5CBbbuVJfYbSW480qvsACulVld5WgnVz0+NQOuo9KuIHe98bGLobG67aiuC2KUAKDHYElF9w2Ef8BWU8SUs0jhSKctYPg9h8VWIkmy2MTgg= Received: from CO1PR11MB4945.namprd11.prod.outlook.com (2603:10b6:303:9c::8) by MWHPR1101MB2318.namprd11.prod.outlook.com (2603:10b6:301:4e::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.16; Mon, 20 Sep 2021 14:50:38 +0000 Received: from CO1PR11MB4945.namprd11.prod.outlook.com ([fe80::6d06:741e:5c37:bd4a]) by CO1PR11MB4945.namprd11.prod.outlook.com ([fe80::6d06:741e:5c37:bd4a%9]) with mapi id 15.20.4523.018; Mon, 20 Sep 2021 14:50:38 +0000 From: "Ma, Maurice" To: "Liu, Zhiguang" CC: "Dong, Guo" , "Ni, Ray" , "You, Benjamin" , "devel@edk2.groups.io" Subject: Re: [PATCH] UefiPayloadPkg: Add Macro to enable or diable some drivers. Thread-Topic: [PATCH] UefiPayloadPkg: Add Macro to enable or diable some drivers. Thread-Index: AQHXrGG6enRG50hDrEW2Nfh8KYqhjautBJ1g Date: Mon, 20 Sep 2021 14:50:38 +0000 Message-ID: References: <20210918074917.553-1-zhiguang.liu@intel.com> In-Reply-To: <20210918074917.553-1-zhiguang.liu@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.6.200.16 dlp-reaction: no-action authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 2c4cbf02-7dc9-4cb0-30d5-08d97c4602f0 x-ms-traffictypediagnostic: MWHPR1101MB2318: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:24; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ywImV0U7Kt+OvyGAXrZiUb0qbiUWfmZxJAD/dbFloSvauo7a6eLxa0u81BS9+YuTYsra/54MFyZg+Ux8BEP6a8VJh/Gjw/kLYlcQrhVCirjHgERqxWYBm1OpGWrrkhNhOUaSH72lA/u8bzVBpLpg90aC9epSnJOb4PnSI/YCHfqA5AjzmgetTJAQO/iYfjQAp39BUiiKwUStWn7AY6SQwpVbMWmmOonZhMr8sRXuJhrGyGTocZmxeYqBYClCv+K0Tf6+4/3mqnSgYb7lHKbwLpSGW71KQf6YL818Vd+WgDnyAX1stPHYB8TNhDdUx3ynV/KKlrSVqloq5JlgUEmnqgLxPMrz20cMtED7ITnq+17AqZTBH6kDAxCmDVHZRp+CWG9jsuVXNxFzA4Qtz0AYYbDhtkyaXv0029KYaB/EEKGxFNsvYwa53guAW/Tl64ySjRCyfiJlYpKPEK3MMtjEfucQt0juAdJMg6OdeKulgv1eYFfYogtgbPIx5EmRVEoPetTZE9kvmzo3Is6vdiur1HaYR+BaNNpMUge7b9RWa07y9yMcYJ9dAsmoOWp+qELIA9QxbjaBnWED65kA/djvDvgELbbuPWt5UMlzXyyaCYy9k+F/tdhLYsa6RnhyVb3ndADu5IHEc+P/gtLgbt3K0RV/bW762/AgW7UQbqgJEBQUvuejan8G0pjfoxUxQZI2VZ6ZtP+cTdWzKfSx+o4INA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO1PR11MB4945.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(136003)(376002)(39860400002)(396003)(346002)(478600001)(2906002)(122000001)(38100700002)(54906003)(6506007)(53546011)(71200400001)(4326008)(6862004)(6636002)(33656002)(8936002)(316002)(9686003)(7696005)(66476007)(8676002)(38070700005)(83380400001)(66556008)(52536014)(86362001)(186003)(66946007)(76116006)(26005)(64756008)(5660300002)(55016002)(66446008);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?sIfXNABf3hPS1Lcm9xzEZVeW92+In3oQr513UGSFnJe4btc889g9/1w4Y2PY?= =?us-ascii?Q?GsxgbB+EJ6tH5fMgSZyQlVjT8VG6WrXueAjA9i+rdCeQnQgcmNHgt08BuTQO?= =?us-ascii?Q?Ro6GVoDbmxkaVJpjdBx3SwtyiA5C7LVEhLnsWdXqb5+gcorg/tvyykQQn4FN?= =?us-ascii?Q?ul0OgECyIKHd1v0OFrn/wwkkvzCDh8HGin+WaLrMdzqTTlE83WkTZ8RQXs8C?= =?us-ascii?Q?C7pFAZcu1DxivsE4OIqFUHt+9ZGu271L+e4D3B2WHSctbouKCK0/CuoDZ4Wa?= =?us-ascii?Q?YOK6fUB/NAmwpek303BTHr4cTkkGVOZHCKM8RZzYTHYlPH02TPQPxa0POIY0?= =?us-ascii?Q?6i8PvIY3+o+9xPPjK4PGEuR7td+XFsz59iN0dLFHqtFEQ1l22U5wajWafICx?= =?us-ascii?Q?GfrcolWlpzfkCG0E6evzjKpC985ovXZB4KVuhHluWruaanwBKfJ0snrGw1tP?= =?us-ascii?Q?Y5UKGXDzu9vI1RQ4CkfaoK7dztOF+JOFPfN1e9SuwQ3re8KAYWwUiW97kFp0?= =?us-ascii?Q?Xyb4UxX3u4dIIRxdf1azgMYIW4rJlC0+r/Me1k19lJBxJpImledCwCWN+iOD?= =?us-ascii?Q?grKaDYhtEvhK8ybXynSC2nc2atndPilFqWOcx3H3Y0ax43ax7oPqO4UKC+mi?= =?us-ascii?Q?8z0/5SXL9mwciRrlKxi8o1hzu5M/FmEJ/tHuNkJMJ1wET4RzIjhhbCXSPs5I?= =?us-ascii?Q?3YYKwlvV1AJnL7TQVG1HccXtkrVX0TLBNEDQ00CULdlpUgNLAQego1vM17LX?= =?us-ascii?Q?JOaCNl0t1IkL57ZvA/hbY4kzIPySRLdgCzpFRTZPvfwheEau6u7J2UAhcH0q?= =?us-ascii?Q?OtofgE6SMu2kCSmNTYFtYerY6UOVDTiPfT+96lsA32OFfBZSHnBxzSqDmVWM?= =?us-ascii?Q?XWXeOv6P2Tt00MsesMsho6v0CUNISRhHD7ohz/E3bUPURF++v3gZTlvxNNl7?= =?us-ascii?Q?AN0IQxJOl/wiCdTJ7d/sWuoTvpre4eHOrEl1x3LPR+srhnco3Kv3NsayrlTl?= =?us-ascii?Q?AK9NnwSNwFdT1UuB4VjKx+Gas3SLzQEa+72/9UXMXOkm1f1ud2n99+lPtniN?= =?us-ascii?Q?Vb1uQWJvyMxfYoWKVX65oegBXa1yg83J54YuJuPJgb0hopWp1HM/0OzgEhxP?= =?us-ascii?Q?MjarguVw2OnUOXaTBNPP7p5w85FZpriKkFha1hXLYE31n2xRT+MAa3778mZL?= =?us-ascii?Q?WeT4VTNrhyjjmGYBC32snobVfy3/ayqNGSdd3s9vMK8CPfc//3CeoDOvfH9+?= =?us-ascii?Q?qbJZpejD4k4bfI5jEiFTUgjlP0NtXhDIHBpT7+QjkOHSKCiAQZZudY0GhaQ6?= =?us-ascii?Q?lCys1OtyqyOACC1k8f17wGkZ?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB4945.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2c4cbf02-7dc9-4cb0-30d5-08d97c4602f0 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Sep 2021 14:50:38.6584 (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: rBPmSrZiLKC9zjbptd5uFz/9F57pJqd5ycP6R1W5GkxQQaXQBqbhJadu2DuYWSpUs40iAAgwRHL9Iq+O5B9rcg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR1101MB2318 Return-Path: maurice.ma@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Maurice Ma > -----Original Message----- > From: Liu, Zhiguang > Sent: Saturday, September 18, 2021 0:49 > To: devel@edk2.groups.io > Cc: Dong, Guo ; Ni, Ray ; Ma, > Maurice ; You, Benjamin > > Subject: [PATCH] UefiPayloadPkg: Add Macro to enable or diable some > drivers. >=20 > Add Macro to enable or diable RamDiskDxe and SioBusDxe drivers. >=20 > Cc: Guo Dong > Cc: Ray Ni > Cc: Maurice Ma > Cc: Benjamin You >=20 > Signed-off-by: Zhiguang Liu > --- > UefiPayloadPkg/UefiPayloadPkg.dsc | 10 ++++++++-- > UefiPayloadPkg/UefiPayloadPkg.fdf | 7 +++++-- > 2 files changed, 13 insertions(+), 4 deletions(-) >=20 > diff --git a/UefiPayloadPkg/UefiPayloadPkg.dsc > b/UefiPayloadPkg/UefiPayloadPkg.dsc > index 9d7f311343..fb805dc772 100644 > --- a/UefiPayloadPkg/UefiPayloadPkg.dsc > +++ b/UefiPayloadPkg/UefiPayloadPkg.dsc > @@ -28,6 +28,8 @@ > DEFINE SOURCE_DEBUG_ENABLE =3D FALSE DEFINE > PS2_KEYBOARD_ENABLE =3D FALSE+ DEFINE RAM_DISK_ENABLE = =3D > FALSE+ DEFINE SIO_BUS_ENABLE =3D FALSE DEFINE > UNIVERSAL_PAYLOAD =3D FALSE #@@ -536,8 +538,10 @@ > MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf > MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf > MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf- > MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf +!if > $(RAM_DISK_ENABLE) =3D=3D TRUE+ > MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf+!endif # # > SD/eMMC Support #@@ -562,8 +566,10 @@ > !if $(SERIAL_DRIVER_ENABLE) =3D=3D TRUE > MdeModulePkg/Universal/SerialDxe/SerialDxe.inf !endif-!if > $(PS2_KEYBOARD_ENABLE) =3D=3D TRUE+!if $(SIO_BUS_ENABLE) =3D=3D TRUE > OvmfPkg/SioBusDxe/SioBusDxe.inf+!endif+!if $(PS2_KEYBOARD_ENABLE) > =3D=3D TRUE > MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf !endif > MdeModulePkg/Bus/Isa/Ps2MouseDxe/Ps2MouseDxe.infdiff --git > a/UefiPayloadPkg/UefiPayloadPkg.fdf b/UefiPayloadPkg/UefiPayloadPkg.fdf > index 6caa134081..6b48bfc869 100644 > --- a/UefiPayloadPkg/UefiPayloadPkg.fdf > +++ b/UefiPayloadPkg/UefiPayloadPkg.fdf > @@ -142,8 +142,10 @@ INF > MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf > !if $(SERIAL_DRIVER_ENABLE) =3D=3D TRUE INF > MdeModulePkg/Universal/SerialDxe/SerialDxe.inf !endif-!if > $(PS2_KEYBOARD_ENABLE) =3D=3D TRUE+!if $(SIO_BUS_ENABLE) =3D=3D TRUE INF > OvmfPkg/SioBusDxe/SioBusDxe.inf+!endif+!if $(PS2_KEYBOARD_ENABLE) > =3D=3D TRUE INF > MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf !endif INF > MdeModulePkg/Bus/Isa/Ps2MouseDxe/Ps2MouseDxe.inf@@ -171,8 +173,9 > @@ INF MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf > INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf INF > MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf INF > MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf+!if > $(RAM_DISK_ENABLE) =3D=3D TRUE INF > MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf-+!endif INF > FatPkg/EnhancedFatDxe/Fat.inf #-- > 2.32.0.windows.2