From nobody Tue Feb 10 20:06:06 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+106144+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+106144+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1686910622; cv=none; d=zohomail.com; s=zohoarc; b=OS2UozpmT2rBd1GsRuNzPGGcCwZYlLx6MkKXSYvMmcP4Hk9CtWr/RRjvdcPZWiECWlnBqJlg1apwr7YUugxdVGSplnhV/6ZPIUETluBnSCwScJ8iv2MIDJV82t/gXTTX5mvIkWoGUYpr06YTmGtKhytkoOMaWJ3T/AL4WSeCpPc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1686910622; 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=3PHxAWCrpgan3BWYgHOvUHn7RGtsTTLCZMB/Z0wED+Y=; b=LljAWGtv3PY4NRUp27FDYZgYIV8ZH7z8njqE/TVpXfwoBSTI5VjqHA7MbPkhBuDf0+igmV85QBvp+m//e+QncI1OoPVCHm0JscmJ6WUR8wRN2s/igGDRPZ8tIx6UxHLdZcP79rSQi8AX03PdX68YnV+GQXT6CmsG0HK5eD7fO9o= 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+106144+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1686910621995555.3265673843424; Fri, 16 Jun 2023 03:17:01 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id cmzZYY1788612xEHtkiNetTV; Fri, 16 Jun 2023 03:17:01 -0700 X-Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) by mx.groups.io with SMTP id smtpd.web10.5093.1686910620415585390 for ; Fri, 16 Jun 2023 03:17:00 -0700 X-Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-1b5018cb4dcso3574055ad.2 for ; Fri, 16 Jun 2023 03:17:00 -0700 (PDT) X-Gm-Message-State: Pp9QNpps6tvUr14WkaGbvyMFx1787277AA= X-Google-Smtp-Source: ACHHUZ50PvGwmNv7op0iGU79vGiLKZ10N1XeSj8vkywtphkyIewQqtjr8jdiKB8sHa8o7XZL3CObvA== X-Received: by 2002:a17:902:bb96:b0:1ac:8837:de9 with SMTP id m22-20020a170902bb9600b001ac88370de9mr1099128pls.3.1686910619705; Fri, 16 Jun 2023 03:16:59 -0700 (PDT) X-Received: from kerodi.Dlink ([106.51.184.72]) by smtp.gmail.com with ESMTPSA id h12-20020a170902f54c00b001a1a82fc6d3sm15435565plf.268.2023.06.16.03.16.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Jun 2023 03:16:59 -0700 (PDT) From: "Sunil V L" To: devel@edk2.groups.io Cc: Sunil V L , Ard Biesheuvel , Jiewen Yao , Jordan Justen , Gerd Hoffmann , Andrei Warkentin Subject: [edk2-devel] [PATCH v2 1/4] OvmfPkg/RiscVVirt: Fix couple of issues in VarStore Date: Fri, 16 Jun 2023 15:46:48 +0530 Message-Id: <20230616101651.1319722-2-sunilvl@ventanamicro.com> In-Reply-To: <20230616101651.1319722-1-sunilvl@ventanamicro.com> References: <20230616101651.1319722-1-sunilvl@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,sunilvl@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=1686910621; bh=jwWeqbBem6uPNKbl+KGfR+q8JvajeOi+DZXG/CQ3wns=; h=Cc:Date:From:Reply-To:Subject:To; b=h4X6pCXdwBwnpSEFsz2he8FK5+6S3pxDPP5p9EOtOSp0KIMM+Nn8FL3ooT3BIUy2RH6 QNj04vxfND3dNJZFAlaU1ueIOCgMbZmWnLS7pXw6kA0vbgM3RCeKoBV0DaVl8Yb93Ptjs JCFuC6F/Whe54VeuNegeBUPhiAaoLCufjgA= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1686910623930100003 Content-Type: text/plain; charset="utf-8" The size of the FV and the WriteQueueSize is incorrect which causes the flash to be re-written during boot. Fix them and update the new checksum value. Signed-off-by: Sunil V L Cc: Ard Biesheuvel Cc: Jiewen Yao Cc: Jordan Justen Cc: Gerd Hoffmann Cc: Andrei Warkentin --- OvmfPkg/RiscVVirt/VarStore.fdf.inc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/OvmfPkg/RiscVVirt/VarStore.fdf.inc b/OvmfPkg/RiscVVirt/VarStor= e.fdf.inc index 30b170d77997..6bc619e50c1a 100644 --- a/OvmfPkg/RiscVVirt/VarStore.fdf.inc +++ b/OvmfPkg/RiscVVirt/VarStore.fdf.inc @@ -25,12 +25,12 @@ # { 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50 }} 0x8D, 0x2B, 0xF1, 0xFF, 0x96, 0x76, 0x8B, 0x4C, 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50, - # FvLength: 0x20000 - 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, + # FvLength: 0xC0000 + 0x00, 0x00, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, # Signature "_FVH" # Attributes 0x5f, 0x46, 0x56, 0x48, 0xff, 0xfe, 0x04, 0x00, # HeaderLength # CheckSum # ExtHeaderOffset #Reserved #Revision - 0x48, 0x00, 0x39, 0xF1, 0x00, 0x00, 0x00, 0x02, + 0x48, 0x00, 0x2F, 0xF1, 0x00, 0x00, 0x00, 0x02, # Blockmap[0]: 0x20 Blocks * 0x1000 Bytes / Block 0x00, 0x08, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, # Blockmap[1]: End @@ -60,7 +60,7 @@ $(VARS_FTW_WORKING_OFFSET)|$(VARS_FTW_WORKING_SIZE) gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|gEfiMdeModu= lePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize # -#NV_FTW_WROK +#NV_FTW_WORK # DATA =3D { # EFI_FAULT_TOLERANT_WORKING_BLOCK_HEADER->Signature =3D gEdkiiWorkingBl= ockSignatureGuid =3D @@ -68,9 +68,9 @@ 0x2b, 0x29, 0x58, 0x9e, 0x68, 0x7c, 0x7d, 0x49, 0xa0, 0xce, 0x65, 0x0, 0xfd, 0x9f, 0x1b, 0x95, # Crc:UINT32 #WorkingBlockValid:1, WorkingBlockInvalid:1, Res= erved - 0x2c, 0xaf, 0x2c, 0x64, 0xFE, 0xFF, 0xFF, 0xFF, + 0x5b, 0xe7, 0xc6, 0x86, 0xFE, 0xFF, 0xFF, 0xFF, # WriteQueueSize: UINT64 - 0xE0, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 + 0xE0, 0xFF, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00 } =20 $(VARS_FTW_SPARE_OFFSET)|$(VARS_FTW_SPARE_SIZE) --=20 2.34.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 (#106144): https://edk2.groups.io/g/devel/message/106144 Mute This Topic: https://groups.io/mt/99567397/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-