Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ACPI Error: No handler for Region [ECOR]



On Sun, Mar 28, 2010 at 04:02:28PM +0200, Kurt Schreiner wrote:
> Hi,
> 
> after updating my IBM T43p to -current, I see some problems w/ ACPI:
> 
> to get the machine booting, I had to comment #acpiecdt from my config
> file as a kernel w/ acpiecdt configured crashed early while booting.
> (couldn't get a crash dump and there's no serial console, so no easy
> way to get a backtrace for posting here.)

Kurt,

Please try this patch to fix acpiecdt.

Dave

-- 
David Young             OJC Technologies
dyoung%ojctech.com@localhost      Urbana, IL * (217) 278-3933
? .acpi.c.swp
Index: acpi.c
===================================================================
RCS file: /cvsroot/src/sys/dev/acpi/acpi.c,v
retrieving revision 1.162
diff -u -p -r1.162 acpi.c
--- acpi.c      22 Mar 2010 11:13:23 -0000      1.162
+++ acpi.c      29 Mar 2010 15:37:41 -0000
@@ -508,7 +508,7 @@ acpi_attach(device_t parent, device_t se
        }
 
        /* Early EC handler initialization if ECDT table is available. */
-       config_found_ia(self, "acpiecdtbus", NULL, NULL);
+       config_found_ia(self, "acpiecdtbus", aa, NULL);
 
        rv = AcpiInitializeObjects(ACPI_FULL_INITIALIZATION);
        if (ACPI_FAILURE(rv)) {
@@ -611,7 +611,7 @@ acpi_detach(device_t self, int flags)
        }
 
        /* Early EC handler initialization if ECDT table is available. */
-       config_found_ia(self, "acpiecdtbus", NULL, NULL);
+       config_found_ia(self, "acpiecdtbus", aa, NULL);
 
        rv = AcpiInitializeObjects(ACPI_FULL_INITIALIZATION);
        if (ACPI_FAILURE(rv)) {
Index: acpi_ec.c
===================================================================
RCS file: /cvsroot/src/sys/dev/acpi/acpi_ec.c,v
retrieving revision 1.63
diff -u -p -r1.63 acpi_ec.c
--- acpi_ec.c   24 Mar 2010 01:13:30 -0000      1.63
+++ acpi_ec.c   29 Mar 2010 15:37:41 -0000
@@ -226,7 +226,7 @@ acpiecdt_match(device_t parent, cfdata_t
 static void
 acpiecdt_attach(device_t parent, device_t self, void *aux)
 {
-       struct acpi_attach_args *aa = aux;
+       struct acpibus_attach_args *aa = aux;
        ACPI_HANDLE ec_handle;
        bus_addr_t cmd_reg, data_reg;
        uint8_t gpebit;


Home | Main Index | Thread Index | Old Index