From owner-freebsd-bugs@freebsd.org Thu Aug 27 02:45:18 2020 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 87C133C485C for ; Thu, 27 Aug 2020 02:45:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4BcRsp3591z42Jn for ; Thu, 27 Aug 2020 02:45:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 69E843C4940; Thu, 27 Aug 2020 02:45:18 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 69AC53C4B35 for ; Thu, 27 Aug 2020 02:45:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BcRsp29jKz42h4 for ; Thu, 27 Aug 2020 02:45:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 2E40B1D0C3 for ; Thu, 27 Aug 2020 02:45:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 07R2jId2085207 for ; Thu, 27 Aug 2020 02:45:18 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 07R2jIFg085206 for bugs@FreeBSD.org; Thu, 27 Aug 2020 02:45:18 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 229745] ahcich: CAM status: Command timeout Date: Thu, 27 Aug 2020 02:45:12 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: daniel@morante.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Aug 2020 02:45:18 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D229745 Daniel Morante changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |daniel@morante.net --- Comment #54 from Daniel Morante --- I am using FreeBSD 12.1-RELEASE amd64 with two WDS500G2B0B attached to a Ableconn PEXM2-122 Dual M.2 SATA SSD Controller. These are all brand new f= resh out of the box components. ``` ahci0: mem 0xfe6fe000-0xfe6fffff irq= 16 at device 0.0 on pci4 ahci0: AHCI v1.31 with 12 6Gbps ports, Port Multiplier supported ahci0: quirks=3D0xc00000 ahcich0: at channel 0 on ahci0 ahcich1: at channel 1 on ahci0 ahcich4: at channel 4 on ahci0 ahcich5: at channel 5 on ahci0 ahcich6: at channel 6 on ahci0 ahcich7: at channel 7 on ahci0 ahcich8: at channel 8 on ahci0 ahcich9: at channel 9 on ahci0 ahcich10: at channel 10 on ahci0 ahcich11: at channel 11 on ahci0 ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: ACS-4 ATA SATA 3.x device ada0: Serial Number 20274C802827 ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 512bytes) ada0: Command Queueing enabled ada0: 476940MB (976773168 512 byte sectors) ada1 at ahcich1 bus 0 scbus1 target 0 lun 0 ada1: ACS-4 ATA SATA 3.x device ada1: Serial Number 20274C804009 ada1: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 512bytes) ada1: Command Queueing enabled ada1: 476940MB (976773168 512 byte sectors) ``` I created a mirrored pool and was able to copy/move a few files to it witho= ut any issues. ``` zpool create -m /mnt/internal internal mirror ada0 ada1 ``` Once I try to copy a large amount of files, I start to see hangups and erro= rs like the ones described on this bug and eventually the two drives get detac= hed. ``` ahcich0: Timeout on slot 22 port 0 ahcich0: is 00000000 cs 00400000 ss 00000000 rs 00400000 tfd 150 serr 00000= 000 cmd 0004c917 (aprobe0:ahcich0:0:0:0): ATA_IDENTIFY. ACB: ec 00 00 00 00 40 00 00 00 00 0= 0 00 (aprobe0:ahcich0:0:0:0): CAM status: Command timeout (aprobe0:ahcich0:0:0:0): Error 5, Retries exhausted ahcich0: Poll timeout on slot 23 port 0 ahcich0: is 00000000 cs 00800000 ss 00000000 rs 00800000 tfd 150 serr 00000= 000 cmd 0004c917 (aprobe0:ahcich0:0:0:0): SOFT_RESET. ACB: 00 00 00 00 00 00 00 00 00 00 00 = 00 (aprobe0:ahcich0:0:0:0): CAM status: Command timeout (aprobe0:ahcich0:0:0:0): Error 5, Retries exhausted ahcich0: Timeout on slot 24 port 0 ... ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: s/n 20274C802827 detached ada1 at ahcich1 bus 0 scbus1 target 0 lun 0 ada1: s/n 20274C804009 detached ``` The ZFS pool gets completely trashed: ``` zpool status pool: internal state: UNAVAIL status: One or more devices are faulted in response to IO failures. action: Make sure the affected devices are connected, then run 'zpool clear= '. see: http://illumos.org/msg/ZFS-8000-HC scan: none requested config: NAME STATE READ WRITE CKSUM internal UNAVAIL 0 0 0 mirror-0 UNAVAIL 0 0 0 12901058162764697962 REMOVED 0 0 0 was /dev/ada0 16801836340799291794 REMOVED 0 0 0 was /dev/ada1 errors: 3 data errors, use '-v' for a list ``` Attempting to reboot the system just hangs indefinitely. --=20 You are receiving this mail because: You are the assignee for the bug.=