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 08CCB9416BB for ; Thu, 18 Jan 2024 10:20:19 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=Mhk7H0duflhgfvDfo8nNJYrDPFG33E35OvAxI3xjbkg=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:Received-SPF:ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:Authentication-Results-Original:Message-ID:Date:User-Agent:Subject:To:Cc:References:From:In-Reply-To:MIME-Version:NoDisclaimer:Original-Authentication-Results: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=1705573218; v=1; b=TNVam+UEuWFCiMaULgeGZ4k19H35tnazBdDtRkKcg4rlJt34cO84oTlTWUmaKpS0Wa3WLB6W rdHxJKzPFHoL5W9NW4kpmyDWRce1SuwgyCNi7vUpcU2bnJ9g2vDG3x0S9FGGRiw7xl4tvk0V2Ex wZpdPa1dwyCGW7Pm1LvUPdsc= X-Received: by 127.0.0.2 with SMTP id LC4LYY7687511xNV3WVs6Xle; Thu, 18 Jan 2024 02:20:18 -0800 X-Received: from EUR05-VI1-obe.outbound.protection.outlook.com (EUR05-VI1-obe.outbound.protection.outlook.com [40.107.21.42]) by mx.groups.io with SMTP id smtpd.web10.8349.1705573217298205861 for ; Thu, 18 Jan 2024 02:20:18 -0800 ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=aaqMxEAdQY2qSCfXHt2/hXZDn9wsSLhdNMvuUFu36F/XWl4J7mCawfwhHXELx4WvOSRReRG0U6uZDU5tCoc6o3jbbMq6L7eeD4X0dFwLj0Im9Gpml+NULaDbp1viUyaWe5WAzEdZ1tikze/W8nlAfIz629doiH/++WWWZFUWC9bJls3VQTzmvXzXU1OOUTjMJ1le/B5Jd1skNwPmzXL1Z5W/Hqwd4UbYClrtALThz16wItf6lRktAmfVcx8Bju4yWVTC27TOovRI34YbtM/PtLqrng3SCipJpEXmrFU9k2isJwFDckTd0SIW+jFvucI5A3gAZcM/4jjjacapOMROYQ== ARC-Message-Signature: i=2; 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=4iClKq2PRbP7kbgXeZKQJoW3Vg++1KNOoC8/QwCrPOE=; b=B035pPnD+9rXuSmw4Ae2g335Z5GjYhgJozckfuFvwecUE1tPUkSshnKACkgbfYjyrs955JVbUIkZ/fEBTQJqSMJ9NlKTlCtXfzA04zrPthlp/z0YWR+jFa534wU0c2lzgogpg+j8/0NfWlQ8Fulm7ILccbXOBylUnTpC837T3Ydnv7d5HhN9Y+QX7M84srEUvJhGneV1+IYOOWUSluBBmw+5BdShvS1JezuIeYIcE2SC/r/2IuFSCw4CqgD2GPjCLjB8yKwPho5Z5ZdPfHT0ofKB0q8msgsbdbY+o1Dtehub/2qTh3e2HChXgjvd3ycaDN85z8Xv9hbCK7auihr8SQ== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com]) X-Received: from AM4PR0302CA0006.eurprd03.prod.outlook.com (2603:10a6:205:2::19) by AS8PR08MB6598.eurprd08.prod.outlook.com (2603:10a6:20b:336::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.24; Thu, 18 Jan 2024 10:20:12 +0000 X-Received: from AM4PEPF00027A63.eurprd04.prod.outlook.com (2603:10a6:205:2:cafe::c) by AM4PR0302CA0006.outlook.office365.com (2603:10a6:205:2::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.23 via Frontend Transport; Thu, 18 Jan 2024 10:20:12 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C X-Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM4PEPF00027A63.mail.protection.outlook.com (10.167.16.73) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.16 via Frontend Transport; Thu, 18 Jan 2024 10:20:12 +0000 X-Received: ("Tessian outbound 1076c872ecc6:v228"); Thu, 18 Jan 2024 10:20:12 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 35596be4c6ad664d X-CR-MTA-TID: 64aa7808 X-Received: from 92623e73e278.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 746929D8-3378-4A9E-B114-054BE425C985.1; Thu, 18 Jan 2024 10:20:01 +0000 X-Received: from EUR04-DB3-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 92623e73e278.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 18 Jan 2024 10:20:01 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gQCR0QAZMwMEy1ut9kIkSpfep7+sG9hWavGnkLzF5+QlME8pVLRMUMWwDgCnoOtrXoSw/BiBFLPylqMCn+Mk4n07TY8KPcmTn/RmPFwqIP93npj4boMBfdB4XLlBsGL/KZrwRJ4RqCpd4eVGLBfOQSFIqSCIvVGFBR8T2u5eL9Bd5jJM10ssZ3dVXeUWK2QB8HziiOTDuOPZNpYkjsUtwTwhS+ndNdtqZg0WQ2j4iu3xgzMjg1X7xQoP4D7U5NO7c5RW710dLYzM9rf3eP6juFjLdGNJPsTmEN2vdGXb7jrPYartgrSp01nCrI2/1wAHmKok1fszhlj/THvsa9ummQ== 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=4iClKq2PRbP7kbgXeZKQJoW3Vg++1KNOoC8/QwCrPOE=; b=jsy0PDpWVNMs778zwVox82O2YyNYd8MziEczgX1Ebf7jXKJmQnFSlVSUAV16DWKuUjGx1bU1RLMrlx1SF/UHC715faRqOEYTlknBZHSWIOSFKHtBYtTzKxtavutX52XavdTCJTUmdXDS4ULOlxS78nyrNP/vSpcgyxSZjRJd2EW9OL+0l4g4T/UrWPO+DxsZ3WR+dRJ1e1FlJvPA+obkmggeGXFmk0IQ+z8Vx3sgbQsi9nGf6T+Ohai5czrVWyC/ZYqeccMN6wgVQ2KrUVwZ3AhSyFzq+XB1d7MlEoIrz8OkGUdjPqD1COPQ5WEajFq3Pr4ZK3YeJGBMu83pShd67Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-Received: from AM0PR08MB4289.eurprd08.prod.outlook.com (2603:10a6:208:148::12) by DU0PR08MB8931.eurprd08.prod.outlook.com (2603:10a6:10:466::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.24; Thu, 18 Jan 2024 10:19:59 +0000 X-Received: from AM0PR08MB4289.eurprd08.prod.outlook.com ([fe80::18bb:1962:359f:7fd9]) by AM0PR08MB4289.eurprd08.prod.outlook.com ([fe80::18bb:1962:359f:7fd9%4]) with mapi id 15.20.7202.024; Thu, 18 Jan 2024 10:19:59 +0000 Message-ID: <3ac7bd05-0383-49e1-95e4-1f588d4ab861@arm.com> Date: Thu, 18 Jan 2024 10:19:56 +0000 User-Agent: Mozilla Thunderbird Subject: Re: [edk2-devel] [PATCH v1 1/1] StandaloneMmPkg: Initialise serial port early in StandaloneMmEntryPoint To: devel@edk2.groups.io, "Brian J. Johnson" , Laszlo Ersek , Oliver Smith-Denny , Ard Biesheuvel Cc: Sami Mujawar , "ray.ni@intel.com" , Pierre Gondois , nd References: <20240105114931.844886-1-yeoreum.yun@arm.com> <5a07db2b-ea25-495d-91f8-7b51ddd9ec75@arm.com> <51aea8c8-25bd-4630-b305-e4337284661e@linux.microsoft.com> <90dd9b46-b0a6-99f3-db30-4225c337e0a9@redhat.com> <5a9cd535-988e-4212-a0bb-f340d0b124f9@arm.com> <9e1c0701-c6f1-45a1-843f-5f4821eb6259@arm.com> <10e4dfd5-a086-4889-b531-f697fee022e2@hpe.com> <17A93FAECCFD3533.4530@groups.io> From: "levi.yun" In-Reply-To: <17A93FAECCFD3533.4530@groups.io> X-ClientProxiedBy: LO4P123CA0368.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:18e::13) To AM0PR08MB4289.eurprd08.prod.outlook.com (2603:10a6:208:148::12) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: AM0PR08MB4289:EE_|DU0PR08MB8931:EE_|AM4PEPF00027A63:EE_|AS8PR08MB6598:EE_ X-MS-Office365-Filtering-Correlation-Id: 1b2c378c-41a5-44b9-3bd4-08dc180f0e8a x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: /uuqKirh6uGEkTcaBBU4hvsvWqvrC3TK0j3m8a33hfjzNlDBWaAyBNK3cLoUbLS+FSYGOuNpF6xP0JILRPe14bI1/iWzymyv8mEvPB3NV8IzQ509EmvTfj6Ty9/qsGCLcmk+0phDSlIFwhAKom8ojNsnx9awC+yY1dsIwUZFKHTwZjdiK8s/Uz+FaYIrf0VifujGh6VvskG9P0iTBgXHmXEjOVcePvgWh23g0lHE7gHsDDu5xQNJm1BxPX9TEDtDrGW67MWMJkUow7TTAaxJMEvRfNba2CndK7gGfK7llleQUL9id2kyTojC3LVP2TTRcUFvxOxCWaUEh/eV/HBHFun5KmRWg/KqQuyicC5meTKP9ScUK02qSp7UYE5TNSBS29GQn2ZFnS3CbIHh5I8CPZmYbiC/osYv6Hr+wt6f4Iigxn483HN56ojNsumQRWZ+euYLD2L6YlQ8MtBtOdRHRy2niqAyLCjsNgegWriI3B2gDMLmdnRWJ4YiACFWpU0DNCx09sxCmu71Gsuuzpn+RAr8z+7K+G0CzE1WN1tVOBsL1exkEDOhzBBhCyOon5Qhzze+i3/gIPzv1m8Tpgpxhz2dDlCPntw7P45j/m3N3Z4MA0SyGfvH5ifwVH6z4db04Uv8MksZ2xVf3BoT6dDkgcQ78EWErxZSlcJtSuFeTeo1AktQWzQqjE2aSjP3uJSC X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR08MB4289.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(6029001)(136003)(396003)(376002)(346002)(366004)(39860400002)(230922051799003)(451199024)(64100799003)(1800799012)(186009)(66899024)(5660300002)(8936002)(8676002)(4326008)(38100700002)(2906002)(83380400001)(36756003)(478600001)(6486002)(966005)(110136005)(41300700001)(31686004)(53546011)(2616005)(26005)(6512007)(6506007)(6666004)(31696002)(86362001)(316002)(66476007)(54906003)(66946007)(66556008)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB8931 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM4PEPF00027A63.eurprd04.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: a3e3c244-10a8-42aa-f322-08dc180f0657 X-Microsoft-Antispam-Message-Info: PG01RrV5pChSGiPE1DxZTlBEaaBRkHkHaGvgSz6n+smbhvm5C+FPLszMamLalgxY35HiOELIFVC0ytHdx0G6def7wf6uJJ6N77hKcSL7TiSNQwf3zT7YGlFE7e1d+4hRN/dU7vzO+rwOkc+wdy9+VSjDraFc0b8A5GZUCBz9wd3CUpYKXxxPTEeoAlJyr+FaeUNGpUdR5EGxMQmvKhF3vEBBOC+1CSoMPKqmDqW1qCs7hfSNYvcDXsDwZezHLHHlI0eHVIrdHX9urW1HcNHfYjR3LVVnIJNmeCzhpXIiHKIABirU7O8luG7e+suhgQGw9yq9gFUw54gceEgfTKUPnckO6WSl7V4rpd/CvgNDWadoTr5OnYQczfCeFdq7kQHiknbwPUEc5psiGDEJeCqlc5MPeu83Ds9qQSLi+QeP9cxnVAeFVg2Ft3Bs6tjxd20+WJ/LinB15MtmC0zKAISGUvZhM+SYgAOi9O06jlNTuwifcX7PvxmXOinVDaZjP7OZz8xDYRFOK5vpDBuKwqohywrXXY+uxBGiyl41w1E7K8xvRDczOLH2msBFC4IcxLcwtz9cA6sgohCTb1xiWtPLWb0H74m2XmPNkPCTFCAPbaU4pzHupubVyuCOy5Jzg3e8sFVVv8k50Pq9UhjIvrfrFRcwgL60IqZAnRn//TQ9cw16+k68NivnPmTvehmz1LuWTFYPpt7Up9DOReGztvB9+xnT6rHGO8Tn7cFMajYPHZMyeMRpOmNlNNFXmxkkag0+VdprOmfOntTn1Uac1rhdOPQeqPighzAsVQRqBLR7ZF0= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jan 2024 10:20:12.6659 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1b2c378c-41a5-44b9-3bd4-08dc180f0e8a X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM4PEPF00027A63.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6598 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,yeoreum.yun@arm.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: mdqroGihD1X3UEf3XALTqaqgx7686176AA= 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=TNVam+UE; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=arm.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 Hi, Ard Could I process with this way? Many thanks! On 11/01/2024 09:05, levi.yun via groups.io wrote: > Hi Brian. > > >> Ard didn't want a SerialPortInitialize() call directly in the >> all-platform StandaloneMmCore _ModuleEntryPoint() function, which is >> understandable. So perhaps you could either: > Thanks to corret me :) > >> 1. Propose a platform-specific callout at that point and a library class >> to implement it, with an empty instance for general use and your own >> platform-specific instance which calls SerialPortInitialize(). > Thanks for suggestion. > IIUC, It looks good to me to make something like > PlatformEalryInitialize hook called in early stage of StandaloneMm > and let it be implemented on each edk2-platform to initialize Serialport = early and etc. > > Many thanks! > > > > > > IMPORTANT NOTICE: The contents of this email and any attachments are conf= idential and may also be privileged. If you are not the intended recipient,= please notify the sender immediately and do not disclose the contents to a= ny other person, use it for any purpose, or store or copy the information i= n any medium. Thank you. > > >=20 > > IMPORTANT NOTICE: The contents of this email and any attachments are confid= ential and may also be privileged. If you are not the intended recipient, p= lease notify the sender immediately and do not disclose the contents to any= other person, use it for any purpose, or store or copy the information in = any medium. Thank you. -=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 (#113991): https://edk2.groups.io/g/devel/message/113991 Mute This Topic: https://groups.io/mt/103540969/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-