linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff Garzik <jgarzik@pobox.com>
To: "Eric D. Mudama" <edmudama@gmail.com>, Tejun Heo <htejun@gmail.com>
Cc: Nicolas Mailhot <nicolas.mailhot@gmail.com>,
	Mark Lord <liml@rtr.ca>,
	linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org,
	Carlos Pardo <Carlos.Pardo@siliconimage.com>
Subject: FUA and 311x (was Re: LibPATA code issues / 2.6.15.4)
Date: Wed, 01 Mar 2006 20:56:12 -0500	[thread overview]
Message-ID: <440650BC.5090501@pobox.com> (raw)
In-Reply-To: <311601c90603011719k43af0fbbg889f47d798e22839@mail.gmail.com>

Eric D. Mudama wrote:
> I didn't know offhand so we plugged in a bus analzyer and took a look
> here in the lab... We didn't have a 3114 lying around, but issuing the
> Write DMA FUA (0x3D) opcode on a 3112 resulted in a D0h soft hang.  I
> think they're related (4-port vs 2-port).

Looking at the public docs posted at 
http://gkernel.sourceforge.net/specs/sii/ ...  FUA is not in the list of 
supported opcodes (Table 10-1).

The 311x does have a facility that allows the driver to specify the 
command protocol associated with an unknown-to-the-chip opcode.  Someone 
sufficiently interested could investigate using the VS Unlock and VS Set 
Command Protocol commands to patch in support (section 10.4.*).

For libata, I think an ATA_FLAG_NO_FUA would be appropriate for 
situations like this...  assume FUA is supported in the controller, and 
set a flag where it is not.  Most chips will support FUA, either by 
design or by sheer luck.  The ones that do not support FUA are the 
controllers that snoop the ATA command opcode, and internally choose the 
protocol based on that opcode.  For such hardware, unknown opcodes will 
inevitably cause problems.

	Jeff



  parent reply	other threads:[~2006-03-02  1:56 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-01 19:00 LibPATA code issues / 2.6.15.4 Nicolas Mailhot
2006-03-01 19:22 ` Mark Lord
2006-03-01 23:12   ` Nicolas Mailhot
2006-03-01 23:31     ` Jeff Garzik
2006-03-02  1:19     ` Eric D. Mudama
2006-03-02  1:39       ` Eric D. Mudama
2006-03-02  1:56       ` Jeff Garzik [this message]
2006-03-02  1:58         ` FUA and 311x (was Re: LibPATA code issues / 2.6.15.4) Jeff Garzik
2006-03-02  2:20           ` Eric D. Mudama
2006-03-02  2:46             ` Jeff Garzik
2006-03-02  3:00               ` Eric D. Mudama
2006-03-02  3:06                 ` Jeff Garzik
2006-03-02  3:13                   ` Tejun Heo
2006-03-02  3:16                   ` Mark Lord
2006-03-02  3:18                     ` Jeff Garzik
2006-03-02  6:23                       ` Eric D. Mudama
2006-03-02  9:00                         ` Sander
2006-03-02 11:52                         ` Jeff Garzik
2006-03-02  8:57                       ` Sander
2006-03-03  0:34                       ` Mark Lord
2006-03-02 16:12                   ` Nicolas Mailhot
2006-03-02 16:07                 ` Nicolas Mailhot
2006-03-02 16:03               ` Nicolas Mailhot
2006-03-02 16:05             ` Nicolas Mailhot
2006-03-02  7:22           ` Jens Axboe
2006-03-02 15:59           ` Nicolas Mailhot
2006-03-02 16:37             ` 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=440650BC.5090501@pobox.com \
    --to=jgarzik@pobox.com \
    --cc=Carlos.Pardo@siliconimage.com \
    --cc=edmudama@gmail.com \
    --cc=htejun@gmail.com \
    --cc=liml@rtr.ca \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nicolas.mailhot@gmail.com \
    /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).