]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use the correct address when creating pci resources
authorandrew <andrew@FreeBSD.org>
Fri, 19 Jun 2020 18:00:20 +0000 (18:00 +0000)
committerandrew <andrew@FreeBSD.org>
Fri, 19 Jun 2020 18:00:20 +0000 (18:00 +0000)
commita60d908ac747a14e393c56844d8e5a8a4d17d2bf
tree39d4061fec545a603309300fac51aaa7b6a17ef8
parent2dfcc5f9216526c689b1d68c3409f2fbc1b25d55
Use the correct address when creating pci resources

When the PCI and CPU physical addresses are identical it doesn't matter
which is used to create the resources, however on some systems, e.g.
qemu armv7 virt, they are different. This leads to a panic as we try to
map the wrong physical address into the kernel address space.

Reported by: Jenkins via trasz
Sponsored by: Innovate UK
sys/dev/pci/pci_host_generic.c