NetBSD-Bugs archive

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

Re: kern/52372: various SATA controllers throwing 'setting WDCTL_RST failed'



The following reply was made to PR kern/52372; it has been noted by GNATS.

From: =?UTF-8?B?SmFyb23DrXIgRG9sZcSNZWs=?= <jaromir.dolecek%gmail.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: kern-bug-people%netbsd.org@localhost, gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost, 
	relayer%gmail.com@localhost
Subject: Re: kern/52372: various SATA controllers throwing 'setting WDCTL_RST failed'
Date: Sat, 9 Dec 2017 17:22:06 +0100

 --089e0826a108d74e49055feab3c0
 Content-Type: multipart/alternative; boundary="089e0826a108d74e45055feab3bd"
 
 --089e0826a108d74e45055feab3bd
 Content-Type: text/plain; charset="UTF-8"
 
 Thanks.
 
 Can you try if attached patch makes any difference? It merely changes the
 timeout for the command to 1s. It's not likely the problem since the
 attached devices are supposed to be fast (SSD and very recent WD disks).
 
 Other thing to check, is the controller set to 'AHCI' mode in BIOS and not
 RAID or 'compatible' or some such?
 
 Jaromir
 
 
 
 2017-12-09 15:45 GMT+01:00 Petar Bogdanovic <petar%smokva.net@localhost>:
 >
 > The following reply was made to PR kern/52372; it has been noted by GNATS.
 >
 > From: Petar Bogdanovic <petar%smokva.net@localhost>
 > To: gnats-bugs%NetBSD.org@localhost
 > Cc: jdolecek%NetBSD.org@localhost
 > Subject: Re: kern/52372: various SATA controllers throwing 'setting
 WDCTL_RST
 >  failed'
 > Date: Sat, 9 Dec 2017 15:40:10 +0100
 >
 >  Same here with one HighPoint Rocket 640L adapter and four disks:
 >
 >      1 x Samsung SSD
 >      3 x WD Blue 6TB
 >
 >  Fails with netbsd-8 and netbsd-current (8.12.2017),
 >  works with netbsd-6-0.
 >
 >  Full dmesg here:
 >
 >      https://smokva.net/wdctl_rst/dmesg-nb8.txt
 >      https://smokva.net/wdctl_rst/dmesg-nbC.txt
 >
 >  relevant part:
 >
 >      ahcisata0 port 0: device present, speed: 6.0Gb/s
 >      ahcisata0 port 3: device present, speed: 6.0Gb/s
 >      ahcisata0 port 1: device present, speed: 6.0Gb/s
 >      ahcisata0 port 2: device present, speed: 6.0Gb/s
 >      ahcisata0 port 7: device present, speed: 1.5Gb/s
 >      ahcisata0 channel 0: setting WDCTL_RST failed for drive 0
 >      ahcisata0 channel 3: setting WDCTL_RST failed for drive 0
 >      ahcisata0 channel 7: setting WDCTL_RST failed for drive 0
 >      ahcisata0 channel 1: setting WDCTL_RST failed for drive 0
 >
 >  Let me know if I can help; will try netbsd-7 later today.
 >
 >  Petar
 >
 >
 >  P.S. I don't know what device is on port 7, maybe some proprietary
 >  softraid implementation.  Appears on nb6, nb8 and current.
 >
 
 --089e0826a108d74e45055feab3bd
 Content-Type: text/html; charset="UTF-8"
 Content-Transfer-Encoding: quoted-printable
 
 <div dir=3D"ltr">Thanks.<div><br></div><div>Can you try if attached patch m=
 akes any difference? It merely changes the timeout for the command to 1s. I=
 t&#39;s not likely the problem since the attached devices are supposed to b=
 e fast (SSD and very recent WD disks).<br><br>Other thing to check, is the =
 controller set to &#39;AHCI&#39; mode in BIOS and not RAID or &#39;compatib=
 le&#39; or some such?<div><br>Jaromir<br><br><br><br>2017-12-09 15:45 GMT+0=
 1:00 Petar Bogdanovic &lt;<a href=3D"mailto:petar%smokva.net@localhost";>petar@smokva.=
 net</a>&gt;:<br>&gt;<br>&gt; The following reply was made to PR kern/52372;=
  it has been noted by GNATS.<br>&gt;<br>&gt; From: Petar Bogdanovic &lt;<a =
 href=3D"mailto:petar%smokva.net@localhost";>petar%smokva.net@localhost</a>&gt;<br>&gt; To: gnats=
 -bugs%NetBSD.org@localhost<br>&gt; Cc: jdolecek%NetBSD.org@localhost<br>&gt; Subject: Re: kern/=
 52372: various SATA controllers throwing &#39;setting WDCTL_RST<br>&gt; =C2=
 =A0failed&#39;<br>&gt; Date: Sat, 9 Dec 2017 15:40:10 +0100<br>&gt;<br>&gt;=
  =C2=A0Same here with one HighPoint Rocket 640L adapter and four disks:<br>=
 &gt;<br>&gt; =C2=A0 =C2=A0 =C2=A01 x Samsung SSD<br>&gt; =C2=A0 =C2=A0 =C2=
 =A03 x WD Blue 6TB<br>&gt;<br>&gt; =C2=A0Fails with netbsd-8 and netbsd-cur=
 rent (8.12.2017),<br>&gt; =C2=A0works with netbsd-6-0.<br>&gt;<br>&gt; =C2=
 =A0Full dmesg here:<br>&gt;<br>&gt; =C2=A0 =C2=A0 =C2=A0<a href=3D"https://=
 smokva.net/wdctl_rst/dmesg-nb8.txt">https://smokva.net/wdctl_rst/dmesg-nb8.=
 txt</a><br>&gt; =C2=A0 =C2=A0 =C2=A0<a href=3D"https://smokva.net/wdctl_rst=
 /dmesg-nbC.txt">https://smokva.net/wdctl_rst/dmesg-nbC.txt</a><br>&gt;<br>&=
 gt; =C2=A0relevant part:<br>&gt;<br>&gt; =C2=A0 =C2=A0 =C2=A0ahcisata0 port=
  0: device present, speed: 6.0Gb/s<br>&gt; =C2=A0 =C2=A0 =C2=A0ahcisata0 po=
 rt 3: device present, speed: 6.0Gb/s<br>&gt; =C2=A0 =C2=A0 =C2=A0ahcisata0 =
 port 1: device present, speed: 6.0Gb/s<br>&gt; =C2=A0 =C2=A0 =C2=A0ahcisata=
 0 port 2: device present, speed: 6.0Gb/s<br>&gt; =C2=A0 =C2=A0 =C2=A0ahcisa=
 ta0 port 7: device present, speed: 1.5Gb/s<br>&gt; =C2=A0 =C2=A0 =C2=A0ahci=
 sata0 channel 0: setting WDCTL_RST failed for drive 0<br>&gt; =C2=A0 =C2=A0=
  =C2=A0ahcisata0 channel 3: setting WDCTL_RST failed for drive 0<br>&gt; =
 =C2=A0 =C2=A0 =C2=A0ahcisata0 channel 7: setting WDCTL_RST failed for drive=
  0<br>&gt; =C2=A0 =C2=A0 =C2=A0ahcisata0 channel 1: setting WDCTL_RST faile=
 d for drive 0<br>&gt;<br>&gt; =C2=A0Let me know if I can help; will try net=
 bsd-7 later today.<br>&gt;<br>&gt; =C2=A0Petar<br>&gt;<br>&gt;<br>&gt; =C2=
 =A0P.S. I don&#39;t know what device is on port 7, maybe some proprietary<b=
 r>&gt; =C2=A0softraid implementation.=C2=A0 Appears on nb6, nb8 and current=
 .<br>&gt;<br></div></div></div>
 
 --089e0826a108d74e45055feab3bd--
 --089e0826a108d74e49055feab3c0
 Content-Type: text/plain; charset="US-ASCII"; name="ahcisata_fix_wdctl_rst.diff"
 Content-Disposition: attachment; filename="ahcisata_fix_wdctl_rst.diff"
 Content-Transfer-Encoding: base64
 X-Attachment-Id: f_jazjqrp80
 
 SW5kZXg6IGFoY2lzYXRhX2NvcmUuYwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBmaWxlOiAvY3Zzcm9vdC9zcmMv
 c3lzL2Rldi9pYy9haGNpc2F0YV9jb3JlLmMsdgpyZXRyaWV2aW5nIHJldmlzaW9uIDEuNjAKZGlm
 ZiAtdSAtcCAtcjEuNjAgYWhjaXNhdGFfY29yZS5jCi0tLSBhaGNpc2F0YV9jb3JlLmMJMTEgTm92
 IDIwMTcgMTY6NDk6MTMgLTAwMDAJMS42MAorKysgYWhjaXNhdGFfY29yZS5jCTkgRGVjIDIwMTcg
 MTY6MjA6MDYgLTAwMDAKQEAgLTcxMCwyMSArNzEwLDExIEBAIGFoY2lfZXhlY19maXMoc3RydWN0
 IGF0YV9jaGFubmVsICpjaHAsIGkKIAlpbnQgaTsKIAl1aW50MzJfdCBpczsKIAotCS8qCi0JICog
 QmFzZSB0aW1lb3V0IGlzIHNwZWNpZmllZCBpbiBtcy4KLQkgKiBJZiB3ZSBhcmUgYWxsb3dlZCB0
 byBzbGVlcCwgd2FpdCBhIHRpY2sgZWFjaCByb3VuZC4KLQkgKiBPdGhlcndpc2UgZGVsYXkgZm9y
 IDEwbXMgb24gZWFjaCByb3VuZC4KLQkgKi8KLQlpZiAoZmxhZ3M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