From nobody Sun Feb 8 22:06:36 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+100648+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+100648+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1677793783; cv=none; d=zohomail.com; s=zohoarc; b=kiLL8lpEOL8W7NgZqBi4Am3SJAIUWfTL16KOdVoa98DN6OYnmvx/bFja4QsLrOEK6CwkOWHogdG02k9ibDG7l2I0O3NU61MEHeCv/Ch4eZMQeiBUg0s88i72vFV6Edk7zyTl/PgxVBiRB11mE0U83BVNd1W99Is+BfPH6Ijki9M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1677793783; 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=EJ44Wyg305RDu6p2sKFXuI6z0beHASKHAB69irbbaxs=; b=bmDo65SqEkwUPWEw3oRt3tel7rzhCz3PSvY9bsw9iwwBblrxZH9+Pz3w6vdoa4ReucpgHK7uk9LYQf4Ogct0W9TIILDUDbIwpP8OER1HrbTWP98KoE2a4nr0XpTULPwfYoUjGolDIMHZdXTQf79yXe7l7JDz8HY43ThegZ99/uY= 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+100648+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 1677793783610914.5082273302497; Thu, 2 Mar 2023 13:49:43 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id XUc3YY1788612xrFvFkJTs9v; Thu, 02 Mar 2023 13:49:43 -0800 X-Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mx.groups.io with SMTP id smtpd.web11.7656.1677793777872244982 for ; Thu, 02 Mar 2023 13:49:42 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10637"; a="333584620" X-IronPort-AV: E=Sophos;i="5.98,228,1673942400"; d="scan'208";a="333584620" X-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:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10637"; a="1004321708" X-IronPort-AV: E=Sophos;i="5.98,228,1673942400"; d="scan'208";a="1004321708" X-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:41 -0800 From: "Andrei Warkentin" To: devel@edk2.groups.io Cc: Andrei Warkentin , Daniel Schaefer , Sunil V L Subject: [edk2-devel] [edk2 3/3] OvmfPkg: RiscVVirt: Add missing SerialPortInitialize to Sec Date: Thu, 2 Mar 2023 15:49:20 -0600 Message-Id: <20230302214920.13817-4-andrei.warkentin@intel.com> In-Reply-To: <20230302214920.13817-1-andrei.warkentin@intel.com> References: <20230302214920.13817-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: KuWfUchXv4LqWOjeiOccpF2sx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1677793783; bh=j780TnFKxXAZLt2iIa5rrvFC71481yBCoVIG9fS4lf8=; h=Cc:Date:From:Reply-To:Subject:To; b=paH3vuR9p6UdZ4wn2ZYF7hB7zQMn1+7jnpn70fU0Be1jSCz5xVmrsfJCNkO2BiazUIl WJ+18hqLw+TSuTGnoDFQrkeZqAv7GPzq4QjyQmgn5hmjvnRJn7DHRB3cuhlcqXg+KvK/b x7BJ2GxSxePirK20Fu8T0iCOmKnXLuzgKd8= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1677793784948100001 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 BaseSerialPortLibRiscVSbi not using DBCN in Sec, yet using DBCN elsewhere. Cc: Daniel Schaefer Cc: 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..db309ebdf1a3 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 - 2013, 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 (#100648): https://edk2.groups.io/g/devel/message/100648 Mute This Topic: https://groups.io/mt/97349688/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-