2019-05-11 09:23:56 +00:00
|
|
|
From d4a2de0378cb95512e61a6f6af542b92ec4fda76 Mon Sep 17 00:00:00 2001
|
2018-11-11 17:40:18 +00:00
|
|
|
From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?=
|
|
|
|
<marmarek@invisiblethingslab.com>
|
|
|
|
Date: Sat, 30 Jan 2016 01:53:26 +0100
|
|
|
|
Subject: [PATCH] Log error code of EVTCHNOP_bind_pirq failure
|
|
|
|
|
|
|
|
Ease debugging of PCI passthrough problems.
|
|
|
|
---
|
|
|
|
drivers/xen/events/events_base.c | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/drivers/xen/events/events_base.c b/drivers/xen/events/events_base.c
|
2019-03-15 21:28:57 +00:00
|
|
|
index 117e76b2f939..34f380be2b34 100644
|
2018-11-11 17:40:18 +00:00
|
|
|
--- a/drivers/xen/events/events_base.c
|
|
|
|
+++ b/drivers/xen/events/events_base.c
|
|
|
|
@@ -521,7 +521,7 @@ static unsigned int __startup_pirq(unsigned int irq)
|
|
|
|
BIND_PIRQ__WILL_SHARE : 0;
|
|
|
|
rc = HYPERVISOR_event_channel_op(EVTCHNOP_bind_pirq, &bind_pirq);
|
|
|
|
if (rc != 0) {
|
|
|
|
- pr_warn("Failed to obtain physical IRQ %d\n", irq);
|
|
|
|
+ pr_warn("Failed to obtain physical IRQ %d (error %d)\n", irq, rc);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
evtchn = bind_pirq.port;
|
|
|
|
--
|
2019-03-15 21:28:57 +00:00
|
|
|
2.20.1
|
2018-11-11 17:40:18 +00:00
|
|
|
|