From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 8CAB394222B for ; Tue, 22 Apr 2025 13:56:11 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=iJmeyE2KJIwkn0Dw7HCx7sNdTPLfavLzNbcLysSgpt0=; c=relaxed/simple; d=groups.io; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:To:Cc:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type; s=20240830; t=1745330171; v=1; x=1745589370; b=d7KAJxXgCycVlo7B8VgtnK3wFxHb0SQ1ALYcEZXu603G72IGEJNKK7JvAKx6Am3DDAgnoxK6 Jh66pS7JhDDNZjZtVmf1C0xrpFHO+bCGOppRySrYNYeAjj3vUfKCCguWUMWjEUrP+0r2zlPqv8F +bHuOxADirv8pW5KIGQnt7/I1u5I+gMTJnsgIEiXqE7R5AWFvXRuvx5TBmKh0HPkMakyigNZO71 7txS+zC2fQYpmFDwR1kAnH+ly3RzyqFtBy9E62sigV7cURo1MQaMwGEJ9JZw/86buUqu3f+FAD9 Yan6fl3u+6Nb1fMaX7EsqHay/OEwoG3HAmDh13hqzQYtw== X-Received: by 127.0.0.2 with SMTP id pcWqYY7687511xiLcaEkjr4M; Tue, 22 Apr 2025 06:56:10 -0700 X-Received: from mail-ua1-f43.google.com (mail-ua1-f43.google.com [209.85.222.43]) by mx.groups.io with SMTP id smtpd.web11.40518.1745330169325191792 for ; Tue, 22 Apr 2025 06:56:09 -0700 X-Received: by mail-ua1-f43.google.com with SMTP id a1e0cc1a2514c-86fab198f8eso1986201241.1 for ; Tue, 22 Apr 2025 06:56:09 -0700 (PDT) X-Gm-Message-State: fOPLKGjM3IwK8iaAtqOlhAtlx7686176AA= X-Gm-Gg: ASbGncubSJQa6nTle+GDwAUiwT4VYqSj3xEQvJhX15nKBL8p56fvySTdKkQFfLG9t47 UUscxOiqAdgQwQf/QJILuwq2OnHAo+4Dh5QoRuzRr+/TuPPGqVojU3of85R3z4g6chl+McPyj8y L9pZ50D2TBOOpIJI0q6m+JE2s= X-Google-Smtp-Source: AGHT+IF0UFBMLHspe+YmXDigjG8uoNR981mgsYBSdOgdEir7lU40Gt7jX9qXuY/p6V0WVjevT4SSUyLCf4dhURCLvVc= X-Received: by 2002:a05:6102:458d:b0:4c1:abaa:ad93 with SMTP id ada2fe7eead31-4cb8013123dmr8130585137.14.1745330168228; Tue, 22 Apr 2025 06:56:08 -0700 (PDT) MIME-Version: 1.0 References: <20250421165819.18451-1-tphan@ventanamicro.com> In-Reply-To: From: "Tuan Phan" Date: Tue, 22 Apr 2025 06:55:57 -0700 X-Gm-Features: ATxdqUH3dYxInTtrog6vH7iPtFcM-zNdBkjad4JQnn-EtjSHL2BfU-apV14S7NA Message-ID: Subject: Re: [edk2-devel] [PATCH 0/3] OvmfPkg/RiscVVirt: Add support for Capsule Firmware Upgrade To: Sami Mujawar Cc: "devel@edk2.groups.io" , "andyw@imsa.edu" , "maobibo@loongson.cn" , "lichao@loongson.cn" , "kraxel@redhat.com" , "jiewen.yao@intel.com" , "leif.lindholm@oss.qualcomm.com" , "sunilvl@ventanamicro.com" , "ardb+tianocore@kernel.org" , "lixianglai@loongson.cn" Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Tue, 22 Apr 2025 06:56:09 -0700 Resent-From: tphan@ventanamicro.com Reply-To: devel@edk2.groups.io,tphan@ventanamicro.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Type: multipart/alternative; boundary="000000000000b184b006335e582c" X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240830 header.b=d7KAJxXg; dmarc=none; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io --000000000000b184b006335e582c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Sami, Yes, it's already on Github. You can find it here: https://github.com/tianocore/edk2/pull/10975 Thanks, Tuan On Tue, Apr 22, 2025 at 2:02=E2=80=AFAM Sami Mujawar = wrote: > Hi Tuan, > > > > EDK2 has moved to a Github Pull Request model for code reviews and merge. > > Is there a PR for this patch series? If not, can you create a PR, please? > > > > Regards, > > > > Sami Mujawar > > > > *From: *Tuan Phan > *Date: *Monday, 21 April 2025 at 17:58 > *To: *devel@edk2.groups.io > *Cc: *andyw@imsa.edu , maobibo@loongson.cn < > maobibo@loongson.cn>, lichao@loongson.cn , > kraxel@redhat.com , jiewen.yao@intel.com < > jiewen.yao@intel.com>, leif.lindholm@oss.qualcomm.com < > leif.lindholm@oss.qualcomm.com>, Sami Mujawar , > sunilvl@ventanamicro.com , > ardb+tianocore@kernel.org , > lixianglai@loongson.cn , Tuan Phan < > tphan@ventanamicro.com> > *Subject: *[PATCH 0/3] OvmfPkg/RiscVVirt: Add support for Capsule > Firmware Upgrade > > This patch series introduces capsule-based firmware upgrade support > for the RISC-V Virt platform. > > Changes: > - Moved low level NOR flash functions to a seperate library. > - Implemented capsule firmware upgrade support. > > Tuan Phan (3): > OvmfPkg/VirtNorFlash: Move low level NOR flash functions into library > ArmVirtPkg: Link all targets to the new VirtNorFlashDeviceLib > OvmfPkg/RiscVVirt: Add support for Capsule Firmware Upgrade > > ArmVirtPkg/ArmVirtKvmTool.dsc | 1 + > ArmVirtPkg/ArmVirtQemu.dsc | 1 + > ArmVirtPkg/ArmVirtQemuKernel.dsc | 1 + > .../Include/Library/VirtNorFlashDeviceLib.h | 201 +++++ > .../VirtNorFlashDeviceLib.c} | 411 ++++++---- > .../VirtNorFlashDeviceLib.inf | 30 + > OvmfPkg/LoongArchVirt/LoongArchVirtQemu.dsc | 5 +- > OvmfPkg/OvmfPkg.ci.yaml | 3 +- > OvmfPkg/OvmfPkg.dec | 4 + > .../Capsule/GenerateCapsule/GenCapsule.py | 332 ++++++++ > .../CapsuleUpdatePolicyLib.c | 121 +++ > .../CapsuleUpdatePolicyLib.inf | 29 + > .../CapsuleUpdatePolicyLib.uni | 12 + > .../Library/FmpDeviceLib/FmpDeviceLib.c | 774 ++++++++++++++++++ > .../Library/FmpDeviceLib/FmpDeviceLib.inf | 46 ++ > .../PlatformFlashAccessLib.c | 236 ++++++ > .../PlatformFlashAccessLib.h | 95 +++ > .../PlatformFlashAccessLib.inf | 34 + > OvmfPkg/RiscVVirt/RiscVVirtQemu.dsc | 44 +- > OvmfPkg/RiscVVirt/RiscVVirtQemu.fdf | 5 + > OvmfPkg/RiscVVirt/RiscVVirtSystemFW.dsc.inc | 61 ++ > OvmfPkg/VirtNorFlashDxe/VirtNorFlash.h | 345 -------- > OvmfPkg/VirtNorFlashDxe/VirtNorFlashDxe.c | 180 +--- > OvmfPkg/VirtNorFlashDxe/VirtNorFlashDxe.h | 156 ++++ > OvmfPkg/VirtNorFlashDxe/VirtNorFlashDxe.inf | 3 +- > OvmfPkg/VirtNorFlashDxe/VirtNorFlashFvb.c | 53 +- > 26 files changed, 2538 insertions(+), 645 deletions(-) > create mode 100644 OvmfPkg/Include/Library/VirtNorFlashDeviceLib.h > rename OvmfPkg/{VirtNorFlashDxe/VirtNorFlash.c =3D> > Library/VirtNorFlashDeviceLib/VirtNorFlashDeviceLib.c} (63%) > create mode 100644 > OvmfPkg/Library/VirtNorFlashDeviceLib/VirtNorFlashDeviceLib.inf > create mode 100644 > OvmfPkg/RiscVVirt/Feature/Capsule/GenerateCapsule/GenCapsule.py > create mode 100644 > OvmfPkg/RiscVVirt/Feature/Capsule/Library/CapsuleUpdatePolicyLib/CapsuleU= pdatePolicyLib.c > create mode 100644 > OvmfPkg/RiscVVirt/Feature/Capsule/Library/CapsuleUpdatePolicyLib/CapsuleU= pdatePolicyLib.inf > create mode 100644 > OvmfPkg/RiscVVirt/Feature/Capsule/Library/CapsuleUpdatePolicyLib/CapsuleU= pdatePolicyLib.uni > create mode 100644 > OvmfPkg/RiscVVirt/Feature/Capsule/Library/FmpDeviceLib/FmpDeviceLib.c > create mode 100644 > OvmfPkg/RiscVVirt/Feature/Capsule/Library/FmpDeviceLib/FmpDeviceLib.inf > create mode 100644 > OvmfPkg/RiscVVirt/Feature/Capsule/Library/PlatformFlashAccessLib/Platform= FlashAccessLib.c > create mode 100644 > OvmfPkg/RiscVVirt/Feature/Capsule/Library/PlatformFlashAccessLib/Platform= FlashAccessLib.h > create mode 100644 > OvmfPkg/RiscVVirt/Feature/Capsule/Library/PlatformFlashAccessLib/Platform= FlashAccessLib.inf > create mode 100644 OvmfPkg/RiscVVirt/RiscVVirtSystemFW.dsc.inc > delete mode 100644 OvmfPkg/VirtNorFlashDxe/VirtNorFlash.h > create mode 100644 OvmfPkg/VirtNorFlashDxe/VirtNorFlashDxe.h > > -- > 2.34.1 > IMPORTANT NOTICE: The contents of this email and any attachments are > confidential and may also be privileged. If you are not the intended > recipient, please notify the sender immediately and do not disclose the > contents to any other person, use it for any purpose, or store or copy th= e > information in any medium. Thank you. > -=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 (#121282): https://edk2.groups.io/g/devel/message/121282 Mute This Topic: https://groups.io/mt/112379037/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- --000000000000b184b006335e582c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Sami,

Yes, it's already on Github. You can = find it here:=C2=A0

Thanks,=
Tuan

On Tue, Apr 22, 2025 at 2:02=E2=80= =AFAM Sami Mujawar <Sami.Mujawar= @arm.com> wrote:

Hi Tuan,<= /u>

=C2=A0

EDK2 has moved to a= Github Pull Request model for code reviews and merge.=

Is there a PR for t= his patch series? If not, can you create a PR, please?=

=C2=A0

Regards,<= /u>

=C2=A0

Sami Mujawar=

=C2=A0

This patch series introduces capsule-based firmware upgrade sup= port
for the RISC-V Virt platform.

Changes:
- Moved low level NOR flash functions to a seperate library.
- Implemented capsule firmware upgrade support.

Tuan Phan (3):
=C2=A0 OvmfPkg/VirtNorFlash: Move low level NOR flash functions into librar= y
=C2=A0 ArmVirtPkg: Link all targets to the new VirtNorFlashDeviceLib
=C2=A0 OvmfPkg/RiscVVirt: Add support for Capsule Firmware Upgrade

=C2=A0ArmVirtPkg/ArmVirtKvmTool.dsc=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0 1 +=
=C2=A0ArmVirtPkg/ArmVirtQemu.dsc=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |= =C2=A0=C2=A0 1 +
=C2=A0ArmVirtPkg/ArmVirtQemuKernel.dsc=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0 1 +
=C2=A0.../Include/Library/VirtNorFlashDeviceLib.h=C2=A0=C2=A0 | 201 +++++ =C2=A0.../VirtNorFlashDeviceLib.c}=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | 411 +++++= +----
=C2=A0.../VirtNorFlashDeviceLib.inf=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0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C2=A0=C2=A0= =C2=A0 | 774 ++++++++++++++++++
=C2=A0.../Library/FmpDeviceLib/FmpDeviceLib.inf=C2=A0=C2=A0=C2=A0=C2=A0 |= =C2=A0 46 ++
=C2=A0.../PlatformFlashAccessLib.c=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | 236 +++++= +
=C2=A0.../PlatformFlashAccessLib.h=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0 95 = +++
=C2=A0.../PlatformFlashAccessLib.inf=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0 34 +
=C2=A0OvmfPkg/RiscVVirt/RiscVVirtQemu.dsc=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0 44 +-
=C2=A0OvmfPkg/RiscVVirt/RiscVVirtQemu.fdf=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0 5 +
=C2=A0OvmfPkg/RiscVVirt/RiscVVirtSystemFW.dsc.inc=C2=A0=C2=A0 |=C2=A0 61 ++=
=C2=A0OvmfPkg/VirtNorFlashDxe/VirtNorFlash.h=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 | 345 --------
=C2=A0OvmfPkg/VirtNorFlashDxe/VirtNorFlashDxe.c=C2=A0=C2=A0=C2=A0=C2=A0 | 1= 80 +---
=C2=A0OvmfPkg/VirtNorFlashDxe/VirtNorFlashDxe.h=C2=A0=C2=A0=C2=A0=C2=A0 | 1= 56 ++++
=C2=A0OvmfPkg/VirtNorFlashDxe/VirtNorFlashDxe.inf=C2=A0=C2=A0 |=C2=A0=C2=A0= 3 +-
=C2=A0OvmfPkg/VirtNorFlashDxe/VirtNorFlashFvb.c=C2=A0=C2=A0=C2=A0=C2=A0 |= =C2=A0 53 +-
=C2=A026 files changed, 2538 insertions(+), 645 deletions(-)
=C2=A0create mode 100644 OvmfPkg/Include/Library/VirtNorFlashDeviceLib.h =C2=A0rename OvmfPkg/{VirtNorFlashDxe/VirtNorFlash.c =3D> Library/VirtNo= rFlashDeviceLib/VirtNorFlashDeviceLib.c} (63%)
=C2=A0create mode 100644 OvmfPkg/Library/VirtNorFlashDeviceLib/VirtNorFlash= DeviceLib.inf
=C2=A0create mode 100644 OvmfPkg/RiscVVirt/Feature/Capsule/GenerateCapsule/= GenCapsule.py
=C2=A0create mode 100644 OvmfPkg/RiscVVirt/Feature/Capsule/Library/CapsuleU= pdatePolicyLib/CapsuleUpdatePolicyLib.c
=C2=A0create mode 100644 OvmfPkg/RiscVVirt/Feature/Capsule/Library/CapsuleU= pdatePolicyLib/CapsuleUpdatePolicyLib.inf
=C2=A0create mode 100644 OvmfPkg/RiscVVirt/Feature/Capsule/Library/CapsuleU= pdatePolicyLib/CapsuleUpdatePolicyLib.uni
=C2=A0create mode 100644 OvmfPkg/RiscVVirt/Feature/Capsule/Library/FmpDevic= eLib/FmpDeviceLib.c
=C2=A0create mode 100644 OvmfPkg/RiscVVirt/Feature/Capsule/Library/FmpDevic= eLib/FmpDeviceLib.inf
=C2=A0create mode 100644 OvmfPkg/RiscVVirt/Feature/Capsule/Library/Platform= FlashAccessLib/PlatformFlashAccessLib.c
=C2=A0create mode 100644 OvmfPkg/RiscVVirt/Feature/Capsule/Library/Platform= FlashAccessLib/PlatformFlashAccessLib.h
=C2=A0create mode 100644 OvmfPkg/RiscVVirt/Feature/Capsule/Library/Platform= FlashAccessLib/PlatformFlashAccessLib.inf
=C2=A0create mode 100644 OvmfPkg/RiscVVirt/RiscVVirtSystemFW.dsc.inc
=C2=A0delete mode 100644 OvmfPkg/VirtNorFlashDxe/VirtNorFlash.h
=C2=A0create mode 100644 OvmfPkg/VirtNorFlashDxe/VirtNorFlashDxe.h

--
2.34.1

IMPORTANT NOTICE: The contents of this email and any attachments are confid= ential and may also be privileged. If you are not the intended recipient, p= lease notify the sender immediately and do not disclose the contents to any= other person, use it for any purpose, or store or copy the information in any medium. Thank you.
_._,_._,_

Groups.io Links:

=20 You receive all messages sent to this group. =20 =20

View/Reply Online (#121282) | =20 | Mute= This Topic | New Topic
Your Subscriptio= n | Contact Group Owner | Unsubscribe [rebecca@openfw.io]

_._,_._,_
--000000000000b184b006335e582c--