From noodles@earth.li Thu Apr 02 16:15:00 2009
Received: from the.earth.li ([217.147.81.2])
	by stoneboat.aleph1.co.uk with esmtp (Exim 4.69)
	(envelope-from <noodles@earth.li>) id 1LpOd5-0002sZ-8V
	for balloon@balloonboard.org; Thu, 02 Apr 2009 16:15:00 +0100
Received: from noodles by the.earth.li with local (Exim 4.63)
	(envelope-from <noodles@earth.li>)
	id 1LpOd4-0005ZF-LG; Thu, 02 Apr 2009 16:14:54 +0100
Date: Thu, 2 Apr 2009 16:14:54 +0100
From: Jonathan McDowell <noodles@earth.li>
To: Chris Jones <chris@martin-jones.com>
Message-ID: <20090402151454.GI11477@earth.li>
References: <49D3B00A.4030806@martin-jones.com>
	<20090401220605.GB5306@earth.li>
	<49D47369.2040803@martin-jones.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <49D47369.2040803@martin-jones.com>
User-Agent: Mutt/1.5.13 (2006-08-11)
X-SA-Exim-Connect-IP: 217.147.81.2
X-SA-Exim-Mail-From: noodles@earth.li
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on
	stoneboat.aleph1.co.uk
X-Spam-Level: 
X-Spam-Status: No, score=-4.4 required=5.0 tests=AWL,BAYES_00,
	RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.5
X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:14:11 +0000)
X-SA-Exim-Scanned: Yes (on stoneboat.aleph1.co.uk)
Cc: balloon@balloonboard.org
Subject: Re: [Balloon] 2.6.29-rc7 kernel power management
X-BeenThere: balloon@balloonboard.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: Balloon List <balloon.balloonboard.org>
List-Unsubscribe: <http://balloonboard.org/mailman/options/balloon>,
	<mailto:balloon-request@balloonboard.org?subject=unsubscribe>
List-Archive: <http://balloonboard.org/lurker/list/balloon.html>
List-Post: <mailto:balloon@balloonboard.org>
List-Help: <mailto:balloon-request@balloonboard.org?subject=help>
List-Subscribe: <http://balloonboard.org/mailman/listinfo/balloon>,
	<mailto:balloon-request@balloonboard.org?subject=subscribe>
X-List-Received-Date: Thu, 02 Apr 2009 15:15:00 -0000

On Thu, Apr 02, 2009 at 09:12:25AM +0100, Chris Jones wrote:
> Jonathan McDowell wrote:
> > On Wed, Apr 01, 2009 at 07:18:50PM +0100, Chris Jones wrote:
[power saving]
> > Is this code in SVN now? I'm currently concentrating on getting the base
> > balloon3 support into mainline kernels, but I'll have a look if that
> > ever gets done.
> 
> Yes - I folded the changes into balloon3.patch.

Ah, simple enough then.

> >> The same issue arises with the Samosa bus - did parking the bus lines
> >> ever get in after the grand TCL kernel hacking session? I can't see it
> >> in the code.
> > 
> > No, this didn't get added so you're not missing anything.
> 
> OK. If I was to put in the relevant code, I assume it would go at the
> tail end of samosa_suspend_late() and the head end of
> samosa_resume_early(), bracketing the power management of the devices on
> the bus.

Hmm. I think that'll probably work ok. From my reading of
Documentation/power/devices.txt bus->suspend_late/bus->suspend_early get
called for each device on the bus, but after suspend/before resume is
called for any of them.

> I propose making the registers set/reset, since:
> - it uses less logic resource in the hardware than making them readable
> - I've already got a VHDL module which does the job
> - it makes changing individual bits an atomic operation, leaving no gap
> between a read and a writeback which could get interrupted

Sounds reasonable.

> There are a couple of bits we need to be able to read, as well. Hold
> tight for a Balloon 3 register remap.

On a sort of related note, can someone provide me with a known good
built copy of bootldr/the FPGA code to put on my loon3? I seem to be
running a bootldr from last May or so and I don't have JTAG so can't
afford to get it wrong.

J.

-- 
Web [      Keyboard: Used for entering errors into a system.       ]
site: http:// [                                          ]       Made by
www.earth.li/~noodles/  [                      ]         HuggieTag 0.0.23


