From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kenneth Langga Subject: Re: Drive not detected upon resume from suspend-to-ram [sata_promise] Date: Thu, 19 Jul 2012 09:26:28 +0800 Message-ID: References: <01a901cd6546$caec43d0$60c4cb70$%srikanth@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from mail-wi0-f172.google.com ([209.85.212.172]:59522 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754574Ab2GSB0u (ORCPT ); Wed, 18 Jul 2012 21:26:50 -0400 Received: by wibhm11 with SMTP id hm11so5286827wib.1 for ; Wed, 18 Jul 2012 18:26:48 -0700 (PDT) In-Reply-To: <01a901cd6546$caec43d0$60c4cb70$%srikanth@samsung.com> Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Srikanth TS Cc: linux-ide@vger.kernel.org How exactly did you reset the controller and reconfigure the required registers? On Thu, Jul 19, 2012 at 8:38 AM, Srikanth TS wrote: >> -----Original Message----- >> From: linux-ide-owner@vger.kernel.org [mailto:linux-ide- >> owner@vger.kernel.org] On Behalf Of Kenneth Langga >> Sent: Wednesday, July 18, 2012 5:11 PM >> To: linux-ide@vger.kernel.org >> Subject: Drive not detected upon resume from suspend-to-ram [sata_promise] >> >> Hi! I'm having problems with resuming from suspend-to-ram. >> Specifically, the hard drive fails to be detected. Here is the card >> info from lspci: >> >> 03:05.0 Mass storage controller: Promise Technology, Inc. PDC20375 >> (SATA150 TX2plus) (rev 02) >> Subsystem: Promise Technology, Inc. PDC20375 (SATA150 TX2plus) >> Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- >> ParErr- Stepping- SERR+ FastB2B- DisINTx- >> Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >> >TAbort- SERR- > Latency: 96 (1000ns min, 4500ns max), Cache Line Size: 576 bytes >> Interrupt: pin A routed to IRQ 20 >> Region 0: I/O ports at e800 [size=64] >> Region 1: I/O ports at e400 [size=16] >> Region 2: I/O ports at e000 [size=128] >> Region 3: Memory at febff000 (32-bit, non-prefetchable) [size=4K] >> Region 4: Memory at febc0000 (32-bit, non-prefetchable) [size=128K] >> Expansion ROM at febe0000 [disabled] [size=16K] >> Capabilities: [60] Power Management version 2 >> Flags: PMEClk- DSI+ D1+ D2- AuxCurrent=0mA >> PME(D0-,D1-,D2-,D3hot-,D3cold-) >> Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME- >> Kernel driver in use: sata_promise >> >> >> Here are the relevant messages from syslog: >> >> <...pm-suspend...> >> sata_promise 0000:03:05.0: PCI INT A disabled >> <...resuming...> >> sata_promise 0000:03:05.0: restoring config space at offset 0xf (was >> 0x1204010e, writing 0x1204010a) >> sata_promise 0000:03:05.0: restoring config space at offset 0xc (was >> 0x80001, writing 0xfebe0000) >> sata_promise 0000:03:05.0: restoring config space at offset 0x8 (was >> 0x900000, writing 0xfebc0000) >> sata_promise 0000:03:05.0: restoring config space at offset 0x7 (was >> 0x800000, writing 0xfebff000) >> sata_promise 0000:03:05.0: restoring config space at offset 0x6 (was >> 0x8201, writing 0xe001) >> sata_promise 0000:03:05.0: restoring config space at offset 0x5 (was >> 0x8101, writing 0xe401) >> sata_promise 0000:03:05.0: restoring config space at offset 0x4 (was >> 0x8001, writing 0xe801) >> sata_promise 0000:03:05.0: restoring config space at offset 0x3 (was >> 0x0, writing 0x6090) >> sata_promise 0000:03:05.0: restoring config space at offset 0x1 (was >> 0x2300000, writing 0x2300113) >> sata_promise 0000:03:05.0: PCI INT A -> GSI 20 (level, low) -> IRQ 20 >> <...> >> ata3.00: exception Emask 0x10 SAct 0x0 SErr 0x100 action 0x6 >> ata3: SError: { UnrecovData } >> ata3.00: failed command: IDENTIFY DEVICE >> ata3.00: cmd ec/00:01:00:00:00/00:00:00:00:00/40 tag 0 pio 512 in >> ata3.00: status: { DRDY ERR } >> ata3.00: error: { ABRT } >> ata3: hard resetting link >> ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300) >> ata3.00: both IDENTIFYs aborted, assuming NODEV >> ata3.00: revalidation failed (errno=-2) >> ata3: hard resetting link >> ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300) >> ata3.00: both IDENTIFYs aborted, assuming NODEV >> ata3.00: revalidation failed (errno=-2) >> ata3: hard resetting link >> ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300) >> ata3.00: both IDENTIFYs aborted, assuming NODEV >> ata3.00: revalidation failed (errno=-2) >> ata3.00: disabled >> ata3: EH complete >> > I had similar issue, > So I reset the host controller and reconfigure some of the required registers in resume function. > >> >> I am using pm-suspend to suspend-to-ram and my OS is Debian Wheezy. >> Any help would be greatly appreciated. Thanks! >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-ide" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html > > WBRs, > srikanth >