From owner-svn-src-all@FreeBSD.ORG Sat Aug 30 18:05:08 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1033) id 908FAA28; Sat, 30 Aug 2014 18:05:08 +0000 (UTC) Date: Sat, 30 Aug 2014 18:05:08 +0000 From: Alexey Dokuchaev To: John Baldwin Subject: Re: svn commit: r270850 - in head/sys: i386/i386 i386/include i386/isa x86/acpica Message-ID: <20140830180508.GA49052@FreeBSD.org> References: <201408301748.s7UHmc6H059701@svn.freebsd.org> <58768837.sIF65g1iXL@ralph.baldwin.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <58768837.sIF65g1iXL@ralph.baldwin.cx> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Aug 2014 18:05:08 -0000 On Sat, Aug 30, 2014 at 01:58:20PM -0400, John Baldwin wrote: > On Saturday, August 30, 2014 05:48:38 PM John Baldwin wrote: > > New Revision: 270850 > > URL: http://svnweb.freebsd.org/changeset/base/270850 > > > > Log: > > Save and restore FPU state across suspend and resume. In earlier > > revisions of this patch, resumectx() called npxresume() directly, but that > > doesn't work because resumectx() runs with a non-standard %cs selector. > > Instead, all of the FPU suspend/resume handling is done in C. > > This mostly fixes suspend and resume in X on a little 32-bit only netbook I > have. I needed an additional patch to the i915 code to prevent it from > tearing down its interrupt handler in suspend and re-establishing it during > resume (this sort of thing is not needed in drivers and isn't safe because > suspend runs pinned to CPU 0 and unregistering an interrupt needs to bind to > the CPU the IDT vector is assigned to). John, thanks for a lot for making more and more laptops sleep-ready, as this will certainly help FreeBSD to be considered as a suitable platform for them. ./danfe