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.web11.6040.1589244032052692872 for ; Mon, 11 May 2020 17:40:32 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: hpe.com, ip: 148.163.143.35, mailfrom: prvs=04014a9ad5=abner.chang@hpe.com) Received: from pps.filterd (m0150245.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 04C0eSGh019422; Tue, 12 May 2020 00:40:31 GMT Received: from g4t3427.houston.hpe.com (g4t3427.houston.hpe.com [15.241.140.73]) by mx0b-002e3701.pphosted.com with ESMTP id 30ydc91fu4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 12 May 2020 00:40:30 +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 g4t3427.houston.hpe.com (Postfix) with ESMTPS id C3E5074; Tue, 12 May 2020 00:38:27 +0000 (UTC) Received: from G4W9120.americas.hpqcorp.net (2002:10d2:150f::10d2:150f) by G1W8107.americas.hpqcorp.net (2002:10c1:483b::10c1:483b) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 12 May 2020 00:38:27 +0000 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (15.241.52.11) by G4W9120.americas.hpqcorp.net (16.210.21.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Tue, 12 May 2020 00:38:27 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fxE0hua1Ibb/MfJUvY+S9tyWWPUbtv2GAcaTLqxLb0VgvYF6FUWbSW2uhVpotghC2dJkm+kQxo/k1oXZDv02/B1aE2WcbSwuo3P5ztWEWbHoaGzxQJ1i/J3Viim9PhtVW39ENOOn3tfaPO+cxHz1NOhd1zyKDvsWu4XchPoi/Te6hLluLG8cXI3EyBImyku2I5D7VrE1i5jyg2Got9OOY5JJah8PiAj3Gr+zsX+rDC9EAV9fUH/kbAvTLjTXqiyfcf7E6A1Q+zk/PYjdxIlfY3UkqpXe0RAAXsAPIsGBdRK98vsR2kd6HvISBxRrllFH3dG1IM9WzwbXYHChz5f52A== 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=AMe/pPFCd5BRBBDao0qaHJNpV7WubC3NnQre+J8WxA4=; b=czSWYCGAWp7qdPNUTluYQMQwu3xRRfpFrGrbnxOQQ1Q1Po1yutTwLHlDnlRZfOkaDXqsT3WBCbcJu3i/BCZmmN2TD9OLW23SMkOE+Arvm06M9/vYQBF8wxeqkfCJz1+1tP7fWE5DcWVG4DwhXGvT3ULmJyMXzFBCBpp9o7UrkW6atMCO58w0tLF2eou/kbs7AeuuQAoQlic2pyG1N0sNf96Bs4uWP6wWNqgD5j+FNQM3OeaLmd/ioSs9z8Fp8Vk2mzFCPVIRWIgKAqi1Kn9BFFOBMohbvADyND5k8hnCob2i54wkaYSG0AZqVHpGhdnAsyRO5SzVLAtqaoXmr0Ypqw== 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 Received: from TU4PR8401MB0429.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:770a::14) by TU4PR8401MB0927.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:7713::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.28; Tue, 12 May 2020 00:38:23 +0000 Received: from TU4PR8401MB0429.NAMPRD84.PROD.OUTLOOK.COM ([fe80::5488:5d40:b541:d795]) by TU4PR8401MB0429.NAMPRD84.PROD.OUTLOOK.COM ([fe80::5488:5d40:b541:d795%11]) with mapi id 15.20.2979.033; Tue, 12 May 2020 00:38:23 +0000 From: "Abner Chang" To: Leif Lindholm , "Schaefer, Daniel (DualStudy)" CC: "devel@edk2.groups.io" , "Chen, Gilbert" , Michael D Kinney Subject: Re: [platform/devel-riscvplatforms PATCHv1 0/2] New RISC-V patches Thread-Topic: [platform/devel-riscvplatforms PATCHv1 0/2] New RISC-V patches Thread-Index: AQHWJ7h4IKtTDUTjoke9Kjxg7cJID6ijJqeAgAB0e3A= Date: Tue, 12 May 2020 00:38:23 +0000 Message-ID: References: <20200511172015.5139-1-daniel.schaefer@hpe.com> <20200511173857.GV21486@vanye> In-Reply-To: <20200511173857.GV21486@vanye> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nuviainc.com; dkim=none (message not signed) header.d=none;nuviainc.com; dmarc=none action=none header.from=hpe.com; x-originating-ip: [16.242.247.131] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 0a1f23e6-2a3d-43f5-7e34-08d7f60cc6ef x-ms-traffictypediagnostic: TU4PR8401MB0927: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-forefront-prvs: 0401647B7F x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: m0wfnTgyePPhu7X586uLxgogs/fGVGS3FUVeEaGhzmn+jogYQkhG6OAaSWQqkj1L6j+eZttyG7S/l/3r2rRkhqa91KEGOsEr+/CcKBCXYrKbooIGe1qlXn4ijRhl+Ry3LH03kqX0zOu+O1aXXzj9dE6AbZg77+RruZ0NsJE/yhTM/PU3c7YB3QnWI4P7JM/nwfIvQx5WLNjB0sGIyv7BzvVRMdp6T0nyT313hwK4hWRScxWlYVETPQFatQ/i5YK3c30XjkqrxwoXUG13ehayF2NRhda7N2eDmQ1Jyx2cAV02iUpNqcMz/W4OH2VZhHu/+CAJlcU0v1Psmy9DFMBmqz67xaGg1bTez68PavpsolDfaVnW42rVfdTPGmwKNgBpE5AKHi+sFJX3+jAMwwrcgMkTWTrMZxCyWBEhTyvHg1DGjKwsLb9ECxbjfS7RMu7ILAhwzzdO7R5YDlb0C0rKYxGa7GgqooT9Swoz5JwRPwNED/v21ekVaVaD0/nvDXm+lja2WixVhDqFyRdA9J7LSw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TU4PR8401MB0429.NAMPRD84.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFTY:;SFS:(346002)(39860400002)(376002)(136003)(366004)(396003)(33430700001)(53546011)(6506007)(7696005)(66446008)(66556008)(64756008)(33656002)(26005)(186003)(8936002)(33440700001)(316002)(110136005)(478600001)(55016002)(8676002)(9686003)(71200400001)(5660300002)(6636002)(86362001)(66946007)(4326008)(66476007)(54906003)(76116006)(52536014)(2906002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: jMSTnvoTa3LJG5i4bS64mbsjfufs0N598ku6mihiTZXQaZXhTSstuuOT++9KQtT8SBjYFFt0IeSm08oEsaJYtN12Lj1vHmNg688veAmc5RY7SIkQOEnXaAEyh7zIwQFPSh0Ek/V1kINoAZ1t50FfMVfheUu6A8MteOYOo0Iex8alOxiv/rLLlyDPM8xFHAb+a7BZbuZf0CiQ3yr535MsT53Gt28pl4q6gONzj4uW7DAmNdRs+sbuGZ5xcXv93ge3t3hCbepPTZ2Nbe4ytECIQ8Xwp7RxYujEi46UvMVGn0aXwGXvlta88VIvrKWOaZe8RCZYF5B5QRsBNDNxBDRfRa40UxWUCPKDFmOl+cguzRs+uIsik1R9Vx7B2NlCJaP2BO0bULj1oT+L1mtNNhu1B53foontdJPjLJBvtcW46tKfnQ1cMJ6HYiY7VJAW/bef8wUuHpRqjGNTwCbX/Ehhd+ng7/YJRhzyYwPmhDdD8thuAis9VaHSbTUE4dUum6Jw X-MS-Exchange-CrossTenant-Network-Message-Id: 0a1f23e6-2a3d-43f5-7e34-08d7f60cc6ef X-MS-Exchange-CrossTenant-originalarrivaltime: 12 May 2020 00:38:23.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: Lb0CyWBrHkM1RXdONQc1KR2QTXxHHdl8u2WS/mJtw4fh6TY0dDookoym16QkiJ8l3i+Rr8W9BUfAvkUNddz5aA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TU4PR8401MB0927 X-OriginatorOrg: hpe.com X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216,18.0.676 definitions=2020-05-11_11:2020-05-11,2020-05-11 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 mlxscore=0 spamscore=0 clxscore=1015 mlxlogscore=999 impostorscore=0 malwarescore=0 suspectscore=1 adultscore=0 lowpriorityscore=0 priorityscore=1501 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2005120003 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable > -----Original Message----- > From: Leif Lindholm [mailto:leif@nuviainc.com] > Sent: Tuesday, May 12, 2020 1:39 AM > To: Schaefer, Daniel (DualStudy) > Cc: devel@edk2.groups.io; Chen, Gilbert ; Chang, > Abner (HPS SW/FW Technologist) ; Michael D > Kinney > Subject: Re: [platform/devel-riscvplatforms PATCHv1 0/2] New RISC-V > patches >=20 > On Mon, May 11, 2020 at 19:20:13 +0200, Daniel Schaefer wrote: > > 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. >=20 > Please be explicit on what has been merged to edk2/edk2-platforms and > what has been merged to edk2-staging/edk2-platforms-devel. Daniel, we can mention this in cover letter. >=20 > > The first adds opensbi as a submodule. We wanted to have it reviewed > > because it would be the first submodule in the edk2-platforms repositor= y. > Is that okay? >=20 > I have no objection to submodules in edk2-platforms, although this will be > the first one. Just remember to call this out explicitly in any instructi= ons. Daniel, we can add Submodule section in Readme.md which as same as the read= me under edk2. >=20 > / > Leif >=20 > > 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 code= s. > > > > 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.in > > f 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 > >