Re: HSM violation errors

2007-12-25 Thread Robert Hancock
Jeff Mitchell wrote: I'm seeing errors in dmesg and the like. It appears to be somewhat similar to the issue reported here: http://kerneltrap.org/mailarchive/linux-kernel/2007/8/25/164711 except that my machine doesn't freeze, and everything seems normal -- hopefully nothing like silent corrupti

HSM violation errors

2007-12-24 Thread Jeff Mitchell
00:01:00:00/40 Emask 0x2 (HSM violation) ata1.00: cmd 61/08:10:a6:fb:c5/00:00:01:00:00/40 tag 2 cdb 0x0 data 4096 out res 50/00:08:46:4c:d4/00:00:01:00:00/40 Emask 0x2 (HSM violation) ata1.00: cmd 61/08:18:fe:00:c8/00:00:01:00:00/40 tag 3 cdb 0x0 data 4096 out res 50/00:08:46:4c:

Re: [PATCH] libata drain fifo on stuck DRQ HSM violation

2007-09-29 Thread Mark Lord
Alan Cox wrote: Why 512 words ? Though I have queued Mark's patch to be applied, my gut feeling would lean towards a single DRQ block, rather than 512. Why not just work from the old IDE code. ata_altstatus(ap); - ata_chk_status(ap); + ata_drain_fifo(ap, qc); ap->ops->c

Re: [PATCH] libata drain fifo on stuck DRQ HSM violation (try#2)

2007-09-28 Thread Jeff Garzik
Mark Lord wrote: I think this original patch still applies cleanly on at least 2.6.23-rc7. Drain up to 512 words from host/bridge FIFO on stuck DRQ HSM violation, rather than just getting stuck there forever. Signed-off-by: Mark Lord <[EMAIL PROTECTED]> --- --- old/drivers/ata/libata

Re: [PATCH] libata drain fifo on stuck DRQ HSM violation

2007-09-28 Thread Alan Cox
> > Why 512 words ? > > Though I have queued Mark's patch to be applied, my gut feeling would > lean towards a single DRQ block, rather than 512. Why not just work from the old IDE code. > > > >>ata_altstatus(ap); > >> - ata_chk_status(ap); > >> + ata_drain_fifo(ap, qc); > > > > ap->ops

Re: [PATCH] libata drain fifo on stuck DRQ HSM violation

2007-09-28 Thread Jeff Garzik
Alan Cox wrote: Drain up to 512 words from host/bridge FIFO on stuck DRQ HSM violation, rather than just getting stuck there forever. Why 512 words ? Though I have queued Mark's patch to be applied, my gut feeling would lean towards a single DRQ block, rather tha

[PATCH] libata drain fifo on stuck DRQ HSM violation (try#2)

2007-09-28 Thread Mark Lord
Alan Cox wrote: Drain up to 512 words from host/bridge FIFO on stuck DRQ HSM violation, rather than just getting stuck there forever. Why 512 words ? ata_altstatus(ap); - ata_chk_status(ap); + ata_drain_fifo(ap, qc); ap->ops->cleanup(); might be wiser Actua

Re: [PATCH] libata drain fifo on stuck DRQ HSM violation

2007-09-28 Thread Alan Cox
> Drain up to 512 words from host/bridge FIFO on stuck DRQ HSM violation, > rather than just getting stuck there forever. Why 512 words ? > ata_altstatus(ap); > - ata_chk_status(ap); > + ata_drain_fifo(ap, qc); ap->ops->cleanup(); might be wiser - To unsub

Re: [PATCH] libata drain fifo on stuck DRQ HSM violation

2007-09-28 Thread Tejun Heo
> Nacked-by: scripts/checkpatch.pl Mark, it seems you'll have to get ACK from this dude first. :-) -- tejun - 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

Re: [PATCH] libata drain fifo on stuck DRQ HSM violation

2007-09-28 Thread Andrew Morton
On Fri, 28 Sep 2007 02:48:28 -0700 Tejun Heo <[EMAIL PROTECTED]> wrote: > Mark Lord wrote: > > Drain up to 512 words from host/bridge FIFO on stuck DRQ HSM violation, > > rather than just getting stuck there forever. > > > > Signed-Off-By: Mark Lord <[EMAIL

Re: [PATCH] libata drain fifo on stuck DRQ HSM violation

2007-09-28 Thread Tejun Heo
Mark Lord wrote: > Drain up to 512 words from host/bridge FIFO on stuck DRQ HSM violation, > rather than just getting stuck there forever. > > Signed-Off-By: Mark Lord <[EMAIL PROTECTED]> Acked-by: Tejun Heo <[EMAIL PROTECTED]> -- tejun - To unsubscribe from

[PATCH] libata drain fifo on stuck DRQ HSM violation

2007-09-27 Thread Mark Lord
can you be bothered to regenerate the patch and post it one more time (again)? It seems we all agree the update is needed. I think this original patch still applies cleanly on at least 2.6.23-rc7. Drain up to 512 words from host/bridge FIFO on stuck DRQ HSM violation, rather than just getting s

Re: Stardom SATA HSM violation

2007-09-27 Thread Mark Lord
Tejun Heo wrote: Alan Cox wrote: I think there have been enough cases where this draining was necessary. IIRC, ata_piix was involved in those cases, right? If so, can you please submit a patch which applies this only to affected controllers? I don't feel too confident about applying this to al

Re: Stardom SATA HSM violation

2007-09-27 Thread Tejun Heo
Jeff Garzik wrote: > Tejun Heo wrote: >> Alan Cox wrote: I think there have been enough cases where this draining was necessary. IIRC, ata_piix was involved in those cases, right? If so, can you please submit a patch which applies this only to affected controllers? I don't fee

Re: Stardom SATA HSM violation

2007-09-27 Thread Jeff Garzik
Tejun Heo wrote: Alan Cox wrote: I think there have been enough cases where this draining was necessary. IIRC, ata_piix was involved in those cases, right? If so, can you please submit a patch which applies this only to affected controllers? I don't feel too confident about applying this to al

Re: Stardom SATA HSM violation

2007-09-27 Thread Tejun Heo
Alan Cox wrote: >> I think there have been enough cases where this draining was necessary. >> IIRC, ata_piix was involved in those cases, right? If so, can you >> please submit a patch which applies this only to affected controllers? >> I don't feel too confident about applying this to all SFF co

Re: Stardom SATA HSM violation

2007-09-27 Thread Alan Cox
> I think there have been enough cases where this draining was necessary. > IIRC, ata_piix was involved in those cases, right? If so, can you > please submit a patch which applies this only to affected controllers? > I don't feel too confident about applying this to all SFF controllers. Old IDE

Re: Stardom SATA HSM violation

2007-09-27 Thread Tejun Heo
Mark Lord wrote: > Tejun Heo wrote: >> Hello, >> >> Mark Lord wrote: >>> I reported a very similar bug back a few releases ago. >>> Anyone who wants to try it themselves, can do this with hdparm-7.7 (from >>> sourceforge): >>> >>>hdparm --drq-hsm-error /dev/sda >>> >>> Whether or not it hangs t

Re: HSM violation with ahci+WDC WD1600BEVS-22RST0

2007-09-24 Thread Maurizio Monge
No, i did not manage to improve (it should NOT be a dangerous error BTW). I simply think that this issue is because of buggy firmware, so i posted to linux-ide a patch to blacklist this hard disk from using NCQ (because it is triggering spurious completions). I don't know what the "blacklisting pol

Re: Stardom SATA HSM violation

2007-09-07 Thread Mark Lord
Tejun Heo wrote: Hello, Mark Lord wrote: I reported a very similar bug back a few releases ago. Anyone who wants to try it themselves, can do this with hdparm-7.7 (from sourceforge): hdparm --drq-hsm-error /dev/sda Whether or not it hangs the machine does depend upon exactly which SATA LLD

Re: Stardom SATA HSM violation

2007-09-06 Thread Tejun Heo
Hello, Mark Lord wrote: > I reported a very similar bug back a few releases ago. > Anyone who wants to try it themselves, can do this with hdparm-7.7 (from > sourceforge): > >hdparm --drq-hsm-error /dev/sda > > Whether or not it hangs the machine does depend upon exactly which SATA > LLD is

Re: Stardom SATA HSM violation

2007-09-06 Thread Tejun Heo
Bryan Woods wrote: > The full dmesg and hdparm -I command output are attached. > > I have received word from the vendor that the Stardom 2611 will do > RAID0 or 1 under windows, but only RAID1 under Linux. (Their manual > said it worked with Linux but failed to mention the RAID mode > restriction

Re: Stardom SATA HSM violation

2007-09-06 Thread Bryan Woods
e Barracuda 7200 10"s. Here's the device: >>> >>> >>> http://www.synetic.net/Synetic-Products/Stardoms/SR-2611-SA/Stardom-2611.htm >>> >>> During the install and at different points in the process I get an "HSM >>> violat

Re: Stardom SATA HSM violation

2007-09-05 Thread Mark Lord
xception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen ata3.00: cmd ec/00:00:00:00:00/00:00:00:00:00/40 tag 0 cdb 0x0 data 0 res 58/00:01:00:00:00/00:00:00:00:00/40 Emask 0x2 (HSM violation) ata3: soft resetting port ata3.00: configured for UDMA/100 ata3: EH complete sd 2:0:0:0: [sda]

Re: Stardom SATA HSM violation

2007-09-05 Thread Andrew Morton
ng "stuck DRQ" host state machine error do_drq_hsm_error: Success ata status=0x58 ata error=0x00 ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen ata3.00: cmd ec/00:00:00:00:00/00:00:00:00:00/40 tag 0 cdb 0x0 data 0 res 58/00:01:00:00:00/00:00:00:00:00/40 Em

Re: Stardom SATA HSM violation

2007-09-05 Thread Mark Lord
e: http://www.synetic.net/Synetic-Products/Stardoms/SR-2611-SA/Stardom-2611.htm During the install and at different points in the process I get an "HSM violation" and the system becomes unresponsive. It looks like a similar situation to: http://lkml.org/lkml/2007/6/6/195 Will more r

Re: Stardom SATA HSM violation

2007-09-05 Thread Andrew Morton
s one SATA drive. If it matters, the > >> underlying HDs are "Seagate Barracuda 7200 10"s. Here's the device: > >> > >> > >> http://www.synetic.net/Synetic-Products/Stardoms/SR-2611-SA/Stardom-2611.htm > >> > >> During the inst

Re: Stardom SATA HSM violation

2007-09-03 Thread Tejun Heo
gt; >> http://www.synetic.net/Synetic-Products/Stardoms/SR-2611-SA/Stardom-2611.htm >> >> During the install and at different points in the process I get an "HSM >> violation" and the system becomes unresponsive. It looks like a similar >> situation to: >> >&

Re: Stardom SATA HSM violation

2007-08-26 Thread Michal Piotrowski
> During the install and at different points in the process I get an "HSM > violation" and the system becomes unresponsive. It looks like a similar > situation to: > > http://lkml.org/lkml/2007/6/6/195 > > Will more recent kernels work with this hardware (should I k

Stardom SATA HSM violation

2007-08-24 Thread Bryan Woods
underlying HDs are "Seagate Barracuda 7200 10"s. Here's the device: http://www.synetic.net/Synetic-Products/Stardoms/SR-2611-SA/Stardom-2611.htm During the install and at different points in the process I get an "HSM violation" and the system becomes unresponsive

Re: hsm violation

2007-06-25 Thread Enrico Sardi
Enrico Sardi wrote: This is the result of hdparm -I /dev/sda: /dev/sda: ATA device, with non-removable media Model Number: Hitachi HTS541616J9SA00 Just in case, you didn't add "Hitachi " in the front of Model Number string, right? It looks a bit odd because all other HTS541

Re: hsm violation

2007-06-24 Thread Tejun Heo
Enrico Sardi wrote: > This is the result of hdparm -I /dev/sda: > > /dev/sda: > > ATA device, with non-removable media >Model Number: Hitachi HTS541616J9SA00 Just in case, you didn't add "Hitachi " in the front of Model Number string, right? It looks a bit odd because all other HTS541

Re: hsm violation

2007-06-24 Thread Tejun Heo
Andrew Morton wrote: > That great spew of "set_level status: 0" is fairly annoying and useless. I don't know where those are coming from. It's not from libata. -- tejun - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More m

Re: hsm violation

2007-06-24 Thread Tejun Heo
Robert Hancock wrote: > Andrew Morton wrote: >> On Sun, 24 Jun 2007 14:32:22 +0200 Enrico Sardi <[EMAIL PROTECTED]> >> wrote: >>> [ 61.176000] ata1.00: exception Emask 0x2 SAct 0x2 SErr 0x0 action >>> 0x2 frozen >>> [ 61.176000] ata1.00: (spurious completions during NCQ issue=0x0 >>> SAct=0x2 F

Re: hsm violation

2007-06-24 Thread Robert Hancock
Andrew Morton wrote: On Sun, 24 Jun 2007 14:32:22 +0200 Enrico Sardi <[EMAIL PROTECTED]> wrote: [ 61.176000] ata1.00: exception Emask 0x2 SAct 0x2 SErr 0x0 action 0x2 frozen [ 61.176000] ata1.00: (spurious completions during NCQ issue=0x0 SAct=0x2 FIS=005040a1:0004) .. It's not obv

Re: hsm violation

2007-06-24 Thread Andrew Morton
04) > [ 61.176000] ata1.00: cmd 60/08:08:37:cc:00/00:00:0c:00:00/40 tag 1 > cdb 0x0 data 4096 in > [ 61.176000] res 50/00:08:27:3c:ed/00:00:0b:00:00/40 Emask > 0x2 (HSM violation) > [ 61.488000] ata1: soft resetting port > [ 61.66] ata1: SATA li

hsm violation

2007-06-24 Thread Enrico Sardi
:00:00/40 Emask 0x2 (HSM violation) [ 61.488000] ata1: soft resetting port [ 61.66] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300) [ 61.66] ata1.00: ata_hpa_resize 1: sectors = 312581808, hpa_sectors = 312581808 [ 61.66] ata1.00: ata_hpa_resize 1: sectors = 312581808