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.8320.1643475943451770391 for ; Sat, 29 Jan 2022 09:05:43 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=pI3X/Wy8; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: hpe.com, ip: 148.163.147.86, mailfrom: prvs=0028bfb66c=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 ESMTP id 20TEu6AM014778; Sat, 29 Jan 2022 17:05:39 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=pps0720; bh=r9QAbFPlzk22ckCYNlXyLBEgtiekw7SJ7GuoDlzlN78=; b=pI3X/Wy8z76hLIL0BHnTXo33E/jdf7btbH/ti3THtOmOxeKNoeAs5iYNP0lSIBkXzZaq ZSJxBndxeQ8Fb4DZyB04s6Sds0shpjLXJq+VgeRDD7z2AlR6PM7133En5X0DPU39/SgJ kjZ5370perJz5h0O/qhDgXN+ZQ4E5jyLZi6jNJMRNRudRdZHBEfhJDX6K5cjx108Oiay qfBNBIhk6jFGyBBwyubjL5u/0jkIqHw4LOspiGqhumHn+vZOSiTTK+wIrRJpM1zgISr+ kYedTnBSvY63AmKhm+VP4/g/cZwDPglc38f/DcHGU36zwu6xTRFP8ulzYgSai+3SgIix zA== Received: from g4t3425.houston.hpe.com (g4t3425.houston.hpe.com [15.241.140.78]) by mx0b-002e3701.pphosted.com (PPS) with ESMTPS id 3dvty63nvy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 29 Jan 2022 17:05:39 +0000 Received: from g9t2301.houston.hpecorp.net (g9t2301.houston.hpecorp.net [16.220.97.129]) by g4t3425.houston.hpe.com (Postfix) with ESMTP id 700FE9A; Sat, 29 Jan 2022 17:05:38 +0000 (UTC) Received: from UB16Abner.asiapacific.hpqcorp.net (ub16abner.asiapacific.hpqcorp.net [15.119.209.229]) by g9t2301.houston.hpecorp.net (Postfix) with ESMTP id 1D8534A; Sat, 29 Jan 2022 17:05:35 +0000 (UTC) From: "Abner Chang" To: devel@edk2.groups.io Cc: abner.chang@hpe.com, Daniel Schaefer , Sunil V L , Ard Biesheuvel , Jiewen Yao , Jordan Justen , Gerd Hoffmann , Leif Lindholm , Sami Mujawar Subject: [PATCH v2 0/2] Migrate BaseCachingPciExpressLib Date: Sun, 30 Jan 2022 00:03:46 +0800 Message-Id: <20220129160348.3247-1-abner.chang@hpe.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: Cz3PmYzPr4gYdxtsEjDSH2N8Hn_VB8Tt X-Proofpoint-GUID: Cz3PmYzPr4gYdxtsEjDSH2N8Hn_VB8Tt X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-01-29_09,2022-01-28_01,2021-12-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 bulkscore=0 mlxlogscore=319 mlxscore=0 lowpriorityscore=0 impostorscore=0 adultscore=0 priorityscore=1501 phishscore=0 malwarescore=0 suspectscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2201290110 Content-Transfer-Encoding: 8bit Move BaseCachingPciExpressLib library from ArmVirtPkg to under OvmfPkg. RISC-V Virt platform can leverage the same library to access PCI Express registers through PCI Express base address set in PcdPciExpressBaseAddress and cached in a global variable. In V2: One patch for movement and ArmVirtPkg DSC file changes. The patch [2/2] updates BaseCachingPciExpressLib.inf. Remove the dependency with ArmVirtPkg. Signed-off-by: Abner Chang Cc: Daniel Schaefer Cc: Sunil V L Cc: Ard Biesheuvel Cc: Jiewen Yao Cc: Jordan Justen Cc: Gerd Hoffmann Cc: Leif Lindholm Cc: Sami Mujawar Abner Chang (2): OvmfPkg/BaseCachingPciExpressLib: Migrate BaseCachingPciExpressLib OvmfPkg/BaseCachingPciExpressLib: Update BaseCachingPciExpressLib.inf ArmVirtPkg/ArmVirt.dsc.inc | 2 +- ArmVirtPkg/ArmVirtKvmTool.dsc | 6 +++--- .../BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf | 4 ++-- .../Library/BaseCachingPciExpressLib/PciExpressLib.c | 0 4 files changed, 6 insertions(+), 6 deletions(-) rename {ArmVirtPkg => OvmfPkg}/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf (89%) rename {ArmVirtPkg => OvmfPkg}/Library/BaseCachingPciExpressLib/PciExpressLib.c (100%) -- 2.31.1