diff options
author | njl <njl@FreeBSD.org> | 2003-07-10 17:22:46 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2003-07-10 17:22:46 +0000 |
commit | 4fe32afe30fb908adc5a0e3ca13f1b12acaf3eb8 (patch) | |
tree | 53082cf8a34299a16067647d93e21858d227908b /sys/i386/include/mptable.h | |
parent | 940c15d08f3ed6e6544787bb59a3609c1da43466 (diff) | |
download | FreeBSD-src-4fe32afe30fb908adc5a0e3ca13f1b12acaf3eb8.zip FreeBSD-src-4fe32afe30fb908adc5a0e3ca13f1b12acaf3eb8.tar.gz |
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
Diffstat (limited to 'sys/i386/include/mptable.h')
0 files changed, 0 insertions, 0 deletions