From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mx.groups.io with SMTP id smtpd.web10.7580.1677793768526704964 for ; Thu, 02 Mar 2023 13:49:29 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=ACzPu3ok; spf=pass (domain: intel.com, ip: 192.55.52.120, 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=1677793768; x=1709329768; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=gK0pb21pjbwL/F0ebCojoYikuacHpxshUlQxIbgfeKs=; b=ACzPu3ok2gWXF0ZsP8HWFTqdhMZM25ZbpvWaLEbvrUhHCeZDxovMmy9B aXe9HXEexpPlzAcAWn4ZTuonem4Bn9o0hEUvj0XbQCHnwDf2okW46eZ8F ZMOtiQzPWM77T6FBw70IMNBY3ubt0H+pvEzygDflTyXjpVCIfLDsTj2Hv +TNHWFkIyy5bb87UjEsv9t3kQXsR2XlWibdKdZpG20VqpqtIy8bJdEGoL ZdJ8i6PWFFKl144hx+nu1U3RmifuHqI3mtbsZ+582LO/QHp+I4kEpdVE+ aGTIjeWFFD5ViuOflOgmo+tADeTBreEX6G6kKeKz9rrlfAbjsj4/2k9Bo Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10637"; a="333584536" X-IronPort-AV: E=Sophos;i="5.98,228,1673942400"; d="scan'208";a="333584536" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Mar 2023 13:49:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10637"; a="1004321561" X-IronPort-AV: E=Sophos;i="5.98,228,1673942400"; d="scan'208";a="1004321561" Received: from mayurkum-mobl2.amr.corp.intel.com (HELO awarkent-mobl1.amr.corp.intel.com) ([10.213.175.186]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Mar 2023 13:49:27 -0800 From: "Andrei Warkentin" To: devel@edk2.groups.io Cc: Andrei Warkentin Subject: [edk2 0/3] v2 RISC-V SBI-backed SerialLib Date: Thu, 2 Mar 2023 15:49:17 -0600 Message-Id: <20230302214920.13817-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). 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