Re: [QUESTION] ATA: abnormal status 0x80 on port 0xCC07

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

 



On 07/02/07, Michal Piotrowski <[email protected]> wrote:
On 06/02/07, Michal Piotrowski <[email protected]> wrote:
[..]
> I'll revert this patch.
>
> commit 7a0f1c8a4b1052da7efc7715e2e557255b632712
> Author: Lennert Buytenhek <[email protected]>
> Date:   Mon Jan 29 13:28:47 2007 +0100
>
>     ata_if_xfermask() word 51 fix
>
>     If word 53 bit 1 isn't set, the maximum PIO mode is indicated by
>     the upper 8 bits of word 51, not the lower 8 bits.  Fixes PIO mode
>     detection on old Compact Flash cards.
>
>     Signed-off-by: Lennert Buytenhek <[email protected]>
>     Signed-off-by: Jeff Garzik <[email protected]>
>

It's not this patch. Maybe this one?

commit 49c8042996c84f0df6c49ea2e28a7ef38cd7d773
Author: Brian King <[email protected]>
Date:   Tue Jan 30 11:32:26 2007 -0600

    libata: Initialize nbytes for internal sg commands

    Some LLDDs, like ipr, use nbytes and pad_len to determine
    the total data transfer length of a command. Make sure
    nbytes gets initialized for internally generated commands.

    Signed-off-by: Brian King <[email protected]>
    Signed-off-by: Jeff Garzik <[email protected]>

diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index cf70702..667acd2 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -1250,6 +1250,7 @@ unsigned ata_exec_internal_sg(struct ata

                ata_sg_init(qc, sg, n_elem);
                qc->nsect = buflen / ATA_SECT_SIZE;
+               qc->nbytes = buflen;
        }

        qc->private_data = &wait;

It has something to do with SCSI commands.

Kernel still hangs...

Regards,
Michal

--
Michal K. K. Piotrowski
LTG - Linux Testers Group
(http://www.stardust.webpages.pl/ltg/)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux