#
aad970f1 |
| 24-Aug-2003 |
David E. O'Brien <obrien@FreeBSD.org> |
Use __FBSDID(). Also some minor style cleanups.
|
#
a329ebca |
| 30-Jul-2003 |
Nate Lawson <njl@FreeBSD.org> |
Add and document the hw.acpi.ec.poll_timeout tunable.
|
#
44904c40 |
| 25-Jul-2003 |
Nate Lawson <njl@FreeBSD.org> |
Add an informational debugging printf of the maximum time spent in EcEventWait(). If you get AE_HARDWARE_NO_RESPONSE errors, please enable this info by setting hw.acpi.verbose=1 in loader.conf.
|
#
c72508e2 |
| 20-Jul-2003 |
Nate Lawson <njl@FreeBSD.org> |
Do not call acpi_MatchHid() for all probe cases since it accesses the namespace. To compensate for it only being used in the !ECDT case, use a more robust approach to indicate a device was probed vi
Do not call acpi_MatchHid() for all probe cases since it accesses the namespace. To compensate for it only being used in the !ECDT case, use a more robust approach to indicate a device was probed via ECDT by setting the private ivar to be &acpi_ec_devclass. Without the acpi_MatchHid() call now, it might have been possible for a non-EC device to have had its magic match our previous flag.
Pointed out by: takawata
show more ...
|
#
3a371f32 |
| 20-Jul-2003 |
Nate Lawson <njl@FreeBSD.org> |
Close a race condition by passing status retrieved via a non-SCI call to EcGpeQueryHandler on to any waiting threads through the softc. Similar behavior was in the original version.
Also: * Merge E
Close a race condition by passing status retrieved via a non-SCI call to EcGpeQueryHandler on to any waiting threads through the softc. Similar behavior was in the original version.
Also: * Merge EcQuery into EcGpeQueryHandler to simplify locking * Hold EcLock from the initial read of the CSR down to the wakeup or until after the query command has been processed. * ec_gpebit only needs to be a UINT8
show more ...
|
#
f8335e3a |
| 20-Jul-2003 |
Nate Lawson <njl@FreeBSD.org> |
Add ECDT (ACPI 2.0) support. This allows the EC to be enabled before the namespace has been evaluated. Machines with ACPI 2.0 expect this behavior and have AML which calls EC functions early in the
Add ECDT (ACPI 2.0) support. This allows the EC to be enabled before the namespace has been evaluated. Machines with ACPI 2.0 expect this behavior and have AML which calls EC functions early in the boot process. If the ECDT is not available, fall back to original probe behavior.
Other minor changes: * Add GPE bit and GLK usage to the device announcement * Always use the global lock in the ECDT case, but potentially downgrade to not using it if _GLK is 0 once the namespace is available. This is announced with "Changing GLK from 1 to 0" * Remove the acpi_object_list definitions which were earlier deprecated
Ideas from: takawata
show more ...
|
#
ff40920e |
| 15-Jul-2003 |
Nate Lawson <njl@FreeBSD.org> |
Change the msleep part of EcWaitEvent to be a separate loop, fixing a problem that for some very slow ECs (~6 ms occasionally) causes a timeout. Also finish resource cleanup in the error case in att
Change the msleep part of EcWaitEvent to be a separate loop, fixing a problem that for some very slow ECs (~6 ms occasionally) causes a timeout. Also finish resource cleanup in the error case in attach.
Tested by: ume
show more ...
|
#
6fca9360 |
| 14-Jul-2003 |
Nate Lawson <njl@FreeBSD.org> |
Update code to work with 0619 dist
* Use ACPI_BUFFER as the type for AcpiGetObjectInfo * Remove AcpiEnableEvent/AcpiClearEvent for ACPI_EVENT_FIXED (power/sleep buttons) as they are no longer need
Update code to work with 0619 dist
* Use ACPI_BUFFER as the type for AcpiGetObjectInfo * Remove AcpiEnableEvent/AcpiClearEvent for ACPI_EVENT_FIXED (power/sleep buttons) as they are no longer needed * Change calls to use the new GPE functions * Add AcpiOs*Lock functions
show more ...
|
#
1f04e8f5 |
| 10-Jul-2003 |
Nate Lawson <njl@FreeBSD.org> |
Rewrite much of the embedded controller driver. * Always use polled mode. The intr approach did not work for many controllers and required the hw.acpi.ec.event_driven workaround. * Only use an edg
Rewrite much of the embedded controller driver. * Always use polled mode. The intr approach did not work for many controllers and required the hw.acpi.ec.event_driven workaround. * Only use an edge (not level) triggered GPE handler * Add sc->ec_mtx for locking operations to a single EC. There were many race conditions earlier between an SCI event and EcRead/Write. * Use 1 ms as the global lock timeout * Only acquire global lock if _GLK != 0 * Update EcWaitEvent to use an incremental backoff delay in its poll loop. Wait 50 ms max instead of 10. Most ECs respond in < 5 us (50 us when heavily loaded). However, some time out occasionally even with a 10 ms timeout. For delays past 1 ms, use msleep instead of DELAY to give SCI interrupts a chance to occur. * Add EcCommand to send a command and wait for the appropriate event. * The hw.acpi.ec.event_driven tunable is no longer applicable and has been removed.
Ideas from: Linux
show more ...
|
#
464c662e |
| 27-Jun-2003 |
Nate Lawson <njl@FreeBSD.org> |
Whitespace cleanups (verified with MD5 1832ce5ede6c58c844dfb53fd48f0eea). Also clarify a macro expansion with an XXX. I will be fixing access to Acpi Global Lock in a subsequent commit.
|
Revision tags: release/5.1.0_cvs, release/5.1.0, release/4.8.0_cvs, release/4.8.0, release/5.0.0_cvs, release/5.0.0 |
|
#
21b5fd3c |
| 27-Nov-2002 |
Mitsuru IWASAKI <iwasaki@FreeBSD.org> |
Resolve conflicts arising from the ACPI CA 20021118 import.
|
#
4690674e |
| 24-Oct-2002 |
Mitsuru IWASAKI <iwasaki@FreeBSD.org> |
Add new loader tunable hw.acpi.ec.event_driven so that we control EcWaitEventIntr()'s behavior. Some EC controllers require this for working properly (including sleep/wakeup).
|
#
fc0ea94a |
| 16-Oct-2002 |
John Baldwin <jhb@FreeBSD.org> |
Catch up to changes in acpivar.h to add support for using ACPI on 4-stable systems.
Sponsored by: The Weather Channel
|
Revision tags: release/4.7.0_cvs, release/4.6.2_cvs, release/4.6.2, release/4.6.1, release/4.6.0_cvs |
|
#
4ec59359 |
| 02-Jul-2002 |
Takanori Watanabe <takawata@FreeBSD.org> |
Make interrupt driven EC transaction optional.
|
#
b4a05238 |
| 19-May-2002 |
Peter Wemm <peter@FreeBSD.org> |
Brutally deal with __func__ being 'const char *' on gcc-3.1.
|
#
dbd0058a |
| 23-Feb-2002 |
Mike Smith <msmith@FreeBSD.org> |
Match namespace cleanup changes in ACPI CA 20020217 update. Use ACPI_SUCCESS/ACPI_FAILURE consistently.
The ACPI global lock acquire takes a timeout value. I'm not sure what we should do about time
Match namespace cleanup changes in ACPI CA 20020217 update. Use ACPI_SUCCESS/ACPI_FAILURE consistently.
The ACPI global lock acquire takes a timeout value. I'm not sure what we should do about timeouts on it; a deadlock against this lock is catastrophic.
show more ...
|
Revision tags: release/4.5.0_cvs, release/4.4.0_cvs |
|
#
f8372ade |
| 31-Jan-2002 |
Takanori Watanabe <takawata@FreeBSD.org> |
Fix error handling.
PR:30665 Submitted by:TOMITA Yoshinori <yoshint@flab.fujitsu.co.jp>
|
#
3273b005 |
| 08-Jan-2002 |
Mike Smith <msmith@FreeBSD.org> |
Staticise devclasses and some unnecessarily global variables.
|
#
c573e654 |
| 22-Dec-2001 |
Mitsuru IWASAKI <iwasaki@FreeBSD.org> |
Add OS layer ACPI mutex and threading support. - Temporary fix a bug of Intel ACPI CA core code. - Add OS layer ACPI mutex support. This can be disabled by specifying option ACPI_NO_SEMAPHORES.
Add OS layer ACPI mutex and threading support. - Temporary fix a bug of Intel ACPI CA core code. - Add OS layer ACPI mutex support. This can be disabled by specifying option ACPI_NO_SEMAPHORES. - Add ACPI threading support. Now that we have a dedicate taskqueue for ACPI tasks and more ACPI task threads can be created by specifying option ACPI_MAX_THREADS. - Change acpi_EvaluateIntoBuffer() behavior slightly to reuse given caller's buffer unless AE_BUFFER_OVERFLOW occurs. Also CM battery's evaluations were changed to use acpi_EvaluateIntoBuffer(). - Add new utility function acpi_ConvertBufferToInteger(). - Add simple locking for CM battery and temperature updating. - Fix a minor problem on EC locking. - Make the thermal zone polling rate to be changeable. - Change minor things on AcpiOsSignal(); in ACPI_SIGNAL_FATAL case, entering Debugger is easier to investigate the problem rather than panic.
show more ...
|
#
76f2b644 |
| 28-Nov-2001 |
Mike Smith <msmith@FreeBSD.org> |
Synch with minor changes in the ACPI CA 20011120 snapshot.
|
#
6971b3c7 |
| 18-Nov-2001 |
Mitsuru IWASAKI <iwasaki@FreeBSD.org> |
Cleanups of verbose printing. All the messages for the debugging is disabled unless verbose flag is set. Also fix some messages in terms of English. The critical messages and error messages in prob
Cleanups of verbose printing. All the messages for the debugging is disabled unless verbose flag is set. Also fix some messages in terms of English. The critical messages and error messages in probe/attach routine are unchanged by this commit.
show more ...
|
#
43896e91 |
| 05-Oct-2001 |
Mike Smith <msmith@FreeBSD.org> |
Update usage of AcpiEnableEvent to reflect a new argument.
Fix acpi_DeviceIsPresent to check for valid _STA data and to check the "present" and "functioning" bits.
Use acpi_DeviceIsPresent in acpi_
Update usage of AcpiEnableEvent to reflect a new argument.
Fix acpi_DeviceIsPresent to check for valid _STA data and to check the "present" and "functioning" bits.
Use acpi_DeviceIsPresent in acpi_pcib rather than rolling our own (also broken) version.
show more ...
|
#
2668fa39 |
| 30-Aug-2001 |
Mike Smith <msmith@FreeBSD.org> |
Don't parse our resources ourself, the ACPI core code must do it.
|
#
4c1cdee6 |
| 27-Aug-2001 |
Mike Smith <msmith@FreeBSD.org> |
Updates to match the ACPI CA 20010816 import:
- New debug macro (ACPI_DEBUG_PRINT), reducing debug-case code size. - New debug level/subsystem codes.
|
#
bfae45aa |
| 21-Jul-2001 |
Mike Smith <msmith@FreeBSD.org> |
Convert from acpi_strerror() to AcpiFormatException()
Fix dangling include of the dear departed acpi_ecreg.h
|