From owner-svn-src-head@FreeBSD.ORG Tue Jan 27 22:36:33 2015 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 15C373CB; Tue, 27 Jan 2015 22:36:33 +0000 (UTC) Received: from frv27.fwdcdn.com (frv158.fwdcdn.com [212.42.77.158]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C7AD76D1; Tue, 27 Jan 2015 22:36:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ukr.net; s=fsm; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date; bh=A7lkegICjNaeOnfC0WOV9BJ8t1P6fqp/fg96zpXR/U0=; b=XwbXcsPM1l9zPbsFaX4knZykCpEycKkPull/xXNNQQ/fiM8VPCS+BjOp//Qa3DrJqQ3Ps+hQU8zJBnKffoCrD9E4MQN2GXLE9ss4QBvyAf6TboS86p3aDKMMi3DkA8MKclsDMhGXdatI50dilVP0mvqkTl/SDXRDTtZrAjQxzr0=; Received: from [5.248.240.69] (helo=nonamehost.local) by frv27.fwdcdn.com with esmtpsa ID 1YGEkC-000KbG-HF ; Wed, 28 Jan 2015 00:36:24 +0200 Date: Wed, 28 Jan 2015 00:36:23 +0200 From: Ivan Klymenko To: Andriy Gapon Subject: Re: svn commit: r277796 - in head/sys: dev/acpica dev/syscons dev/vt sys Message-ID: <20150128003623.4f843a5c@nonamehost.local> In-Reply-To: <201501271733.t0RHXJ3M058422@svn.freebsd.org> References: <201501271733.t0RHXJ3M058422@svn.freebsd.org> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; amd64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Authentication-Result: IP=5.248.240.69; mail.from=fidaj@ukr.net; dkim=pass; header.d=ukr.net Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jan 2015 22:36:33 -0000 =D0=92 Tue, 27 Jan 2015 17:33:19 +0000 (UTC) Andriy Gapon =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > Author: avg > Date: Tue Jan 27 17:33:18 2015 > New Revision: 277796 > URL: https://svnweb.freebsd.org/changeset/base/277796 >=20 > Log: > hook userland threads suspend + resume into acpi suspend code > =20 > Also, split power_suspend into power_suspend and > power_suspend_early.=20 > power_suspend_early is called before the userland is frozen. > power_suspend is called after the userland is frozen. > =20 > Currently only VT switching is hooked to power_suspend_early. > This is needed because switching away from X server requires its > cooperation, so obviously X server must not be frozen when that > happens.=20 > Freezing userland during ACPI suspend is useful because not all > drivers correctly handle suspension concurrent with other activity. > This is especially applicable to drivers ported from other operating > systems that suspend all software activity between placing drivers > and hardware into suspended state. > In particular drm2/radeon (radeonkms) depends on the described > procedure. The driver does not have any internal synchronization > between suspension activities and processing of userland requests. > =20 > Many thanks to kib for the code that allows to freeze and thaw all > userland threads. > =20 > Note that ideally we also need to park / inhibit (non-special) > kernel threads as well to ensure that they do not call into drivers. > =20 > MFC after: 17 days >=20 Thank you for your work! acpiconf -s 3 works perfectly, but there is one problem. I use not the main timecounter kern.timecounter.hardware=3DHPET after turning on the power button does not occur laptop recovery hdac0 and it is likely that the same applies to the timer. Indirect evidence of this - it's a quick video playback, for example in flash on YouTube. dmesg_first : http://pastebin.com/a4gC5PGy dmesg_afterS3 : http://pastebin.com/vyHtrakZ my HW: pciconf -lvbce : https://bz-attachments.freebsd.org/attachment.cgi?id=3D148947 devinfo -vr : https://bz-attachments.freebsd.org/attachment.cgi?id=3D148948 Thanks.