LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Jennings <rcj@linux.vnet.ibm.com>
To: Paul Mackerras <paulus@samba.org>,
	linuxppc-dev list <linuxppc-dev@ozlabs.org>,
	Benjamin Herrenschmidt <benh@kernel.crashing.org>
Subject: Re: [PATCH v2] powerpc: Improve message for vio bus entitlement panic
Date: Mon, 18 Aug 2008 10:34:46 -0500	[thread overview]
Message-ID: <20080818153446.GB27342@austin.ibm.com> (raw)
In-Reply-To: <20080815191205.GE20629@austin.ibm.com>

Add information regarding the available and required entitlement amounts
to the message displayed for the panic when insufficient entitlement is
provided at boot.

Signed-off-by: Robert Jennings <rcj@linux.vnet.ibm.com>

---
I had typed "Submitted-by" instead of "Signed-off-by" previously.
---
 arch/powerpc/kernel/vio.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Index: b/arch/powerpc/kernel/vio.c
===================================================================
--- a/arch/powerpc/kernel/vio.c
+++ b/arch/powerpc/kernel/vio.c
@@ -899,7 +899,9 @@ static void vio_cmo_bus_init(void)
 	if (vio_cmo.reserve.size > vio_cmo.entitled) {
 		printk(KERN_ERR "%s: insufficient system entitlement\n",
 		       __func__);
-		panic("%s: Insufficient system entitlement", __func__);
+		panic("%s: Insufficient system entitlement. Available: %lu "
+		      "Required: %lu", __func__, vio_cmo.entitled,
+		      vio_cmo.reserve.size);
 	}

 	/* Set the remaining accounting variables */

       reply	other threads:[~2008-08-18 15:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20080815191205.GE20629@austin.ibm.com>
2008-08-18 15:34 ` Robert Jennings [this message]
2008-08-20  6:00   ` [PATCH v2] powerpc: Improve message for vio bus entitlement panic Paul Mackerras

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080818153446.GB27342@austin.ibm.com \
    --to=rcj@linux.vnet.ibm.com \
    --cc=benh@kernel.crashing.org \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=paulus@samba.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox