From: Nikhil Devshatwar <nikhil...@ti.com> PCIe host controller is added by jailhouse kernel module via an overlay. The aperture size is currently set to 2 pages assuming 4kb page size.
Update to use the PAGE_SIZE macro so as to work with kernels where page size is configured for 64kb. Signed-off-by: Nikhil Devshatwar <nikhil...@ti.com> --- driver/pci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/driver/pci.c b/driver/pci.c index 601e2d96..da516479 100644 --- a/driver/pci.c +++ b/driver/pci.c @@ -439,7 +439,8 @@ static bool create_vpci_of_overlay(struct jailhouse_system *config) *prop_val++ = cpu_to_be32(base_addr >> 32); *prop_val++ = cpu_to_be32(base_addr); *prop_val++ = 0; - *prop_val = cpu_to_be32(count_ivshmem_devices(root_cell) * 0x2000); + *prop_val = cpu_to_be32(count_ivshmem_devices(root_cell) * + 2 * PAGE_SIZE); if (of_changeset_add_property(&overlay_changeset, vpci_node, prop) < 0) goto out; -- 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/20200611125423.16770-3-nikhil.nd%40ti.com.