From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755035Ab2BSULl (ORCPT ); Sun, 19 Feb 2012 15:11:41 -0500 Received: from mail-ee0-f46.google.com ([74.125.83.46]:45947 "EHLO mail-ee0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754816Ab2BSULh (ORCPT ); Sun, 19 Feb 2012 15:11:37 -0500 Message-ID: <4F415775.7060003@suse.cz> Date: Sun, 19 Feb 2012 21:11:33 +0100 From: Jiri Slaby User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120215 Thunderbird/10.0.2 MIME-Version: 1.0 To: Jeff Garzik CC: linux-ide@vger.kernel.org, LKML , Jiri Slaby Subject: ahci: sata hotplug doesn't work after suspend X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, ahci hotplug stopped working here. It always worked (-next-20111206 is the last known working for sure). I'm using -next and after plugging a sata disk in, nothing happens. I don't *think* (in the traffic, it's hard to tell for sure) an interrupt is generated either. I also *think* that it works before suspend/resume, but not after. (Or maybe uptime matters?) This happens before suspend on plug-in: ata3: exception Emask 0x50 SAct 0x0 SErr 0x40d0800 action 0xe frozen ata3: irq_stat 0x00000040, connection status changed ata3: SError: { HostInt PHYRdyChg CommWake 10B8B DevExch } ata3: hard resetting link ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300) ata3.00: ATA-8: ST31000528AS, CC38, max UDMA/133 ata3.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32) ata3.00: configured for UDMA/133 ata3: EH complete scsi 2:0:0:0: Direct-Access ATA ST31000528AS CC38 PQ: 0 ANSI: 5 sd 2:0:0:0: [sdc] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB) sd 2:0:0:0: [sdc] Write Protect is off sd 2:0:0:0: [sdc] Mode Sense: 00 3a 00 00 sd 2:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sdc: sdc1 sdc2 sd 2:0:0:0: [sdc] Attached SCSI disk After suspend/resume and plug-in, nothing appears in dmesg. Storing "- - -" to /sys/class/scsi_host/host*/scan doesn't help. It looks like the line is completely dead, because only ata1 and ata2 say "hard resetting link" after this (and another two disks are connected there). I tried 'echo adapter >host_reset', but I get 'write error: Invalid argument'. 00:1f.2 SATA controller [0106]: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 6 port SATA Controller [AHCI mode] [8086:2922] (rev 02) (prog-if 01 [AHCI 1.0]) Subsystem: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 6 port SATA Controller [AHCI mode] [8086:2922] Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- Kernel driver in use: ahci Any ideas what that could be? thanks, -- js suse labs