Re: libata-scsi: ata_to_sense_error handling status 0x40

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Aug 31, 2022 at 9:48 AM Damien Le Moal
<damien.lemoal@xxxxxxxxxxxxxxxxxx> wrote:
> On 8/31/22 16:15, Hannes Reinecke wrote:
> > Oh, of course :-)
> > That was when doing SMR support for libata.
> > I dimly remember that some pre-spec drives had been using the DRDY bit
> > to signal an unaligned write. Which never made it into the spec, but the
> > decoding stayed.
>
> Any idea where the other bits come from ? Except for bit 5 (device fault),
> I do not see anything else in the specs that mandate these definitions...

I have since discovered the "SCSI to ATA" specification which has two
tables about mapping ATA errors to SCSI errors. Among those I was able
to find an "unaligned write" case as well, but I cannot properly parse
the rest of the two tables yet. They are in sections 11.6 and 11.7 of
that document.

> > Will be sending a patch.
> Thanks !

I concur: Thanks!

Cheers,
Peter



[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux