* CFA 4.0 patch
@ 2012-05-15 5:17 Andre Hedrick (anhedric)
2012-05-15 14:38 ` Alan Cox
0 siblings, 1 reply; 4+ messages in thread
From: Andre Hedrick (anhedric) @ 2012-05-15 5:17 UTC (permalink / raw)
To: linux-kernel
This is a missing part of the CFA 4.0 and above support.
6.2.1.6.1 Word 0: General Configuration
This field indicates the general characteristics of the device.
When Word 0 of the Identify drive information is 848Ah then the device
is a CompactFlash Storage Card and complies with the CFA specification
and CFA command set. It is recommended that PC Card modes of operation
report only the 848Ah value as they are always intended as removable
devices.
Bits 15-0: CF Standard Configuration Value
Word 0 is 848Ah. This is the recommended value of Word 0.
Some operating systems require Bit 6 of Word 0 to be set to 1
(Non-removable device) to use the card as the root storage device. The
Card must be the root storage device when a host completely replaces
conventional disk storage with a CompactFlash Card in True IDE mode. To
support this requirement and provide capability for any future removable
media Cards, alternate handling of Word 0 is permitted.
Bits 15-0: CF Preferred Alternate Configuration Values
044Ah: This is the alternate value of Word 0 turns on ATA device and
turns off Removable Media and Removable Device while preserving all
Retired bits in the word.
0040h: This is the alternate value of Word 0 turns on ATA device and
turns off Removable Media and Removable Device while zeroing all
Retired bits in the word
Cheers,
Andre
--------------------
The Linux X-ATA/SATA guy
--- linux-2.6.32.orig/include/linux/ata.h Mon May 14 15:48:24 2012
+++ linux-2.6.32/include/linux/ata.h Mon May 14 15:51:42 2012
@@ -819,6 +819,10 @@
{
if (id[ATA_ID_CONFIG] == 0x848A) /* Traditional CF */
return 1;
+ if (id[ATA_ID_CONFIG] == 0x044A) /* Alternative CF w/
removable turned off, preserving retired bits */
+ return 1;
+ if (id[ATA_ID_CONFIG] == 0x0040) /* Alternative CF w/
removable turned off, zeroing retired bits*/
+ return 1;
/*
* CF specs don't require specific value in the word 0 anymore
and yet
* they forbid to report the ATA version in the word 80 and
require the
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: CFA 4.0 patch
2012-05-15 5:17 CFA 4.0 patch Andre Hedrick (anhedric)
@ 2012-05-15 14:38 ` Alan Cox
2012-05-15 18:35 ` Andre Hedrick (anhedric)
0 siblings, 1 reply; 4+ messages in thread
From: Alan Cox @ 2012-05-15 14:38 UTC (permalink / raw)
To: Andre Hedrick (anhedric); +Cc: linux-kernel
> 044Ah: This is the alternate value of Word 0 turns on ATA device and
> turns off Removable Media and Removable Device while preserving all
> Retired bits in the word.
>
> 0040h: This is the alternate value of Word 0 turns on ATA device and
> turns off Removable Media and Removable Device while zeroing all
> Retired bits in the word
>
> Cheers,
> Andre
> --------------------
> The Linux X-ATA/SATA guy
^former ;)
> --- linux-2.6.32.orig/include/linux/ata.h Mon May 14 15:48:24 2012
> +++ linux-2.6.32/include/linux/ata.h Mon May 14 15:51:42 2012
> @@ -819,6 +819,10 @@
> {
> if (id[ATA_ID_CONFIG] == 0x848A) /* Traditional CF */
> return 1;
> + if (id[ATA_ID_CONFIG] == 0x044A) /* Alternative CF w/
> removable turned off, preserving retired bits */
> + return 1;
> + if (id[ATA_ID_CONFIG] == 0x0040) /* Alternative CF w/
> removable turned off, zeroing retired bits*/
> + return 1;
Do you have test case hardware for this that fails the other checks. I've
never ever come across any. I don't believe it exists at this point.
Also 2.6.32 is some years ago 8)
Alan
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: CFA 4.0 patch
2012-05-15 14:38 ` Alan Cox
@ 2012-05-15 18:35 ` Andre Hedrick (anhedric)
2012-05-16 11:32 ` Alan Cox
0 siblings, 1 reply; 4+ messages in thread
From: Andre Hedrick (anhedric) @ 2012-05-15 18:35 UTC (permalink / raw)
To: Alan Cox; +Cc: linux-kernel
Hi Alan,
You betcha, otherwise I would not have a case.
STEC configed to MWDMA4 (Max reported as UDMA/66)
-> ShowCFDriveInfo()
CompactFlash Identify Drive (0xEC)
Word 0: 0x044A
Word 1: 0x07C2
Word 2: 0x0000
Word 3: 0x0010
Word 4: 0x0000
Word 5: 0x0200
Word 6: 0x003F
Word 7: 0x001E
Word 8: 0x8BE0
Word 9: 0x0000
Word 10: 0x2053
Viking configed to MWDMA2 (Max reported as MWDMA2)
-> ShowCFDriveInfo()
CompactFlash Identify Drive (0xEC)
Word 0: 0x044A
Word 1: 0x07AA
Word 2: 0x0000
Word 3: 0x0010
Word 4: 0x0000
Word 5: 0x0240
Word 6: 0x003F
Word 7: 0x001E
Word 8: 0x2D60
Word 9: 0x0000
Word 10: 0x564D
Now I only have data for the 0x044A case, but it is on par with the CFA
4.0 spec that I can send you if you want a copy.
Oh yeah, just so you know I am coming out of retirement and tinkering
with the other insanity, security.
Cheers,
Andre
Linux Former-ATA/SATA guy
^^^^^^
Changed just for you friend.
-----Original Message-----
From: Alan Cox [mailto:alan@lxorguk.ukuu.org.uk]
Sent: Tuesday, May 15, 2012 7:38 AM
To: Andre Hedrick (anhedric)
Cc: linux-kernel@vger.kernel.org
Subject: Re: CFA 4.0 patch
> 044Ah: This is the alternate value of Word 0 turns on ATA device and
> turns off Removable Media and Removable Device while preserving all
> Retired bits in the word.
>
> 0040h: This is the alternate value of Word 0 turns on ATA device and
> turns off Removable Media and Removable Device while zeroing all
> Retired bits in the word
>
> Cheers,
> Andre
> --------------------
> The Linux X-ATA/SATA guy
^former ;)
> --- linux-2.6.32.orig/include/linux/ata.h Mon May 14 15:48:24 2012
> +++ linux-2.6.32/include/linux/ata.h Mon May 14 15:51:42 2012
> @@ -819,6 +819,10 @@
> {
> if (id[ATA_ID_CONFIG] == 0x848A) /* Traditional CF */
> return 1;
> + if (id[ATA_ID_CONFIG] == 0x044A) /* Alternative CF w/
> removable turned off, preserving retired bits */
> + return 1;
> + if (id[ATA_ID_CONFIG] == 0x0040) /* Alternative CF w/
> removable turned off, zeroing retired bits*/
> + return 1;
Do you have test case hardware for this that fails the other checks.
I've
never ever come across any. I don't believe it exists at this point.
Also 2.6.32 is some years ago 8)
Alan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: CFA 4.0 patch
2012-05-15 18:35 ` Andre Hedrick (anhedric)
@ 2012-05-16 11:32 ` Alan Cox
0 siblings, 0 replies; 4+ messages in thread
From: Alan Cox @ 2012-05-16 11:32 UTC (permalink / raw)
To: Andre Hedrick (anhedric); +Cc: linux-kernel
On Tue, 15 May 2012 11:35:57 -0700
"Andre Hedrick (anhedric)" <anhedric@cisco.com> wrote:
> Hi Alan,
>
> You betcha, otherwise I would not have a case.
>
> STEC configed to MWDMA4 (Max reported as UDMA/66)
Both of these however should have the identify data indicating CF ? Do
they also have word 83 not reporting them as CFA ?
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-05-16 11:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-15 5:17 CFA 4.0 patch Andre Hedrick (anhedric)
2012-05-15 14:38 ` Alan Cox
2012-05-15 18:35 ` Andre Hedrick (anhedric)
2012-05-16 11:32 ` Alan Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®