Example of the mask-id stream_id configuration. Compact all 10h'07* master IDs by masking-out the lower 4 bits.
Signed-off-by: Andrea Bastoni <[email protected]> --- configs/arm64/zynqmp-zcu102.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/configs/arm64/zynqmp-zcu102.c b/configs/arm64/zynqmp-zcu102.c index bdcb04b3..4e275973 100644 --- a/configs/arm64/zynqmp-zcu102.c +++ b/configs/arm64/zynqmp-zcu102.c @@ -23,7 +23,7 @@ struct { struct jailhouse_memory mem_regions[12]; struct jailhouse_irqchip irqchips[1]; struct jailhouse_pci_device pci_devices[2]; - __u32 stream_ids[8]; + __u32 stream_ids[3]; } __attribute__((packed)) config = { .header = { .signature = JAILHOUSE_SYSTEM_SIGNATURE, @@ -147,6 +147,9 @@ struct { }, .stream_ids = { - 0x860, 0x861, 0x870, 0x871, 0x874, 0x875, 0x876, 0x877 + /* bits 30 - 16: SMR MASK + * bits 14 - 0 : SMR ID + */ + 0x860, 0x861, 0xf0870 }, }; -- 2.28.0 -- 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/20201104153648.35076-3-andrea.bastoni%40tum.de.
