Skip to content

Commit

Permalink
configs: miriac-sbc-ls1046a: adjust memory flags for qbman portals
Browse files Browse the repository at this point in the history
The qbman portal regions are split into two, cache-inhibited and
cache-enabled. (see DPAA_PORTAL_C[IE] in drivers/soc/fsl/qbman/)
When the underlying memory is not mapped correctly, like it was before
this commit, you will see TX errors and loose a significant amount of
packets on the DPAA NICs after jailhouse is enabled.

Signed-off-by: Henning Schild <henning.schild@siemens.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
  • Loading branch information
henning-schild authored and jan-kiszka committed Apr 1, 2019
1 parent 03dc807 commit 87437c4
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions configs/arm64/miriac-sbc-ls1046a.c
Expand Up @@ -22,7 +22,7 @@
struct {
struct jailhouse_system header;
__u64 cpus[1];
struct jailhouse_memory mem_regions[50];
struct jailhouse_memory mem_regions[52];
struct jailhouse_irqchip irqchips[2];
struct jailhouse_pci_device pci_devices[1];
} __attribute__((packed)) config = {
Expand Down Expand Up @@ -137,17 +137,29 @@ struct {
.flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
JAILHOUSE_MEM_IO,
},
/* qportals */ {
/* qportals CE */ {
.phys_start = 0x500000000,
.virt_start = 0x500000000,
.size = 0x8000000,
.size = 0x4000000,
.flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE,
},
/* qportals CI */ {
.phys_start = 0x504000000,
.virt_start = 0x504000000,
.size = 0x4000000,
.flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
JAILHOUSE_MEM_IO,
},
/* bportals */ {
/* bportals CE */ {
.phys_start = 0x508000000,
.virt_start = 0x508000000,
.size = 0x8000000,
.size = 0x4000000,
.flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE,
},
/* bportals CI */ {
.phys_start = 0x50c000000,
.virt_start = 0x50c000000,
.size = 0x4000000,
.flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
JAILHOUSE_MEM_IO,
},
Expand Down

0 comments on commit 87437c4

Please sign in to comment.