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.1475.1589217632617810046 for ; Mon, 11 May 2020 10:20:32 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: hpe.com, ip: 148.163.147.86, mailfrom: prvs=0400127891=daniel.schaefer@hpe.com) Received: from pps.filterd (m0148663.ppops.net [127.0.0.1]) by mx0a-002e3701.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 04BH8f5E031928; Mon, 11 May 2020 17:20:32 GMT Received: from g4t3427.houston.hpe.com (g4t3427.houston.hpe.com [15.241.140.73]) by mx0a-002e3701.pphosted.com with ESMTP id 30x5xyjmru-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 11 May 2020 17:20:32 +0000 Received: from G1W8108.americas.hpqcorp.net (g1w8108.austin.hp.com [16.193.72.60]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by g4t3427.houston.hpe.com (Postfix) with ESMTPS id 322B266; Mon, 11 May 2020 17:20:31 +0000 (UTC) Received: from G1W8107.americas.hpqcorp.net (2002:10c1:483b::10c1:483b) by G1W8108.americas.hpqcorp.net (2002:10c1:483c::10c1:483c) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 11 May 2020 17:20:31 +0000 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (15.241.52.11) by G1W8107.americas.hpqcorp.net (16.193.72.59) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Mon, 11 May 2020 17:20:30 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PFhHpBAGGiegQZQqDGABrEl9xDAo7eB6qT2vgMt4CXaHdkZsxz0ur7us8920XjDKZad4Bd9q73+U0TiMG5M/+z+AZUZRsoKykxDKgE6KCKLLzrR9wDHiuWeCKLi9WufuliZ0Wpbnb0aYrPpRvL5BvNxGjbDivEpcUCY8MB/IEUWdXsLCvENSZ1enKT2BhNDCXOLwLMVQx9MAaVKSxyKV+8/48LnN2zi3J+JJXv8YQ1Jks2KP0EslO6i0chDRfk+gksEtCEBnV+CR1m7c14h3TwhO6HVRuqVRNSvQwlINjrGIrSyyLXhfVl+8c67C68p/HXLaO6ROMOKvmmeT19QDig== 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=h48w08P8oG2Iq4LH/9gc8vQgNwZLUxuhLr6QJuiWVm8=; b=jMOtoTSlbTLXcEN6fRM0n2w3FfyIITiuH4QAFLvgYix6OkRGF+Mgh6swcFZlkRLaZgdP0jS10N22skyz9fiR8wPepj8UXAyK0dC4CkE9/QJwbRy7fXIeNoyA4ee1sA6NOm5GtyfZnUXzUBGgSBGy968ap2uN/aUkNsuzKuWB1K4lKWGRPayr7NYHgMvcKOlXVdhhhOHGBS0yKnV2Dd0ZImfNmcsnPkOSyEyP2BRi1HOQDKrLodo0aeEJ7pjseLbWohnrekaPR4QQ1KxV45RD3Xut1S+NDuXLaert25fngLW0CLsVhtz0nmwGtq8R04Yl700qfVtjWEFnsWt8wX7kYw== 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 CS1PR8401MB0726.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:750c::23) by CS1PR8401MB1224.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:7507::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.28; Mon, 11 May 2020 17:20:29 +0000 Received: from CS1PR8401MB0726.NAMPRD84.PROD.OUTLOOK.COM ([fe80::940c:db10:af3c:c3f5]) by CS1PR8401MB0726.NAMPRD84.PROD.OUTLOOK.COM ([fe80::940c:db10:af3c:c3f5%4]) with mapi id 15.20.2979.033; Mon, 11 May 2020 17:20:29 +0000 From: "Daniel Schaefer" To: CC: Gilbert Chen , Abner Chang , Leif Lindholm , Michael D Kinney Subject: [platform/devel-riscvplatforms PATCHv1 0/2] New RISC-V patches Date: Mon, 11 May 2020 19:20:13 +0200 Message-ID: <20200511172015.5139-1-daniel.schaefer@hpe.com> X-Mailer: git-send-email 2.26.1 X-ClientProxiedBy: AM0PR01CA0078.eurprd01.prod.exchangelabs.com (2603:10a6:208:10e::19) To CS1PR8401MB0726.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:750c::23) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from x360-nix.fritz.box (2001:16b8:5765:4200:25c4:7680:e129:dab4) by AM0PR01CA0078.eurprd01.prod.exchangelabs.com (2603:10a6:208:10e::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.28 via Frontend Transport; Mon, 11 May 2020 17:20:27 +0000 X-Mailer: git-send-email 2.26.1 X-Originating-IP: [2001:16b8:5765:4200:25c4:7680:e129:dab4] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 291ea65d-8c7c-443d-4919-08d7f5cf9a28 X-MS-TrafficTypeDiagnostic: CS1PR8401MB1224: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8882; X-Forefront-PRVS: 04004D94E2 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KJifH6Oy7wTw1DtoEPTQ/5KSL+irlb5pYXuNaF0ziKxxVAxEnnKwQKo6smKDGOdS5kjJBNTaXdj4a5haH2kDP4yjheqHqrRAptFiVHOInSv3VOVrSGWI9YJBJm6td450yY/NoY73nXQnJhaGCw5O2VWQtySBD8Y2HLYVE6uSxA0aMq5dGY4YTAdKC5PKWB6V/XuUkrKZSzP/fZGdL+gz1t19jkV46dNYRsEOviFvStkUOq+1h01onftNCYogfrLjXZJq5fvoTHsXP+zhGvQP0G+cfXDwSuL50YBIGD9eGVaalRs+v3rNz5z2Af3WrGe+GlbD5cERqDS4YRMfigJkIUB0m43QbwqWzzcopjfsGX29CAUUeJWWXDKjYGCiR0+GZKUArIW7M/SVSrvSVb/cP/8zj1BxF2BWzuk3xamiDnpoGSeVKzL5QrnertiD4SgSNXF/R602oNGuzO7dhjWX5ECX7Vmc0gfbletOrNQ3W5EHz9MV4EPUU//3Un3wBiqqSljppOH21pyZKTAXsQVuyQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CS1PR8401MB0726.NAMPRD84.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFTY:;SFS:(376002)(396003)(346002)(39860400002)(366004)(136003)(33430700001)(6512007)(2616005)(6486002)(478600001)(316002)(1076003)(4326008)(186003)(16526019)(86362001)(66946007)(8676002)(33440700001)(6666004)(6506007)(6916009)(66556008)(66476007)(2906002)(52116002)(36756003)(54906003)(44832011)(5660300002)(8936002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData: a87vfzEpmerMagczdwv9KvU+P5NBxOfW8aQWJmQ1aTTiT8I1YjwB4SmZgmJLtav49EnsjhN47W+ggDtzmPaAkVPWKvpSlV0Aoawc5sDevMo+zbvos8t9WSmukXczn9G2cu8saxwQcVFe3L2lBPf8CJi/H7sFFtVfoQDqtY1Ptu04wYJTYDg9rYpUMfaCM8l7RBdEZJJK8JaoAXC4aTYAvJPmtnEoS7GWuPcFanyEK1Zpg74rJBQkqWk2AAhWLok4u8kcqJWBwuh8vsFaVekdQ5LDsBsZL/DKDQ1BS9dqRI2I+9m4JnO6U75J5noN9HuPnW8sfIKQM+KES4MPS+2UoQGANRur3etEmxgBxRdERPTBsUVX93DVFaDmapepwzJg9ApjrB5B/jW5ozvecCctuJ9jqnwHJDyEz3kD2O9sDBZAhwweHIOahL1Y1lgss9x3+BaMSlgDzrW73h2+0FoUKbc2ALp7EXlOSRwCj6+jabm36zSnrkokCw8qFWkpFDNSrGLuRPV9OGBXymDElpajgRmXy5pFhD4D4YbQsBmjOFXFq0NjVmr/fq29FCxXkiiL X-MS-Exchange-CrossTenant-Network-Message-Id: 291ea65d-8c7c-443d-4919-08d7f5cf9a28 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 May 2020 17:20:29.2689 (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: yge9FX7tCq1q/tb0Y0PE2yz7sPfgsHKHfog9+H/pwXE4pd+S4kW+HKDIyaD7NjofJJmTsUmP15eyjAaqFP8nKA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CS1PR8401MB1224 X-OriginatorOrg: hpe.com X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216,18.0.676 definitions=2020-05-11_08:2020-05-11,2020-05-11 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 malwarescore=0 spamscore=0 adultscore=0 bulkscore=0 priorityscore=1501 suspectscore=43 mlxlogscore=999 mlxscore=0 phishscore=0 clxscore=1015 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2005110135 Content-Transfer-Encoding: 8bit Content-Type: text/plain We have moved most of our RISC-V implementation to edk2-platforms now, only the absolute minimum is in edk2, already merged. All other patches going into edk2-platforms have already been merged, these are new. The first adds opensbi as a submodule. We wanted to have it reviewed because it would be the first submodule in the edk2-platforms repository. Is that okay? Since we are now running PEI in addition to DXE in S-Mode (like Ring 3 in x86), we need to call into the SBI interface. The new library provides an interface for EDK2 code to do that. It just wraps the ecall assembly instruction as a C interface with EDK2-style return codes. Cc: Gilbert Chen Cc: Abner Chang Cc: Leif Lindholm Cc: Michael D Kinney Daniel Schaefer (2): ProcessorPkg/RiscVOpensbLlib: Add submodule opensbi ProcessorPkg/Library: Add EDK2 RISC-V OpenSBI library. Silicon/RISC-V/ProcessorPkg/Library/RiscVOpensbiLib/RiscVOpensbiLib.inf | 60 +++++++++++++++ Silicon/RISC-V/ProcessorPkg/Include/IndustryStandard/RiscVOpensbi.h | 79 ++++++++++++++++++++ Silicon/RISC-V/ProcessorPkg/Include/OpensbiTypes.h | 66 ++++++++++++++++ .gitmodules | 3 + Silicon/RISC-V/ProcessorPkg/Library/RiscVOpensbiLib/opensbi | 1 + 5 files changed, 209 insertions(+) create mode 100644 Silicon/RISC-V/ProcessorPkg/Library/RiscVOpensbiLib/RiscVOpensbiLib.inf create mode 100644 Silicon/RISC-V/ProcessorPkg/Include/IndustryStandard/RiscVOpensbi.h create mode 100644 Silicon/RISC-V/ProcessorPkg/Include/OpensbiTypes.h create mode 100644 .gitmodules create mode 160000 Silicon/RISC-V/ProcessorPkg/Library/RiscVOpensbiLib/opensbi -- 2.26.1