On 18.02.21 10:07, Jari Ronkainen wrote:
> I have tried to get jailhouse running on  UP xtreme board with an LTE
> module attached.
> However, running into some problems, and this one is one I couldn't
> solve myself:  The entire system hangs quite fast after getting this
> message:
> 
>     VT-d fault event reported by IOMMU 1:
>       Source Identifier (bus:dev.func): 01:00.0
>        Fault Reason: 0x22 Fault Info: 2d000000000 Type 0
> 
> The 01:00.0 is the PCI address for the LTE module.
> 
> Cross-referencing with Linux kernel, I figured that 0x22 is
> "Present bit in context entry is clear"
> 
> Don't know how to figure out what to do with "fault info" or "type"
> here either.
> 
> Root cell configuration can be found in
> 
>  https://pastebin.com/armiRjH9
> 
> Setting iommu = 0 for the LTE modem prevents system from hanging
> instantly, but the failure message is still there.  Issuing "jailhouse
> disable"
> still hangs the system reliably with no extra messages.
> 

Yeah, the error message already indicate the IOMMU 1 is the right one
(otherwise the message would have come from unit 0).

The issue might be around the guest enabling (or not disabling)
interrupts in the modem before properly programming the MSI registers.
Or that Jailhouse considers the programming invalid for some reason and,
thus, does not arm the entry. Places you want to inspect/instrument are in

    arch_pci_update_msi
        -> x86_pci_translate_msi
            -> iommu_get_remapped_root_int
        -> iommu_map_interrupt

> 
> relevant lspci:
>    01:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac
> Wireless Network Adapter
> 
> 
> Thanks all for the previous help, and thanks in advance for helping.
> 
> Also, I got this from jailhouse console -f, I don't get anything from the
> UART, does that mean misconfiguration there in this case?
> 

Likely. Can be as simple as the wrong divider. Where did you get the
parameters from?

Jan

-- 
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/1f674212-e966-3ce4-c2ea-e601a015c19c%40siemens.com.

Reply via email to