Re: ATA failure regression in kernel 4.2

From: Alex Deucher
Date: Mon Jul 27 2015 - 11:21:19 EST


On Sun, Jul 26, 2015 at 11:01 PM, Jiang Liu <jiang.liu@xxxxxxxxxxxxxxx> wrote:
> On 2015/7/25 1:38, Alex Deucher wrote:
>> On Thu, Jul 23, 2015 at 2:44 PM, Alex Deucher <alexdeucher@xxxxxxxxx> wrote:
>>> On Thu, Jul 23, 2015 at 2:35 PM, Tejun Heo <tj@xxxxxxxxxx> wrote:
>>>> Hello,
>>>>
>>>> On Thu, Jul 23, 2015 at 01:48:24PM -0400, Alex Deucher wrote:
>>>>> Something new in kernel 4.2 seems to have broken one of my hard drives
>>>>> (ssd) in kernel 4.2. 4.1 and older kernels work fine. Here are the
>>>>> relevant logs.
>>>>>
>>>> ...
>>>>> [ 6.547628] ata2.00: qc timeout (cmd 0xec)
>>>>> [ 6.547721] ata2.00: failed to IDENTIFY (I/O error, err_mask=0x4)
>>>>> [ 7.007213] ata2: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
>>>>> [ 16.997819] ata2.00: qc timeout (cmd 0xec)
>>>>> [ 16.997910] ata2.00: failed to IDENTIFY (I/O error, err_mask=0x4)
>>>>> [ 16.997995] ata2: limiting SATA link speed to 3.0 Gbps
>>>>> [ 17.457400] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
>>>>> [ 47.429257] ata2.00: qc timeout (cmd 0xec)
>>>>> [ 47.429349] ata2.00: failed to IDENTIFY (I/O error, err_mask=0x4)
>>>>> [ 47.888822] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
>>>>
>>>> Nothing really rings a bell. Timeouts on IDENTIFY. Could be IRQ
>>>> related. Which controller is it (lspci -nn)? Also, can you try to
>>>> bisect the issue?
>>>
>>> 00:11.0 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] FCH
>>> SATA Controller [AHCI mode] [1022:7801] (rev 40)
>>> 00:14.1 IDE interface [0101]: Advanced Micro Devices, Inc. [AMD] FCH
>>> IDE Controller [1022:780c]
>>>
>>> I can take a look at bisecting later this week.
>>
>> You were right about the interrupts. This is an AMD Kaveri APU system.
> Hi Alex,
> Could you please help to provide more information about the
> system so we could identify the issue? Dmesg and /proc/interrupts
> from good and bad kernels are welcomed.
> Thanks!
> Gerry

See attached. Thanks!

Alex

Attachment: interrupts.working
Description: Binary data

Attachment: interrupts.broken
Description: Binary data

Attachment: dmesg.working
Description: Binary data

Attachment: dmesg.broken
Description: Binary data