Possible NCQ problem with Seagate ST3250620NS/nForce 4
Hi Jens,
I had the same problem a few month ago when ADMA with NFORCE4 was introduced in 2.6.21 kernel.
I suspected a SAMSUNG HD401LJ to be the bad drive.
Someone from the list mentioned that a bad/weak PSU may be responsible for the trouble.
It was hard for me to believe that this was the case, since my system only uses 130W at full load and my former 350W PSU had 170W output power. And I never had any trouble with this setup before.
Moreover my system worked fine with ADMA disabled -> you can switch off ADMA with bootparam "sata_nv.adma=0" in grub.
So I really thought the drive or some bug caused my problem.
But now I got the chance to try out a new PSU 550W Seasonic.
With the new PSU I don't get the reset errors anymore and my box stopped freezing, my System works fine for 2 weeks now. It seems like NFORCE4 in ADMA Mode is very sensitive if there are power issues.
Cheers
----- Ursprüngliche Mail ----
Von: Jens Prüfer <[email protected]>
An: [email protected]
CC: [email protected]
Gesendet: Mittwoch, den 24. Oktober 2007, 20:33:53 Uhr
Betreff: Possible NCQ problem with Seagate ST3250620NS/nForce 4
Hi,
I am experiencing reproducible timeout problems when using NCQ-enabled kernels (tried various Debian and Ubuntu kernels as well as vanilla 2.6.23.1. It runs ok for a few minutes, but the first time there is any
real load on the drive, it freezes (heaps of timeouts) until NCQ gets switched off.
--- snip ---
[ 202.616000] ata1: EH in ADMA mode, notifier 0x0 notifier_error 0x0 gen_ctl 0x1501000 status 0x400 next cpb count 0x4 next cpb idx 0x0 [ 202.616000] ata1: CPB 0: ctl_flags 0x1f, resp_flags 0x0 [ 202.616000] ata1: CPB 1: ctl_flags 0x1f, resp_flags 0x0 [ 202.616000] ata1: CPB 2: ctl_flags 0x1f, resp_flags 0x0 [ 202.616000] ata1: CPB 3: ctl_flags 0x1f, resp_flags 0x0 [ 202.616000] ata1: CPB 4: ctl_flags 0x1f, resp_flags 0x0 [ 202.616000] ata1: timeout waiting for ADMA IDLE, stat=0x400 [ 202.616000] ata1: timeout waiting for ADMA LEGACY, stat=0x400 [ 202.616000] ata1.00: exception Emask 0x0 SAct 0x1f SErr 0x0 action 0x2 frozen [ 202.616000] ata1.00: cmd 61/00:00:b5:d1:28/02:00:17:00:00/40 tag 0 cdb 0x0 data 262144 out [ 202.616000] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout) [ 202.616000] ata1.00: cmd 61/78:08:b5:d3:28/01:00:17:00:00/40 tag 1 cdb 0x0 data 192512 out [ 202.616000] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout) [ 202.616000] ata1.00: cmd 61/08:10:a5:45:27/00:00:17:00:00/40 tag 2 cdb 0x0 data 4096 out [ 202.616000] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout) [ 202.616000] ata1.00: cmd 60/10:18:15:4e:b9/00:00:1a:00:00/40 tag 3 cdb 0x0 data 8192 in [ 202.616000] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout) [ 202.616000] ata1.00: cmd 60/08:20:25:4a:df/00:00:1a:00:00/40 tag 4 cdb 0x0 data 4096 in [ 202.616000] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout) [ 202.932000] ata1: soft resetting port [ 203.088000] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300) [ 203.248000] ata1.00: configured for UDMA/133 [ 203.248000] ata1: EH complete [ 203.248000] sd 0:0:0:0: [sda] 488397168 512-byte hardware sectors (250059 MB) [ 203.248000] sd 0:0:0:0: [sda] Write Protect is off [ 203.248000] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 [ 203.252000] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 233.248000] ata1: EH in ADMA mode, notifier 0x0 notifier_error 0x0 gen_ctl 0x1501000 status 0x400 next cpb count 0x4 next cpb idx 0x0 [ 233.248000] ata1: CPB 0: ctl_flags 0x1f, resp_flags 0x0 [ 233.248000] ata1: CPB 1: ctl_flags 0x1f, resp_flags 0x0 [ 233.248000] ata1: CPB 2: ctl_flags 0x1f, resp_flags 0x0 [ 233.248000] ata1: CPB 3: ctl_flags 0x1f, resp_flags 0x0 [ 233.248000] ata1: CPB 4: ctl_flags 0x1f, resp_flags 0x0 [ 233.248000] ata1: timeout waiting for ADMA IDLE, stat=0x400 [ 233.248000] ata1: timeout waiting for ADMA LEGACY, stat=0x400 [ 233.248000] ata1.00: NCQ disabled due to excessive errors
--- snap ---
The device is a Seagate ST3250620NS. Maybe it should be blacklisted as
well?
Anyhow, I cannot find any boot parameter to switch off NCQ and
circumvent
the freezing of the drive. Something like the "noacpi" option (maybe noncq?) would be nice. Or am I missing something?
Cheers,
Jens Prüfer
-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Jetzt Mails schnell in einem Vorschaufenster überfliegen. Dies und viel mehr bietet das neue Yahoo! Mail - www.yahoo.de/mail
Hi Kuckuck,
sorry for the late reply, but I have been on the road the last few days.
Quoted 4 lines
Someone from the list mentioned that a bad/weak PSU may be responsible for the trouble. It was hard for me to believe that this was the case, since my system only uses 130W at full load and my former 350W PSU had 170W output power.
I am also using very high quality compontents. ASUS A8N-SLI Premium mainboards in both cases (see blelow), SeaSonic PSU 450 W, passively cooled low-end GPU (NVidia 8500GT), no frills, nothing to bring down either power line (5 V or 12 V) of the PSU.
However, I am running into the same problems on a different machine with a SAMSUNG SP2504C SATA drive.
--- snip ---
[ 0.000000] Linux version 2.6.22-14-generic (buildd@palmer) (gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)) #1 SMP Sun Oct 14 23:05:12 GMT 2007 (Ubuntu 2.6.22-14.46-generic)
...
[ 4.936000] sata_nv 0000:00:08.0: version 3.4
[ 4.936000] sata_nv 0000:00:08.0: Using ADMA mode
...
[ 800.196000] ata1: timeout waiting for ADMA IDLE, stat=0x400
[ 800.196000] ata1: timeout waiting for ADMA LEGACY, stat=0x400 [ 800.196000] ata1.00: exception Emask 0x0 SAct 0x7ffff SErr 0x200000 action 0x2 frozen
[ 800.196000] ata1.00: cmd 61/00:00:1c:03:3c/04:00:1b:00:00/40 tag 0 cdb 0x0 data 524288 out
[ 800.196000] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[ 800.196000] ata1.00: cmd 61/00:08:1c:ff:3b/02:00:1b:00:00/40 tag 1 cdb 0x0 data 262144 out
[ 800.196000] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[ 800.196000] ata1.00: cmd 61/00:10:1c:01:3c/02:00:1b:00:00/40 tag 2 cdb 0x0 data 262144 out
...
[ 918.972000] ata1: timeout waiting for ADMA IDLE, stat=0x400
[ 918.972000] ata1: timeout waiting for ADMA LEGACY, stat=0x400 [ 918.972000] ata1.00: NCQ disabled due to excessive errors
[ 918.972000] ata1.00: exception Emask 0x0 SAct 0x1fffff SErr 0x0 action 0x2 frozen
[ 918.972000] ata1.00: cmd 60/08:00:f4:75:14/00:00:1b:00:00/40 tag 0 cdb 0x0 data 4096 in
[ 918.972000] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[ 918.972000] ata1.00: cmd 61/08:08:bc:1e:fe/00:00:1a:00:00/40 tag 1 cdb 0x0 data 4096 out
[ 918.972000] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[ 918.972000] ata1.00: cmd 61/40:10:ac:1d:4a/00:00:1a:00:00/40 tag 2 cdb 0x0 data 32768 out
[ 918.972000] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
...
[ 919.284000] ata1: soft resetting port
[ 919.440000] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300) [ 919.960000] ata1.00: configured for UDMA/133
[ 919.960000] ata1: EH complete
[ 920.056000] sd 0:0:0:0: [sda] 488397168 512-byte hardware sectors (250059 MB)
[ 920.056000] sd 0:0:0:0: [sda] Write Protect is off
[ 920.056000] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 920.056000] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
... and the drive is working again.
The common denominator here is: both machines use the NForce4 chipset, both use the sata_nv driver and both are trying to use LVM over dm-crypt.
The very same hardware without LVM over dm-crypt runs like a charm.
I am of course not sure, but is it possible that there might be a bug when combining sata_nv, NCQ and LVM mapped devices? Can someone else look into this issue?
Thanks!
Jens