From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from spamsz.greatwall.com.cn (spamsz.greatwall.com.cn [58.60.186.99]) by mx.groups.io with SMTP id smtpd.web11.9571.1600162546496175462 for ; Tue, 15 Sep 2020 02:35:47 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: greatwall.com.cn, ip: 58.60.186.99, mailfrom: liuyu@greatwall.com.cn) X-ASG-Debug-ID: 1600162544-0ec5721a8936510001-xsgHyH Received: from greatwall.com.cn (mailsz01.greatwall.com.cn [10.11.120.1]) by spamsz.greatwall.com.cn with ESMTP id vLU8YfZBojIk5UxI for ; Tue, 15 Sep 2020 17:35:44 +0800 (CST) X-Barracuda-Envelope-From: liuyu@greatwall.com.cn Received: from liuyu.greatwall.com.cn (unknown [10.11.15.27]) by mailsz.greatwall.com.cn (Coremail) with SMTP id AXgLCgC3v3+uimBfeyQBAA--.1153S4; Tue, 15 Sep 2020 17:34:43 +0800 (CST) From: "Yu Liu" To: ard.biesheuvel@arm.com, leif@nuviainc.com Cc: devel@edk2.groups.io, LiuYu Subject: [edk2-devel][PATCH] ArmPkg/ArmPciCpuIo2Dxe: Correct pci io memmap address Date: Tue, 15 Sep 2020 17:35:35 +0800 X-ASG-Orig-Subj: [edk2-devel][PATCH] ArmPkg/ArmPciCpuIo2Dxe: Correct pci io memmap address Message-Id: X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CM-TRANSID: AXgLCgC3v3+uimBfeyQBAA--.1153S4 X-Coremail-Antispam: 1UD129KBjvdXoW7Gr43tF43Kr17ZF1xXF1xAFb_yoWfArg_Ar s8AwnFqr1qk3W3CF1fJw17ArWUA3yDXrWUXF1jya43Jw48ur4IgryF9a1qgF18Ga1kCFyj v34qkrWjvwn2gjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbzxFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8w A2z4x0Y4vE2Ix0cI8IcVAFwI0_tr0E3s1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Cr1j 6rxdM28EF7xvwVC2z280aVAFwI0_GcCE3s1l84ACjcxK6I8E87Iv6xkF7I0E14v26rxl6s 0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xII jxv20xvE14v26r106r15McIj6I8E87Iv67AKxVW8JVWxJwAm72CE4IkC6x0Yz7v_Jr0_Gr 1lF7xvr2IYc2Ij64vIr41lF7I21c0EjII2zVCS5cI20VAGYxC7MxAIw28IcxkI7VAKI48J MxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwV AFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUAVWUtwCIc40Y0x0EwIxGrwCI42IY6xIIjxv2 0xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwCI42IY6xAIw20EY4 v20xvaj40_Wr1j6rW3Jr1lIxAIcVC2z280aVAFwI0_Gr0_Cr1lIxAIcVC2z280aVCY1x02 67AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7VUbnmRUUUUUU== X-CM-SenderInfo: 5olx5346juvthwzdzzoofrzhdfq/ X-Barracuda-Connect: mailsz01.greatwall.com.cn[10.11.120.1] X-Barracuda-Start-Time: 1600162544 X-Barracuda-URL: https://spamfw.greatwall.com.cn:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at greatwall.com.cn X-Barracuda-Scan-Msg-Size: 909 X-Barracuda-BRTS-Status: 1 X-Barracuda-Bayes: INNOCENT GLOBAL 0.5763 1.0000 0.7500 X-Barracuda-Spam-Score: 0.75 X-Barracuda-Spam-Status: No, SCORE=0.75 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=9.0 tests=BSF_SC0_MISMATCH_TO X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.84641 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.00 BSF_SC0_MISMATCH_TO Envelope rcpt doesn't match header Content-Transfer-Encoding: quoted-printable Since the device addresss has been translated in PciRootBridgeIo.c so shuldn't translate it twice in ArmPciCpuIo2Dxe.c Signed-off-by: LiuYu --- ArmPkg/Drivers/ArmPciCpuIo2Dxe/ArmPciCpuIo2Dxe.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/ArmPkg/Drivers/ArmPciCpuIo2Dxe/ArmPciCpuIo2Dxe.c b/ArmPkg/Dr= ivers/ArmPciCpuIo2Dxe/ArmPciCpuIo2Dxe.c index d8625e1593..8c46a2778b 100644 --- a/ArmPkg/Drivers/ArmPciCpuIo2Dxe/ArmPciCpuIo2Dxe.c +++ b/ArmPkg/Drivers/ArmPciCpuIo2Dxe/ArmPciCpuIo2Dxe.c @@ -399,7 +399,6 @@ CpuIoServiceRead ( return Status; } =20 - Address +=3D PcdGet64 (PcdPciIoTranslation); =20 // // Select loop based on the width of the transfer @@ -485,7 +484,6 @@ CpuIoServiceWrite ( return Status; } =20 - Address +=3D PcdGet64 (PcdPciIoTranslation); =20 // // Select loop based on the width of the transfer --=20 2.20.1