On 23.09.18 11:22, Nir Geller wrote:
Hi Jan,

I'm using jailhouse v0.8, so pci_domain is not available.
However, after commenting out
linux,pci-domain = <0>;
from pcie1_rc: pcie@51000000 in dra7.dtsi  I get good results from lspci -v

root@am57xx-evm:~# lspci -v
0000:00:00.0 PCI bridge: Texas Instruments Multicore DSP+ARM KeyStone II SOC (rev 01) (prog-if 00 [Normal decode])
...

0000:01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)
...

0001:00:00.0 Unassigned class [ff00]: Red Hat, Inc Inter-VM shared memory
Subsystem: Red Hat, Inc Inter-VM shared memory
Flags: fast devsel
Memory at 30100000 (64-bit, non-prefetchable) [size=256]
Memory at <unassigned> (64-bit, non-prefetchable)
Capabilities: [50] MSI-X: Enable- Count=1 Masked-


Should I worry about the following output?
[   80.456250] PCI: bus0: Fast back to back transfers disabled


That's related to the physical PCI interface - if it is reported without Jailhouse as well, it's possibly expected.


Now I would like to pass interrupts between cells. I'm following Giovani Gracioli's thread https://groups.google.com/forum/#!topic/jailhouse-dev/L2sjyl1xFDg
According to which I'm now using uio_ivshmem kernel module.

When I enable the root cell the function pci_alloc_irq_vectors() fails because dev->irq is set to 0.

I don't know if it is related at all, the dts file skips some irqs from linux
/ {
         ocp {
                 pruss1_eth {
                         status = "disabled";
                 };

                 pruss2_eth {
                         status = "disabled";
                 };

                 crossbar_mpu: crossbar@4a002a48 {
                         ti,irqs-skip = <10 44 127 129 133 134 135 136 137 139 
140>;
                 };
         };
};

Attached is the root cell configuration file
Is .vpci_irq_base related?

Yes, but it is not used in your setup because you set num_msix_vectors in the vpci device to non-zero. Don't do that, there is no MSI support on your platform IIRC.

Jan

--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to