From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: irqhandler for xenbus device Date: Thu, 10 May 2012 11:38:10 -0400 Message-ID: <20120510153809.GE6389@phenom.dumpdata.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Nupur Ghatnekar Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Wed, Mar 21, 2012 at 11:56:41AM +0530, Nupur Ghatnekar wrote: > 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 That is the problem. You need to return IRQ_HANDLED in your irq handler.