On Thu, Mar 25, 2021 at 01:46 AM, Abner Chang wrote:
Hi Loic,Yes, I think this is the version I used. In fact I followed https://github.com/tianocore/edk2-platforms#submodules to add the needed submodule.
The current edk2 RISC-V is incorporated with opensbi v0.8, please check below link
https://github.com/riscv/riscv-uefi-edk2-docs
We have to update below library with the latest opensbi with your changes,Sounds like yes. I tested in qemu without any issue, but that was not a full regression test ;-)
https://github.com/tianocore/edk2-platforms/tree/master/Silicon/RISC-V/ProcessorPkg/Library/RiscVOpensbiLib
I believe your changes don't impact the build and the functionalities because we don't use those parameters in edk2.
However, this change should be adopted with Edk2OpenSbiLib upgrade.So if this fix will be included in Daniel's changes that fine. I just wanted to share the fix if anyone else had issue and also check if the issue was not on my side, I'm a newbie on edk2 and on RISC-V :D
Daniel is currently working on edk2 RISC-V OVMF and also updated opensbi to the latest version. However there is a compatible issue when switching mode and we are fixing it now.
We can share more information with you if you would like to know.
Thanks
Abner