From: James Bottomley <James.Bottomley@HansenPartnership.com>
To: kewei@marvell.com
Cc: linux-scsi@vger.kernel.org, jeff@garzik.org
Subject: Re: [PATCH 3/9][RESEND] mvsas : interrupt handling
Date: Mon, 31 Mar 2008 09:46:17 -0500 [thread overview]
Message-ID: <1206974777.3192.7.camel@localhost.localdomain> (raw)
In-Reply-To: <47F0BBB0.7030606@marvell.com>
On Mon, 2008-03-31 at 18:23 +0800, Ke Wei wrote:
> James Bottomley wrote:
> > This tasklet usage doesn't quite look right. What a tasklet does is
> > defer processing until after all interrupts have completed. It's
> > commonly used for aggregation, which is why scsi_done simply queues for
> > the block softirq (tasklet). However, for mvsas, I don't see any
> > benefit to defering the work to a tasklet.
>
> OK, I understood. I will remove tasklet feature.
>
> >
> > Additionally, for the non MSI case, doesn't the interrupt, which is
> > level triggered, fail to deassert because we haven't cleared any
> > registers?
> >
> I don't understood what you said. What's your meaning about non MSI case.
A level triggered interrupt stays asserted until the condition causing
it is removed. I've no idea what this is for mvsas, but for most SCSI
cards it's a write to an ISTAT like register to acknowledge receipt of
the interrupt. If you don't deassert the interrupt, it reinterrupts
again as soon as you return from the interrupt routine, so you can't
defer the event that would cause the interrupt to be deasserted to a
tasklet or softirq otherwise you'll never get there.
James
prev parent reply other threads:[~2008-03-31 14:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-27 6:54 [PATCH 3/9][RESEND] mvsas : interrupt handling Ke Wei
2008-03-30 15:09 ` James Bottomley
2008-03-31 10:23 ` Ke Wei
2008-03-31 14:46 ` James Bottomley [this message]
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=1206974777.3192.7.camel@localhost.localdomain \
--to=james.bottomley@hansenpartnership.com \
--cc=jeff@garzik.org \
--cc=kewei@marvell.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