public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Ming Zhang <mingz@ele.uri.edu>
To: Bryan Henderson <hbryan@us.ibm.com>
Cc: Arjan van de Ven <arjan@infradead.org>,
	linux-scsi <linux-scsi@vger.kernel.org>
Subject: Re: hwo to adjust interrupt?
Date: Fri, 12 Aug 2005 13:45:26 -0400	[thread overview]
Message-ID: <1123868726.5546.89.camel@localhost.localdomain> (raw)
In-Reply-To: <OF33C7B841.0ED0EFDF-ON8825705B.00600DDB-8825705B.0060A40B@us.ibm.com>

On Fri, 2005-08-12 at 10:35 -0700, Bryan Henderson wrote:
> >>How much extra work does Linux have to do for each interrupt?
> >
> >usually 1 pci mmio read; the rest is negligible.
> 
> I was hoping you would cater better to my ignorance of how PCI interrupt 
> handling works in Linux.
> 
> Is it the case that Linux invokes the registered interrupt handler of each 
> of the drivers for the devices that share the interrupt, and each does an 
> mmio read of its device to find out if it had reason to generate an 
> interrupt?  So the waste is that extra call, and you're saying the CPU 
> instructions involved are negligible compared to the mmio read?
> 
> Are these level-sensitive interrupts, so that if both devices need service 
> at the same time, they generate just one interrupt and neither device 
> driver call is wasted?
> 

i guess so. 

also sound like the intr overhead is not that big as i assumed.
 
so if i really want to make myself comfortable, i can disable the share
interrupt when register interrupt in driver code, rite?

ming



  reply	other threads:[~2005-08-12 17:45 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-11 22:31 hwo to adjust interrupt? Ming Zhang
2005-08-12  7:14 ` Arjan van de Ven
2005-08-12 13:14   ` Ming Zhang
2005-08-12 16:59   ` Bryan Henderson
2005-08-12 17:04     ` Arjan van de Ven
2005-08-12 17:35       ` Bryan Henderson
2005-08-12 17:45         ` Ming Zhang [this message]
2005-08-12 17:51         ` Arjan van de Ven
2005-08-12 18:06           ` Ming Zhang
2005-08-15 18:47             ` Bryan Henderson
2005-08-15 19:06               ` Ming Zhang
2005-08-12 19:05         ` Ming Zhang
2005-08-12 19:14           ` Matthew Wilcox
2005-08-12 19:27             ` Ming Zhang

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=1123868726.5546.89.camel@localhost.localdomain \
    --to=mingz@ele.uri.edu \
    --cc=arjan@infradead.org \
    --cc=hbryan@us.ibm.com \
    --cc=linux-scsi@vger.kernel.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