From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] pm in the bitsy From: F.J.Ballesteros MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-bcbkicecvwdmoskhdoofaiilku" Message-Id: <20010601165215.27E1319A4C@mail.cse.psu.edu> Date: Fri, 1 Jun 2001 19:00:44 +0200 Topicbox-Message-UUID: ad05171e-eac9-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-bcbkicecvwdmoskhdoofaiilku Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit I only took a quick look, so this could be wrong; but I think that rs232, lcd, audio, and of course sa1100 are doing a power off and have the code to get back on. Perhaps the pcmcia/wavelan will not do so (I didn't check that yet). Regarding the power-on entry point, my boot loader is already jumping (well, not sure yet, but looks like), to the address kept in powerregs->pspr. The linux code was kind of a tutorial here. So, if I'm not so mistaken, I think I'd only need to save all the processor state and write an assembly routine to reload it (placing its address into powerregs->pspr in sa1100_power_off). My only problem is that I'm learning arm assembler while trying to get this working, so I'm not too optimistic regarding the final result. In any case, if you still think I'm missing something (well, probably many things) and you have a minute to let me know, that would be great. thanks for your mail --upas-bcbkicecvwdmoskhdoofaiilku Content-Type: message/rfc822 Content-Disposition: inline Return-Path: <9fans-admin@cse.psu.edu> Received: from mail.cse.psu.edu (postfix@psuvax1.cse.psu.edu [130.203.4.6]) by gsyc.escet.urjc.es (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id SAA25954; Fri, 1 Jun 2001 18:37:29 +0200 X-Authentication-Warning: gsyc.escet.urjc.es: Host postfix@psuvax1.cse.psu.edu [130.203.4.6] claimed to be mail.cse.psu.edu Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.4.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id C988419A46; Fri, 1 Jun 2001 12:37:08 -0400 (EDT) Received: from plan9.cs.bell-labs.com (ampl.com [204.178.31.2]) by mail.cse.psu.edu (CSE Mail Server) with SMTP id E5684199EC for <9fans@cse.psu.edu>; Fri, 1 Jun 2001 12:36:51 -0400 (EDT) To: 9fans@cse.psu.edu Subject: Re: [9fans] pm in the bitsy From: Sape Mullender MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-dmdofdsutdgsychroajmpanppj" Message-Id: <20010601163651.E5684199EC@mail.cse.psu.edu> Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: 9fans@cse.psu.edu List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Fri, 1 Jun 2001 12:36:50 -0400 This is a multi-part message in MIME format. --upas-dmdofdsutdgsychroajmpanppj Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit We haven't finished writing the code to suspend/resume the bitsy yet. We still have to add the code to all the drivers that will make them power off the piece of hardware they control and power that back on after resume. Then we need to write the code that turns off memory and turns it back on after resume and, finally, we need to write the code that deals with the power-on entry point. We have done none of this so I'm not surprised you have problems. Sape --upas-dmdofdsutdgsychroajmpanppj Content-Type: message/rfc822 Content-Disposition: inline Received: from plan9.cs.bell-labs.com ([135.104.9.2]) by plan9; Fri Jun 1 10:45:21 EDT 2001 Received: from mail.cse.psu.edu ([130.203.4.6]) by plan9; Fri Jun 1 10:45:20 EDT 2001 Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.18.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 9EDC019A45; Fri, 1 Jun 2001 10:45:07 -0400 (EDT) Received: from nautilus.dat.escet.urjc.es (nautilus.dat.escet.urjc.es [212.128.1.37]) by mail.cse.psu.edu (CSE Mail Server) with SMTP id A35CC19A27 for <9fans@cse.psu.edu>; Fri, 1 Jun 2001 10:44:50 -0400 (EDT) To: 9fans@cse.psu.edu From: F.J.Ballesteros MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20010601144450.A35CC19A27@mail.cse.psu.edu> Subject: [9fans] pm in the bitsy Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: 9fans@cse.psu.edu List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Fri, 1 Jun 2001 16:53:15 +0200 Hi, I think I managed to get it suspended using the code #undefined in power.c. My only problem is that my ignorance regarding the bitsy doesn't let me know how to make it resume. It seems that the processor is no longer waking up (I must power cycle it); that's despite one line that seems to prepare the on/off button to interrupt the processor and wake it up again. Any hint, pointer, or direction? thanks --upas-dmdofdsutdgsychroajmpanppj-- --upas-bcbkicecvwdmoskhdoofaiilku--