On 07/10/2017 05:58 PM, Ralf Ramsauer wrote:
> Those regions must be mapped to the root cell if a XUSB device is
> connected.
>
> Signed-off-by: Ralf Ramsauer <[email protected]>
> ---
> configs/jetson-tk1.c | 20 +++++++++++++++++---
> 1 file changed, 17 insertions(+), 3 deletions(-)
>
> diff --git a/configs/jetson-tk1.c b/configs/jetson-tk1.c
> index 262f7b5d..3ce939d2 100644
> --- a/configs/jetson-tk1.c
> +++ b/configs/jetson-tk1.c
> @@ -23,7 +23,7 @@
> struct {
> struct jailhouse_system header;
> __u64 cpus[1];
> - struct jailhouse_memory mem_regions[20];
> + struct jailhouse_memory mem_regions[22];
> struct jailhouse_irqchip irqchips[2];
> struct jailhouse_pci_device pci_devices[1];
> } __attribute__((packed)) config = {
> @@ -177,13 +177,27 @@ struct {
> .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
> JAILHOUSE_MEM_IO,
> },
> - /* XUSB */ {
> + /* XUSB_HOST */ {
> .phys_start = 0x70090000,
> .virt_start = 0x70090000,
> .size = 0xa000,
> .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
> JAILHOUSE_MEM_IO,
> },
> + /* XUSB_DEV */ {
> + .phys_start = 0x7009d000,
> + .virt_start = 0x7009d000,
Rats, there's a typo: start address must be 0x700d0000. I'll follow up
with a v2.
Ralf
> + .size = 0xa000,
> + .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
> + JAILHOUSE_MEM_IO,
> + },
> + /* XUSB_PADCTL */ {
> + .phys_start = 0x7009f000,
> + .virt_start = 0x7009f000,
> + .size = 0x1000,
> + .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
> + JAILHOUSE_MEM_IO,
> + },
> /* MMC0/1 */ {
> .phys_start = 0x700b0000,
> .virt_start = 0x700b0000,
> @@ -245,7 +259,7 @@ struct {
> 0xffffff00, 0xffffffff, 0x00000000,
> 0x00000000, 0x00000000, 0x00000000,
> },
> - .shmem_region = 19,
> + .shmem_region = 21,
> .shmem_protocol = JAILHOUSE_SHMEM_PROTO_VETH,
> },
> },
>
--
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].
For more options, visit https://groups.google.com/d/optout.