New acpi_ec.c
- From: ted@xxxxxxxxx (Ted Lindgreen)
- Date: Wed, 26 Sep 2007 11:26:24 +0200
Hi,
The file /usr/src/sys/dev/acpica/acpi_ec.c has been updated recently.
This broke my patch (about which I have posted earlier this year
(around March) to let my Acer 3623 behave properly.
I append a new patch, which can be applied to the new acpi_ec.c.
To recap the problem and the hack that I found to fix it:
- It appears that the EC of my Acer 3623 does not like to be
polled for status to soon after writing a command to it.
- The error message AE_NO_HARDWARE_RESPONSE is output in enormous
amounts, and commands like apm(8) fail.
- With a delay of 2500 the amount of AE_NO_HARDWARE_RESPONSE messages
drops significantly, and apm(8) works.
- With a delay of 3000 no more AE_NO_HARDWARE_RESPONSE messages appear,
and everything works flawlessly.
regards,
-- ted
PS. the patch:
In /boot/loader.conf I have:
debug.acpi.ec.burst="1"
debug.acpi.ec.waitbeforepoll="3000"
and the change in acpi_ec.c:
--- acpi_ec.c 2007-09-26 11:18:27.000000000 +0200
+++ acpi_ec.c.org 2007-09-24 18:59:06.000000000 +0200
@@ -193,10 +193,6 @@
TUNABLE_INT("debug.acpi.ec.timeout", &ec_timeout);
SYSCTL_INT(_debug_acpi_ec, OID_AUTO, timeout, CTLFLAG_RW, &ec_timeout,
EC_TIMEOUT, "Total time spent waiting for a response (poll+sleep)");
-static int ec_waitbeforepoll = 0;
-TUNABLE_INT("debug.acpi.ec.waitbeforepoll", &ec_waitbeforepoll);
-SYSCTL_INT(_debug_acpi_ec, OID_AUTO, waitbeforepoll, CTLFLAG_RW, &ec_waitbeforepoll,
- 0, "Wait before starting to poll");
static ACPI_STATUS
EcLock(struct acpi_ec_softc *sc)
@@ -806,10 +802,6 @@
if (cold || rebooting || ec_polled_mode) {
static int once;
- /* Some EC's just need enough time before they can be polled */
- if (ec_waitbeforepoll > 0)
- AcpiOsStall(ec_waitbeforepoll);
- else {
if (EcCheckStatus(sc, "pre-check", Event) == AE_OK) {
if (!once) {
device_printf(sc->ec_dev,
@@ -818,7 +810,6 @@
}
AcpiOsStall(10);
}
- }
}
/* Wait for event by polling or GPE (interrupt). */
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"
- Prev by Date: x11/nvidia-driver on Sept07 snapshot
- Next by Date: lock up
- Previous by thread: x11/nvidia-driver on Sept07 snapshot
- Next by thread: lock up
- Index(es):
Relevant Pages
- Re: BTX on USB pen drive
... the btx_real patch (after I modified hunk 1 to work with the 7-STABLE ... Which
Acer model is that? ... The laptop I have troubles booting from usb is an Acer Aspire
5672. ... other approaches except for the USB stick with jhb's patch earlier today. ...
(freebsd-stable) - [PATCH 2/5] piix: backport short cables support from ata_piix.c
... This patch should allow UDMA> 2 modes on: ... Acer 5602WLMi
... Acer Aspire 2023WLMi ... (Linux-Kernel) - Re: 2.6.19-rc3 system freezes when ripping with cdparanoia at ioctl(SG_IO)
... machine with SATA/ata_piix and cdparanoia 3.10. ... cdparanoia can handle both
cases as long as the kernel ... promptly fails command issued with the wrong direction.
... Coincidentally I am sitting on a patch from Luben Tuikov ... (Linux-Kernel) - Re: 2.6.19-rc3 system freezes when ripping with cdparanoia at ioctl(SG_IO)
... machine with SATA/ata_piix and cdparanoia 3.10. ... cdparanoia can handle both
cases as long as the kernel ... promptly fails command issued with the wrong direction.
... Coincidentally I am sitting on a patch from Luben Tuikov ... (Linux-Kernel) - Re: kern/112119: system hangs when starts k3b on RELENG_6
... I also tried your attached patch, which reverts part of rev. 1.42.2.3 ...
the ATA driver disables DMA for the REQUEST_SENSE command. ... (freebsd-stable)