Bug #1591

Lenovo X301 hangs with AHCI Driver CMD TIMEOUT STS=d0<BSY>

Added by eocallaghan over 4 years ago. Updated over 4 years ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

Hi,

I have a Lenovo X301 2776 LEG.

Trying to use the machine with the AHCI results in a hang for a while
then it can't mount the root FS as it can't access the disk.
The following message is displayed:

ahci0.1: CMD TIMEOUT state=5 slot=3
cmd-rg 0x4c317<HPCP,CR,FR,FRE,POD,SUD,ST>
sactive=0000000 active=00000008 expired=00000000
act=00000000 ci=00000008
STS=d0<BSY>
ahci0.1: cmd 18: timeout
achi0.1: Warning, issuing CLO after timeout.

Prob0: ahci0:0:13:0) Unretryable error
...

Cheers,
Edward.

History

#1 Updated by eocallaghan over 4 years ago

I just notice I got this else where in dmesg:

----------

**WARNING** waiting for the following device to finish configuring:
xpt: func = 0xc015df7d arg = 0

Giving up, interrupt routing is porbaby hosed

-----------

I believe this bug may well lie in the CAM XPT (transport) module, ie ATAPICAM?
Looking for pointers to help me better trace down this problem please?

Thanks,
Edward.

#2 Updated by dillon over 4 years ago

:I just notice I got this else where in dmesg:
:
:----------
:
:**WARNING** waiting for the following device to finish configuring:
:xpt: func =3D 0xc015df7d arg =3D 0
:
:Giving up, interrupt routing is porbaby hosed
:
:-----------
:
:I believe this bug may well lie in the CAM XPT (transport) module, ie ATAPI=
:CAM?
:Looking for pointers to help me better trace down this problem please?
:
:Thanks,
:Edward.

Usually this means a driver (probably the AHCI driver) has not finished
the BUS SCAN. The AHCI driver should complete it after the command
times out.

Tracking down why the command timed out in the AHCI driver is another
issue entirely. I don't have a quick answer.

-Matt
Matthew Dillon
<>

#3 Updated by eocallaghan over 4 years ago

Hi, As of todays snapshot, I still have major problems.
Once the AHCI driver is modloaded, the root fs from the livecd will not mount,
dropping me to mountroot> from which I do:

mountroot>ufs:cd0
Mounting root from ufs:cd0
tryroot cd0
ahci0.1: TFES slot 29 ci_saved = 20000000
ahci0.1: Copying rfis slot 29
ahci0.1: Shortening sense request
(cd0:ahci0:1:0:0): Retrying Command
(cd0:ahci0:1:0:0): error 6
(cd0:ahci0:1:0:0): Unretryable Error
Root mount failed: 22

Regards,
Edward.

#4 Updated by tylermills over 4 years ago

I had similar issues with my T61 when SMP and IO_APIC was enabled.

On Sun, Nov 8, 2009 at 9:44 PM, Edward O'Callaghan (via DragonFly
issue tracker) <> wrote:
>
> Edward O'Callaghan <> added the comment:
>
> Hi, As of todays snapshot, I still have major problems.
> Once the AHCI driver is modloaded, the root fs from the livecd will not mount,
> dropping me to mountroot> from which I do:
>
> mountroot>ufs:cd0
> Mounting root from ufs:cd0
> tryroot cd0
> ahci0.1: TFES slot 29 ci_saved = 20000000
> ahci0.1: Copying rfis slot 29
> ahci0.1: Shortening sense request
> (cd0:ahci0:1:0:0): Retrying Command
> (cd0:ahci0:1:0:0): error 6
> (cd0:ahci0:1:0:0): Unretryable Error
> Root mount failed: 22
>
> Regards,
> Edward.
>
> _____________________________________________________
> DragonFly issue tracker <>
> <http://bugs.dragonflybsd.org/issue1591>
> _____________________________________________________
>

Also available in: Atom PDF