From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mx.groups.io with SMTP id smtpd.web10.30787.1677866666579516306 for ; Fri, 03 Mar 2023 10:04:26 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=DZtypFPB; spf=pass (domain: intel.com, ip: 192.55.52.93, mailfrom: andrei.warkentin@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1677866666; x=1709402666; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=fTWuUpAR0ZAfbHQzjdI744kPlbh/0H4CSBi9uFsTQ74=; b=DZtypFPB0ap0Vr07J6xbOLP1JthpzNwZhAY1QzieFWfXJZiz7sQjGcuY CVH6TJhas/fDIbib5Mf/WKxnjIxLsKg6QYzIVIjEB8vH1vAo37thz4dbo SqpQmNcVgICdkVXu7znidDMBPRFAh5ukMRg78A0QUoYwm5+c3YuxzJRIE 891iBujbATnEO7V1d7frD4KlmhZlN9iF4rB/ITmbTJs28esxsjtsoC2Va F87m9KErhceydNcEVfxdWc3pfesYuwFAApLiHoA71pdMrgkYQGx3ODmFY 0zd0dYdlYU42vFc29gulcx+SZRHiDCs46W8ItrxYmEje2MSKmhSL7Mc3I w==; X-IronPort-AV: E=McAfee;i="6500,9779,10638"; a="332593476" X-IronPort-AV: E=Sophos;i="5.98,231,1673942400"; d="scan'208";a="332593476" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Mar 2023 10:04:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10638"; a="849541887" X-IronPort-AV: E=Sophos;i="5.98,231,1673942400"; d="scan'208";a="849541887" Received: from snainar-mobl1.amr.corp.intel.com (HELO awarkent-mobl1.amr.corp.intel.com) ([10.212.75.200]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Mar 2023 10:04:19 -0800 From: "Andrei Warkentin" To: devel@edk2.groups.io Cc: Andrei Warkentin Subject: [edk2 0/3] v3 RISC-V SBI-backed SerialLib Date: Fri, 3 Mar 2023 12:04:07 -0600 Message-Id: <20230303180410.6344-1-andrei.warkentin@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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