From owner-freebsd-current@FreeBSD.ORG Thu Aug 14 16:54:36 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 04641F2C for ; Thu, 14 Aug 2014 16:54:36 +0000 (UTC) Received: from mail-qa0-x230.google.com (mail-qa0-x230.google.com [IPv6:2607:f8b0:400d:c00::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B8E3820CE for ; Thu, 14 Aug 2014 16:54:35 +0000 (UTC) Received: by mail-qa0-f48.google.com with SMTP id m5so1189091qaj.35 for ; Thu, 14 Aug 2014 09:54:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=EekWFefX+1xdP6mauyptUIIxBl1Rs5GAdgSnMt9LJ4o=; b=Tcflnnp30yD/xRb7ISf/3n4dZfFNjhRKA8MVSGtlBWBct/JDAUOQlyfXUJ1EfU7ZSD 8xImrv3r1FSnsMiV5k9xH80sU1ECTG2gptTFYUEUGI2RgK7hUFKpJnCi1g70m4aFP6HG fngemtHV9dzOJ5sD3YLcN+hvwOYopx+/1ASl4LVP3bkwnZUhY43l6jxvrCrBz0MH9bLq 80q3fC81MUZN1Nk4Z0/2S6twSdANqL9T+6SRJ24KUujQakVWyqqMtk8fGAQ7wbVNwzR1 keI4h2jtP6oProfhmeXMbvrigDJuR8HDxp2JQFEb7HXZbPVbq7FdbrqKcpy+o1h8g/l0 KoFQ== MIME-Version: 1.0 X-Received: by 10.140.87.244 with SMTP id r107mr17669945qgd.13.1408035274886; Thu, 14 Aug 2014 09:54:34 -0700 (PDT) Received: by 10.140.23.71 with HTTP; Thu, 14 Aug 2014 09:54:34 -0700 (PDT) In-Reply-To: <53EC5852.5010602@shurik.kiev.ua> References: <20140810223030.479badbc@zhabar.att.net> <53E9CDD5.6020507@shurik.kiev.ua> <20140812070616.62c66567@zhabar.att.net> <53EB02F4.1020704@shurik.kiev.ua> <20140813083518.3f2d0580@zhabar.att.net> <53EC5852.5010602@shurik.kiev.ua> Date: Thu, 14 Aug 2014 09:54:34 -0700 Message-ID: Subject: Re: Child suspend/resume From: Justin Hibbits To: Alexandr Krivulya Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD Current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 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, 14 Aug 2014 16:54:36 -0000 Thanks Alexandr! - Justin On Wed, Aug 13, 2014 at 11:33 PM, Alexandr Krivulya wrote: > I've done three suspend/resume cycle during last workday and all works > fine. Sorry for misled. > > 13.08.2014 18:35, Justin Hibbits =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >> That's odd, because another tester reported everything worked correctly >> for him. Could you send me the output of a verbose boot dmesg (boot >> -v), devinfo -rv, and pciconf -lv? >> >> Thanks, >> Justin >> >> On Wed, 13 Aug 2014 09:17:24 +0300 >> Alexandr Krivulya wrote: >> >>> Now laptop resumes, screen turned on and I see in dmesg "acpi: resumed >>> at ...", but neither keyboard nor mouse don't work and host is not >>> accessible from network. >>> >>> 12.08.2014 17:06, Justin Hibbits =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >>>> Hi Alexandr, >>>> >>>> Thanks. I got another confirmation that it didn't work, and may >>>> have found the cause. I have another patch that you can find at >>>> https://phabric.freebsd.org/D590 which fixes a typo that I had made. >>>> Could you try that? >>>> >>>> (Added current@ so everyone else sees this as well). >>>> >>>> Thanks! >>>> >>>> - Justin >>>> >>>> On Tue, 12 Aug 2014 11:18:29 +0300 >>>> Alexandr Krivulya wrote: >>>> >>>>> Hi, Justin >>>>> After applying your patch my thinkpad e530 (FreeBSD 11.0-CURRENT, >>>>> amd64) doesn't resume any more - screen remains black. >>>>> >>>>> 11.08.2014 08:30, Justin Hibbits (by way of Justin Hibbits >>>>> ) =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >>>>>> Hi all, >>>>>> >>>>>> The attached patch is completely untested, due to lack of existing >>>>>> suspendable hardware (no x86 machines). It does compile cleanly >>>>>> against head, though. I don't think it should change any behavior, >>>>>> I tried to keep the essence of the code path the same. >>>>>> >>>>>> It was suggested that I break up my multipass suspend/resume code >>>>>> into incremental parts, so this is part one. It adds a >>>>>> BUS_SUSPEND_CHILD/BUS_RESUME_CHILD, as well as helper functions, >>>>>> bus_generic_suspend_child()/bus_generic_resume_child(), and >>>>>> modifies the PCI driver to use this new facility. >>>>>> >>>>>> I'd like some feedback, and testing of this, to make sure I didn't >>>>>> break anything. >>>>>> >>>>>> Thanks, >>>>>> Justin >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> freebsd-current@freebsd.org mailing list >>>>>> http://lists.freebsd.org/mailman/listinfo/freebsd-current >>>>>> To unsubscribe, send any mail to >>>>>> "freebsd-current-unsubscribe@freebsd.org" >>>> _______________________________________________ >>>> freebsd-current@freebsd.org mailing list >>>> http://lists.freebsd.org/mailman/listinfo/freebsd-current >>>> To unsubscribe, send any mail to >>>> "freebsd-current-unsubscribe@freebsd.org" >