From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Tue, 30 Jun 2009 17:17:05 +0200 (CEST) Received: from mail-pz0-f173.google.com ([209.85.222.173]:56224 "EHLO mail-pz0-f173.google.com" rhost-flags-OK-OK-OK-OK) by ftp.linux-mips.org with ESMTP id S1493247AbZF3PQ7 (ORCPT ); Tue, 30 Jun 2009 17:16:59 +0200 Received: by pzk3 with SMTP id 3so172963pzk.22 for ; Tue, 30 Jun 2009 08:11:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:reply-to:to:cc :in-reply-to:references:content-type:organization:date:message-id :mime-version:x-mailer:content-transfer-encoding; bh=JU23sEy+sTjFsrInmD/O0IgLfAR/lGsmsk+BVLVCHI0=; b=Vay0DiJb1K2P+fyNTv8CN0ee8eCq1546v8XUBzs9FmpsFpF9vbSYyI7SEseQ9wFx2C pNhrvc3ZCPG8dOXMTN6yZYGujGLWYtH/AMRlvjG/j21vYUwb+G7kg/z8dSMbjjcdeZwi sJmjBke0TO3DaleKThsTrwskESeghHOYjDCpo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:reply-to:to:cc:in-reply-to:references:content-type :organization:date:message-id:mime-version:x-mailer :content-transfer-encoding; b=jkbW9elYJe6mP2nduQMBnsnDQWH0WwGhn0mxsN9ogLzomzTcN7qFQ81f01CLVI/78i 99GTjJsTs6PlmrYXCZY1VKM5dK0Qvg1v+VrZ4v3u7kMY0tQBRqkdIFBXmdeh5dUTbNxX AMntqUjs3A5gXxKnyDV3t3BDXhGKy0y1W/59c= Received: by 10.115.16.14 with SMTP id t14mr6822424wai.14.1246374702083; Tue, 30 Jun 2009 08:11:42 -0700 (PDT) Received: from ?172.16.2.101? ([222.92.8.142]) by mx.google.com with ESMTPS id k14sm231685waf.25.2009.06.30.08.11.38 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 30 Jun 2009 08:11:40 -0700 (PDT) Subject: Re: [BUG] MIPS: Hibernation in the latest linux-mips:master branch not work From: Wu Zhangjin Reply-To: wuzhangjin@gmail.com To: Ralf Baechle Cc: LKML , linux-mips@linux-mips.org, Pavel Machek In-Reply-To: <20090630144540.GA18212@linux-mips.org> References: <1246372868.19049.17.camel@falcon> <20090630144540.GA18212@linux-mips.org> Content-Type: text/plain Organization: DSLab, Lanzhou University, China Date: Tue, 30 Jun 2009 23:11:27 +0800 Message-Id: <1246374687.20482.10.camel@falcon> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Content-Transfer-Encoding: 7bit Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 23546 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: wuzhangjin@gmail.com Precedence: bulk X-list: linux-mips On Tue, 2009-06-30 at 15:45 +0100, Ralf Baechle wrote: > On Tue, Jun 30, 2009 at 10:41:08PM +0800, Wu Zhangjin wrote: > > > I just updated my git repository to the master branch of the latest > > linux-mips git repository, and tested the STD/Hibernation support on > > fuloong2e and yeeloong2f, it failed: > > > > when using the no_console_suspend kernel command line to debug, it > > stopped on: > > > > PM: Shringking memory... done (1000 pages freed) > > PM: Freed 160000 kbytes in 1.68 seconds (95.23 MB/s) > > PM: Creating hibernation image: > > PM: Need to copy 5053 pages > > PM: Hibernation image created (4195 pages copied) > > > > and then, the number indicator light of keyboard works well, but can not > > type anything. > > > > anybody have tested it on another platform? does it work? > > At the time of the merge I tested it on Malta and found it to be working. thanks! I will test it again and analyze why. hi, ralf, in the latest master branch of linux-mips git repo, seems there is a need to select the SYS_SUPPORTS_HOTPLUG_CPU option in every uni-processor board, otherwise, the suspend/hibernation can not be used, because you have set: config ARCH_HIBERNATION_POSSIBLE def_bool y depends on SYS_SUPPORTS_HOTPLUG_CPU config ARCH_SUSPEND_POSSIBLE def_bool y depends on SYS_SUPPORTS_HOTPLUG_CPU so, the board-specific patch must be pushed by the maintainers of boards. and if the board support SMP, they must implement the mips-specific hotplug support, is this right? I have selected SYS_SUPPORTS_HOTPLUG_CPU in LEMOTE_FULONG and will push a relative patch later. Regards, Wu Zhangjin