From owner-freebsd-ppc@FreeBSD.ORG Wed Mar 18 16:41:55 2015 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B4E3AA17; Wed, 18 Mar 2015 16:41:55 +0000 (UTC) Received: from mail-lb0-x22b.google.com (mail-lb0-x22b.google.com [IPv6:2a00:1450:4010:c04::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4F78766E; Wed, 18 Mar 2015 16:41:55 +0000 (UTC) Received: by lbblx11 with SMTP id lx11so11832964lbb.3; Wed, 18 Mar 2015 09:41:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=VtIGoK++tXVqUzw3ml/pLfGbCGgHEb7zm5RGhCReSHY=; b=fb2V+PId9lfrzMeqoZqor9aldrzPtgh7f/PSozdu4EVwbdzb7If0/tgZ3/EvV9+2ID jpUq5Qqtd+Wt0FS87+5qcN6jOwgLf2V/nM+8VrG3G6NG8jvpdTy1KCTlIa7f1Q7eHnnM V/PATO6hNp+pZQ4NnwjSy1I4L72HKkX6TtscgdSlAObRez7VhaKw+Kfhw9Oj7nBw4K03 KxfjgkHft5pm9ZPf6bfcvqt6pnvYTGBVM5WtWjqQcLatggZZbzTm19T5R0UrX3UyG5UD VorrX8KZzs+JmyazeC/y7xWpm184bsv6hHHk/+ZfoDcxtMy8VjrDRCfTxewFPtYJPuLf XCcA== MIME-Version: 1.0 X-Received: by 10.112.25.38 with SMTP id z6mr14606916lbf.106.1426696912983; Wed, 18 Mar 2015 09:41:52 -0700 (PDT) Sender: chmeeedalf@gmail.com Received: by 10.25.145.65 with HTTP; Wed, 18 Mar 2015 09:41:52 -0700 (PDT) In-Reply-To: References: Date: Wed, 18 Mar 2015 09:41:52 -0700 X-Google-Sender-Auth: NQyTjgIPYrY4ilrnHuU_8jfiNrU Message-ID: Subject: Re: Request for testing an alternate branch From: Justin Hibbits To: lausgans@gmail.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD PowerPC ML , FreeBSD Current X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Mar 2015 16:41:55 -0000 On Wed, Mar 18, 2015 at 12:12 AM, wrote: > >> 6 =D0=B4=D0=B5=D0=BA. 2013 =D0=B3., =D0=B2 23:40, Justin Hibbits =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB(=D0=B0): >> >> On Wed, Dec 4, 2013 at 10:19 PM, Justin Hibbits w= rote: >>> I've been working on the projects/pmac_pmu branch for some time now to >>> add suspend/resume as well as CPU speed change for certain PowerPC >>> machines, about a year since I created the branch, and now it's stable >>> enough that I want to merge it into HEAD, hence this request. > > Thanks for your work! What is the estimated time when it will go HEAD? > May I expect that my powerbook4,1 machine will get ability to sleep under= the FreeBSD now? > >>> However, >>> it does touch several drivers, turning them into "early drivers", such >>> that they can be initialized, and suspended and resumed at a different >>> time. Saying that, I do need testing from other architectures, to make >>> sure I haven't broken anything. >>> >>> The technical details: >>> >>> To get proper ordering, I've extended the bus_generic_suspend() and >>> bus_generic_resume() to do multiple passes. Devices which cannot be >>> enabled or disabled at the current pass level would return an EAGAIN. >>> This could possibly cause problems, since it's an addition to an >>> existing API rather than a new API to run along side it, so it needs a >>> great deal of testing. It works fine on PowerPC, but I don't have any >>> i386/amd64 or sparc64 hardware to test it on, so would like others who >>> do to test it. I don't thin >>> >>> Also, any comments are of course welcome. Technical concerns are >>> obviously welcome, and I will try to address everything. >>> >>> Thanks, >>> >>> Justin >> >> Thanks to hrs@, images are now available for the pmac_pmu project on >> allbsd for i386, amd64, sparc64, and ia64: >> https://pub.allbsd.org/FreeBSD-snapshots/ . > > I understand that you provided these so people with another archs could t= est whether it doesn't break anything, but what about actual PPC users? ;) > Considering that powerpc is a Tier 2 these days, it's not that easy even = to get svn quickly for it to grab your tree, so I would ask adding projects= _pmac_pmu to the powerpc building. Thanks. There were some design decisions that people took issue with, so I've been working on that. I plan to merge the bulk of the work into HEAD soon, but only the driver suspend/resume routines. The additional updates for suspending the system as a whole won't be made for some time, due to the intrusiveness of the change. I'm still planning for this to be completed for the 11.0 release, and with the bulk of the work completed, that should be feasible. I don't have a PowerBook4,1 to test with, but I think it should work, but some drivers may not resume properly. - Justin