diff options
author | Ofir Fedida <ofedida@marvell.com> | 2018-03-21 15:14:42 +0200 |
---|---|---|
committer | Kostya Porotchkin <kostap@marvell.com> | 2018-03-25 13:27:46 +0300 |
commit | f88da49ed580a9c4471ecf1be5adfa7a72f2d7a8 (patch) | |
tree | 8311d8a437973a19cf02ce6d48f828002e288373 /plat | |
parent | 362974c5ed1da12712eca1aadeb1b61b545a93f1 (diff) |
a8k-p: ble: notice when less than max interfaces per AP are used
Notify the user about performance degradation
in case of using less than maximum supported interfaces per AP
Change-Id: I66d2134135cde7a4062718dd81a91867fb220612
Signed-off-by: Ofir Fedida <ofedida@marvell.com>
Reviewed-on: http://vgitil04.il.marvell.com:8080/52344
Tested-by: iSoC Platform CI <ykjenk@marvell.com>
Reviewed-by: Kostya Porotchkin <kostap@marvell.com>
Diffstat (limited to 'plat')
-rw-r--r-- | plat/marvell/a8k-p/common/plat_dram.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/plat/marvell/a8k-p/common/plat_dram.c b/plat/marvell/a8k-p/common/plat_dram.c index 90099313..45c4611c 100644 --- a/plat/marvell/a8k-p/common/plat_dram.c +++ b/plat/marvell/a8k-p/common/plat_dram.c @@ -302,7 +302,7 @@ void plat_dram_mca_remap(int ap_index, int dram_tgt, uint64_t from, uint64_t to, static void plat_dram_interfaces_update(void) { struct mv_ddr_iface *iface = NULL; - uint32_t ifaces_size, i, ap_id; + uint32_t ifaces_size, i, ap_id, iface_cnt; const uint32_t ap_cnt = ap810_get_ap_count(); debug_enter(); @@ -311,6 +311,8 @@ static void plat_dram_interfaces_update(void) for (ap_id = 0; ap_id < ap_cnt; ap_id++) { /* Get interfaces of AP-ID */ plat_dram_ap_ifaces_get(ap_id, &iface, &ifaces_size); + /* clear iface counter */ + iface_cnt = 0; /* Go over the interfaces of AP and initialize them */ for (i = 0; i < ifaces_size; i++, iface++) { /* Update DRAM topology (scan DIMM SPDs) */ @@ -326,7 +328,11 @@ static void plat_dram_interfaces_update(void) iface->iface_base_addr = AP_DRAM_BASE_ADDR(ap_id, ap_cnt); /* Count number of interfaces are ready */ VERBOSE("Found DRAM on interface %d AP-%d\n", iface->id, ap_id); + iface_cnt++; } + if (iface_cnt < ifaces_size) + NOTICE("\n\tFound %d out of %d DRAM interface in AP %d. Performance may be degraded!!\n", + iface_cnt, ifaces_size, ap_id); } } |