Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754653Ab1DONWF (ORCPT ); Fri, 15 Apr 2011 09:22:05 -0400 Received: from gretna.indigovision.com ([62.7.85.227]:55132 "EHLO gretna.indigovision.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753228Ab1DONWA (ORCPT ); Fri, 15 Apr 2011 09:22:00 -0400 From: Bruce Stenning To: Mark Lord CC: "linux-kernel@vger.kernel.org" , "linux-ide@vger.kernel.org" , Justin Maggard Date: Fri, 15 Apr 2011 14:21:56 +0100 Subject: RE: sata_mv port lockup on hotplug (kernel 2.6.38.2) Thread-Topic: sata_mv port lockup on hotplug (kernel 2.6.38.2) Thread-Index: Acv7BBINsfN9++uST4qZDCrJX4jqcQASVxxw Message-ID: References: <4D9CD275.9000002@teksavvy.com> <4D9FACC9.7020200@teksavvy.com> <4DA5BCF3.5080205@teksavvy.com> <4DA79134.1010508@teksavvy.com> In-Reply-To: <4DA79134.1010508@teksavvy.com> Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US, en-GB Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id p3FDMNNJ027041 Content-Length: 1907 Lines: 53 > > I also tried out my tracing in writelfl (without any other changes) and I was > > able to lock up a port without any apparent unusual changes to the register > > containing the irq masks. Are there other routes to disabling the irqs? > > Mmm.. presumably you are NOT using MSI interrupts, right? Hi Mark, That is correct: sata_mv 0000:00:04.0: Gen-II 32 slots 4 ports SCSI mode IRQ via INTx I am building with CONFIG_ARCH_SUPPORTS_MSI=y, but also with CONFIG_PCI_MSI not set. With all this discussion of SATA link speed, I ought to say that we limit our SATA links to 1.5Gbps with the following kernel parameter: libata.force=1.5g I had noticed occasional messages similar to the following earlier in the week: ata4.00: limiting speed to UDMA/100:PIO4 I was surprised to see them, and thought they might be related to the hotplug issues, but I was able to reproduce the lockups without these messages being generated. In some cases (but not all) both sata_down_spd_limit and ata_down_xfermask_limit are called when backing off the link speed. Mark, I was intrigued by your comment from the following message: http://www.spinics.net/lists/linux-ide/msg36922.html > If it's like their non-AHCI controllers (sata_mv), then the chipset/phy > could be very particular about the sequence/timing used when changing speeds. Is it possible that the driver is doing some of the work to change the link speed (even though it has nowhere to go) and clobbering the link entirely? I shall take another closer look at the source code and tracing around hotplug w.r.t. link speed. Cheers, Bruce. Bruce Stenning, IndigoVision, b stenning indigovision com Latest News at: http://www.indigovision.com/index.php/en/news.html ????{.n?+???????+%?????ݶ??w??{.n?+????{??G?????{ay?ʇڙ?,j??f???h?????????z_??(?階?ݢj"???m??????G????????????&???~???iO???z??v?^?m???? ????????I?