RE: CFA 4.0 patch

From: Andre Hedrick (anhedric)
Date: Tue May 15 2012 - 14:35:57 EST


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@xxxxxxxxxxxxxxxxxxx]
Sent: Tuesday, May 15, 2012 7:38 AM
To: Andre Hedrick (anhedric)
Cc: linux-kernel@xxxxxxxxxxxxxxx
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/