[Bug 229745] ahcich: CAM status: Command timeout

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Aug 27 02:45:18 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229745

Daniel Morante <daniel at morante.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daniel at morante.net

--- Comment #54 from Daniel Morante <daniel at morante.net> ---
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 fresh
out of the box components.

```
ahci0: <ASMedia ASM106x AHCI SATA controller> mem 0xfe6fe000-0xfe6fffff irq 16
at device 0.0 on pci4
ahci0: AHCI v1.31 with 12 6Gbps ports, Port Multiplier supported
ahci0: quirks=0xc00000<NOCCS,NOAUX>
ahcich0: <AHCI channel> at channel 0 on ahci0
ahcich1: <AHCI channel> at channel 1 on ahci0
ahcich4: <AHCI channel> at channel 4 on ahci0
ahcich5: <AHCI channel> at channel 5 on ahci0
ahcich6: <AHCI channel> at channel 6 on ahci0
ahcich7: <AHCI channel> at channel 7 on ahci0
ahcich8: <AHCI channel> at channel 8 on ahci0
ahcich9: <AHCI channel> at channel 9 on ahci0
ahcich10: <AHCI channel> at channel 10 on ahci0
ahcich11: <AHCI channel> at channel 11 on ahci0
ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
ada0: <WDC WDS500G2B0B-00YS70 415000WD> 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: <WDC WDS500G2B0B-00YS70 415000WD> 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 without
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 errors
like the ones described on this bug and eventually the two drives get detached.

```
ahcich0: Timeout on slot 22 port 0
ahcich0: is 00000000 cs 00400000 ss 00000000 rs 00400000 tfd 150 serr 00000000
cmd 0004c917
(aprobe0:ahcich0:0:0:0): ATA_IDENTIFY. ACB: ec 00 00 00 00 40 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: Poll timeout on slot 23 port 0
ahcich0: is 00000000 cs 00800000 ss 00000000 rs 00800000 tfd 150 serr 00000000
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: <WDC WDS500G2B0B-00YS70 415000WD> s/n 20274C802827 detached
ada1 at ahcich1 bus 0 scbus1 target 0 lun 0
ada1: <WDC WDS500G2B0B-00YS70 415000WD> 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.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list