From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) by mx.groups.io with SMTP id smtpd.web08.24849.1633281858150437291 for ; Sun, 03 Oct 2021 10:24:26 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=WX3BXdnK; spf=temperror, err=temporary DNS error (domain: hpe.com, ip: 148.163.143.35, mailfrom: prvs=0910c1de46=daniel.schaefer@hpe.com) Received: from pps.filterd (m0134424.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 193ET2bR011909; Sun, 3 Oct 2021 17:24:17 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id : content-type : content-transfer-encoding : mime-version; s=pps0720; bh=zMok7Bl8BHVEuOEDyfDBqSF/Bn1/fKdBJjP0G4KCLWg=; b=WX3BXdnKZmB0Gy2d7LRHRHVPgaM4IwrcQd/7QQadc9lXLNQdQxU0NKtzVt404PDI/vLO Vkyv5rHj9Fpu4pfCrAdwY9wMTutpt1ow9jOrLWPBp61Zm2Su4ETjxX3N4zcMocEq1AWa DKZf6Z1Haz4VCX5d2etryHlzy0Mp7IXHMaa9FCEyFyAMpfKVGBsoLxMYBbkbqszHjotZ 49PuWEKJvbfAdYCOPQkyQhvmXDxOCsra7hm9rttLiuoQEmr2xkU80TPjY4/vd7oYb2bb 5rKlj6yFroDPsdjYf7LkFSXW2ksYUsOM9UXpATzmGZbf5gkjFnuQfggNmURQerZZ7bl7 5g== Received: from g9t5008.houston.hpe.com (g9t5008.houston.hpe.com [15.241.48.72]) by mx0b-002e3701.pphosted.com with ESMTP id 3bfeak0mds-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 03 Oct 2021 17:24:16 +0000 Received: from G9W8455.americas.hpqcorp.net (exchangepmrr1.us.hpecorp.net [16.216.161.94]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by g9t5008.houston.hpe.com (Postfix) with ESMTPS id 0548F57; Sun, 3 Oct 2021 17:24:16 +0000 (UTC) Received: from G4W9119.americas.hpqcorp.net (2002:10d2:14d6::10d2:14d6) by G9W8455.americas.hpqcorp.net (2002:10d8:a15e::10d8:a15e) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Sun, 3 Oct 2021 17:24:15 +0000 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (15.241.52.12) by G4W9119.americas.hpqcorp.net (16.210.20.214) with Microsoft SMTP Server (TLS) id 15.0.1497.23 via Frontend Transport; Sun, 3 Oct 2021 17:24:15 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JWC/ziA8g4PMXV/pCyvYjeBdmmpbRMsTCI0ZZ3Mb+pFDnyVg0UmwPVgd+Nh6Qeit9M0nks73idW6P1CttnLoxmLCvOTy3PTRsJwMr+JmMnphcH13jz/XTqCf11SzesFu+hzAFh0ZyF9YpObzii7jdJaWUOUGK0CKKopvmbVLdSMCtlQR4kUS1Y6iAdBupeRH3RHTtxwNtlOkaBRo6GG4oT23OI6JRYDsViXQBhersDISkhteTkZcvECM71dVJBNlSsRtrTjE6omJsHpS9ydR3bfgtmIvCwxWmAhqW6I1FKgjNgclfUOdQUk/cWiFcolnjzMfTVIB4Vu2Hj+NcFfcPQ== 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=zMok7Bl8BHVEuOEDyfDBqSF/Bn1/fKdBJjP0G4KCLWg=; b=mITW2Cl8mfMt4Ht30htPhkOQ/UBoE02z9z4sk+2rfL0W3lX0MtZ3YOndCyu2owKs6DaRVrrfn0VHulMKAsTkNCZSGuT5fBa6Nb+jmF3gHZsVKUHEl2AZ69rxIRrzLHH+kFimaV6liubMtmmNAmaLntr8dho8ARrf8KM+iaPkBYipttoA+7P0lkolCIwNybuTQJo2kmsx0DZ0c2yfMPbw85dL77B0U2ujbsDHyVtoiR4WgglHLk6PxJR8+bjDxQDhW83DR9aQSVvl9Fu+i57kp5nYZHDSC2KarGI8vvm22U5M8oZWk4/NTiMYKBqOTv+XcZFXNlWQR1qfBZ0RNFLddQ== 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:14 +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:13 +0000 From: "Daniel Schaefer" To: CC: Abner Chang , Sunil V L , Leif Lindholm Subject: [PATCH v1 0/5] Improvements for booting to Linux on RISC-V Date: Mon, 4 Oct 2021 01:23:54 +0800 Message-ID: <20211003172359.1622768-1-daniel.schaefer@hpe.com> X-Mailer: git-send-email 2.33.0 X-ClientProxiedBy: HK2PR02CA0212.apcprd02.prod.outlook.com (2603:1096:201:20::24) To DF4PR8401MB0923.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:760f::13) 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:12 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c6ac74eb-584b-496a-7db5-08d986929ec8 X-MS-TrafficTypeDiagnostic: DF4PR8401MB1276: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3826; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UfpeQQQjzBCgib4gIc4682ePvH/LIw4mOMXsS2jCxJfZvnLl+ID5ZT4IdmAbTr2PD86OGJ+xEFNKXbk1cJCjf2L3+LuQS4W/WaY+o6Ubu8ATUnMzPAA6qh4tNco1fzO99V+WhlUMgkFUHVQ6VK2Jps3luBd+5BIsWjmXCCK9bTRcC7hvKKBajKhb1HHEVSoFINybkdrnRBRFuMLSU5y2R2zMWImZ4fWQC+Vcg5LKAcgfu9d9Yedf/Dokn3Gg4QlQqeGZMphK9tJe30hKywF1f1dAA+75JFr2Py9XrhUQY0ZJECRxLoN1xQyhMfn9lZIKWsJptwHo3r/LngiMnquhu33889fdBDt9wMctvOC1jCddisj7QEyyIVKRWgxbHaKMucJcFDz/gz8a8d6Lk9e7a0pu/+DT8QeowVGJCl4OTIjVba5/zRO/lEz8QvDHfTn1JfPb9HA1k1HI1U49tG9WrW9lYlsQalEf8xtbxKr9RJmVfts95pkh2LuRIQeWI9BYDQkohaTWLJppYaDBMW2xK4QM0sDb0B+5fxs3k4Vw/UdNv73SCAPAEiNUEdjDc6CzA8MGG7hev2dHgiCHucNUPV1Ex2jyrH13qdEn7fUmqrSDTCD71t1qiMpug34LM6xccYBFvaQXrqeTPpgqAIJocQKlgchlD+jGicJ2shsQuuPZKm4p19PsZpPhdOix21ExgF1ks66uOZk51DrgYqZkkfjKhHLE/0BbBzZjbjYr3QAn3qoZ43GIvirTSADgpepCwgHPdrluHMBug+9ZfQnCzRdb8J7pU15sc6H61D3NlH8= 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)(966005)(316002)(38350700002)(8676002)(2616005)(52116002)(6506007)(956004)(26005)(186003)(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?lQ0AQKxk536l1T5vKzJbPhvNO4jfOdI3frX5DbkFNm+TQY1ltkhYqA66sVvV?= =?us-ascii?Q?0iz50Q2+k3iQgXkmujMDIIxPhdQQ3XD7blbsqEorZoS4/E3yE+r1NvunH8Wd?= =?us-ascii?Q?tTMyE2xu8JkX40qN+2l7HYV1blihrhRwZUqSPillVFWSKzUeEN4uWegXxaJ6?= =?us-ascii?Q?9skEcHLBeursM1M8yLYzAlQKEJu9Upwra1xT8EGtt9dCPY6JqMjXK/d1PpsM?= =?us-ascii?Q?UxcO2Rcozj4MW3x7ArO0bm0SzNfOHK8qBvlLLppKFy/cKgroTszrbxjvs3jB?= =?us-ascii?Q?XZyrSXSjmiCpdA5aELTv67s3/SIrqt8jV43stOxkhBYkalvqNDEUBzlYJd/y?= =?us-ascii?Q?4vLQEXYWuhYnI7nDWkMm+5qC0mRmq3Rqhn34skgqedPyFEW5U/aColdqrrNI?= =?us-ascii?Q?y06QxcrVt6gxcxR5juuiKkWKfyaz28dOd/Ltp/jej2s43PGEwzqR2vfL6CZx?= =?us-ascii?Q?E07MINhkc6FQa0p85LpLlILaaIfC+xCeH7cEmoREWVnXO6d8TdoPliBFH3+5?= =?us-ascii?Q?Qm9y53T5AbbGBxox6q6ax3raadLu4NVUrsld68h7aZOf7y3uEuR0GIkkDOe6?= =?us-ascii?Q?q4/B0oy+oIO2w2dZC3cfdMOeMe1J100dsAVOtMquMDsSZXR1MjilgFEUQyAO?= =?us-ascii?Q?kT5sJ++zhd2weE3Pd6SueUQfnh1+vKVsN9rpbpW5wfMh8FXENDUneJaO/zZP?= =?us-ascii?Q?sBzakXG/ohWHKdemkMv3a4x/w0nnaSGIbHIRExxDisriaW71788jDU1uNAOf?= =?us-ascii?Q?i1Vl7F2qiZ+v5RUWWDwzwwfCk+ibwkP1rELPmj9DaSWNcOMNCsu6zi++TI7R?= =?us-ascii?Q?4LI2bqY7B1LZlqS2LCwfAyv4aGPGxVBLFVogpSIZlmq8zFBQM5CxD/2Kgqdr?= =?us-ascii?Q?2fE72w7WvanXGnXqeGNco+4d0Itu/0LMT23nUSFFYeJNIMhnoNfN7u7Ij8Xw?= =?us-ascii?Q?y/oGoMHZQ/5FAZ74P135ZWM+RMJ99V+2NXM8oQYBG5GtY9jL1AuYxXJXjK9K?= =?us-ascii?Q?vPkePfT9YGZwWCUV0andhQjVnLYsWgHAheYKrn3go7bFpCkQtCX86u0FwEUB?= =?us-ascii?Q?lA4ajcs9sHByyprOkHZtcifOjqqu366p03DiNwUNUrvJS15iwoEu4cRfz/94?= =?us-ascii?Q?GO664l0qczo9H2HsTTL105Qt76zNTToOlPY/0qYd8ejbrBDE7g6wHCtauTkO?= =?us-ascii?Q?keoDqFOpGLaal7TX96rRqEXOAiGYPyPn0fovrvUvMKtlOb4qHacDgt/3vAlm?= =?us-ascii?Q?+/zoZU9EEV1F362JbmAgk2jZjilV+tpb574Bo/atqAfjCwAdlKmMUpnnPph0?= =?us-ascii?Q?0hqcIq1dJEP+uPW4AOA6JF7F?= X-MS-Exchange-CrossTenant-Network-Message-Id: c6ac74eb-584b-496a-7db5-08d986929ec8 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:13.8731 (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: fz1H0l1k5fKkDpZan8ap0YWC1lSztEq7EOgU1TueIvLiv4Jz+Vc9Q31e3gSEw1uHdmoPVul3MRAeR5egO8cqsA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DF4PR8401MB1276 X-OriginatorOrg: hpe.com X-Proofpoint-ORIG-GUID: K5GXzo5IRuROfOvWt40wV33cNkDgQhxA X-Proofpoint-GUID: K5GXzo5IRuROfOvWt40wV33cNkDgQhxA X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 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 mlxlogscore=999 priorityscore=1501 mlxscore=0 spamscore=0 clxscore=1015 malwarescore=0 phishscore=0 impostorscore=0 adultscore=0 suspectscore=0 bulkscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2109230001 definitions=main-2110030125 Content-Type: text/plain Content-Transfer-Encoding: 8bit Some miscellaneous patches, that each compile and still boot to UEFI Shell, to allow for booting to Linux on HW and also prepare for Linux on RiscvVirtPkg (RISC-V OVMF equivalent). Available as a branch here: https://github.com/JohnAZoidberg/edk2-platforms/pull/2 Cc: Abner Chang Cc: Sunil V L Cc: Leif Lindholm Daniel Schaefer (5): U540, U500: Add filesystem drivers RISC-V/CpuDxe: Ignore set memory attributes failure U540, U500: Add initrd command to boot Linux U540: BuildCpuHob with 48 to indicate size memory space Signal EndOfDxe in boot manager Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/PlatformBootManager.c | 7 ++++++- Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf | 3 ++- Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.dsc | 14 +++++++++++++- Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.fdf | 5 ++++- Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.dsc | 14 +++++++++++++- Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.fdf | 5 ++++- Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/Universal/Pei/PlatformPei/Platform.c | 4 ++-- Silicon/RISC-V/ProcessorPkg/Universal/CpuDxe/CpuDxe.c | 4 ++-- 8 files changed, 46 insertions(+), 10 deletions(-) -- 2.33.0