[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] irqhandler for xenbus device



Hello,

I have written 2 modules (front and backend) of a device driver.
here all i have tried to do is share a page and map the page.
i have added an irqhandler to the eventchannel using bind_interdomain_evtchn_to_irqhandler()

but ,this is what i got.. i do not understand what happened.

any help will be appreciated!!

[ 6098.141305] p9_xen_backend_init
[ 6098.141332] leaving backend_init
[ 6169.434245] Backprobe fired 1
[ 6169.434703] node name: /local/domain/2/device/p9xen/0
[ 6169.434980] INITIAL PAGE: 855 INITAL PORT: 34
[ 6169.435005] Map Successful: data: Hey this is a new page..we just sent it!
[ 6169.435032]Â interrupt registered:: 312
[ 6169.435037]Â we are in the irq handler!!312
[ 6169.435040]
[ 6169.435040]Â notify by irq
[ 6169.435043] irq event 312: bogus return value 33
[ 6169.435047] Pid: 20, comm: xenwatch Tainted: GÂÂÂÂÂÂÂ WCÂ 3.0.0-12-generic-pae #20-Ubuntu
[ 6169.435050] Call Trace:
[ 6169.435059]Â [<c15414ca>] ? printk+0x2d/0x2f
[ 6169.435066]Â [<c10b3c99>] __report_bad_irq+0x29/0xd0
[ 6169.435070]Â [<c10b4031>] note_interrupt+0xd1/0x150
[ 6169.435075]Â [<effb91d1>] ? p9xen_irq+0x31/0x40 [p9_xen_backend]
[ 6169.435079]Â [<c10b258e>] handle_irq_event_percpu+0x9e/0x200
[ 6169.435085]Â [<c128d1ba>] ? radix_tree_lookup+0xa/0x10
[ 6169.435089]Â [<c10b40fd>] ? irq_get_irq_data+0xd/0x10
[ 6169.435094]Â [<c131c32d>] ? info_for_irq+0xd/0x20
[ 6169.435098]Â [<c10b272b>] handle_irq_event+0x3b/0x60
[ 6169.435102]Â [<c10b48c6>] handle_edge_irq+0x66/0xf0
[ 6169.435106]Â [<c131c265>] __xen_evtchn_do_upcall+0x155/0x200
[ 6169.435110]Â [<c131df90>] xen_evtchn_do_upcall+0x20/0x40
[ 6169.435115]Â [<c155cc17>] xen_do_upcall+0x7/0xc
[ 6169.435120]Â [<c1002407>] ? hypercall_page+0x407/0x1000
[ 6169.435124]Â [<c131fcfe>] ? xb_write+0xce/0x1e0
[ 6169.435131]Â [<c1050972>] ? console_unlock+0xa2/0xf0
[ 6169.435134]Â [<c1050bf1>] ? vprintk+0x151/0x430
[ 6169.435138]Â [<c132078d>] xs_talkv+0x5d/0x1a0
[ 6169.435143]Â [<c1291d31>] ? vsnprintf+0xb1/0x390
[ 6169.435147]Â [<c132091a>] xs_watch+0x4a/0x60
[ 6169.435150]Â [<c1320bb3>] register_xenbus_watch+0x83/0xf0
[ 6169.435154]Â [<c131f8ca>] xenbus_watch_path+0x2a/0x70
[ 6169.435158]Â [<c1295033>] ? kvasprintf+0x43/0x60
[ 6169.435162]Â [<c131f948>] xenbus_watch_pathfmt+0x38/0x70
[ 6169.435166]Â [<c13222b0>] ? xenbus_uevent_backend+0xb0/0xb0
[ 6169.435170]Â [<c1321bac>] xenbus_dev_probe+0xac/0x140
[ 6169.435174]Â [<c13222b0>] ? xenbus_uevent_backend+0xb0/0xb0
[ 6169.435179]Â [<c135f1ad>] really_probe+0x4d/0x150
[ 6169.435184]Â [<c13675c0>] ? pm_runtime_barrier+0x50/0xb0
[ 6169.435188]Â [<c135f3ea>] driver_probe_device+0x3a/0x60
[ 6169.435191]Â [<c135f4f1>] __device_attach+0x41/0x50
[ 6169.435195]Â [<c135f4b0>] ? __driver_attach+0xa0/0xa0
[ 6169.435199]Â [<c135e279>] bus_for_each_drv+0x49/0x70
[ 6169.435202]Â [<c135f37a>] device_attach+0x8a/0xa0
[ 6169.435206]Â [<c135f4b0>] ? __driver_attach+0xa0/0xa0
[ 6169.435209]Â [<c135eaa5>] bus_probe_device+0x25/0x40
[ 6169.435214]Â [<c135d0bc>] device_add+0x28c/0x380
[ 6169.435218]Â [<c13652da>] ? device_pm_init+0x4a/0x60
[ 6169.435222]Â [<c135d1c7>] device_register+0x17/0x20
[ 6169.435226]Â [<c1321e21>] xenbus_probe_node.part.4+0x101/0x170
[ 6169.435230]Â [<c1321ed3>] xenbus_probe_node+0x43/0x60
[ 6169.435234]Â [<c1322173>] xenbus_dev_changed.part.7+0x163/0x170
[ 6169.435239]Â [<c1007248>] ? xen_force_evtchn_callback+0x18/0x30
[ 6169.435243]Â [<c10079e0>] ? check_events+0x8/0xc
[ 6169.435247]Â [<c13221b7>] xenbus_dev_changed+0x37/0x40
[ 6169.435251]Â [<c13221f6>] backend_changed+0x16/0x20
[ 6169.435254]Â [<c1320567>] xenwatch_thread+0x87/0x130
[ 6169.435260]Â [<c106f280>] ? add_wait_queue+0x50/0x50
[ 6169.435264]Â [<c13204e0>] ? xenbus_thread+0x40/0x40
[ 6169.435268]Â [<c106ea7d>] kthread+0x6d/0x80
[ 6169.435271]Â [<c106ea10>] ? flush_kthread_worker+0x80/0x80
[ 6169.435275]Â [<c155cbbe>] kernel_thread_helper+0x6/0x10
[ 6169.435277] handlers:
[ 6169.435280] [<effb91a0>] p9xen_irq


--

Nupur Ghatnekar
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.