Hi Paresh,

On 21/11/2023 05:30, Paresh Bhagat wrote:
Update. Got the jailhouse enabled but still getting the pci error.

nitializing Jailhouse hypervisor v0.12 (324-ge57d1eff-dirty) on CPU 3
Code location: 0x0000ffffc0200800
Page pool usage after early setup: mem 39/993, remap 0/131072
Initializing processors:
  CPU 3... OK
  CPU 2... OK
  CPU 0... OK
  CPU 1... OK
Initializing unit: irqchip
Initializing unit: ARM SMMU v3
Initializing unit: ARM SMMU
Initializing unit: PVU IOMMU
Initializing unit: PCI
Adding virtual PCI device 00:00.0 to cell "k3-am62p5-sk"
Adding virtual PCI device 00:01.0 to cell "k3-am62p5-sk"
Page pool usage after late setup: mem 79/993, remap 144/131072
Activating hypervisor
[  332.417442] pci-host-generic 76000000.pci: host bridge /pci@0 ranges:
[  332.417476] pci-host-generic 76000000.pci:      MEM 0x0076100000..0x0076103fff -> 0x0076100000 [  332.417572] pci-host-generic 76000000.pci: ECAM at [mem 0x76000000-0x760fffff] for [bus 00]
[  332.417732] pci-host-generic 76000000.pci: PCI host bridge to bus 0001:00
[  332.417741] pci_bus 0001:00: root bus resource [bus 00]
[  332.417748] pci_bus 0001:00: root bus resource [mem 0x76100000-0x76103fff]
[  332.417793] pci 0001:00:00.0: [110a:4106] type 00 class 0xff0000

According to your config, 1:0:0.0 ist the first ivshmem device, 1:0:1.0 is the second one, right?

Could you please try to enable one ivshmem device, so please disable the second one for testing. Let's try to get one running, then we can go further.

And for the first ivshmem device, would you consider (just for testing), to only connect two peers? And, in your config, plase use the JAILHOUSE_SHMEM_… macros for defining the ivshmem memregions.

Thanks,
  Ralf

[  332.417819] pci 0001:00:00.0: reg 0x10: [mem 0x00000000-0x0000ffff]
[  332.418103] pci 0001:00:01.0: [110a:4106] type 00 class 0xff0001
[  332.418127] pci 0001:00:01.0: reg 0x10: [mem 0x00000000-0x0000ffff]
[  332.420175] pci 0001:00:00.0: BAR 0: no space for [mem size 0x00010000]
[  332.420195] pci 0001:00:00.0: BAR 0: failed to assign [mem size 0x00010000]
[  332.420203] pci 0001:00:01.0: BAR 0: no space for [mem size 0x00010000]
[  332.420209] pci 0001:00:01.0: BAR 0: failed to assign [mem size 0x00010000]
[  332.420916] The Jailhouse is opening.
[  332.531915] psci: CPU1 killed (polled 0 ms)
[  332.579879] psci: CPU2 killed (polled 0 ms)
[  332.631860] psci: CPU3 killed (polled 0 ms)


On Tuesday, November 21, 2023 at 12:50:49 AM UTC+5:30 Paresh Bhagat wrote:

    Any fix for the following error while trying to enable jailhouse ?
    something wrong with the memory allocation?

    Initializing Jailhouse hypervisor v0.12 (324-ge57d1eff-dirty) on CPU 0
    Code location: 0x0000ffffc0200800
    Page pool usage after early setup: mem 39/993, remap 0/131072
    Initializing processors:
      CPU 0... OK
      CPU 2... OK
      CPU 1... OK
      CPU 3... OK
    Initializing unit: irqchip
    Initializing unit: ARM SMMU v3
    Initializing unit: ARM SMMU
    Initializing unit: PVU IOMMU
    Initializing unit: PCI
    Adding virtual PCI device 00:00.0 to cell "k3-am62p5-sk"
    Adding virtual PCI device 00:01.0 to cell "k3-am62p5-sk"
    Page pool usage after late setup: mem 78/993, remap 144/131072
    Activating hypervisor
    [  122.542841] pci-host-generic 76000000.pci: host bridge /pci@0 ranges:
    [  122.542873] pci-host-generic 76000000.pci:      MEM
    0x0076100000..0x0076103fff -> 0x0076100000
    [  122.542947] pci-host-generic 76000000.pci: ECAM at [mem
    0x76000000-0x760fffff] for [bus 00]
    [  122.543103] pci-host-generic 76000000.pci: PCI host bridge to bus
    0001:00
    [  122.543112] pci_bus 0001:00: root bus resource [bus 00]
    [  122.543119] pci_bus 0001:00: root bus resource [mem
    0x76100000-0x76103fff]
    root@am62pxx-evm:/usr/share/jailhouse# [  122.543161] pci
    0001:00:00.0: [110a:4106] type 00 class 0xff0000
    [  122.543187] pci 0001:00:00.0: reg 0x10: [mem 0x00000000-0x0000ffff]
    [  122.543455] pci 0001:00:01.0: [110a:4106] type 00 class 0xff0001
    [  122.543481] pci 0001:00:01.0: reg 0x10: [mem 0x00000000-0x0000ffff]
    [  122.545437] pci 0001:00:00.0: BAR 0: no space for [mem size
    0x00010000]
    [  122.545458] pci 0001:00:00.0: BAR 0: failed to assign [mem size
    0x00010000]
    [  122.545466] pci 0001:00:01.0: BAR 0: no space for [mem size
    0x00010000]
    [  122.545471] pci 0001:00:01.0: BAR 0: failed to assign [mem size
    0x00010000]
    [  122.545896] The Jailhouse is opening.
    Unhandled data read at 0xb00328(4)
    FATAL: unhandled trap (exception class 0x24)

    i have attached root cell config and output of cat /proc/iomem for
    referrence.

    Thanks

--
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] <mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/jailhouse-dev/261c0edb-f0a7-4384-a300-8a0567c16f8dn%40googlegroups.com <https://groups.google.com/d/msgid/jailhouse-dev/261c0edb-f0a7-4384-a300-8a0567c16f8dn%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
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/3b88b7b0-60fd-4fbb-8506-d2d0309c5333%40oth-regensburg.de.

Reply via email to