From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (EUR05-DB8-obe.outbound.protection.outlook.com [40.107.20.72]) by mx.groups.io with SMTP id smtpd.web11.13572.1593005728739969130 for ; Wed, 24 Jun 2020 06:35:29 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=T8a/m0Hs; spf=pass (domain: arm.com, ip: 40.107.20.72, mailfrom: sami.mujawar@arm.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fbxBRKb98+2/DdHWhom2Fv97Xgvc34WhAsjWeIINP3I=; b=T8a/m0HsVh/sBVvbPFf6gvWfQ07WgFJR/QNRQu7VDGOd9hwBOGIBj4AT28dSm0KI6TPmyOgl8YQJkVEC5gdKVtdq8Jn1jO0fIMmG92nlWUy3Z5XJLgtMFnSWJbcX4GwzKy7L1hr9vmEbdN7WC5ri4mcc8zNZaGoydPd2Hx08YGk= Received: from DB6PR1001CA0038.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:4:55::24) by AM0PR08MB5443.eurprd08.prod.outlook.com (2603:10a6:208:183::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3109.22; Wed, 24 Jun 2020 13:35:26 +0000 Received: from DB5EUR03FT037.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:55:cafe::b) by DB6PR1001CA0038.outlook.office365.com (2603:10a6:4:55::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3131.21 via Frontend Transport; Wed, 24 Jun 2020 13:35:26 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; edk2.groups.io; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;edk2.groups.io; dmarc=bestguesspass 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; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT037.mail.protection.outlook.com (10.152.20.215) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3131.20 via Frontend Transport; Wed, 24 Jun 2020 13:35:26 +0000 Received: ("Tessian outbound 839770a6d413:v59"); Wed, 24 Jun 2020 13:35:26 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 4c263d8a5490cf94 X-CR-MTA-TID: 64aa7808 Received: from 91a065fa935c.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 32C49058-B802-458C-91F0-84FF774277CC.1; Wed, 24 Jun 2020 13:35:20 +0000 Received: from EUR04-DB3-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 91a065fa935c.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 24 Jun 2020 13:35:20 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EXq5Ns5fEYiffYqOMZibmC2IG1vtyl8RLpQCB5EjsOeUnTAZAXmur2QNN73II25xYAmd/2baTkhX5wvHPasZkJZhniAga8BYLm7YFpjLHSuYdbCLX1B4CNJ0od98QX8ZK+QFDbn3UCgsSoKNrQSsR6CBNKdYcslv4wpFHDvmEsIs22esWO1T4Rin/bSvlo5mnuhsCOPmA07HmdGMNHnE6D6vqet0ivMUVePeO6gvi31qi4vNAr1Uz7vZGqexL0l495iJ/Xx8qM9n7gEoOQwc3wge6QgCcmzqAstDXGszzcP3ENIKBAeHaSO65P9muINigEkazCCgB0tw5x4g0LeZwg== 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-SenderADCheck; bh=fbxBRKb98+2/DdHWhom2Fv97Xgvc34WhAsjWeIINP3I=; b=WPiAsJ5I5Vi/LcLBWBhydW4RXceRxGxrWvacYL0501PZvafNPzAjaoTxNi6pDVeMSyJycN4bMW48gwd/UvlNraBs8uvSY0DvTQja/PYQcC+xcutuwhpMSHA9vD4uDKRxoSt940Do/66C8ONlJm9OgdbobJatkxx336omVFi5GMHU12leEH7hkibTLSqtZBcc2uJ2lZz/Zd+8yGBGWieufHQs2miZz7iaHgUv2ttgZhLauqsReqyamSEwWB4Xtkge6tQZT+jPLVvoMazmkL1vQM3oY1NbGwJAPrIIPD5XhlgxoV+/OnfO4jx37WH9nrro1i4DUk2DHD86XA1Qqa1pHA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com; dmarc=bestguesspass action=none header.from=arm.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fbxBRKb98+2/DdHWhom2Fv97Xgvc34WhAsjWeIINP3I=; b=T8a/m0HsVh/sBVvbPFf6gvWfQ07WgFJR/QNRQu7VDGOd9hwBOGIBj4AT28dSm0KI6TPmyOgl8YQJkVEC5gdKVtdq8Jn1jO0fIMmG92nlWUy3Z5XJLgtMFnSWJbcX4GwzKy7L1hr9vmEbdN7WC5ri4mcc8zNZaGoydPd2Hx08YGk= Received: from AM6PR04CA0057.eurprd04.prod.outlook.com (2603:10a6:20b:f0::34) by VI1PR08MB3774.eurprd08.prod.outlook.com (2603:10a6:803:c5::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3109.23; Wed, 24 Jun 2020 13:35:19 +0000 Received: from AM5EUR03FT042.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:f0:cafe::4e) by AM6PR04CA0057.outlook.office365.com (2603:10a6:20b:f0::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3109.22 via Frontend Transport; Wed, 24 Jun 2020 13:35:19 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=bestguesspass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; Received: from nebula.arm.com (40.67.248.234) by AM5EUR03FT042.mail.protection.outlook.com (10.152.17.168) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.3131.20 via Frontend Transport; Wed, 24 Jun 2020 13:35:19 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1415.2; Wed, 24 Jun 2020 13:35:08 +0000 Received: from E107187.Arm.com (10.57.22.181) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.1415.2 via Frontend Transport; Wed, 24 Jun 2020 13:35:08 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , , Subject: [PATCH v3 07/15] ArmVirtPkg: Early serial port initialisation Date: Wed, 24 Jun 2020 14:34:50 +0100 Message-ID: <20200624133458.61920-8-sami.mujawar@arm.com> X-Mailer: git-send-email 2.11.0.windows.3 In-Reply-To: <20200624133458.61920-1-sami.mujawar@arm.com> References: <20200624133458.61920-1-sami.mujawar@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFTY:;SFS:(4636009)(346002)(376002)(39860400002)(396003)(136003)(46966005)(44832011)(4326008)(7696005)(70586007)(336012)(2616005)(70206006)(1076003)(8676002)(82310400002)(356005)(47076004)(36756003)(83380400001)(86362001)(82740400003)(81166007)(478600001)(2906002)(6666004)(26005)(6916009)(426003)(8936002)(186003)(5660300002)(316002)(54906003);DIR:OUT;SFP:1101; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e2f6f1ef-cc9d-45d0-c4db-08d81843741e X-MS-TrafficTypeDiagnostic: VI1PR08MB3774:|AM0PR08MB5443: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:5516;OLM:5516; X-Forefront-PRVS: 0444EB1997 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: xXmI9ovRP1pWlZ2HzDAAWoiBrlug47u+Z+LGJbbCy4ftlkGWJsMuccAB2tWWkpANP7BfJftLKOJCi53ijyDwVDu2M0Fluiq7YvEQfUqSCktjuos0H+STPU6gFxIs4Cf2t+Gt+widCzqEjxMeVxldPxATDTN8E6CWlWUXdA78OXYWyaDUXxx+BhAOglhBsblkK5ploQVRM9f0HWhCBFCSTFSPGcAdFWQEMF1wf18k92EGRpwQ4+0nEhDbrGwLP6BZGjUt1GHh4tMkFk10pZJJ2UmojjrgMq/wLVEoF8Syaumjg0XLdtxtBbdhuFGFpmODhQZZmThWCNU+Lpxj0p8AAJGSs9aA/fukauvJS8Lt4l9EefRuAMdtpCldF+ANWtcxJ7B1bdFX5hkZOApKEdyDEA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB3774 Return-Path: Sami.Mujawar@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT037.eop-EUR03.prod.protection.outlook.com X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFTY:;SFS:(4636009)(396003)(136003)(376002)(346002)(39860400002)(46966005)(82740400003)(82310400002)(8936002)(54906003)(186003)(86362001)(6666004)(4326008)(478600001)(5660300002)(44832011)(7696005)(70586007)(81166007)(70206006)(426003)(336012)(316002)(26005)(36756003)(83380400001)(2616005)(1076003)(47076004)(8676002)(6916009)(2906002);DIR:OUT;SFP:1101; X-MS-Office365-Filtering-Correlation-Id-Prvs: 442ac2dc-179d-4c6e-9aa9-08d818437024 X-Forefront-PRVS: 0444EB1997 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: eCU6aDCU/Qwx49OmGFKldH+l65nOw3bjK3v0HFzSHyc8lXQjvMVDjc1H3cftlkdDDmqMe2ePmf6qiNBX7FdlqpxTjDPiYuHHdpvGyyBxN8glal9V4GiaM5q/kzCQ46/NlA5ZQHtAwoBeM7Ev/2JxX4hVD3xPhITWlTc8gUK4GJETsK5Ar6YgS8ftO0Isx+z7QHWPjVrVjd+w9zs1FeVjrnXjh88KBGpEH5zzdvEOWnjn4ywvqGFLZJNp4dMG31wlym64D5SGQhFHSQJ6lkqG0u/rd0pb4uZS2Za7MwQwruepPrJ61nT3H61Offp6r2GiHd+XQcp4Ui3gaR9L4xJztnOdTbQoeC0DFomhrUcFdq37vMnia9kVfqmWorklzbiJIait4V8J3IzgKAruY6KmFg== X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jun 2020 13:35:26.2899 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e2f6f1ef-cc9d-45d0-c4db-08d81843741e 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-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB5443 Content-Type: text/plain Initialise serial port early so that the platform memory map can be logged. Signed-off-by: Sami Mujawar --- ArmVirtPkg/PrePi/PrePi.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ArmVirtPkg/PrePi/PrePi.c b/ArmVirtPkg/PrePi/PrePi.c index 4f0c3f98bad63d0682cccd76a0a062d1fd4f46ab..5e144f4bdefb810708238097a3373f11d150bfe5 100755 --- a/ArmVirtPkg/PrePi/PrePi.c +++ b/ArmVirtPkg/PrePi/PrePi.c @@ -1,6 +1,6 @@ /** @file * -* Copyright (c) 2011-2014, ARM Limited. All rights reserved. +* Copyright (c) 2011-2020, ARM Limited. All rights reserved. * * SPDX-License-Identifier: BSD-2-Clause-Patent * @@ -60,16 +60,16 @@ PrePiMain ( // InvalidateDataCacheRange((VOID *)(UINTN)PcdGet64 (PcdFdBaseAddress), PcdGet32 (PcdFdSize)); - // Initialize MMU and Memory HOBs (Resource Descriptor HOBs) - Status = MemoryPeim (UefiMemoryBase, FixedPcdGet32 (PcdSystemMemoryUefiRegionSize)); - ASSERT_EFI_ERROR (Status); - // Initialize the Serial Port SerialPortInitialize (); CharCount = AsciiSPrint (Buffer,sizeof (Buffer),"UEFI firmware (version %s built at %a on %a)\n\r", (CHAR16*)PcdGetPtr(PcdFirmwareVersionString), __TIME__, __DATE__); SerialPortWrite ((UINT8 *) Buffer, CharCount); + // Initialize MMU and Memory HOBs (Resource Descriptor HOBs) + Status = MemoryPeim (UefiMemoryBase, FixedPcdGet32 (PcdSystemMemoryUefiRegionSize)); + ASSERT_EFI_ERROR (Status); + // Create the Stacks HOB (reserve the memory for all stacks) StacksSize = PcdGet32 (PcdCPUCorePrimaryStackSize); BuildStackHob (StacksBase, StacksSize); -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'