From: Nikhil Devshatwar <nikhil...@ti.com>

PCI kernel framework requires that all the instances in the
device tree either specify the PCIe domain or none does.

Currently, Jailhouse dynamic overlay describes the PCI domain
which causes problems because root cell DTS does not describe
this.

Fix this by not specifying the domain in root cell config.
Also, fix the size of the PCI target region to match with the
correct description in TRM.

Signed-off-by: Nikhil Devshatwar <nikhil...@ti.com>
---
 configs/arm64/k3-j721e-evm.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/configs/arm64/k3-j721e-evm.c b/configs/arm64/k3-j721e-evm.c
index 578caf02..dbf0ca7c 100644
--- a/configs/arm64/k3-j721e-evm.c
+++ b/configs/arm64/k3-j721e-evm.c
@@ -44,7 +44,7 @@ struct {
                        .pci_mmconfig_base = 0x76000000,
                        .pci_mmconfig_end_bus = 0,
                        .pci_is_virtual = 1,
-                       .pci_domain = 3,
+                       .pci_domain = -1,
                        .arm = {
                                .gic_version = 3,
                                .gicd_base = 0x01800000,
@@ -173,7 +173,7 @@ struct {
                /* PCIe Core */ {
                        .phys_start = 0x0d000000,
                        .virt_start = 0x0d000000,
-                       .size = 0x01000000,
+                       .size = 0x02000000,
                        .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
                                JAILHOUSE_MEM_IO,
                },
@@ -398,7 +398,6 @@ struct {
        .pci_devices = {
                /* 0003:00:01.0 */ {
                        .type = JAILHOUSE_PCI_TYPE_IVSHMEM,
-                       .domain = 3,
                        .bdf = 1 << 3,
                        .bar_mask = JAILHOUSE_IVSHMEM_BAR_MASK_INTX,
                        .shmem_regions_start = 0,
-- 
2.17.1

-- 
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 jailhouse-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/20200527122358.14723-6-nikhil.nd%40ti.com.

Reply via email to