public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [edk2 0/3] v3 RISC-V SBI-backed SerialLib
@ 2023-03-03 18:04 Andrei Warkentin
  2023-03-03 18:04 ` [edk2 1/3] MdePkg: BaseRiscVSbiLib: make more useful to consumers Andrei Warkentin
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Andrei Warkentin @ 2023-03-03 18:04 UTC (permalink / raw)
  To: devel; +Cc: Andrei Warkentin

Hello!

Here are three patches that provide a SerialLib backed by SBI console. 
Both legacy and DBCN mechanisms are supported in various execution
environments and have been tested with UART and HTIF consoles.

This is also available at 
https://github.com/andreiw/edk2-rv-wip/tree/patchset-2

Compared to v2:
- Probes legacy extension as well.
- Encode supported module types in the INF file. This is done using LIBRARY_CLASS,
  as MODULE_TYPE cannot encode multiple types, so MODULE_TYPE is retained as BASE.
- Update INF version and generate brand new GUIDs instead of editing them.
- Checked that all patches retain ^M endings.

Checking patch file: 0001-MdePkg-BaseRiscVSbiLib-make-more-useful-to-consumers.patch
MdePkg: BaseRiscVSbiLib: make more useful to consumers
The commit message format passed all checks.
The code passed all checks.

Checking patch file: 0002-PATCH-v3-MdePkg-add-SBI-based-SeriaPortLib-for-RISC-.patch
[PATCH v3] MdePkg: add SBI-based SeriaPortLib for RISC-V
The commit message format passed all checks.
The code passed all checks.

Checking patch file: 0003-OvmfPkg-RiscVVirt-Add-missing-SerialPortInitialize-t.patch
OvmfPkg: RiscVVirt: Add missing SerialPortInitialize to Sec
The commit message format passed all checks.
The code passed all checks.

Andrei Warkentin (3):
  MdePkg: BaseRiscVSbiLib: make more useful to consumers
  MdePkg: add SBI-based SeriaPortLib for RISC-V
  OvmfPkg: RiscVVirt: Add missing SerialPortInitialize to Sec

 MdePkg/Library/PrePiDxeRiscVSerialPortLibSbi/PrePiDxeRiscVSerialPortLibSbi.inf |  36 +++
 MdePkg/Library/SecPeiRiscVSerialPortLibSbi/SecPeiRiscVSerialPortLibSbi.inf     |  39 +++
 OvmfPkg/RiscVVirt/Sec/SecMain.inf                                              |   1 +
 MdePkg/Include/Library/BaseRiscVSbiLib.h                                       |  40 ++-
 OvmfPkg/RiscVVirt/Sec/SecMain.h                                                |   1 +
 MdePkg/Library/BaseRiscVSbiLib/BaseRiscVSbiLib.c                               |   3 +-
 MdePkg/Library/PrePiDxeRiscVSerialPortLibSbi/PrePiDxeRiscVSerialPortLibSbi.c   | 285 ++++++++++++++++++++
 MdePkg/Library/SecPeiRiscVSerialPortLibSbi/SecPeiRiscVSerialPortLibSbi.c       | 233 ++++++++++++++++
 OvmfPkg/RiscVVirt/Sec/SecMain.c                                                |   4 +-
 MdePkg/Library/PrePiDxeRiscVSerialPortLibSbi/PrePiDxeRiscVSerialPortLibSbi.uni |  16 ++
 MdePkg/Library/SecPeiRiscVSerialPortLibSbi/SecPeiRiscVSerialPortLibSbi.uni     |  16 ++
 11 files changed, 668 insertions(+), 6 deletions(-)
 create mode 100644 MdePkg/Library/PrePiDxeRiscVSerialPortLibSbi/PrePiDxeRiscVSerialPortLibSbi.inf
 create mode 100644 MdePkg/Library/SecPeiRiscVSerialPortLibSbi/SecPeiRiscVSerialPortLibSbi.inf
 create mode 100644 MdePkg/Library/PrePiDxeRiscVSerialPortLibSbi/PrePiDxeRiscVSerialPortLibSbi.c
 create mode 100644 MdePkg/Library/SecPeiRiscVSerialPortLibSbi/SecPeiRiscVSerialPortLibSbi.c
 create mode 100644 MdePkg/Library/PrePiDxeRiscVSerialPortLibSbi/PrePiDxeRiscVSerialPortLibSbi.uni
 create mode 100644 MdePkg/Library/SecPeiRiscVSerialPortLibSbi/SecPeiRiscVSerialPortLibSbi.uni

-- 
2.25.1


^ permalink raw reply	[flat|nested] 8+ messages in thread
* [edk2 0/3] v2 RISC-V SBI-backed SerialLib
@ 2023-03-02 21:49 Andrei Warkentin
  2023-03-02 21:49 ` [edk2 1/3] MdePkg: BaseRiscVSbiLib: make more useful to consumers Andrei Warkentin
  0 siblings, 1 reply; 8+ messages in thread
From: Andrei Warkentin @ 2023-03-02 21:49 UTC (permalink / raw)
  To: devel; +Cc: Andrei Warkentin

Hello!

Here are three patches that provide a SerialLib backed by SBI console. Both legacy and DBCN mechanisms
are supported in various execution environments and have been tested (with UART and HTIF).

This is also available at https://github.com/andreiw/edk2-rv-wip/tree/patchset-2

Andrei Warkentin (3):
  MdePkg: BaseRiscVSbiLib: make more useful to consumers
  MdePkg: add SecPeiRiscVSerialPortLibSbi and
    PrePiDxeRiscVSerialPortLibSbi
  OvmfPkg: RiscVVirt: Add missing SerialPortInitialize to Sec

 MdePkg/Library/PrePiDxeRiscVSerialPortLibSbi/PrePiDxeRiscVSerialPortLibSbi.inf |  36 +++
 MdePkg/Library/SecPeiRiscVSerialPortLibSbi/SecPeiRiscVSerialPortLibSbi.inf     |  39 +++
 OvmfPkg/RiscVVirt/Sec/SecMain.inf                                              |   1 +
 MdePkg/Include/Library/BaseRiscVSbiLib.h                                       |  40 ++-
 OvmfPkg/RiscVVirt/Sec/SecMain.h                                                |   1 +
 MdePkg/Library/BaseRiscVSbiLib/BaseRiscVSbiLib.c                               |   3 +-
 MdePkg/Library/PrePiDxeRiscVSerialPortLibSbi/PrePiDxeRiscVSerialPortLibSbi.c   | 264 ++++++++++++++++++++
 MdePkg/Library/SecPeiRiscVSerialPortLibSbi/SecPeiRiscVSerialPortLibSbi.c       | 223 +++++++++++++++++
 OvmfPkg/RiscVVirt/Sec/SecMain.c                                                |   4 +-
 MdePkg/Library/PrePiDxeRiscVSerialPortLibSbi/PrePiDxeRiscVSerialPortLibSbi.uni |  16 ++
 MdePkg/Library/SecPeiRiscVSerialPortLibSbi/SecPeiRiscVSerialPortLibSbi.uni     |  16 ++
 11 files changed, 637 insertions(+), 6 deletions(-)
 create mode 100644 MdePkg/Library/PrePiDxeRiscVSerialPortLibSbi/PrePiDxeRiscVSerialPortLibSbi.inf
 create mode 100644 MdePkg/Library/SecPeiRiscVSerialPortLibSbi/SecPeiRiscVSerialPortLibSbi.inf
 create mode 100644 MdePkg/Library/PrePiDxeRiscVSerialPortLibSbi/PrePiDxeRiscVSerialPortLibSbi.c
 create mode 100644 MdePkg/Library/SecPeiRiscVSerialPortLibSbi/SecPeiRiscVSerialPortLibSbi.c
 create mode 100644 MdePkg/Library/PrePiDxeRiscVSerialPortLibSbi/PrePiDxeRiscVSerialPortLibSbi.uni
 create mode 100644 MdePkg/Library/SecPeiRiscVSerialPortLibSbi/SecPeiRiscVSerialPortLibSbi.uni

-- 
2.25.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-03-10  7:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-03 18:04 [edk2 0/3] v3 RISC-V SBI-backed SerialLib Andrei Warkentin
2023-03-03 18:04 ` [edk2 1/3] MdePkg: BaseRiscVSbiLib: make more useful to consumers Andrei Warkentin
2023-03-10  6:23   ` Sunil V L
2023-03-03 18:04 ` [edk2 2/3] [PATCH v3] MdePkg: add SBI-based SeriaPortLib for RISC-V Andrei Warkentin
2023-03-10  7:19   ` Sunil V L
2023-03-03 18:04 ` [edk2 3/3] OvmfPkg: RiscVVirt: Add missing SerialPortInitialize to Sec Andrei Warkentin
2023-03-10  6:26   ` [edk2-devel] " Sunil V L
  -- strict thread matches above, loose matches on Subject: below --
2023-03-02 21:49 [edk2 0/3] v2 RISC-V SBI-backed SerialLib Andrei Warkentin
2023-03-02 21:49 ` [edk2 1/3] MdePkg: BaseRiscVSbiLib: make more useful to consumers Andrei Warkentin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox