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.web11.25132.1633281865575533361 for ; Sun, 03 Oct 2021 10:24:29 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=lUcnvpna; spf=temperror, err=temporary DNS error (domain: hpe.com, ip: 148.163.147.86, mailfrom: prvs=0910c1de46=daniel.schaefer@hpe.com) Received: from pps.filterd (m0134422.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 193DMTo2027236; Sun, 3 Oct 2021 17:24:25 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=EN3M+j1lJP+dKRG97XT1yRu0i6df2S1k2SAwEnPmdLI=; b=lUcnvpnaZHibuYD9D5BE61q9nV4rf59hA0tbypHVt5yfFEHHpLrsblepKhR4DNhehM/y NbMRmHlhgV/I7/4w4FD1kwO4L6c1cX4fkPdI+12YVTrVuK/ypDlT0qWiIvjfmxxTXBHA mNcnBkM0nb1uEBIeiYdfy4usZPJrvM/Y6Sl+A4uJ8PlLVX4ZUJr4e+sHsrNUQEclyk05 evjEoLorskyaUf59xVShdsuNWeg4DyOcBiVU+/pcrK1ATT0VzImLPs1L0TURbwFCILLi 3aftnFga89UPxlqdRWUJwJIdbL98k3LOTZmIOBINdqP+OzYAugdgylj27NROZ/C8MXpW EA== Received: from g2t2353.austin.hpe.com (g2t2353.austin.hpe.com [15.233.44.26]) by mx0b-002e3701.pphosted.com with ESMTP id 3bf12ektj9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 03 Oct 2021 17:24:24 +0000 Received: from G4W9121.americas.hpqcorp.net (g4w9121.houston.hp.com [16.210.21.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by g2t2353.austin.hpe.com (Postfix) with ESMTPS id C569665; Sun, 3 Oct 2021 17:24:23 +0000 (UTC) Received: from G9W8455.americas.hpqcorp.net (2002:10d8:a15e::10d8:a15e) by G4W9121.americas.hpqcorp.net (2002:10d2:1510::10d2:1510) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Sun, 3 Oct 2021 17:24:23 +0000 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (15.241.52.12) by G9W8455.americas.hpqcorp.net (16.216.161.94) with Microsoft SMTP Server (TLS) id 15.0.1497.23 via Frontend Transport; Sun, 3 Oct 2021 17:24:23 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PTVuAnRpHujHNN1WAEKHT+jz3Sxl8n6oL56tnNGkbyqaUMTZTHIhdxQgOteFLghXsp8IxZ7Fyfd4F06vDJTWEmskJ7NHN8wePVdY7UFypI/wUixHWEBloeUxCPj4KtC/QIlf8k2MiYeUTEDW+IO2X6aDYdsXjhJbVGjMb7ccySeAbcWpnO6yob1WIotbsKR/LoXeU6jO7c0fUjunoeWOt33mCOwZvJlR94lcchYJjVeuAXFb28KHn0KG3qC6DcTqv1Jq53CdUQJP0nxc22MlGiFmxLYDViQqufHPOyt8NvXFa6OBZ/Engdr8d8ObF+2OVpTgpedy1NDfVtKM/L1VOA== 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=EN3M+j1lJP+dKRG97XT1yRu0i6df2S1k2SAwEnPmdLI=; b=J6Qj3427f/lJpU3mpiwjIevLPyHoLv+9nkfbAuN/pB7AvLdYtGBv3mDF1TahBYGLGpkPudXBrz9zavcvpwrt4mpdSv2+UYTKRdeVSXRc7eqI7PqL1U3naKHBE2GyLTlLUNPjrNhai/HB9buRT6mlxab8lXDBH9zKiwTk9nDc8XqIvYaUPFa30RSBFEL19W3oGlkC/EMMfMTm0YIjSzLIViQA/6Xf1kPE+ugK5qKHudK7ir+88/Xakz77+VTRHMwyaz4hVyL5P+93omAT9XtxcarC4wsslC6PSNHF+vSu7mmY9iJ3w/oqhLGxGW+EX5UKUvPgNXeuJsb1uCjd+Na8Og== 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 DF4PR8401MB1276.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:760f::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.14; Sun, 3 Oct 2021 17:24:22 +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; Sun, 3 Oct 2021 17:24:22 +0000 From: "Daniel Schaefer" To: CC: Abner Chang , Sunil V L , Leif Lindholm Subject: [PATCH v1 4/5] U540: BuildCpuHob with 48 to indicate size memory space Date: Mon, 4 Oct 2021 01:23:58 +0800 Message-ID: <20211003172359.1622768-5-daniel.schaefer@hpe.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211003172359.1622768-1-daniel.schaefer@hpe.com> References: <20211003172359.1622768-1-daniel.schaefer@hpe.com> X-ClientProxiedBy: HK2PR02CA0212.apcprd02.prod.outlook.com (2603:1096:201:20::24) To DF4PR8401MB0923.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:760f::13) MIME-Version: 1.0 Received: from localhost.localdomain (123.193.59.220) by HK2PR02CA0212.apcprd02.prod.outlook.com (2603:1096:201:20::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.14 via Frontend Transport; Sun, 3 Oct 2021 17:24:20 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 72422feb-66ae-4b6a-6517-08d98692a3aa X-MS-TrafficTypeDiagnostic: DF4PR8401MB1276: 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: kZ7oHxAeAbhevI7ngBDTJqPE7LdKPjc4bdAZGcbO02rlv5rO1G37yve7LJv8JqXwovJZp/0bO3zkgbAAnG+npOMj9uONOLUlvy5I96VlfgvMdZcvxHCzKlP8NraRTUUkgNNiLFcO5OElQAB6LqGRqWx6IhwOVxTSMxbVuU97J79ZarypwcxM/MF7sPdpn6IWwUO4NfAnWKRTapEaSPEkVBrvyGYL3kFjg99nH+jJpt2fh3b6UwFdk80yX78HVsZVB6lKYUzyZZ5VhRKnZwDlF4iZc3KbvWDabYnAttWN3OYdHoUBz2GaG8jiwnS8M3laxM3od5V+HM5lQNnz6/vp3sZAZzk3uMzWvA9pAMQNN3ICdSk1H+knyGPY99n0Ii/cTq0yZwFsVdins3/Wp1Wxdu3LDNf3MwmL/Z2kO0Wgy/p/0e1btLDg5sbfhRV/yDBWEF8p6LBITdg2l3ubyz5ph/UABMLvvb2/0OXUTMwOMnxOCY9h9GsIbb3GtlkuG6Hs9yEooJqSX0F/ODQg9apeCRP/dXcE4rlz36mEK2PohSQmDkdC917cPdqi39ubg40j3zk9828FU+7yIAZYMk6ERByrEBuJKfuJiOXa/AIaTanj6RFuGQ5WRnplkWb+xXVYMTnx6csz12youJqMgmGS+hjejWDgLAbDb39FC1AJvJOATvRhhVEFfJSbwHeIAv27Yq/mWTwtF/MpwBmJESCxrw== 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)(36756003)(83380400001)(1076003)(6512007)(44832011)(66946007)(66556008)(508600001)(66476007)(54906003)(6486002)(2906002)(316002)(38350700002)(8676002)(2616005)(52116002)(6506007)(956004)(26005)(186003)(19627235002)(6916009)(4326008)(38100700002)(6666004)(8936002)(86362001)(5660300002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?42mhP2GtvxhsONShqma9iRyZisFc5aqhGNVR84wdV62/q1g5m18fML0I/Fu8?= =?us-ascii?Q?Q5YxAxL5o5zEZ0GTDCqJtyYY1j4wIg5BLsXLyfMQHvEIJEYIGqeEO0Bmmw9b?= =?us-ascii?Q?1/5Knx/THxkIYYA2u31Sadncq9/Q+gQY2u3SKGxKsmVOD6CjhUIsq1B0CiIr?= =?us-ascii?Q?1UmirYA0hc0SKhDGiMM7prKCoh5ARTd/DzCH/zSKklvdE5aNd5KWMDVxRC4/?= =?us-ascii?Q?G28+PsJpDXCyKitHh7i8SkLAkLhR0hgOuU9FFzhQjH9CQv/vfcNaEMF/4OcK?= =?us-ascii?Q?NzqCWczcE1FI5iRO6F0YtjR8+ziMV45Nq8amXlXFr00++9RZa3b6nQwRZr4m?= =?us-ascii?Q?M2dlB2qYeYGeEdU/omClXSC0beeIiNhdd2lkU27xg9oXAzOppqsABh5n1/oa?= =?us-ascii?Q?1KjHwf3KX80l+Ww154idrDOeqTyrNOKF1s3mfubKzFZNKyHETPv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V9SxgaeVBRX53H?= X-MS-Exchange-CrossTenant-Network-Message-Id: 72422feb-66ae-4b6a-6517-08d98692a3aa X-MS-Exchange-CrossTenant-AuthSource: DF4PR8401MB0923.NAMPRD84.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2021 17:24:22.0095 (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: 8HEFkn/lfM5uxQx47cJ3pPa++2WGtqjUUfgYJhnEUhg1zFtmTiABnQ1+ohCoU1cDpwVXVB3bCpLO9X6s0Q0TEA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DF4PR8401MB1276 X-OriginatorOrg: hpe.com X-Proofpoint-GUID: 7tFXY_GQ9YtE2gPVmcdO2m9uUcOO2wc5 X-Proofpoint-ORIG-GUID: 7tFXY_GQ9YtE2gPVmcdO2m9uUcOO2wc5 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-03_08,2021-10-01_02,2020-04-07_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 clxscore=1015 mlxlogscore=999 spamscore=0 impostorscore=0 phishscore=0 bulkscore=0 priorityscore=1501 suspectscore=0 mlxscore=0 adultscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2109230001 definitions=main-2110030125 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 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