All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tejun Heo <htejun@gmail.com>
To: Mark Lord <liml@rtr.ca>
Cc: Jeff Garzik <jgarzik@pobox.com>, linux-ide@vger.kernel.org
Subject: Re: [PATCH 2/2] libata: make sure IRQ is cleared after ata_bmdma_freeze()
Date: Fri, 17 Nov 2006 12:44:48 +0900	[thread overview]
Message-ID: <455D3030.8060702@gmail.com> (raw)
In-Reply-To: <455D2C3E.8010509@rtr.ca>

Mark Lord wrote:
> Tejun Heo wrote:
>>
>> Note that ->freeze() handler is always called under ap->lock held and
>> irq disabled.  Even if CTL manipulation causes stuck IRQ, it's cleared
>> immediately.  This should be safe (enough) even in SMP environment.
>> More correct solution is to mask the IRQ from IRQ controller but that
>> would be an overkill.
> 
> Could this possibly lead to a "nobody cared" message from the IRQ layer,
> followed by the kernel then disabling this IRQ?
> 
> Just wondering, because that's what can happen if we trigger an IRQ
> but then don't report "handled" for it from our interrupt handler.

Nobody cared triggers after a LOT of interrupts are consecutively 
unhandled, so this is safe for UP and safe enough for SMP, IMHO.  Also, 
that's how it has been done in ata_irq_on().  Without this patch, my 
ich7 in native pci mode w/ shared IRQ does cause nobody cared.  That's 
why this patch is written.

> I'm puzzling through a similar situation in sata_qstor right now,
> and the fix will involve manipulating the NIEN bit, with the same risk.

Well, I guess, testing is the only way to find answer.  :-(

-- 
tejun

  reply	other threads:[~2006-11-17  3:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-17  3:06 [PATCH 1/2] libata: move BMDMA host status recording from EH to interrupt handler Tejun Heo
2006-11-17  3:07 ` [PATCH 2/2] libata: make sure IRQ is cleared after ata_bmdma_freeze() Tejun Heo
2006-11-17  3:24   ` [PATCH 2/2 UPDATED] " Tejun Heo
2006-11-28  9:03     ` Jeff Garzik
2006-11-17  3:27   ` [PATCH 2/2] " Mark Lord
2006-11-17  3:44     ` Tejun Heo [this message]
2006-11-28  9:01 ` [PATCH 1/2] libata: move BMDMA host status recording from EH to interrupt handler Jeff Garzik

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=455D3030.8060702@gmail.com \
    --to=htejun@gmail.com \
    --cc=jgarzik@pobox.com \
    --cc=liml@rtr.ca \
    --cc=linux-ide@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.