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.web09.250.1632754894437764690 for ; Mon, 27 Sep 2021 08:01:38 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=djYUHdPb; spf=temperror, err=temporary DNS error (domain: hpe.com, ip: 148.163.147.86, mailfrom: prvs=09042b363a=abner.chang@hpe.com) Received: from pps.filterd (m0134420.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 18REPnrd026152; Mon, 27 Sep 2021 15:01:18 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=5a2OM8FMMi+8QFoJ1iVmHTruxCmmWYdZF3YD9gYHZGk=; b=djYUHdPbpTDY80dwDn5GR+h5cypZqOIjg6eKkF3BJHfb8rY0QUOA9C6yv5h3RrS6HWxG UGUdeYZRbxJvcUlKh7/lRT7qp4G0qEfuIHN3ORCFENbiQjZIOSbqkXhaCUlRKBM0e9fC 7LvpraK7V3JIiOh9F5kd19+Yb5SAA2ZfYcD76uy3PCZkKe+W3TygvedwnkWRR+H3fuHQ fi6caMIAtPnYKhS0AtRCb2+LH6wnmELKI9DBRck2+8huUR+eL+txDxlI1GzNQuxFAYNO ccKIk8DHBQGJQOC5yVAcOB5srv9cYFqcfHMJHL8ZU2pOECrzo2s9EgYqkImI/J/9+RdF IQ== Received: from g4t3427.houston.hpe.com (g4t3427.houston.hpe.com [15.241.140.73]) by mx0b-002e3701.pphosted.com with ESMTP id 3bbfq7g9y4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 27 Sep 2021 15:01:18 +0000 Received: from g4t3433.houston.hpecorp.net (g4t3433.houston.hpecorp.net [16.208.49.245]) by g4t3427.houston.hpe.com (Postfix) with ESMTP id ECA4A7D; Mon, 27 Sep 2021 15:01:09 +0000 (UTC) Received: from abner-virtual-machine.asiapacific.hpqcorp.net (abner-virtual-machine.asiapacific.hpqcorp.net [15.119.210.153]) by g4t3433.houston.hpecorp.net (Postfix) with ESMTP id E04D645; Mon, 27 Sep 2021 15:01:06 +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 0/9] Migrate ArmVirtPkg modules to OvmfPkg Date: Mon, 27 Sep 2021 22:03:42 +0800 Message-Id: <20210927140351.29577-1-abner.chang@hpe.com> X-Mailer: git-send-email 2.17.1 X-Proofpoint-GUID: 69hKvP4C17y2gRGSUdGF_dtLw2aPWo38 X-Proofpoint-ORIG-GUID: 69hKvP4C17y2gRGSUdGF_dtLw2aPWo38 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-27_06,2021-09-24_02,2020-04-07_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 impostorscore=0 suspectscore=0 mlxscore=0 malwarescore=0 bulkscore=0 priorityscore=1501 mlxlogscore=580 adultscore=0 clxscore=1011 spamscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2109230001 definitions=main-2109270103 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 (9): 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 ArmVirtPkg/QemuFwCfgLib: Relocate QemuFwCfgLib to OvmfPkg MdePkg: Add PcdPciMmio32(64)Translation PCDs ArmVirtPkg/FdtPciHostBridgeLib: Relocate FdtPciHostBridgeLib to OvmfPkg/Fdt ArmVirtPkg/VirtioFdtDxe: Relocate VirtioFdtDxe to OvmfPkg/Fdt ArmPkg/ArmPkg.dec | 16 +++++++------- ArmVirtPkg/ArmVirtPkg.dec | 4 +--- EmbeddedPkg/EmbeddedPkg.dec | 2 ++ MdePkg/MdePkg.dec | 12 +++++++++++ ArmVirtPkg/ArmVirtCloudHv.dsc | 19 +++++++++-------- ArmVirtPkg/ArmVirtKvmTool.dsc | 19 +++++++++-------- ArmVirtPkg/ArmVirtQemu.dsc | 21 ++++++++++--------- ArmVirtPkg/ArmVirtQemuKernel.dsc | 21 ++++++++++--------- ArmVirtPkg/ArmVirtXen.dsc | 3 ++- EmbeddedPkg/EmbeddedPkg.dsc | 2 ++ ArmVirtPkg/ArmVirtCloudHv.fdf | 7 ++++--- ArmVirtPkg/ArmVirtKvmTool.fdf | 7 ++++--- ArmVirtPkg/ArmVirtXen.fdf | 3 ++- ArmVirtPkg/ArmVirtQemuFvMain.fdf.inc | 7 ++++--- .../ArmPciCpuIo2Dxe/ArmPciCpuIo2Dxe.inf | 3 ++- .../ArmVirtGicArchLib/ArmVirtGicArchLib.inf | 2 ++ .../ArmVirtPL031FdtClientLib.inf | 2 ++ .../ArmVirtPsciResetSystemLib.inf | 2 ++ .../ArmVirtTimerFdtClientLib.inf | 2 ++ .../KvmtoolRtcFdtClientLib.inf | 2 ++ .../NorFlashKvmtoolLib/NorFlashKvmtoolLib.inf | 3 +++ .../NorFlashQemuLib/NorFlashQemuLib.inf | 2 ++ .../XenAcpiPlatformDxe/XenAcpiPlatformDxe.inf | 2 ++ ArmVirtPkg/XenioFdtDxe/XenioFdtDxe.inf | 2 ++ .../Drivers}/FdtClientDxe/FdtClientDxe.inf | 2 +- .../FdtPciHostBridgeLib.inf | 12 +++++------ .../FdtPciPcdProducerLib.inf | 6 +++--- .../Fdt}/HighMemDxe/HighMemDxe.inf | 5 +++-- .../Fdt}/VirtioFdtDxe/VirtioFdtDxe.inf | 3 ++- .../Library/QemuFwCfgLib/QemuFwCfgLibMMIO.inf | 7 ++++--- .../Include/Protocol/FdtClient.h | 0 .../Drivers}/FdtClientDxe/FdtClientDxe.c | 0 .../FdtPciHostBridgeLib/FdtPciHostBridgeLib.c | 0 .../FdtPciPcdProducerLib.c | 1 + .../Fdt}/HighMemDxe/HighMemDxe.c | 1 + .../Fdt}/VirtioFdtDxe/VirtioFdtDxe.c | 1 + .../Library/QemuFwCfgLib/QemuFwCfgLibMMIO.c | 7 ++++--- Maintainers.txt | 6 ++++++ 38 files changed, 135 insertions(+), 81 deletions(-) rename {ArmVirtPkg => EmbeddedPkg/Drivers}/FdtClientDxe/FdtClientDxe.inf (88%) rename {ArmVirtPkg/Library => OvmfPkg/Fdt}/FdtPciHostBridgeLib/FdtPciHostBridgeLib.inf (73%) rename {ArmVirtPkg/Library => OvmfPkg/Fdt}/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf (83%) rename {ArmVirtPkg => OvmfPkg/Fdt}/HighMemDxe/HighMemDxe.inf (85%) rename {ArmVirtPkg => OvmfPkg/Fdt}/VirtioFdtDxe/VirtioFdtDxe.inf (87%) rename ArmVirtPkg/Library/QemuFwCfgLib/QemuFwCfgLib.inf => OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLibMMIO.inf (81%) 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 (95%) rename {ArmVirtPkg => OvmfPkg/Fdt}/HighMemDxe/HighMemDxe.c (95%) rename {ArmVirtPkg => OvmfPkg/Fdt}/VirtioFdtDxe/VirtioFdtDxe.c (95%) rename ArmVirtPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c => OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLibMMIO.c (93%) -- 2.17.1