From owner-freebsd-acpi@FreeBSD.ORG Tue Apr 19 15:31:38 2011 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 262DE1065670 for ; Tue, 19 Apr 2011 15:31:38 +0000 (UTC) (envelope-from taku@tackymt.homeip.net) Received: from basalt.tackymt.homeip.net (unknown [IPv6:2001:3e0:577:0:20d:61ff:fecc:2253]) by mx1.freebsd.org (Postfix) with ESMTP id B5FC58FC20 for ; Tue, 19 Apr 2011 15:31:37 +0000 (UTC) Received: from basalt.tackymt.homeip.net (localhost [127.0.0.1]) by basalt.tackymt.homeip.net (Postfix) with ESMTP id EA6C01335D for ; Wed, 20 Apr 2011 00:31:36 +0900 (JST) X-Virus-Scanned: amavisd-new at tackymt.homeip.net Received: from localhost ([127.0.0.1]) by basalt.tackymt.homeip.net (basalt.tackymt.homeip.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wEolIAuSUqPR for ; Wed, 20 Apr 2011 00:31:34 +0900 (JST) Received: from basalt.tackymt.homeip.net (basalt.tackymt.homeip.net [IPv6:2001:3e0:577:0:20d:61ff:fecc:2253]) by basalt.tackymt.homeip.net (Postfix) with ESMTP for ; Wed, 20 Apr 2011 00:31:34 +0900 (JST) Date: Wed, 20 Apr 2011 00:31:33 +0900 From: Taku YAMAMOTO To: freebsd-acpi@freebsd.org Message-Id: <20110420003133.4dc391f6.taku@tackymt.homeip.net> X-Mailer: Sylpheed 3.0.3 (GTK+ 2.22.1; i386-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart=_Wed__20_Apr_2011_00_31_33_+0900_Cmw8Xf4egaiAIykN" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: [PATCH] Move scsuspend()/scresume() forward to EVENTHANDLERs 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: Tue, 19 Apr 2011 15:31:38 -0000 This is a multi-part message in MIME format. --Multipart=_Wed__20_Apr_2011_00_31_33_+0900_Cmw8Xf4egaiAIykN Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi all, Now, thanks to jkim's work, we have power_suspend and power_resume EVENTHANDLERs since r220647. I think it's a good time to move scsuspend()/scresume() to that scheme, too. That is: * We can achieve definitive ordering between vga, drm and so on: no need to depend on scpm hackery with that scheme. * Especially combined with adasuspend() (since r220650) and in case of X server being paged out, we can easily mess up the video card in a intermediate state without earlier scsuspend(). A patch is attached. -- -|-__ YAMAMOTO, Taku | __ < - A chicken is an egg's way of producing more eggs. - --Multipart=_Wed__20_Apr_2011_00_31_33_+0900_Cmw8Xf4egaiAIykN--