From: Anthony Jenkins <Scoobi_doo at yahoo.com>
To: devel@acpica.org
Subject: Re: [Devel] [PATCH v2] Introduce AcpiOs(Read|Write)Cmos and enable these in AcpiExCmosSpaceHandler
Date: Thu, 14 Apr 2016 11:18:52 -0400 [thread overview]
Message-ID: <570FB4DC.4070607@yahoo.com> (raw)
In-Reply-To: 94F2FBAB4432B54E8AACC7DFDE6C92E37E446E4C@ORSMSX110.amr.corp.intel.com
[-- Attachment #1: Type: text/plain, Size: 1842 bytes --]
On Thu Feb 18 08:05:56 PST 2016, Robert Moore wrote:
> To clarify:
>
> The ACPI specification defines three _HID values for the supported RTC/CMOS devices:
>
> 1) PNP0B00 (PC/AT-compatible)
> 2) PNP0B01 (Intel PIIX4-compatible)
> 3) PNP0B02 (Dallas Semiconductor-compatible)
>
> This is the reason that ACPICA has never defined low-level CMOS interfaces, since there are 3 different devices. Therefore, the model that is used by ACPICA is this:
>
> The host OS scans the ACPI namespace for the various devices with _HIDs.
> Upon detection of _HID PNP0B00, PNP0B01, or PNP0B02, the host loads the appropriate CMOS driver.
> The driver installs an operation region handler that hands off all CMOS requests to the driver.
> ACPICA will invoke the handler on any CMOS address space access.
> The driver then accesses the CMOS device as appropriate.
>
> It appears that the first 64 bytes of the CMOS may be common between the chips. Accessing anything past 64 bytes seems to be device-dependent. So, any "common" CMOS code is playing with fire, I would think. For example, For PNP0B01, the ACPI specification has this to say: "The upper 192 bytes are accessed through an interface that is only used on Intel chips. (See 82371AB PCI-TO-ISA / IDEXCELERATOR (PIIX4) for details)"
>
> Bob
Hi,
I've proposed a patch to FreeBSD-11(CURRENT) to add an ACPI CMOS region
handler to its atrtc(4) device, which supports PNP0B00 devices, exactly
as you've suggested in your model. Is there anything ACPICA can/will
provide to support this effort, or should my patch represent the the
complete implementation of CMOS region support in our OSPM (at least for
this particular CMOS device)? At least the HP Envy line of laptops
requires this support to enable FreeBSD to suspend/power-down.
Thanks,
--
Anthony Jenkins
next reply other threads:[~2016-04-14 15:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-14 15:18 Anthony Jenkins [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-04-14 15:49 [Devel] [PATCH v2] Introduce AcpiOs(Read|Write)Cmos and enable these in AcpiExCmosSpaceHandler Moore, Robert
2016-02-18 16:05 Moore, Robert
2016-02-17 15:30 Moore, Robert
2016-02-17 6:03 Zheng, Lv
2015-05-02 1:01 Adam Goode
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=570FB4DC.4070607@yahoo.com \
--to=devel@acpica.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.