On Thu, Jun 9, 2022 at 3:01 AM Bertrand Marquis <Bertrand.Marquis@...> wrote:
Hi Michal,
On 9 Jun 2022, at 10:57, Michal Orzel via lists.yoctoproject.org <michal.orzel=arm.com@...> wrote:
This reverts commit fb0a7b97db4f419b82309f98a4944ae3330d1e2e.
Justification: Commit fb0a7b97db4f removed the PCI node from the qemu device tree due to the issue when trying to access PCI configuration space that was causing Linux running on top of Xen to end up in an infinite loop. The investigation showed that the problem occurs due to qemu placing ECAM space at 256GiB mark. Even though Xen officially supports on arm32 up to 12GiB of physical address space, it is able to map it correctly for dom0. However, when Linux tries to access the ECAM space and the stage2 translation fault occurs, HPFAR register contains incorrect IPA. We can say it is incorrect because using hardware AT instruction or software lookup, we can obtain the correct IPA from the same VA. This can suggest that the problem is related to QEMU fault handling.
Instead of removing the PCI node the follow-up commit will disable highmem option in qemu which will cause placing ECAM space in the 32-bit space.
- # On Qemu Arm32, Dom0 accessing PCI config space ends up in an - # infinite loop. Remove pci node from the device tree - if [ "${MACHINE}" = "qemuarm" ]; then - write_lop_rm_pci "${B}/lop-rm-pci.dts" - LOP_MODULE_ARGS="${LOP_MODULE_ARGS} -i ${B}/lop-rm-pci.dts" - fi - if [ -z "${QB_XEN_DOMAIN_MODULES}" ]; then bbwarn "No domain modules: please set QB_XEN_DOMAIN_MODULES" fi -- 2.25.1