From owner-freebsd-current@freebsd.org Thu Feb 18 17:53:37 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 69417AADDD1 for ; Thu, 18 Feb 2016 17:53:37 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 568EB15AD for ; Thu, 18 Feb 2016 17:53:37 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 5555AAADDD0; Thu, 18 Feb 2016 17:53:37 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 54CE1AADDCF; Thu, 18 Feb 2016 17:53:37 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3486C15AC; Thu, 18 Feb 2016 17:53:37 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from ralph.baldwin.cx (c-73-231-226-104.hsd1.ca.comcast.net [73.231.226.104]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id CE4D6B94E; Thu, 18 Feb 2016 12:53:35 -0500 (EST) From: John Baldwin To: Alexey Dokuchaev Cc: Jan Henrik Sylvester , Hans Petter Selasky , Adrian Chadd , "current@freebsd.org" , Stefan Ehmann , "freebsd-mobile@freebsd.org" , Kevin Oberman Subject: Re: Thinkpad T410: resume broken Date: Thu, 18 Feb 2016 09:51:08 -0800 Message-ID: <3029262.DlAcg8ENfU@ralph.baldwin.cx> User-Agent: KMail/4.14.3 (FreeBSD/10.2-STABLE; KDE/4.14.3; amd64; ; ) In-Reply-To: <20160218165629.GA64990@regency.nsu.ru> References: <53762216.8020205@gmx.net> <1519677.qimO7W0WJL@ralph.baldwin.cx> <20160218165629.GA64990@regency.nsu.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Thu, 18 Feb 2016 12:53:35 -0500 (EST) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2016 17:53:37 -0000 On Thursday, February 18, 2016 10:56:29 PM Alexey Dokuchaev wrote: > On Thu, Feb 18, 2016 at 06:55:03AM -0800, John Baldwin wrote: > > On Thursday, February 18, 2016 08:37:38 PM Alexey Dokuchaev wrote: > > > I've started to observe similar lines in the logs after updating to > > > fresh -CURRENT, upon resume (on a different laptop though, not T410): > > > > > > pcib0: failed to set ACPI power state D2 on \_SB_.PCI0: AE_BAD_PARAMETER > > > acpi0: cleared fixed power button status > > > > > > If these messages are legit, I'm wondering why I didn't see them on 8.4, > > > and if it might affect suspend/resume sequence (broken right now)? > > > > [...] Your BIOS said "please put this device in D2 during suspend" and your > > device's capabilities said "I don't support D2". You can confirm this by > > looking up the _S3 method of your _SB_.PCIO device to find out what state is > > requested during suspend and then looking at 'pciconf -lc pci0:0:0' to see > > what D states are listed as supported. > > This?: > > Scope (\_SB) > { > Name (ECOK, 0x00) > Device (PCI0) > { > Method (_S3D, 0, NotSerialized) // _S3D: S3 Device State > { > Return (0x02) > } > ... Yes, this says "please use D2 when going to S3". > # pciconf -lc pci0:0:0 > hostb0@pci0:0:0:0: class=0x060000 card=0x83191033 chip=0x25908086 rev=0x04 hdr=0x00 > cap 09[e0] = vendor (length 9) Intel cap 2 version 1 Humm, perhaps PCI0 is not at 0:0. Can you find the _ADR method for _SB_.PCI0? That contains the "slot" and "function" as two words, e.g. 0x10002 would correspond to the 'pci0:1:2' device (or possibly pci0:2:1, don't recall the order off the top of my head). -- John Baldwin