Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 May 2014 12:55:31 -0700
From:      Adrian Chadd <adrian.chadd@gmail.com>
To:        Alexander Motin <mav@freebsd.org>
Cc:        "freebsd-acpi@freebsd.org" <freebsd-acpi@freebsd.org>
Subject:   Re: suspend issues with latest -HEAD, ahci failing to complete something?
Message-ID:  <CAJ-VmonwMwpBx927KKKk0GoYLUtQDkFA2K_TtgSoZa-O4EAKvA@mail.gmail.com>
In-Reply-To: <5367EBBE.2020602@FreeBSD.org>
References:  <CAJ-VmomgVwuQXE0LLJurjg2Zx-7Q5s7RCCZ5JBQD7W2HSce7OA@mail.gmail.com> <5367EBBE.2020602@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

Would you mind testing the latest -HEAD out? It worked a couple weeks
ago with my last rebuild on this particular laptop.



-a


On 5 May 2014 12:51, Alexander Motin <mav@freebsd.org> wrote:
> On 05.05.2014 20:37, Adrian Chadd wrote:
>>
>> (I know, I just emailed out asking about setting S3 for the default
>> lid suspend state, however I just updated to the very latest head and
>> things went a little backwards.)
>>
>> Suspend no longer works for me:
>>
>> May  5 10:33:10 lucy-11i386 acpi: suspend at 20140505 10:33:10
>> May  5 10:33:47 lucy-11i386 kernel: ahcich0: Timeout on slot 19 port 0
>> May  5 10:33:47 lucy-11i386 kernel: ahcich0: is 00000000 cs fff80fff
>> ss fff80fff rs fff80fff tfd d0 serr 00000000 cmd 0000d317
>> May  5 10:33:47 lucy-11i386 kernel: (ada0:ahcich0:0:0:0):
>> WRITE_FPDMA_QUEUED. ACB: 61 08 e0 b0 fa 40 42 00 00 00 00 00
>> May  5 10:33:47 lucy-11i386 kernel: (ada0:ahcich0:0:0:0): CAM status:
>> Command timeout
>> May  5 10:33:47 lucy-11i386 kernel: (ada0:ahcich0:0:0:0): Retrying command
>> May  5 10:33:13 lucy-11i386 acpi: resumed at 20140505 10:33:13
>>
>> May  5 10:33:59 lucy-11i386 acpi: suspend at 20140505 10:33:59
>> May  5 10:34:37 lucy-11i386 kernel: ahcich0: Timeout on slot 9 port 0
>> May  5 10:34:37 lucy-11i386 kernel: ahcich0: is 00000000 cs ffffff83
>> ss ffffff83 rs ffffff83 tfd d0 serr 00000000 cmd 0000c717
>> May  5 10:34:37 lucy-11i386 kernel: (ada0:ahcich0:0:0:0):
>> WRITE_FPDMA_QUEUED. ACB: 61 08 18 5c f7 40 42 00 00 00 00 00
>> May  5 10:34:37 lucy-11i386 kernel: (ada0:ahcich0:0:0:0): CAM status:
>> Command timeout
>> May  5 10:34:37 lucy-11i386 kernel: (ada0:ahcich0:0:0:0): Retrying command
>> May  5 10:34:03 lucy-11i386 acpi: resumed at 20140505 10:34:03
>>
>> What has recently changed that'd possibly break ahci's ability to
>> correctly suspend?
>
>
> When I tested it last time (awhile ago), it was working for me.
> ahci_ch_suspend() should block all I/O on the channel and wait until all
> active commands complete. On resume channel should be reinitialized, device
> reset and only then I/Os should be released. Do you see those timeouts on
> suspend or resume?
>
> Do you have kern.cam.ada.spindown_suspend enabled? Can you try to disable
> it?
>
> --
> Alexander Motin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmonwMwpBx927KKKk0GoYLUtQDkFA2K_TtgSoZa-O4EAKvA>