From owner-freebsd-acpi@FreeBSD.ORG Wed Mar 18 16:06:34 2015 Return-Path: Delivered-To: freebsd-acpi@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 1397C2FC for ; Wed, 18 Mar 2015 16:06:34 +0000 (UTC) Received: from nm10-vm5.bullet.mail.ne1.yahoo.com (nm10-vm5.bullet.mail.ne1.yahoo.com [98.138.91.232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BF018FCE for ; Wed, 18 Mar 2015 16:06:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=att.net; s=s1024; t=1426694787; bh=6zbn+LjDN4B+UQt52p7dnVa37HG30NXfLJkfY11cyV0=; h=Date:From:To:CC:Subject:References:In-Reply-To:From:Subject; b=Yb/8GeIsVbMrYIFWOtt1pcymQtUgX24p0+8jd4SeogI8s0fbmJQlP9+QjZ8Om2jERlSrMAWQJ1ZeTovO9mDwOJO4varNvSMNCsBXkg3IhLyKQlH/kxSVrqzNfSJseROiUFkcRWbBzQ6gpfdEz3fTEqqVnj+pPdsT9z9gN/eaz9k= Received: from [98.138.101.132] by nm10.bullet.mail.ne1.yahoo.com with NNFMP; 18 Mar 2015 16:06:27 -0000 Received: from [98.138.84.46] by tm20.bullet.mail.ne1.yahoo.com with NNFMP; 18 Mar 2015 16:06:27 -0000 Received: from [127.0.0.1] by smtp114.mail.ne1.yahoo.com with NNFMP; 18 Mar 2015 16:06:27 -0000 X-Yahoo-Newman-Id: 465972.16561.bm@smtp114.mail.ne1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 2ByjoawVM1kCqu10Q51ls53YmVh8Qah70OAeq3X84k6E993 P1e.NQYYy7Faat6pDB0eHZqenhBwK2dIa3Q8IhrTVCixapBFDmlCAUgQ1eG9 iWhhE2choCMMRtXIH8hPdN9hJgViAas.aGbVjbd018wIVmWCeplFehybazyo .PTPTWKUhaYXJCxxScmDw470mQcdQ6_B.xqeD_msw5gkVW9FnymIj77KvvnH col1y33iYgptl1N2e0madi_Xof1s4onaJqsamyNmyYXftwKX88uRBmocqSFt hQ3LGgQ_W4m9Q7koLKNG9.rO12QZ8dBiOE.sQ.WwGWT29qBpONLIaebZsZC8 VptCL92YOzcgCb42265Rm5cwsMeft24L.sc1kFViRCs3iMZS0TWkTBFMdpaz V8ES91sojsZyw46ZDQhUggQItrpkvoTS3IKxxGZ62P3.THmBxcj0XVfMZcc2 S0m_xUA7wfJDp3mTDQQekt8JvkdFyZ6hkw_rK411RZqJryW8tdcMmDVsBtUM kcO4eqZgzmZqN.sES2zYJGMgOj16bj0UvxAomlDETiiu34iUc X-Yahoo-SMTP: OKD1keCswBBTAmAF1s00hLyKW3wE3YfSK0Eazl6b4VZG4LTqJxg- Message-ID: <5509A282.6070207@att.net> Date: Wed, 18 Mar 2015 12:06:26 -0400 From: Anthony Jenkins User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Warner Losh Subject: Re: [PATCH] ACPI CMOS region support rev. 5 References: <20150222180817.GD27984@strugglingcoder.info> <54EB8C21.2080600@att.net> <2401337.2oUs7iAbtB@ralph.baldwin.cx> <54EF3D5D.4010106@att.net> <20150227222203.P38620@sola.nimnet.asn.au> <20150228125857.D1277@besplex.bde.org> <54F14368.4020807@att.net> <20150302002647.W42658@sola.nimnet.asn.au> <54F5E53D.1090601@att.net> <20150306025800.U46361@sola.nimnet.asn.au> <54F9D7E6.4050807@att.net> <5504FF32.3020202@att.net> <20150317001401.X22641@sola.nimnet.asn.au> <5506F00A.3030708@att.net> <5506FBE3.1000009@att.net> <20150317041624.K22641@sola.nimnet.asn.au> <55073442.5060005@att.net> <20150317222704.K22641@sola.nimnet.asn.au> <550825DE.7030406@att.net> <56B494A3-2058-4B7B-8183-646A46753A53@bsdimp.com> In-Reply-To: <56B494A3-2058-4B7B-8183-646A46753A53@bsdimp.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: freebsd-acpi@freebsd.org, Ian Smith X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Mar 2015 16:06:34 -0000 On 03/18/2015 11:29 AM, Warner Losh wrote: >> On Mar 17, 2015, at 7:02 AM, Anthony Jenkins wrote: >>> \Where else might ATRTC_VERBOSE be set otherwise? >> I'm picturing a (future?) config(5) knob, e.g. >> >> device atrtc >> options ATRTC_VERBOSE=1 >> >> >> so it can be set at compile time. > Why not just boot verbose? history has shown too many options like > this is hard to use. I think I understand what you're saying... I also prefer fewer config(5) knobs. So you're suggesting I determine (at runtime) the boot verbose setting (kenv(2) or however it's properly done) and dump the compile-time verbosity setting? Thanks, Anthony >>> I still wonder if there isn't a global acpi_loaded_and_running variable >>> so you could avoid even attempting ACPI init calls, perhaps making this >>> not so dependent on ACPI, at least at runtime. >> I haven't (yet) been able to find a compile-time flag that tells me if >> the kernel supports ACPI; I'm /pretty/ sure the ACPI headers I'm >> #include'ing will exist for every build of FreeBSD. > I wouldn’t count on it. However, they may exist for all platforms that > use atrtc. > > But it wouldn’t be an issue if you did a separate attachment. > > Warner >