From nobody Sun Feb 8 10:33:56 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+102722+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+102722+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1680903910; cv=none; d=zohomail.com; s=zohoarc; b=CEP499fx7YmTt/HhWiHGeX7f33z4YiCzGrrtJIkgIudCA0Zzpb2Kg4Gh8HXc46H3QN+3Ourqa4fNtHmiFwdX0Fbz+JIEYt9C+ssGpeWLx4p64MZoNjC6YRyWbHwcBq4Q65PIPU1mZ8fNVmCoGBHFM1BXHgFciOa57KYKxSDhHF8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1680903910; 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=lN7GDQBTe/LbrN45xZQVZZDO4lRvVLHG8tF0TshxLto=; b=nhhue2GrfBGQjF6RLh4DKhvrLYTMLu8VScLfEJM/iwYTPiDhUpZSo9Xi45I7VaHBLHdSmY6GQJ7IZB+JkNe21YyWQShiX9stAiM4J8nHAB/2BiTMcwKHqh33xxht3XuQ7UsLtQBgFI5ggf4VoO1u4ojrwGXmRElTv8jfdH+4iD0= 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+102722+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 1680903910964581.8464495241705; Fri, 7 Apr 2023 14:45:10 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 5XHcYY1788612xEVIJgMM9aT; Fri, 07 Apr 2023 14:45:10 -0700 X-Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web11.2109.1680903908685764456 for ; Fri, 07 Apr 2023 14:45:09 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10673"; a="343081075" X-IronPort-AV: E=Sophos;i="5.98,328,1673942400"; d="scan'208";a="343081075" X-Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2023 14:44:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10673"; a="717964760" X-IronPort-AV: E=Sophos;i="5.98,328,1673942400"; d="scan'208";a="717964760" X-Received: from jsilva4x-mobl.amr.corp.intel.com (HELO awarkent-mobl1.amr.corp.intel.com) ([10.212.106.145]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2023 14:44:35 -0700 From: "Andrei Warkentin" To: devel@edk2.groups.io Cc: Andrei Warkentin , Daniel Schaefer , Sunil V L Subject: [edk2-devel] [PATCH v7 3/3] OvmfPkg: RiscVVirt: Add missing SerialPortInitialize to Sec Date: Fri, 7 Apr 2023 16:44:25 -0500 Message-Id: <20230407214425.4360-4-andrei.warkentin@intel.com> In-Reply-To: <20230407214425.4360-1-andrei.warkentin@intel.com> References: <20230407214425.4360-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: klcQfbQxSTXHePJegedGEercx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1680903910; bh=JNOgPYreCntvDLgeVbW0iLy9TiqRKXi3sbDZ7WGUnbU=; h=Cc:Date:From:Reply-To:Subject:To; b=AcYU7//iZ4mYFl9yeAu8cOpKachoVcUCsdiDV9lQ/04l6AYLKFC4Y7UgreYDJxzu8CM QG7zQyfeif2gQu6x7rl4Og2Ehdr2wD/HkqgsgHdE8Myw5SI19vU2NjYNqHLzB0io+F4vz UVAAN3HcXatLlATEir0ZR0V6UGCBjaPICH4= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1680903911601100003 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 Acked-by: Jiewen Yao --- 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 (#102722): https://edk2.groups.io/g/devel/message/102722 Mute This Topic: https://groups.io/mt/98133914/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-