On 08.06.20 12:42, [email protected] wrote: > From: Nikhil Devshatwar <[email protected]> > > PCIe host controller is added by jailhouse kernel module via > an overlay. The aperture size is currently set to 2 pages > assumking 4kb page size.
typo. > > 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 <[email protected]> > --- > driver/pci.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/driver/pci.c b/driver/pci.c > index 601e2d96..c9f07780 100644 > --- a/driver/pci.c > +++ b/driver/pci.c > @@ -439,7 +439,7 @@ 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); overlong line now. > > if (of_changeset_add_property(&overlay_changeset, vpci_node, prop) < 0) > goto out; > 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/jailhouse-dev/cfdb8ecd-74e3-5861-d342-b792e4f1f790%40siemens.com.
