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.7966.1633346930345003325 for ; Mon, 04 Oct 2021 04:28:54 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=RcqBqcDS; 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 194B26vZ006687; Mon, 4 Oct 2021 11:28:49 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id : content-transfer-encoding : content-type : mime-version; s=pps0720; bh=oKNSCHDzYC5/hV7l8Nqmg6+SBoV3HmxvCr4JSLog4+c=; b=RcqBqcDSthYbwZjMkLsC5KxzZM6k5Xqt2c/KDLCrD9dZp84WQBYuYQtAot9ZSHRpFcGy 5VBbRH8+zdq+R6CX09VkcDm/Q3zmwNspz+ceSHBVk6Ld9sNfhuoC3T5T3kVgxWYsLUk7 H8VltLfC4o4YvOLHY67Fhq2swC3ek5eTOAsOAml6VYmrtpJb6UiC7fvpBIP4g7VtVTSD yeIEVlTXYHXjURjPgpq5U6OLBKaby22MSzP0bQ2dgLxEkqV1HHDwvoOyahjg0myJV4NG 4trQYdm7BIrz7wbV2T3cnSbf8HtOlqTceTeK2IyOHdRTqrfug4D9DB1yp+Z/Zm0ZBa4t Fg== Received: from g2t2353.austin.hpe.com (g2t2353.austin.hpe.com [15.233.44.26]) by mx0a-002e3701.pphosted.com with ESMTP id 3bfk9x4ey9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 04 Oct 2021 11:28:49 +0000 Received: from G1W8106.americas.hpqcorp.net (g1w8106.austin.hp.com [16.193.72.61]) (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 1C7E284; Mon, 4 Oct 2021 11:28:48 +0000 (UTC) Received: from G4W10205.americas.hpqcorp.net (16.207.82.15) by G1W8106.americas.hpqcorp.net (16.193.72.61) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Mon, 4 Oct 2021 11:28:47 +0000 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (15.241.52.10) by G4W10205.americas.hpqcorp.net (16.207.82.15) with Microsoft SMTP Server (TLS) id 15.0.1497.23 via Frontend Transport; Mon, 4 Oct 2021 11:28:47 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UYNWTf0YEE3LDqZkyTJAUy7yEBEGFNgltCzx5kKsQAausfxV+zXRzCZYk9mrexiiNK8sk1SEODNtV+BdNScy0+WO0ao9mvOnEF6wRtVct0G5A23rmV6mth2X8b1xzI6emkD8QU+6+d1eZdqJ6xHyw9eCXLlxIfrzhg9k2ZLakn/0tEEy/xiYgwVWukJeCgTkUMSopyzdTICbAymyELefq7EWba1/rhk5jeJ/6Bf/HsEXj/zqtqV5TYKVWCRYl8dqWyH4RaVZUcXjKLkdUk7bXPPRZbscUmu643YSeztPGOT5HeoBEGJvDkHQyWuUDh6wKGaftwPQ4PIgEiWlovvE4w== 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=oKNSCHDzYC5/hV7l8Nqmg6+SBoV3HmxvCr4JSLog4+c=; b=JsPtq0j9O483/58PDLh3KlzC/M898aCYJlFpSw0jjLtdrN20iSA6h7mXkU6soFA0wJWabhH8U0YqGLY5NhGKhE0Ax9d1aTiRriL3bHd90Oqd4vxorolQoKkzCSEqShsWvqTEr4yvsNE01zu5IqD7QJkgIzIMHGRT2aq1BbkXv0vq3mEDXN8FDus+hDKsRQR71AO/kx6C6lN50dxRXoqStj5kuCbHYDt4W/GZ5GMwoC93rAuFQNb//1r0O48lrRgrIrYTEVu1zoGVwVXyslG1vopoUea2jN7aTAnBwDVvPNW151GFi/9MUGBxEnOylZLaX2EWtLV+udoSo0w0EIGvtg== 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:46 +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:46 +0000 From: "Daniel Schaefer" To: CC: Abner Chang , Sunil V L , Leif Lindholm Subject: [edk2-platforms][PATCH v2 0/5] Improvements for booting to Linux on RISC-V Date: Mon, 4 Oct 2021 19:28:24 +0800 Message-ID: <20211004112829.3385183-1-daniel.schaefer@hpe.com> X-Mailer: git-send-email 2.33.0 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:45 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fc4d37c4-69d7-43a6-9132-08d9872a2123 X-MS-TrafficTypeDiagnostic: DF4PR8401MB0425: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6430; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lPDMGBQGq2NEZqz86OzJiYOxD2wXUhNIedO1T4pYH/Zj8NPCzVmdJV+zFbKyEZOKFU7e0PkXHkFGe8c2XAZ3x1da1BxXhvHOEjNsrD9PLcYkwXzuMVr7gVFCeRIUVj++5uOyQNcU+/QjIFoWzNMgjAwckkWNRiJmhPMgm7NFPg9tIXeUl4f9feCwiSCm4MMagFgRJpoUOqd+zHqjvY+WVnhSyNGgvhn3Hcd7/mjXRrpPxRIZm7dBniP7MRzNi8qJKmjT8zWMFXNWYhVfT3jLx+UpifUG8MwXVFjv9f9avAo8ueB1RdWwhstJE2I38PUX/Bb2BcZCqixvMGMKLEncDwi6L7kxJHYjaCcB/G5LdUKxbEHrPKS3FtN7IIFlEiMxG6T5CNv0ffVhKkJ0X261iiJntnbk+JoCWco/0Yb8gMmTU+x1UKIGnX5dsHZga0HKOrMdHUP9HqviyF3iaEPVt6RSjaT2uCZVleLeM1PtAS5Yam2VXhrNq0goreccJMgugrKinXGfN9C8T0wGXjDQ1Wu5T1js/awDzA13HJpK9QB6KEFU+23dB5ApkhvTOMrzn70xg4dgGQrqMAP1hShfYwjHBN1X72dgZPCT/FV0Z2f0cnA/ik10I0SLTfO3ZwjYQ0Q7Hs4cv7K7yL68h3vEdgZHnAj1+TIeJkIV+mvrU6xsqTZIASRm819O/QJbjGcd7vZIOxFzWkVMIVdxMfoa3Q== 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)(8676002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?esjUrvnjvPyl/HCXjkeZ66gy+5d9D5BJJZMm2dkcTroLQuGdoa6ZxQuavlay?= =?us-ascii?Q?s1Yrxgl6Cjk7eHXf8NaJHA5keGCtBZmLwflkuiMaP8EOWpi8eY1TB6svgvI3?= =?us-ascii?Q?40LUznQdz/XotL458Zwr9lnoQgV8ptcLYeN/p5N+j4yuJ3FUezpjyOY/adXv?= =?us-ascii?Q?h5TuYeM+a7/TDEGJBXzMFmzJVeBcycXHOFGlYDQWj16D5wRCqutUjZqhrowj?= =?us-ascii?Q?g21Ly5kgvKQmN3DBeWsGlNtKiywtc/F+2JPtUwWpMe4snwr15xPR4V3LHdWH?= =?us-ascii?Q?recjr8KJ7CpLFf85O8CibhDvmjc/uJcuGyJzicfR9C5MguP4REO5MsKWoTel?= =?us-ascii?Q?LCHUwlVHlEltQ67NWNES6mQoc2Q97/OKM6kkv1QJ3Lnp6Rw5ZYahd5zZlhg3?= =?us-ascii?Q?uepp8gJH5koJiljF2Ur2zTFqormWhRHMjPbwWgMYGLBz9P7jtUQk5S0GJfiA?= =?us-ascii?Q?atdFzf66XXNxR2iEEZWr04izSLOD6/uFbA5ibEIyfH8TDJK4Js7cxbUvHJh4?= =?us-ascii?Q?33HDcOg5wg+1O8BbxNgku4GFr0qU5wcYPO5dNI4LmYf2g0pjzxFqh+X5SyX8?= =?us-ascii?Q?v91fgUmQrSJF6criaaA38Ki/6HoaWm4a/5z/XbY4kQNi3qahksQfYJY2U6iD?= =?us-ascii?Q?gfkTZIpFk0Gq6EDSEZxREBh7W81D2ZT0fPvfFR7ifmSsFDccFoWa3pT+n+z6?= =?us-ascii?Q?y74Gv3p+/9Bg6ys+OWhLwCH1oBwGQF/UPA1oTzh4Ce1QI+TNZBgjVVEgMRw4?= =?us-ascii?Q?ilOH6xBjCv5sMDIG6osVkCylYq4hgn6lItREWJruu8zcfjD1MWh5dpJGiZBL?= =?us-ascii?Q?N9n0riqLzzU2gbZjCrV0odZc4UYcyJ2iMsvS0BvYM6iPbB1PlVeCGuYmaGAT?= =?us-ascii?Q?YmjA3rSB6LHXWJ3Qd1Xzr5jKrKJN8aNJSHaVzNIrP4MZGqivoVmYMDLfPInh?= =?us-ascii?Q?L0/rUu6Wh/5KqwDCjEkk2p19KxaN5kukkbCEKLxs6601D8jLgv50B9QmChs+?= =?us-ascii?Q?2YNY+yQVS71C0hPyle4dwKgJIRJfz4R4zH0wJUv5jF2zdEsjN3PuB+lekbQB?= =?us-ascii?Q?5a5fDQr0MEGVwCUdWmSbzPDI4427FsnxRXJ3szOTXXv6WcB9QMUnpiZQIrxT?= =?us-ascii?Q?5KFfC/r4P3O222FjXFG4KpZNfidmRA2yrhf4QK5GcQng6EATFAH/YsMKvxHg?= =?us-ascii?Q?PAB5ayW+mVfCCXP567sOjZjCZWtm0iiFsrbynVOU4hKYDh9BCOKcKb7O9S3l?= =?us-ascii?Q?ToVNGlq1KUuaSGU/6QPBb9itDvmjxv2B6Wz+dSs3+2IUSjOFOzyViQKoofCJ?= =?us-ascii?Q?KcizahGlRJ8H8Y8Jbx8LRDny?= X-MS-Exchange-CrossTenant-Network-Message-Id: fc4d37c4-69d7-43a6-9132-08d9872a2123 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:46.6839 (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: Aa+HuNw57ldS3Y2qy7JC0dVUbyo8EFnhBpM72QHV7edNxgWHy38IJHFYXtz3t15VDNjwRXr3Lsqr6M8BJWyJlw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DF4PR8401MB0425 X-OriginatorOrg: hpe.com X-Proofpoint-GUID: upkVScWbWbrOTvVBV-arHJbaCQtBBlqb X-Proofpoint-ORIG-GUID: upkVScWbWbrOTvVBV-arHJbaCQtBBlqb 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=882 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: 8bit Content-Type: text/plain Changes from v1: - Remove ShellLib override in 3/5 Tested on the unpublshed riscvvirt branch and it can still boot to Linux. 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, 44 insertions(+), 12 deletions(-) -- 2.33.0