From: Brett Russ <russb@emc.com>
To: andre@linux-ide.org
Cc: Jeff Garzik <jgarzik@pobox.com>,
Chris Hann <chann94501@yahoo.com>,
linux-ide list <linux-ide@vger.kernel.org>,
Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Subject: Re: hdregs.h puts csfo at word 129 - wrong, that's vendor specific
Date: Wed, 13 Apr 2005 18:18:58 -0400 [thread overview]
Message-ID: <425D9AD2.4060808@emc.com> (raw)
In-Reply-To: <4244BF65.6070109@emc.com>
This appears to have been dropped. The last word
(http://article.gmane.org/gmane.linux.ide/3588) was from Alan who said
Andre would know the history.
Andre, can you help answer?
Thanks
BR
Brett Russ wrote:
> Jeff Garzik wrote:
>
>> Chris Hann wrote:
>>
>>> ide-disk.c checks csfo bit 0 to see if the cache is available on a
>>> device
>>> hdregs.h maps csfo to word 129 of the Identify Device information
>>> the latest ATA documentation, e00159r3 Mandatory IDENTIFY DEVICE
>>> information, says words 129-159 are Vendor specific.
>>>
>>> Why is the driver switching on cache operations based on a word that
>>> has nothing to do with cache?
>>
>>
>>
>> Good question... I would guess that it's some pre-ATA4 legacy magic,
>> but that's just a guess.
>
>
> I just checked the specs for ATA[134567] (didn't have 2) and all of them
> show word 129 as vendor specific, as Chris found.
>
> The code that's in libata-dev shows in idedisk_setup():
>
> /* write cache enabled? */
> if ((id->csfo & 1) || (id->cfs_enable_1 & (1 << 5)))
> drive->wcache = 1;
>
>
> Bart, what's the point of the csfo bit check? If it's specific to one
> non-ATA compliant device shouldn't it be testing something else along
> with that bit?
>
> BR
> -
> To unsubscribe from this list: send the line "unsubscribe linux-ide" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2005-04-13 22:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-25 1:28 hdregs.h puts csfo at word 129 - wrong, that's vendor specific Chris Hann
2005-03-25 3:03 ` Jeff Garzik
2005-03-26 1:48 ` Brett Russ
2005-03-26 2:01 ` Bartlomiej Zolnierkiewicz
2005-03-27 13:58 ` Alan Cox
2005-04-13 22:18 ` Brett Russ [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=425D9AD2.4060808@emc.com \
--to=russb@emc.com \
--cc=andre@linux-ide.org \
--cc=bzolnier@gmail.com \
--cc=chann94501@yahoo.com \
--cc=jgarzik@pobox.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).