From nobody Sat Feb 7 05:01:34 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+102506+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+102506+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1680626648; cv=none; d=zohomail.com; s=zohoarc; b=NoiuLI5tRsv2TqT+9+lvJ+hmHHtmbf39/ovO+uh479IwFDu1vTL0Cv3DpHQCh/dpWOo2yg2ZgkDCT7kqrI//ip/Vd8pe/Lq70Blj1camvL6eqC7z391uENf5ASZr9pLUNp/MTEd4dsE9/KQMgfIl5XYNuIv5Ky1As3p0OC+MaEA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1680626648; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=nOWzyRjgRATVE0j8EG6DBW5Eov4Uj8oBbvNZDmtRO2E=; b=WrmMFyKD0gvCnvJg5XvRWQcqPG7W6zkKmOjf0nONCJTMf2FbVmXarp+2DXsUlKOitCtmh5gmD/4jqsWpQFVEsHpsHd/rLrLMmQqaxm1lNFnWdin1EgN5srrKkW1ZoMYTAc9zE33tyyLuA4fiAIYknTJ6HpaogDHAc0VwBkqJ3vg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+102506+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1680626648017233.83159339080294; Tue, 4 Apr 2023 09:44:08 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id xNqeYY1788612xgJ1R5dHAWS; Tue, 04 Apr 2023 09:44:07 -0700 X-Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web10.107004.1680626644810205254 for ; Tue, 04 Apr 2023 09:44:06 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10670"; a="428527784" X-IronPort-AV: E=Sophos;i="5.98,318,1673942400"; d="scan'208";a="428527784" X-Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Apr 2023 09:44:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10670"; a="750987396" X-IronPort-AV: E=Sophos;i="5.98,318,1673942400"; d="scan'208";a="750987396" X-Received: from awarkent-mobl1.amr.corp.intel.com ([10.212.50.115]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Apr 2023 09:44:05 -0700 From: "Andrei Warkentin" To: devel@edk2.groups.io Cc: Andrei Warkentin , Daniel Schaefer , Sunil V L Subject: [edk2-devel] [PATCH v6 3/3] OvmfPkg: RiscVVirt: Add missing SerialPortInitialize to Sec Date: Tue, 4 Apr 2023 11:43:59 -0500 Message-Id: <20230404164359.25852-4-andrei.warkentin@intel.com> In-Reply-To: <20230404164359.25852-1-andrei.warkentin@intel.com> References: <20230404164359.25852-1-andrei.warkentin@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,andrei.warkentin@intel.com X-Gm-Message-State: 5zWJsb2tRoL095y7g7akJwqXx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1680626647; bh=geZBhaqF1r6Mt5RzddybgPxfuSTI8YOknmRWxAP9FR0=; h=Cc:Date:From:Reply-To:Subject:To; b=m4X843lcQpOgz2gXBXKm1xRzIEz49SaEAuxBxcG7b13j5SKjTMV1B03aRiU5/H/ypsm 2nYDucNOHj2XxDnmg1KFYeshEACFdOUr75ecPpDvJLpuddHIE3r09ABpNVoMaN9XaGZ58 vQAfZqT1VJqEQ/oG1ZThsgD3HXfdE+y0yts= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1680626649392100013 Content-Type: text/plain; charset="utf-8" If the SerialPortLib had any initialization needed, this would be skipped in the RiscVVirt Sec. Follow the example seen elsewhere (ArmVirtPkg PrePi). Seen with BaseSerialPortLibRiscVSbiLibRam not using DBCN in Sec, yet using DBCN elsewhere. Cc: Daniel Schaefer Reviewed-by: Sunil V L Signed-off-by: Andrei Warkentin --- OvmfPkg/RiscVVirt/Sec/SecMain.inf | 1 + OvmfPkg/RiscVVirt/Sec/SecMain.h | 1 + OvmfPkg/RiscVVirt/Sec/SecMain.c | 4 +++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/OvmfPkg/RiscVVirt/Sec/SecMain.inf b/OvmfPkg/RiscVVirt/Sec/SecM= ain.inf index aed35d3af596..0e2a5785e8a4 100644 --- a/OvmfPkg/RiscVVirt/Sec/SecMain.inf +++ b/OvmfPkg/RiscVVirt/Sec/SecMain.inf @@ -48,6 +48,7 @@ [LibraryClasses] FdtLib MemoryAllocationLib HobLib + SerialPortLib =20 [Ppis] gEfiTemporaryRamSupportPpiGuid # PPI ALWAYS_PRODUCED diff --git a/OvmfPkg/RiscVVirt/Sec/SecMain.h b/OvmfPkg/RiscVVirt/Sec/SecMai= n.h index 83a8058efe40..7c7650f0d298 100644 --- a/OvmfPkg/RiscVVirt/Sec/SecMain.h +++ b/OvmfPkg/RiscVVirt/Sec/SecMain.h @@ -29,6 +29,7 @@ #include #include #include +#include #include =20 /** diff --git a/OvmfPkg/RiscVVirt/Sec/SecMain.c b/OvmfPkg/RiscVVirt/Sec/SecMai= n.c index adf73f2eb66c..b35c77774510 100644 --- a/OvmfPkg/RiscVVirt/Sec/SecMain.c +++ b/OvmfPkg/RiscVVirt/Sec/SecMain.c @@ -1,7 +1,7 @@ /** @file RISC-V SEC phase module for Qemu Virt. =20 - Copyright (c) 2008 - 2015, Intel Corporation. All rights reserved.
+ Copyright (c) 2008 - 2023, Intel Corporation. All rights reserved.
Copyright (c) 2022, Ventana Micro Systems Inc. All rights reserved.
=20 SPDX-License-Identifier: BSD-2-Clause-Patent @@ -57,6 +57,8 @@ SecStartup ( UINT64 StackBase; UINT32 StackSize; =20 + SerialPortInitialize (); + // // Report Status Code to indicate entering SEC core // --=20 2.25.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#102506): https://edk2.groups.io/g/devel/message/102506 Mute This Topic: https://groups.io/mt/98064148/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-