Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 92A54C04AB3 for ; Wed, 29 May 2019 07:28:21 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6198221019 for ; Wed, 29 May 2019 07:28:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=gibson.dropbear.id.au header.i=@gibson.dropbear.id.au header.b="UXLcp4dq" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6198221019 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=gibson.dropbear.id.au Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([127.0.0.1]:48963 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVt0W-0006hI-K8 for qemu-devel@archiver.kernel.org; Wed, 29 May 2019 03:28:20 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47716) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVsQ3-0008HT-HF for qemu-devel@nongnu.org; Wed, 29 May 2019 02:50:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hVsQ2-0002bv-A5 for qemu-devel@nongnu.org; Wed, 29 May 2019 02:50:39 -0400 Received: from ozlabs.org ([203.11.71.1]:56115) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hVsQ1-0002Yv-Tu; Wed, 29 May 2019 02:50:38 -0400 Received: by ozlabs.org (Postfix, from userid 1007) id 45DLv35GWSz9sNp; Wed, 29 May 2019 16:50:22 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1559112623; bh=s7n9GOFMHz6jZbmXHbQuUX0/Qi9S9CpdqCJBOttcq4s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UXLcp4dqc434HK5EIUcWih0ZJ1aD8Jt6wPPJ1sIxr1Buhem+DzXA1WOFfbQBIIG1D Gs7K2ZvzG2o9Qzf2/GLGrzNwvbHtcjBEL5/K/qUzuqshqB7+QdnBDwLwEqwstMra7c HNJGKsK7wQYPQJ09AxcwjABUd4y5yMGPXYdAnzm0= From: David Gibson To: peter.maydell@linaro.org Date: Wed, 29 May 2019 16:49:49 +1000 Message-Id: <20190529065017.15149-17-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190529065017.15149-1-david@gibson.dropbear.id.au> References: <20190529065017.15149-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 203.11.71.1 Subject: [Qemu-devel] [PULL 16/44] spapr/xive: print out the EQ page address in the monitor X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: lvivier@redhat.com, qemu-devel@nongnu.org, groug@kaod.org, qemu-ppc@nongnu.org, clg@kaod.org, David Gibson , rth@twiddle.net Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" From: C=C3=A9dric Le Goater This proved to be a useful information when debugging issues with OS event queues allocated above 64GB. Signed-off-by: C=C3=A9dric Le Goater Message-Id: <20190508171946.657-4-clg@kaod.org> Reviewed-by: Greg Kurz Signed-off-by: David Gibson --- hw/intc/spapr_xive.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/intc/spapr_xive.c b/hw/intc/spapr_xive.c index a19e998093..58cc6e2b50 100644 --- a/hw/intc/spapr_xive.c +++ b/hw/intc/spapr_xive.c @@ -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, Monitor *mon) { + uint64_t qaddr_base =3D xive_end_qaddr(end); uint32_t qindex =3D xive_get_field32(END_W1_PAGE_OFF, end->w1); uint32_t qgen =3D xive_get_field32(END_W1_GENERATION, end->w1); uint32_t qsize =3D 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 =3D xive_get_field32(END_W6_NVT_INDEX, end->w6); uint8_t priority =3D xive_get_field32(END_W7_F0_PRIORITY, end->w7); =20 - monitor_printf(mon, "%3d/%d % 6d/%5d ^%d", + monitor_printf(mon, "%3d/%d % 6d/%5d @%"PRIx64" ^%d", spapr_xive_nvt_to_target(0, nvt), - priority, qindex, qentries, qgen); + priority, qindex, qentries, qaddr_base, qgen); =20 xive_end_queue_pic_print_info(end, 6, mon); monitor_printf(mon, "]"); --=20 2.21.0