From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by mx.groups.io with SMTP id smtpd.web10.5092.1686910618045440234 for ; Fri, 16 Jun 2023 03:16:58 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@ventanamicro.com header.s=google header.b=jZYXUGpH; spf=pass (domain: ventanamicro.com, ip: 209.85.214.180, mailfrom: sunilvl@ventanamicro.com) Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-1b5018cb4dcso3573795ad.2 for ; Fri, 16 Jun 2023 03:16:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1686910617; x=1689502617; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=5bmFW2FiwvUZDej0U5WXdp+rGVHyhV3gmflY0tDjbx0=; b=jZYXUGpHM919YeNzyAG6coJpY9ebUvXTHkn7JF86n1QBt1WevtdjhTgyVHt6ycEz3S UE3O8XdHzexvxWlSwCr26gf4lEWaFSg96COTrvLm1zaEaLZd4XdGPv+sGLvZi8Q+TLpo jFYO6lFRqkp4l3eeGax1Pt/X/mwkq59Grq48lUET50vYibSvJVq9HMvEbQmiPlXlcMbB MTquaRiQis7libuo2fNqNZEioQSwJqnYzkK/GQNEPVHtKf2em4uN/kKJ20qy7qS6CTmf BwBD3DgqoYscnVwnkl5z0N0Gkit9t7WZykijyFYYofDhlH1rrP1obRBiTV3Qc8kdj6g0 EIlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686910617; x=1689502617; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5bmFW2FiwvUZDej0U5WXdp+rGVHyhV3gmflY0tDjbx0=; b=YsQH2JtAdZ25K9AypZuN6E//MPAGFXTV6n2/a6u51OnBkq4OR9ByropCYhc26j6Nrq 9kltb3IEyIlbjKTOiuDTkIfWgsChHQaJLETKb3vHh6J9MWeNJuiKRapy5qSAURQJY2KK Yl3TCm1FblorzQc+xB2jUwb7dHvAc3r/GhZ0dc/jBvwEsM33UqVFhieLZXhojvfLm63D BkvvBp4GDSXNnqVW1fIM0zZepbpGOc+EGyBSgFf23EuB/DN4zs4MVYIl/AUH3c5gUcVb FysKoRKCuPul+1K77JE073xqCsUxUuPWe2zQLXjw5klGCWIEXhnMaeawWTW08ZHgXtde HAiA== X-Gm-Message-State: AC+VfDxwYaD1Zh/Jy27D2nu3H6qTW+sj5GlMUSgQ48hTaW1fRvg3qThY 4EKiHVzNtQbr2WDkZH9vuqokj/MpZUTl50Ja3lE= X-Google-Smtp-Source: ACHHUZ55wHGaJ4vpsBAieKE30fDsSHdvgNUq3URtJPsn+f3ViHDx6ZOoTNVbzqrTccBobrID20kwmA== X-Received: by 2002:a17:903:11c3:b0:1b3:696f:b83 with SMTP id q3-20020a17090311c300b001b3696f0b83mr1368055plh.45.1686910617290; Fri, 16 Jun 2023 03:16:57 -0700 (PDT) Return-Path: Received: from kerodi.Dlink ([106.51.184.72]) by smtp.gmail.com with ESMTPSA id h12-20020a170902f54c00b001a1a82fc6d3sm15435565plf.268.2023.06.16.03.16.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Jun 2023 03:16:56 -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 , Heinrich Schuchardt , Dann Frazier Subject: [PATCH v2 0/4] OvmfPkg/RiscVVirt: Separate code and variable storage Date: Fri, 16 Jun 2023 15:46:47 +0530 Message-Id: <20230616101651.1319722-1-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Recent updates to RISC-V qemu virt platform merged today (07/14), have enabled both pflash devices for the S-mode payload like EDK2. These updates also aligned the design similar to other architectures where pflash0 is for read-only code and pflash1 for variable store. Previously only pflash1 was available for S-mode use. Current EDK2 will not work with this latest qemu changes since it always assumed to boot from pflash1. So, separate the code and variable store and use pflash0 to keep the code. Add 'readme' about build and test as per these changes. The changes are available in the branch : https://github.com/vlsunil/edk2/tree/separate_code_vars Cc: Ard Biesheuvel Cc: Jiewen Yao Cc: Jordan Justen Cc: Gerd Hoffmann Cc: Andrei Warkentin Cc: Heinrich Schuchardt Cc: Dann Frazier Changes since v1: 1) Updated readme to add minimum qemu version required. Sunil V L (4): OvmfPkg/RiscVVirt: Fix couple of issues in VarStore OvmfPkg/RiscVVirt: Add VirtNorFlashDeviceTreeLib library OvmfPkg/RiscVVirt: Add support for separate code and variable store OvmfPkg/RiscVVirt: Add a readme for build and test OvmfPkg/RiscVVirt/RiscVVirtQemu.dsc | 2 +- OvmfPkg/RiscVVirt/RiscVVirtQemu.fdf | 16 +- .../VirtNorFlashDeviceTreeLib.inf | 40 +++++ .../VirtNorFlashDeviceTreeLib.c | 137 ++++++++++++++++++ OvmfPkg/RiscVVirt/README.md | 46 ++++++ OvmfPkg/RiscVVirt/RiscVVirt.fdf.inc | 14 +- OvmfPkg/RiscVVirt/VarStore.fdf.inc | 12 +- 7 files changed, 248 insertions(+), 19 deletions(-) create mode 100644 OvmfPkg/RiscVVirt/Library/VirtNorFlashPlatformLib/VirtNorFlashDeviceTreeLib.inf create mode 100644 OvmfPkg/RiscVVirt/Library/VirtNorFlashPlatformLib/VirtNorFlashDeviceTreeLib.c create mode 100644 OvmfPkg/RiscVVirt/README.md -- 2.34.1