From: Jeff Garzik <jgarzik@pobox.com>
To: Dave <dave.jiang@gmail.com>, jeremy.higdon@sgi.com
Cc: linux-ide@vger.kernel.org
Subject: Re: [PATCH] updates to Vitesse SATA driver
Date: Wed, 29 Sep 2004 23:32:52 -0400 [thread overview]
Message-ID: <415B7E64.50709@pobox.com> (raw)
In-Reply-To: <8746466a0409291532471417b8@mail.gmail.com>
Dave wrote:
> I believe waiting for you to comment on whether to put in a hook for
> controllers that do not support ATA_NIEN so it can mask/unmask IRQ
> with a fixup. Even though the spec for this particular SATA
> controller says the bit is reserved, it seems to work just fine. From
> my understanding, the registers are actually on the drives, and the
> ones we write to the HBAs are just shadow registers right? I suppose
> either we can use the "undocumented" reserved bit for ATA_NIEN, or
> provide some sort of special hook in lib_ata core to clear the
> interrupt bit....
Close.
The shadow registers are an entity that exists solely on the host
controller. The entire register block is converted internally by the
silicon to a SATA Host-to-Device Register FIS, and the FIS is what is
sent to the SATA device.
As you can see in the SATA specification (www.serialata.org), each SATA
FIS contains an interrupt bit. The decision about when and how to set
this interrupt bit is highly controller-specific. Sometimes it is
mapped to nIEN in the Device Control register. Sometimes it is
completely ignored (as with AHCI), and the controller sends interrupts
based on various bits set in an interrupt-status register.
In any case, it is still not clear what you are trying to achieve :(
In what way is sata_vsc's current ATA_NIEN handling code deficient?
Jeff
prev parent reply other threads:[~2004-09-30 3:33 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-21 21:16 [PATCH] updates to Vitesse SATA driver Dave
2004-09-22 2:06 ` Jeremy Higdon
2004-09-22 15:59 ` Dave
2004-09-22 17:09 ` Dave
2004-09-22 20:13 ` Jeremy Higdon
2004-09-23 22:28 ` Dave
2004-09-22 20:07 ` Jeremy Higdon
2004-09-29 22:19 ` Jeff Garzik
2004-09-29 22:32 ` Dave
2004-09-30 2:34 ` Jeremy Higdon
2004-09-30 3:28 ` Jeff Garzik
2004-09-30 4:05 ` Jeremy Higdon
2004-09-30 4:25 ` [PATCH 2.6.9-rc2] per-port LED control for sata_vsc Jeremy Higdon
2004-09-30 16:17 ` [PATCH] updates to Vitesse SATA driver Dave
2004-09-30 16:51 ` Dave
2004-09-30 3:32 ` Jeff Garzik [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=415B7E64.50709@pobox.com \
--to=jgarzik@pobox.com \
--cc=dave.jiang@gmail.com \
--cc=jeremy.higdon@sgi.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).