From owner-freebsd-stable@FreeBSD.ORG Wed Jan 12 14:31:34 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F250116A4CE; Wed, 12 Jan 2005 14:31:33 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 35F6543D49; Wed, 12 Jan 2005 14:31:33 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.13.1/8.13.1) with ESMTP id j0CET67w042477; Wed, 12 Jan 2005 07:29:08 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Wed, 12 Jan 2005 07:29:48 -0700 (MST) Message-Id: <20050112.072948.89901373.imp@bsdimp.com> To: nate@root.org From: "M. Warner Losh" In-Reply-To: <41E4BC93.40608@root.org> References: <41E19C0E.6030400@root.org> <41E48E70.30807@vindaloo.com> <41E4BC93.40608@root.org> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-stable@freebsd.org cc: freebsd-acpi@freebsd.org cc: chris@vindaloo.com cc: freebsd-modile@freebsd.org Subject: Re: Suspend problem on FreeBSD 5.3-STABLE X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jan 2005 14:31:34 -0000 In message: <41E4BC93.40608@root.org> Nate Lawson writes: : Christopher Sean Hilton wrote: : > Nate Lawson wrote: : >> : >> My cardbus works fine after suspend/resume. The only current bug is : >> the extremely long time before resume methods run that was introduced : >> in the past couple weeks. : >> : > : > This afternoon I retested. Here's a better description of the problem. : > My Netgear FA511 Card is not reinitialized after a suspend/resume cycle. : > I had thought that the problem was a cardbus issue but it only affects : > this one card. Some interesting information about this card: It's a : > 32bit cardbus adapter served by the dc driver. Plugging in a Netgear : > FA411 16 bit PCMCIA card after a suspend/resume works as expected. I : > will try to down the interface and kldunload the dc driver before : > shutdown to see if that helps. : : That fits with my analysis as well. It seems that cardbus handles : things fine but individual drivers may be lacking in suspend/resume support. Cardbus should be detaching and reattaching the device. So that's clearly a bug in cardbus. Individual drivers have no choice in this matter, since we can't know if the cards that are there after the resume were the ones we suspended with. This doesn't matter too much for NIC cards (but none of the drivers cope with MAC addresses changing), but matters a great deal for things like flash cards. : That's a good testing approach, btw. If you find the dc(4) driver seems : to be the culprit, the next step is to go through any datasheets and : other OS drivers to see if you can find what we're doing differently. I don't think that it is a dc problem. Warner