spapr/xive: print out the EQ page address in the monitor
This proved to be a useful information when debugging issues with OS event queues allocated above 64GB. Signed-off-by: Cédric Le Goater <clg@kaod.org> Message-Id: <20190508171946.657-4-clg@kaod.org> Reviewed-by: Greg Kurz <groug@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
13df93244e
commit
fb2e8b5132
|
@ -120,6 +120,7 @@ static int spapr_xive_target_to_end(uint32_t target, uint8_t prio,
|
||||||
static void spapr_xive_end_pic_print_info(SpaprXive *xive, XiveEND *end,
|
static void spapr_xive_end_pic_print_info(SpaprXive *xive, XiveEND *end,
|
||||||
Monitor *mon)
|
Monitor *mon)
|
||||||
{
|
{
|
||||||
|
uint64_t qaddr_base = xive_end_qaddr(end);
|
||||||
uint32_t qindex = xive_get_field32(END_W1_PAGE_OFF, end->w1);
|
uint32_t qindex = xive_get_field32(END_W1_PAGE_OFF, end->w1);
|
||||||
uint32_t qgen = xive_get_field32(END_W1_GENERATION, end->w1);
|
uint32_t qgen = xive_get_field32(END_W1_GENERATION, end->w1);
|
||||||
uint32_t qsize = xive_get_field32(END_W0_QSIZE, end->w0);
|
uint32_t qsize = xive_get_field32(END_W0_QSIZE, end->w0);
|
||||||
|
@ -127,9 +128,9 @@ static void spapr_xive_end_pic_print_info(SpaprXive *xive, XiveEND *end,
|
||||||
uint32_t nvt = xive_get_field32(END_W6_NVT_INDEX, end->w6);
|
uint32_t nvt = xive_get_field32(END_W6_NVT_INDEX, end->w6);
|
||||||
uint8_t priority = xive_get_field32(END_W7_F0_PRIORITY, end->w7);
|
uint8_t priority = xive_get_field32(END_W7_F0_PRIORITY, end->w7);
|
||||||
|
|
||||||
monitor_printf(mon, "%3d/%d % 6d/%5d ^%d",
|
monitor_printf(mon, "%3d/%d % 6d/%5d @%"PRIx64" ^%d",
|
||||||
spapr_xive_nvt_to_target(0, nvt),
|
spapr_xive_nvt_to_target(0, nvt),
|
||||||
priority, qindex, qentries, qgen);
|
priority, qindex, qentries, qaddr_base, qgen);
|
||||||
|
|
||||||
xive_end_queue_pic_print_info(end, 6, mon);
|
xive_end_queue_pic_print_info(end, 6, mon);
|
||||||
monitor_printf(mon, "]");
|
monitor_printf(mon, "]");
|
||||||
|
|
Loading…
Reference in a new issue