From: Mikael Pettersson Subject: Re: sata_promise: Keeps saying SATA link down (SStatus 0 SControl 0) Date: Tue, 23 Jun 2009 13:51:33 +0200 Message-ID: <19008.49605.448797.606574@pilspetsen.it.uu.se> References: <20080113234320.GA6225@roeckx.be> <18315.7567.747367.84127@harpo.it.uu.se> <20080115000953.GA2799@roeckx.be> <18316.31910.973794.732242@harpo.it.uu.se> <20080115173557.GA3033@roeckx.be> <18317.54768.524651.128063@harpo.it.uu.se> <20090420182503.GA10768@roeckx.be> <18925.32310.909665.474085@pilspetsen.it.uu.se> <20090421162507.GA16798@roeckx.be> <20090621221002.GA11170@roeckx.be> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from aun.it.uu.se ([130.238.12.36]:41295 "EHLO aun.it.uu.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752105AbZFWLvg (ORCPT ); Tue, 23 Jun 2009 07:51:36 -0400 In-Reply-To: <20090621221002.GA11170@roeckx.be> Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Kurt Roeckx Cc: Mikael Pettersson , linux-ide@vger.kernel.org Kurt Roeckx writes: > On Tue, Apr 21, 2009 at 06:25:07PM +0200, Kurt Roeckx wrote: > > On Tue, Apr 21, 2009 at 10:05:10AM +0200, Mikael Pettersson wrote: > > > Kurt Roeckx writes: > > > > On Wed, Jan 16, 2008 at 11:01:20AM +0100, Mikael Pettersson wrote: > > > > > Kurt Roeckx writes: > > > > > > On Tue, Jan 15, 2008 at 10:28:06AM +0100, Mikael Pettersson wrote: > > > > > > > > 00:08.0 RAID bus controller: Promise Technology, Inc. PDC20376 (FastTrak 376) (rev 02) > > > > > > > ... > > > > > > > > 00:08.0 0104: 105a:3376 (rev 02) > > > > > > > > > > > > > > Let me guess, this is a Promise chip included on the mainboard > > > > > > > as a RAID controller, and not an add-on PCI card? > > > > > > > > > > > > Yes, it's a K8V motherboard which has that onboard. > > > > > > > > > > > > > If it's a mainboard chip, please enter the BIOS and see if it > > > > > > > can be configured for non-RAID mode. If it can, please reconfigure > > > > > > > it and boot Linux. Does it still claim to be a 20376 or is it > > > > > > > now a 20378? > > > > > > > > > > > > I can't find an option to turn that off in the BIOS. If it did, I'd > > > > > > probably have turned it off already. I've also opened the case and it > > > > > > says PDC20376 on the chip. > > > > > > > > > > Ok. I haven't yet found any information about the 20376 which > > > > > could explain why the 20376 fails while the 20378 works. > > > > > For now, you can disable hotplugging in the driver by applying > > > > > the patch below. This should at least bring back some stability > > > > > to your system. > > > > > > > > > > Longer-term I guess I'll have to invent a blacklist mechanism > > > > > to automatically prevent 20376 chips from enabling hotplugging. > > > > > That is, unless someone can show me a system where a 20376 > > > > > actually does work with hotplugging, in which case I'd need a > > > > > module parameter (yuck) or some form of dynamic detection of > > > > > this condition. > > > > > > > > Hi, > > > > > > > > I'm still having this problem with a 2.6.29 kernel. I want to > > > > avoid always having to patch my kernel, so I would like to see > > > > some solution to this. What do you think that the best way > > > > forward is? > > > > > > Since the previous discussion I've seen the 20378s in two > > > identical mainboards of a particular model also throw spurious > > > hotplug events. It would be possible to blacklist hotplugging > > > on all SATA1 models, but that would also affect SATA1-based > > > PCI cards like the SATA150 TX2/TX4 which don't appear to > > > have this problem. > > > > > > Can you post the lspci -vvn output for your 20376? > > > > 00:08.0 0104: 105a:3376 (rev 02) > > Subsystem: 1043:809e > > Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx- > > Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- > Latency: 64 (1000ns min, 4500ns max), Cache Line Size: 256 bytes > > Interrupt: pin A routed to IRQ 18 > > Region 0: I/O ports at ec00 [size=64] > > Region 1: I/O ports at dc00 [size=16] > > Region 2: I/O ports at cc00 [size=128] > > Region 3: Memory at fdf00000 (32-bit, non-prefetchable) [size=4K] > > Region 4: Memory at fdb00000 (32-bit, non-prefetchable) [size=128K] > > Capabilities: [60] Power Management version 2 > > Flags: PMEClk- DSI+ D1+ D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) > > Status: D0 PME-Enable- DSel=0 DScale=0 PME- > > Kernel driver in use: sata_promise > > Kernel modules: sata_promise > > > > Any news about this? Sorry, I dropped the ball on that one. (Too many projects requiring my attention.) I think the safest solution is to just disable hotplug interrupts on SATA1 chips. I'll give that a try in 2-3 days (busy with other stuff). /Mikael