# Re: \[PATCH v2\] powerpc: Improve message for vio bus entitlement panic

- List: linuxppc-dev
- 2 messages, 2 authors
- Page: https://ratatoskr.run/linuxppc-dev/2008/08/9444487/t

## Re: \[PATCH v2\] powerpc: Improve message for vio bus entitlement panic

- From: Robert Jennings \<hidden\>
- Date: 2008-08-18 15:36:54 
- Message: https://ratatoskr.run/linuxppc-dev/2008/08/9444487.md

```text
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 <redacted>

---
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 */
```

## Re: \[PATCH v2\] powerpc: Improve message for vio bus entitlement panic

- From: Paul Mackerras \<hidden\>
- Date: 2008-08-20 06:00:51 
- Message: https://ratatoskr.run/linuxppc-dev/2008/08/9444554.md

```text
Robert Jennings writes:

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

I'll queue this up for 2.6.28, unless you tell me it's needed for
2.6.27.

Paul.
```
