acpi_ec_ecdt_probe => acpi_ec_identify

Andriy Gapon avg at icyb.net.ua
Mon Feb 8 16:39:59 UTC 2010


on 05/02/2010 08:21 Nate Lawson said the following:
> Andriy Gapon wrote:
>> on 05/02/2010 07:53 Nate Lawson said the following:
>>> I agree in concept. The ECDT-based probe method was intended to get it
>>> active as early as possible, and Linux has a quirk to create a fake ECDT
>>> to get an early EC on some systems that require it but don't have an ECDT.
>>>
>>> However, I thought jhb@'s multi-pass probe work would be a better way to
>>> support this than moving it into device_identify(). Is that code ready
>>> to use yet?
>> I agree with this.  But, unfortunately, the code doesn't seem to be as ready as
>> everyone would love it to be.
> 
> Ok, then identify() is fine too.

I've been trying to understand why and if we need to handle ECDT table at all.
It seems that we need it for reasons that don't allow acpi_ec_ecdt_probe =>
acpi_ec_identify conversion.  It seems that Nate had a very good reason to put a
call to acpi_ec_ecdt_probe where it is now.
While no OS code uses EC early during boot, _INI methods of Devices may access EC
address space and that seems to be one of the reasons to have ECDT.
_INI methods are called quite early from AcpiInitializeObjects.
This is before we do any walk of ACPI namespace and, thus, before enumeration of
ACPI devices.

-- 
Andriy Gapon


More information about the freebsd-acpi mailing list