From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Hancock Subject: Re: AHCI problem with hotplug Date: Mon, 29 Dec 2008 12:29:36 -0600 Message-ID: <49591710.7040102@shaw.ca> References: <494178E3.6030305@cybernetics.com> <49588784.4020808@kernel.org> <4958E3DC.7080009@cybernetics.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from main.gmane.org ([80.91.229.2]:48171 "EHLO ciao.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751807AbYL2S3t (ORCPT ); Mon, 29 Dec 2008 13:29:49 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LHMs3-00055w-Q9 for linux-ide@vger.kernel.org; Mon, 29 Dec 2008 18:29:46 +0000 Received: from s0106000c41bb86e1.ss.shawcable.net ([70.76.47.20]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 29 Dec 2008 18:29:43 +0000 Received: from hancockr by s0106000c41bb86e1.ss.shawcable.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 29 Dec 2008 18:29:43 +0000 In-Reply-To: <4958E3DC.7080009@cybernetics.com> Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: linux-ide@vger.kernel.org Cc: Tejun Heo , Jeff Garzik Tony Battersby wrote: > Tejun Heo wrote: >> Tony Battersby wrote: >> >>> I am having a problem getting Linux to detect hot-plugged SATA disks on my >>> ICH7 AHCI controller (SuperMicro PDSME motherboard). On any SATA port that >>> already had a disk plugged in during BIOS POST, Linux will see the disk and >>> detect hot-plug and hot-unplug events just fine. On any SATA port that did >>> not have a disk plugged in during BIOS POST, Linux will not see a disk no >>> matter what. Here are the different sequences of events that I have tried: >>> >>> 1) boot with SATA disk plugged in >>> modprobe ahci: disk detected >>> unplug disk: disk deleted >>> plug in disk: disk detected >>> >>> 2) boot with SATA disk plugged in >>> unplug disk >>> modprobe ahci >>> plug in disk: disk detected >>> unplug disk: disk deleted >>> plug in disk: disk detected >>> unplug disk: disk deleted >>> plug in disk to any other SATA port -> not detected >>> plug in disk to the original SATA port -> disk detected >>> >>> 3) boot with SATA disk unplugged >>> plug in disk to any SATA port >>> modprobe ahci: not detected >>> grep ahci /proc/interrupts: 0 interrupts >>> >>> 4) boot with SATA disk unplugged >>> modprobe ahci >>> plug in disk to any SATA port: not detected >>> grep ahci /proc/interrupts: 0 interrupts >>> >>> 5) keep SATA disk plugged in during BIOS POST but unplug it before the >>> kernel boots >>> kernel hangs at "BIOS data check" >>> >>> I have tried both 2.6.24.7 and 2.6.27.8 with the same result. >>> >>> The BIOS is configured as follows: >>> Parallel ATA: [Enabled] >>> Serial ATA: [Enabled] >>> SATA Controller Mode: [Enhanced] >>> SATA RAID: [Disabled] >>> SATA AHCI: [Enabled] >>> >>> The root filesystem is on a parallel IDE disk using the legacy (non-libata) >>> piix driver. >>> >> The BIOS could be tristating the ports. Does it work if you issue >> manual rescan (echo - - - > /sys/class/scsi_host/hostN/scan)? >> >> > No luck. I get: > > ata1: hard resetting link > ata1: SATA link down (SStatus 0 SControl 0) > ata1: EH complete > > And the drive isn't seen. Well, if the controller reports link down there likely isn't much the kernel can do about it. I assume that ata1 is in fact where that drive gets detected if it's plugged in at boot - you could try all the other hosts to be sure..