xtensa: virt: fix PCI IO ports mapping

This change “xtensa: virt: fix PCI IO ports mapping” (commit 0c401fd) in Linux kernel is authored by Max Filippov <jcmvbkbc [at] gmail.com> on Tue Oct 15 13:52:03 2019 -0700.

Description of "xtensa: virt: fix PCI IO ports mapping"

The change “xtensa: virt: fix PCI IO ports mapping” introduces changes as follows.

xtensa: virt: fix PCI IO ports mapping

virt device tree incorrectly uses 0xf0000000 on both sides of PCI IO
ports address space mapping. This results in incorrect port address
assignment in PCI IO BARs and subsequent crash on attempt to access
them. Use 0 as base address in PCI IO ports address space.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>

Linux kernel releases containing commit 0c401fd

The Linux kernel releases containing this commit are as follows.

Linux kernel code changes from "xtensa: virt: fix PCI IO ports mapping"

There are 2 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 arch/xtensa/boot/dts/virt.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/xtensa/boot/dts/virt.dts b/arch/xtensa/boot/dts/virt.dts
index a9dcd87b6eb1..611b98a02a65 100644
--- a/arch/xtensa/boot/dts/virt.dts
+++ b/arch/xtensa/boot/dts/virt.dts
@@ -56,7 +56,7 @@
 		reg = <0xf0100000 0x03f00000>;
 		     // BUS_ADDRESS(3)  CPU_PHYSICAL(1)  SIZE(2)
-		ranges = <0x01000000 0x0 0xf0000000  0xf0000000  0x0 0x00010000>,
+		ranges = <0x01000000 0x0 0x00000000  0xf0000000  0x0 0x00010000>,
 			 <0x02000000 0x0 0xf4000000  0xf4000000  0x0 0x08000000>;

The commit for this change in Linux stable tree is 0c401fd (patch).

Last modified: 2020/02/08