From owner-freebsd-acpi@FreeBSD.ORG Mon Nov 9 18:35:18 2009 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7090F106566C; Mon, 9 Nov 2009 18:35:18 +0000 (UTC) (envelope-from serge@a-1.com.ua) Received: from a1.com.ua (www.a-1.com.ua [82.207.103.158]) by mx1.freebsd.org (Postfix) with ESMTP id E273C8FC38; Mon, 9 Nov 2009 18:35:17 +0000 (UTC) Received: from serge.a1.lan ([10.1.1.137]) by a1.com.ua with esmtp (Exim 4.68 (FreeBSD)) (envelope-from ) id 1N7Ykx-000BbV-UH; Mon, 09 Nov 2009 20:14:26 +0200 Message-ID: <4AF85BFA.6090107@a-1.com.ua> Date: Mon, 09 Nov 2009 20:14:18 +0200 From: Serge Semenenko User-Agent: Thunderbird 2.0.0.21 (X11/20090423) To: John Baldwin , freebsd-acpi@freebsd.org References: <200911081219.09397.bschmidt@techwires.net> <200911090743.48565.jhb@freebsd.org> In-Reply-To: <200911090743.48565.jhb@freebsd.org> Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 10.1.1.137 X-SA-Exim-Mail-From: serge@a-1.com.ua X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on a-1.com.ua X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, HTML_MESSAGE,MIME_HTML_ONLY autolearn=no version=3.2.3 X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on a1.com.ua) MIME-Version: 1.0 Content-Type: text/plain; charset="KOI8-U" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: general issue with suspend/resume with iwn(4)/bge(4) X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Nov 2009 18:35:18 -0000 John Baldwin wrote: On Sunday 08 November 2009 6:19:09 am Bernhard Schmidt wrote: Hi, I hope this is the correct list for an issue like that, if not, a pointer would be appreciated. I've been in contact with Mykola Dzham quite some time now and we are trying to figure out a resume issue on his iwn(4) device. It does seem that this device does not come up correctly after suspend. The interesting part is, that even pciconf -l -bcv ist not able to get all information. Before suspend: iwn0@pci0:6:0:0: class=0x028000 card=0x13018086 chip=0x42328086 rev=0x00 hdr=0x00 vendor = 'Intel Corporation' device = 'Carte Intel WiFi Link 5100 AGN (Intel WiFi Link 5100)' class = network bar [10] = type Memory, range 64, base 0xec800000, size 8192, enabled cap 01[c8] = powerspec 3 supports D0 D3 current D0 cap 05[d0] = MSI supports 1 message, 64 bit enabled with 1 message cap 10[e0] = PCI-Express 1 endpoint max data 128(128) link x1(x1) After resume: iwn0@pci0:6:0:0: class=0x028000 card=0x13018086 chip=0x42328086 rev=0x00 hdr=0x00 vendor = 'Intel Corporation' device = 'Carte Intel WiFi Link 5100 AGN (Intel WiFi Link 5100)' class = network Are you sure you didn't forget the extra options to pciconf here? The bar should definitely not disappear since we save that state in software, not in hardware. Also, the capability pointer register is set by the hardware, software never changes it. It looks similar to PR [1]http://www.freebsd.org/cgi/query-pr.cgi?pr=135070 for me. And if I understood right you're already working on the solution... References 1. http://www.freebsd.org/cgi/query-pr.cgi?pr=135070