From nobody Tue Feb 10 02:59:07 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+100753+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+100753+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1678124012; cv=none; d=zohomail.com; s=zohoarc; b=cDvQKj8wV5rKCvP7g24hco5A7ydTm9jGAjf1k1A0uluAILROGxwjgQnVS32+yydrXtDwJcfuBmO3em1f4uIc/PnA3MyDgE+lx3JXdo7YdI8ab1dlrZBkighfZKngxADhUX3t5qE9SRofr1Oq0KrObWunQAxa3tQPTfkw/yGtuQ4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1678124012; 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=WhpSTHG2dCS0I0vulwBo8hLvjgxkNqicQ1gKKnFJPvI=; b=P1p2YQ4bOXi1s4bjivOcfmmS0WvtE+sHnOeS92VlrsbAkoSTahB+B2ylN9ChsNDsw2lMTxDUfXA3UMDSjM3QAL/cuImwSHVqnzZL8Les7C3e2GAlR9jhJ4T6JWb9fDBui4Acl1qZkK4SQ5b8vtd/ZmfVjSHfpuDuTuLINYfmn6c= 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+100753+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 16781240125001004.9811117605555; Mon, 6 Mar 2023 09:33:32 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id I58NYY1788612xFrNTOsWV7s; Mon, 06 Mar 2023 09:33:32 -0800 X-Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) by mx.groups.io with SMTP id smtpd.web10.1082.1678124011746371711 for ; Mon, 06 Mar 2023 09:33:31 -0800 X-Received: by mail-pj1-f53.google.com with SMTP id l1so10555958pjt.2 for ; Mon, 06 Mar 2023 09:33:31 -0800 (PST) X-Gm-Message-State: X4gc61cuxzgAI1y5GM4MnD9Wx1787277AA= X-Google-Smtp-Source: AK7set8IUZfuZzE5uoPbJbeJQHI1T4bAeefNi8jzBAsvmKzke/TJilSWWwC0PaJC9LOwtM5EWfd71Q== X-Received: by 2002:a05:6a20:8c97:b0:c7:5cb6:2ff7 with SMTP id k23-20020a056a208c9700b000c75cb62ff7mr12229965pzh.22.1678124010905; Mon, 06 Mar 2023 09:33:30 -0800 (PST) X-Received: from localhost.localdomain (c-174-50-177-95.hsd1.ca.comcast.net. [174.50.177.95]) by smtp.gmail.com with ESMTPSA id v6-20020aa78506000000b005dd975176c3sm6579722pfn.53.2023.03.06.09.33.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Mar 2023 09:33:30 -0800 (PST) From: "Tuan Phan" To: devel@edk2.groups.io Cc: michael.d.kinney@intel.com, gaoliming@byosoft.com.cn, zhiguang.liu@intel.com, sunilvl@ventanamicro.com, git@danielschaefer.me, andrei.warkentin@intel.com, Tuan Phan Subject: [edk2-devel] [PATCH 4/7] OvmfPkg/RiscVVirt: VirtNorFlashPlatformLib: Fix wrong flash size Date: Mon, 6 Mar 2023 09:33:13 -0800 Message-Id: <20230306173316.10319-5-tphan@ventanamicro.com> In-Reply-To: <20230306173316.10319-1-tphan@ventanamicro.com> References: <20230306173316.10319-1-tphan@ventanamicro.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,tphan@ventanamicro.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1678124012; bh=OZ2nfTuWt5WDkAQtc1Zq4XLUgnyrhatV+X6qLEE/PQg=; h=Cc:Date:From:Reply-To:Subject:To; b=wiee8TBPQ5MTlFcAdjlTvhJp5S8ikMFQVGrTtdMht5x5sdnOPj/+PFU3mFNF8f3ii0N mOvrSVYyLHn0ISZ7pAOFpr0YA3NGG84viTH/cPwcfs6aIoBOTvhtb1/BAd9aYM6JUTH/O 8nnUWYof8ASswx8UKfWRKtKU7Z2PvYerGw0= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1678124013673100017 Content-Type: text/plain; charset="utf-8" The size should be for single region, not the whole firmware FD. Signed-off-by: Tuan Phan --- .../Library/VirtNorFlashPlatformLib/VirtNorFlashStaticLib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OvmfPkg/RiscVVirt/Library/VirtNorFlashPlatformLib/VirtNorFlash= StaticLib.c b/OvmfPkg/RiscVVirt/Library/VirtNorFlashPlatformLib/VirtNorFlas= hStaticLib.c index fdc2ccb6294e..067065bd6ef9 100644 --- a/OvmfPkg/RiscVVirt/Library/VirtNorFlashPlatformLib/VirtNorFlashStaticL= ib.c +++ b/OvmfPkg/RiscVVirt/Library/VirtNorFlashPlatformLib/VirtNorFlashStaticL= ib.c @@ -24,7 +24,8 @@ VIRT_NOR_FLASH_DESCRIPTION mNorFlashDevice =3D { FixedPcdGet32 (PcdOvmfFdBaseAddress), FixedPcdGet64 (PcdFlashNvStorageVariableBase), - FixedPcdGet32 (PcdOvmfFirmwareFdSize), + FixedPcdGet32 (PcdOvmfFirmwareFdSize) -=20 + (FixedPcdGet64 (PcdFlashNvStorageVariableBase) - FixedPcdGet32 (= PcdOvmfFdBaseAddress)), QEMU_NOR_BLOCK_SIZE }; =20 --=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 (#100753): https://edk2.groups.io/g/devel/message/100753 Mute This Topic: https://groups.io/mt/97430552/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-