From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonathan Bagg Subject: Re: imx6 sata cdrom driver issue Date: Tue, 19 May 2015 15:13:49 -0400 Message-ID: <555B8B6D.2070500@lenbrook.com> References: <5539101D.1020909@lenbrook.com> <15678294.L2fz4hMtva@wuerfel> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mail.lenbrook.com ([206.191.95.214]:39526 "EHLO mail.lenbrook.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750923AbbESTNx (ORCPT ); Tue, 19 May 2015 15:13:53 -0400 In-Reply-To: <15678294.L2fz4hMtva@wuerfel> Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Arnd Bergmann , linux-arm-kernel@lists.infradead.org, Kevin Groeneveld Cc: linux-ide@vger.kernel.org On 15-04-24 03:58 AM, Arnd Bergmann wrote: > On Thursday 23 April 2015 11:30:37 Jonathan Bagg wrote: >> Spam Status: CRM114 >> On arm imx6, running mainline 3.19, mounting a SATA CDROM fails aprox >> 1/20 times with this error.... >> >> root@freescale /tmp$ mount /dev/sr0 test/ >> UDF-fs: warning (device sr0): udf_fill_super: No partition found (2) >> mount: mounting /dev/sr0 on test/ failed: Invalid argument >> >> I've tried several disks and dvd drivers. They all experience this >> issue. The same disks mount 100% of the time on an x86 machine. Once >> mounted, I can read data without issue. Also tried a HDD on the same >> SATA link, no issue. >> >> Sometimes the kernel will dump out the attached backtrace on the mount >> command. >> > My best guess is that something in the error handling of > drivers/ata/ahci_imx.c causes a reset of the entire bus and that > triggers the other bugs. Can you instrument that error handling to > see what's going on? > > Arnd Adding my co-worker Kevin who has done a few experiments in the kernel -- Jonathan Bagg Embedded Systems Developer NAD Electronics | Lenbrook Industries Limited 633 Granite Court, Pickering, Ontario, Canada L1W 3K1 | 905-831-0799 ext 4478 | http://www.nadelectronics.com