From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by mx.groups.io with SMTP id smtpd.web10.7934.1633346936520240756 for ; Mon, 04 Oct 2021 04:29:00 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=iDHfrdbZ; spf=temperror, err=temporary DNS error (domain: hpe.com, ip: 148.163.147.86, mailfrom: prvs=091174733e=daniel.schaefer@hpe.com) Received: from pps.filterd (m0150242.ppops.net [127.0.0.1]) by mx0a-002e3701.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 194AW27U004315; Mon, 4 Oct 2021 11:28:56 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=pps0720; bh=8rUGx047hvVa2b+MAOHyQJdn5tWP+3hqMc0Yqtf8a9M=; b=iDHfrdbZImJR+oF4GA0wQTziDgkaFQs8c+J24vHOvObO/0dashg1QImcQTLAufWJq2ZK lmvLCeNcOaiCpdiQG5TXkSZGL/Kyo0JFnzBXvJd7xRXpnkqQQpaELArUeggjIm9R9+OC P2/zGcsjF+/tDKmICF2iglPh0z6ig3O9vI/CSXQ8zDHxjBjfgQcqanEjFJWl/zm24/PJ ymBQaDs12Vx+7xYfhcb/m5n7HNDw8V39hWCswbm9c3zPpQuHlXAos9HBHRY5Zi84YRgc s5rYOyBSuDcF5HYh/ySaWaNw1tXk2KhHciGIRd9P0R6an1zLvYmxXh2kkXJB+RC+DlD3 Sw== Received: from g2t2352.austin.hpe.com (g2t2352.austin.hpe.com [15.233.44.25]) by mx0a-002e3701.pphosted.com with ESMTP id 3bfk9x4f01-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 04 Oct 2021 11:28:56 +0000 Received: from G1W8107.americas.hpqcorp.net (g1w8107.austin.hp.com [16.193.72.59]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by g2t2352.austin.hpe.com (Postfix) with ESMTPS id 782BB63; Mon, 4 Oct 2021 11:28:55 +0000 (UTC) Received: from G1W8107.americas.hpqcorp.net (2002:10c1:483b::10c1:483b) by G1W8107.americas.hpqcorp.net (2002:10c1:483b::10c1:483b) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Mon, 4 Oct 2021 11:28:55 +0000 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (15.241.52.13) by G1W8107.americas.hpqcorp.net (16.193.72.59) with Microsoft SMTP Server (TLS) id 15.0.1497.23 via Frontend Transport; Mon, 4 Oct 2021 11:28:55 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=W1q2roppZWdmm1gHLQn01ONl5aYxjOg5w9Z8wTtriBlLH/gM7fhJb6pgcIHkPAZ1MDvyi/ktiAo3wVBw7GCTXwniU02CSCqA+y4q9st50WWdNA6VgGReOpk/8yLiDxumiDwovGd4X7R+Ur9fDqqzUstFCzjEjIsnN1syKXcN8Qa/XG9wkxAlGZ+VCJ0u3gbSQ9kgo/3yBhRHpgPY/4DHBmR71L3+MEs+lIa3iSqln4s3LV/WLwHXBoUmjtG8SiwNNfuNwaundDXSC3MXag7mEntftuteHtW1Zvb+NanzKuwp9ia20eXLW3xrM8tubtG19f+H1sSkuz903Kqc0USEZg== 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=8rUGx047hvVa2b+MAOHyQJdn5tWP+3hqMc0Yqtf8a9M=; b=C7C6EryJWHqqvTDU3vRUieQSJhVA9EN1DfLQc+i4P9DI1off7HacrCnutWqpUh9tvPEBy08UTeWkcB0a6iL8SYgANnlVnzpgzRn3jYC2TsVGFPuG71KVXF/FW23DD805SyN6lQNpLuIfMT2wdainfYD+igREPBb95wGlHQnCcAvMOqM1uq8T4TObVM4nBE9uONPlDfNgAAf0nO1nJf0oi+b6+l1N2K9p48Nd1dUK9O/ipDIUhBKIc9uAIRU92uBiFCm9l9LjjdaVIjFuZhbmt/dYt6ZSUhgWYu9NEj2iAf8nfrksE35cXOgO1Zku6TUAYUtsAEojG9aHryJ/zSh2bw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=hpe.com; dmarc=pass action=none header.from=hpe.com; dkim=pass header.d=hpe.com; arc=none Authentication-Results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=hpe.com; Received: from DF4PR8401MB0923.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:760f::13) by DF4PR8401MB0425.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:7605::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.19; Mon, 4 Oct 2021 11:28:54 +0000 Received: from DF4PR8401MB0923.NAMPRD84.PROD.OUTLOOK.COM ([fe80::597f:4786:f1d6:8469]) by DF4PR8401MB0923.NAMPRD84.PROD.OUTLOOK.COM ([fe80::597f:4786:f1d6:8469%3]) with mapi id 15.20.4566.022; Mon, 4 Oct 2021 11:28:54 +0000 From: "Daniel Schaefer" To: CC: Abner Chang , Sunil V L , Leif Lindholm Subject: [edk2-platforms][PATCH v2 4/5] U540: BuildCpuHob with 48 to indicate size memory space Date: Mon, 4 Oct 2021 19:28:28 +0800 Message-ID: <20211004112829.3385183-5-daniel.schaefer@hpe.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211004112829.3385183-1-daniel.schaefer@hpe.com> References: <20211004112829.3385183-1-daniel.schaefer@hpe.com> X-ClientProxiedBy: SA9PR13CA0004.namprd13.prod.outlook.com (2603:10b6:806:21::9) To DF4PR8401MB0923.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:760f::13) MIME-Version: 1.0 Received: from localhost.localdomain (123.193.59.220) by SA9PR13CA0004.namprd13.prod.outlook.com (2603:10b6:806:21::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.15 via Frontend Transport; Mon, 4 Oct 2021 11:28:52 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3affda9c-fc7b-4ac0-b703-08d9872a2564 X-MS-TrafficTypeDiagnostic: DF4PR8401MB0425: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2733; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YosGPlQAOP2EVGnhGs7NDGNFyQSbPV1Ycdcrhsr8mhrO3G1MmpOEX7xwMjQUExfiuZrMWVCiHAbecGsQkWGrmrU1onLwLorDQGFbyKidIKVclu7HTH+RLe8QJ0DMWmSgbfiM7C/DyBMTdsVWgPJoqPEecbNAUL2p2Bhes2b9JmCj4uJ2AUwIaD5eR7y9pEzyI2mKGKYAzWncpqFMXGHdXodYyJQYL3aR6PXRosFHjPXUU8fpOBktsrRQbRThLnuBjcSTnAEIypvQK+dM5dgNwkbK92/8cRw+bhsc4u851kpm29tq4OczrVBHwWf2jIocnA8YNX2Z7NIX8iOwTMJLbSlPuQwwaZWlpegJcb7ksh9AqT2vbX2j302R5gBVUbXUzR1gTUrJvqkyvBp7RYbWeXff91sMeKkXtEpy4E3Lf5QdALinjg6XvFinvAQm9B6xZlwMOO4RNSSMrfGIYWoT9pQQ2Jf3/bbEUV3WnNNji76EHMVfAEnczr9LEqlFypnMWMTum8lHrzy2bwygt/Qj/fWw6BlYANTrfY61pkADftkWaoUPz15jzt24XYF/yIBtMnDnF7rMgnZmVpBkBBqRqULfp5lVZepd2uG+8z298BKTNG/vz3oyCQ5Q2yw27C0Kp1GJNaC0i1tDdBTdORZY7vH3ez9M+74/QEmauddI2l1BCv8k1wT1MxxB98CocWKL8WAJqBkCS/yAPo8s/Al9zA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DF4PR8401MB0923.NAMPRD84.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(366004)(44832011)(83380400001)(5660300002)(8936002)(6486002)(38350700002)(26005)(2616005)(38100700002)(6666004)(6506007)(4326008)(186003)(316002)(52116002)(2906002)(66476007)(66556008)(36756003)(956004)(1076003)(6916009)(86362001)(508600001)(66946007)(6512007)(54906003)(19627235002)(8676002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?t3FCQ1nXpEhcWyM3SZFcCkW8/3yvUh39s8cYRjMoE10uUeHaVU27wwbAfi4s?= =?us-ascii?Q?RBFsvsNwCN4PJI1gz++D2tJaEUeybSKURfzjKmNQEe4TmirD1rIVAQFo3Xcq?= =?us-ascii?Q?A/pIxhdoH+HMuL655Go2rggAUfkXb58F2AI9znYqY4GN54M5iSWBarA1NCl/?= =?us-ascii?Q?CaPY1PiFaozC0pCwGRqIZ+b6AM3pnJttbPgcjG1c1QN1kGqXqWDdtvQC+hCR?= =?us-ascii?Q?/eI/1mujteDKAvXDnf7AjsShJdHfDWlEnO1kMMnSssakCIQetSCpcn5mqt1m?= =?us-ascii?Q?LXdjymsIOK1so8SjtHuSJSn9zv4kCONwhu5FNtwzMPS/qh70FvpjqyrMR+YZ?= =?us-ascii?Q?Obb2WG6JThm5WzXS2bjETiInW+VFWQaSpCSUSjuVEIYXDuCb0emUt/RRNkpD?= =?us-ascii?Q?cUWrZTQ9ShryyZRufVSXluGgm5ceeJk/hbrD41boq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uD4/QBms?= X-MS-Exchange-CrossTenant-Network-Message-Id: 3affda9c-fc7b-4ac0-b703-08d9872a2564 X-MS-Exchange-CrossTenant-AuthSource: DF4PR8401MB0923.NAMPRD84.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2021 11:28:53.9427 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 0FdSNpwVJjy/roHyPNKRMOb8GqZ86H6toiEjHuTTOTgAkoGTmbeEr+6ZDJd54Ksj9sLZsSdAf41w2qVehi33RQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DF4PR8401MB0425 X-OriginatorOrg: hpe.com X-Proofpoint-GUID: n5G2StO7wUlStx2ezCGXzWyzS9Wnv2Ka X-Proofpoint-ORIG-GUID: n5G2StO7wUlStx2ezCGXzWyzS9Wnv2Ka X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.391,FMLib:17.0.607.475 definitions=2021-10-04_04,2021-10-04_01,2020-04-07_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 suspectscore=0 mlxlogscore=999 phishscore=0 bulkscore=0 lowpriorityscore=0 spamscore=0 impostorscore=0 clxscore=1015 adultscore=0 mlxscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2109230001 definitions=main-2110040079 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain Otherwise it will crash on QEMU 6.0 with: > Loading driver at 0x000BF814000 EntryPoint=3D0x000BF81428A PciHostBridgeD= xe.efi > InstallProtocolInterface: BC62157E-3E33-4FEC-9920-2D3B36D750DF BF351F98 > ProtectUefiImageCommon - 0xBF365BC0 > - 0x00000000BF814000 - 0x00000000000124C0 > PROGRESS CODE: V03040002 I0 > ProcessPciHost: Config[0x30000000+0x10000000) Bus[0x0..0xFF] Io[0x0+0x100= 00)@0x3000000 Mem32[0x40000000+0x40000000)@0x0 Mem64[0x400000000+0x40000000= 0)@0x0 > CpuSetMemoryAttributes: Set memory attributes not supported yet > CpuSetMemoryAttributes: Set memory attributes not supported yet > RootBridge: PciRoot(0x0) > Support/Attr: 70001 / 70001 > DmaAbove4G: Yes > NoExtConfSpace: No > AllocAttr: 3 (CombineMemPMem Mem64Decode) > Bus: 0 - FF Translation=3D0 > Io: 0 - FFFF Translation=3D0 > Mem: 40000000 - 7FFFFFFF Translation=3D0 > MemAbove4G: 400000000 - 7FFFFFFFF Translation=3D0 > PMem: FFFFFFFFFFFFFFFF - 0 Translation=3D0 > PMemAbove4G: FFFFFFFFFFFFFFFF - 0 Translation=3D0 > CpuSetMemoryAttributes: Set memory attributes not supported yet > > ASSERT_EFI_ERROR (Status =3D Not Found) > ASSERT [PciHostBridgeDxe] /edk2/MdeModulePkg/Bus/Pci/PciHostBridgeDxe/Pci= HostBridge.c(332): !EFI_ERROR (CheckStatus) > QEMU: Terminated Change works on QEMU 5.2 and 6.0. Cc: Abner Chang Cc: Sunil V L Cc: Leif Lindholm Reviewed-By: Sunil V L Signed-off-by: Daniel Schaefer --- Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/Universal/Pei/= PlatformPei/Platform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/Un= iversal/Pei/PlatformPei/Platform.c b/Platform/SiFive/U5SeriesPkg/FreedomU54= 0HiFiveUnleashedBoard/Universal/Pei/PlatformPei/Platform.c index 6641e10f2e..9a2cb9413c 100644 --- a/Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/Universal= /Pei/PlatformPei/Platform.c +++ b/Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/Universal= /Pei/PlatformPei/Platform.c @@ -1,7 +1,7 @@ /**@file=0D Platform PEI driver=0D =0D - Copyright (c) 2019, Hewlett Packard Enterprise Development LP. All right= s reserved.
=0D + Copyright (c) 2019-2021, Hewlett Packard Enterprise Development LP. All = rights reserved.
=0D Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.
=0D Copyright (c) 2011, Andrei Warkentin =0D =0D @@ -199,7 +199,7 @@ MiscInitialization ( // of IO space. (Side note: unlike other HOBs, the CPU HOB is needed dur= ing=0D // S3 resume as well, so we build it unconditionally.)=0D //=0D - BuildCpuHob (32, 32);=0D + BuildCpuHob (48, 32);=0D }=0D =0D /**=0D --=20 2.33.0