Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1335873
| From | Tejun Heo <tj@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFC PATCH] sata_via: Apply WD workaround only when needed |
| Date | 2016-02-16 22:50 +0100 |
| Message-ID | <r2VFo-57D-1@gated-at.bofh.it> (permalink) |
| References | <r2ySu-6FY-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hello, Ondrej.
On Mon, Feb 15, 2016 at 10:01:47PM +0100, Ondrej Zary wrote:
> The first hdparm is slower because of the error:
> [ 80.964060] ata5.00: exception Emask 0x12 SAct 0x0 SErr 0x1000500 action 0x6
> [ 80.964095] ata5.00: BMDMA stat 0x5
> [ 80.964108] ata5: SError: { UnrecovData Proto TrStaTrns }
> [ 80.964125] ata5.00: failed command: READ DMA EXT
> [ 80.964143] ata5.00: cmd 25/00:90:00:00:00/00:04:00:00:00/e0 tag 0 dma 598016 in
> res 51/84:af:df:00:00/84:03:00:00:00/e0 Emask 0x12 (ATA bus error)
> [ 80.964173] ata5.00: status: { DRDY ERR }
> [ 80.964185] ata5.00: error: { ICRC ABRT }
> [ 80.964209] ata5: hard resetting link
> [ 81.284056] ata5: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
> [ 81.300531] ata5.00: configured for UDMA/133
> [ 81.300569] ata5: Incompatible drive (WD?): enabling workaround
> [ 81.300598] ata5: EH complete
Hmm... I like the workaround but wish the kernel weren't generating
the above output. How about doing something like the following?
svia_error_handler()
{
if (workaround hasn't been applied yet &&
the conditions match for the workaround) {
apply the workaround;
mark as such;
print informational message;
set ATA_EHI_QUIET;
}
ata_sff_error_handler(ap);
}
--
tejun
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[RFC PATCH] sata_via: Apply WD workaround only when needed Ondrej Zary <linux@rainbow-software.org> - 2016-02-15 22:30 +0100
Re: [RFC PATCH] sata_via: Apply WD workaround only when needed Tejun Heo <tj@kernel.org> - 2016-02-16 22:50 +0100
Re: [RFC PATCH] sata_via: Apply WD workaround only when needed Ondrej Zary <linux@rainbow-software.org> - 2016-02-17 00:00 +0100
Re: [RFC PATCH] sata_via: Apply WD workaround only when needed Tejun Heo <tj@kernel.org> - 2016-02-17 19:00 +0100
csiph-web