From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by mx.groups.io with SMTP id smtpd.web11.6550.1632966214936302183 for ; Wed, 29 Sep 2021 18:43:36 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=TJCh6Srb; spf=temperror, err=temporary DNS error (domain: hpe.com, ip: 148.163.147.86, mailfrom: prvs=0907617d9a=abner.chang@hpe.com) Received: from pps.filterd (m0134422.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 18TKKTbH011979; Thu, 30 Sep 2021 01:43:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id; s=pps0720; bh=byESa78tOCf72BbpkAiTpqZwipcJIz5hPyUnApiSwnw=; b=TJCh6SrbvEv89Qvk1Q6+aqifeOM4yo2AvI8aJX4mHmGkeDzu96EWxpaIIbLSoO4U5zUG ae7lItA53Gtkah0ceeRt3WIP5mO4a0xpUgygoHnnF8kZBkGf9pJKSOpCyLPTcMYmzjBJ EizXAzyTmlldXS1g9C/aMDG+8Yyb8+914G9V/j8dKaHkiXxpzk5+sn9kblKsNb3w/v4w XnhryD7U6vObjDrMcSBklketALLYh1GHDw2POu4R71sZm7UKQKGp8GNS+KKkeq+wTc21 GqHvCtIlQfrBQodPXIUsDXZ2nLBaHMm9BqXOmHh5rzjwhAbD2VHh55MDXCtIuD8T0HIr 9g== Received: from g2t2353.austin.hpe.com (g2t2353.austin.hpe.com [15.233.44.26]) by mx0b-002e3701.pphosted.com with ESMTP id 3bcmfgywh7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 30 Sep 2021 01:43:13 +0000 Received: from g2t2360.austin.hpecorp.net (g2t2360.austin.hpecorp.net [16.196.225.135]) by g2t2353.austin.hpe.com (Postfix) with ESMTP id 5370184; Thu, 30 Sep 2021 01:43:12 +0000 (UTC) Received: from abner-virtual-machine.asiapacific.hpqcorp.net (abner-virtual-machine.asiapacific.hpqcorp.net [15.119.210.153]) by g2t2360.austin.hpecorp.net (Postfix) with ESMTP id 7890936; Thu, 30 Sep 2021 01:43:09 +0000 (UTC) From: "Abner Chang" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Leif Lindholm , Sami Mujawar , Jiewen Yao , Jordan Justen , Gerd Hoffmann , Daniel Schaefer , Sunil V L , Liming Gao , Zhiguang Liu , Michael D Kinney Subject: [PATCH V3 00/12] Migrate ArmVirtPkg modules to OvmfPkg Date: Thu, 30 Sep 2021 08:45:36 +0800 Message-Id: <20210930004548.3033-1-abner.chang@hpe.com> X-Mailer: git-send-email 2.17.1 X-Proofpoint-ORIG-GUID: Np1-sXm5I-KyXqo23Qo1e598L-M7pc-9 X-Proofpoint-GUID: Np1-sXm5I-KyXqo23Qo1e598L-M7pc-9 X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.391,FMLib:17.0.607.475 definitions=2021-09-29_09,2021-09-29_01,2020-04-07_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 malwarescore=0 lowpriorityscore=0 suspectscore=0 adultscore=0 spamscore=0 clxscore=1015 priorityscore=1501 bulkscore=0 phishscore=0 mlxscore=0 mlxlogscore=663 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2109230001 definitions=main-2109300007 In V3: Address comments on V2. In V2: Remove HPE license on the files that just moved around or the changes in the file are just code removal. edk2 BZ #: 3665 edk2 platform corresponding changes will be submitted after this pactch set is reviewed. This pacthes set is to migrate some modules from ArmVirtPkg to under OvmfPkg for the upcoming RiscVVirtPkg that can leverage those modules without the dependency with Arm*Pkg. The modules moved from ArmVirtPkg to OvmfPkg are, - FdtClientDxe - PciPcdProducerLib - HighMemDxe - QemuFwCfgLib - FdtPciHostBridgeLib - VirtioFdtDxe Below PCDs are moved to under MdePkg and leverage by RiscVVirtPkg. This change also remove the dependency on ArmPkg of OvmfPkg. - PcdPciIoTranslation - PcdPciIoTranslation - PcdPciMmio32(64)Translation Signed-off-by: Abner Chang Cc: Ard Biesheuvel Cc: Leif Lindholm Cc: Sami Mujawar Cc: Jiewen Yao Cc: Jordan Justen Cc: Gerd Hoffmann Cc: Daniel Schaefer Cc: Sunil V L Cc: Liming Gao Cc: Zhiguang Liu Cc: Michael D Kinney Abner Chang (12): ArmVirtPkg/FdtClintDxe: Move FdtClientDxe to EmbeddedPkg MdePkg: Add PcdPciIoTranslation PCD ArmPkg: Use PcdPciIoTranslation PCD from MdePkg ArmVirtPkg/FdtPciPcdProducerLib: Relocate PciPcdProducerLib to OvmfPkg ArmVirtPkg/HighMemDxe: Relocate HighMemDxe to OvmfPkg OvmfPkg/HighMemDxe: Add RISC-V in the supported arch. ArmVirtPkg/QemuFwCfgLib: Relocate QemuFwCfgLib to OvmfPkg OvmfPkg/QemuFwCfgLibMMIO: Add RISC-V arch support MdePkg: Add PcdPciMmio32(64)Translation PCDs ArmVirtPkg/FdtPciHostBridgeLib: Relocate FdtPciHostBridgeLib to OvmfPkg/Fdt OvmfPkg/FdtPciHostBridgeLib: Add RISC-V in the supported arch. ArmVirtPkg/VirtioFdtDxe: Relocate VirtioFdtDxe to OvmfPkg/Fdt ArmPkg/ArmPkg.dec | 15 ++++++-------- ArmVirtPkg/ArmVirtPkg.dec | 3 --- EmbeddedPkg/EmbeddedPkg.dec | 1 + MdePkg/MdePkg.dec | 12 +++++++++++ ArmVirtPkg/ArmVirtCloudHv.dsc | 18 ++++++++--------- ArmVirtPkg/ArmVirtKvmTool.dsc | 18 ++++++++--------- ArmVirtPkg/ArmVirtQemu.dsc | 20 +++++++++---------- ArmVirtPkg/ArmVirtQemuKernel.dsc | 20 +++++++++---------- ArmVirtPkg/ArmVirtXen.dsc | 2 +- EmbeddedPkg/EmbeddedPkg.dsc | 1 + ArmVirtPkg/ArmVirtCloudHv.fdf | 6 +++--- ArmVirtPkg/ArmVirtKvmTool.fdf | 6 +++--- ArmVirtPkg/ArmVirtXen.fdf | 2 +- ArmVirtPkg/ArmVirtQemuFvMain.fdf.inc | 6 +++--- .../ArmPciCpuIo2Dxe/ArmPciCpuIo2Dxe.inf | 2 +- .../ArmVirtGicArchLib/ArmVirtGicArchLib.inf | 1 + .../ArmVirtPL031FdtClientLib.inf | 1 + .../ArmVirtPsciResetSystemLib.inf | 1 + .../ArmVirtTimerFdtClientLib.inf | 1 + .../KvmtoolRtcFdtClientLib.inf | 1 + .../NorFlashKvmtoolLib/NorFlashKvmtoolLib.inf | 1 + .../NorFlashQemuLib/NorFlashQemuLib.inf | 1 + .../XenAcpiPlatformDxe/XenAcpiPlatformDxe.inf | 1 + ArmVirtPkg/XenioFdtDxe/XenioFdtDxe.inf | 1 + .../Drivers}/FdtClientDxe/FdtClientDxe.inf | 1 - .../FdtPciHostBridgeLib.inf | 11 +++++----- .../FdtPciPcdProducerLib.inf | 5 ++--- .../Fdt}/HighMemDxe/HighMemDxe.inf | 7 ++++--- .../Fdt}/VirtioFdtDxe/VirtioFdtDxe.inf | 2 +- .../Library/QemuFwCfgLib/QemuFwCfgLibMmio.inf | 6 +++--- .../Include/Protocol/FdtClient.h | 0 .../Drivers}/FdtClientDxe/FdtClientDxe.c | 0 .../FdtPciHostBridgeLib/FdtPciHostBridgeLib.c | 0 .../FdtPciPcdProducerLib.c | 0 .../Fdt}/HighMemDxe/HighMemDxe.c | 3 ++- .../Fdt}/VirtioFdtDxe/VirtioFdtDxe.c | 0 .../Library/QemuFwCfgLib/QemuFwCfgLibMmio.c | 7 ++++--- Maintainers.txt | 6 ++++++ 38 files changed, 106 insertions(+), 83 deletions(-) rename {ArmVirtPkg => EmbeddedPkg/Drivers}/FdtClientDxe/FdtClientDxe.inf (92%) rename {ArmVirtPkg/Library => OvmfPkg/Fdt}/FdtPciHostBridgeLib/FdtPciHostBridgeLib.inf (77%) rename {ArmVirtPkg/Library => OvmfPkg/Fdt}/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf (87%) rename {ArmVirtPkg => OvmfPkg/Fdt}/HighMemDxe/HighMemDxe.inf (83%) rename {ArmVirtPkg => OvmfPkg/Fdt}/VirtioFdtDxe/VirtioFdtDxe.inf (92%) rename ArmVirtPkg/Library/QemuFwCfgLib/QemuFwCfgLib.inf => OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLibMmio.inf (86%) rename {ArmVirtPkg => EmbeddedPkg}/Include/Protocol/FdtClient.h (100%) rename {ArmVirtPkg => EmbeddedPkg/Drivers}/FdtClientDxe/FdtClientDxe.c (100%) rename {ArmVirtPkg/Library => OvmfPkg/Fdt}/FdtPciHostBridgeLib/FdtPciHostBridgeLib.c (100%) rename {ArmVirtPkg/Library => OvmfPkg/Fdt}/FdtPciPcdProducerLib/FdtPciPcdProducerLib.c (100%) rename {ArmVirtPkg => OvmfPkg/Fdt}/HighMemDxe/HighMemDxe.c (95%) rename {ArmVirtPkg => OvmfPkg/Fdt}/VirtioFdtDxe/VirtioFdtDxe.c (100%) rename ArmVirtPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c => OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLibMmio.c (93%) -- 2.17.1