I patched the kernel to work around the problem with the patch below.
It allows me to unplug the power cable and to start X without getting a
kernel panic. So far I have not noticed any adverse side effects. I'll
look into the problem further later this week.

Thanks,
Caspar Schutijser


Index: dsdt.c
===================================================================
RCS file: /cvs/src/sys/dev/acpi/dsdt.c,v
retrieving revision 1.235
diff -u -p -r1.235 dsdt.c
--- dsdt.c      12 Oct 2017 07:24:46 -0000      1.235
+++ dsdt.c      17 Oct 2017 17:52:12 -0000
@@ -3743,11 +3743,17 @@ aml_parse(struct aml_scope *scope, int r
                /* Index: tir => ObjRef */
                idx = opargs[1]->v_integer;
                if (idx >= opargs[0]->length || idx < 0) {
+#if 0
 #ifndef SMALL_KERNEL
                        aml_showvalue(opargs[0]);
 #endif
                        aml_die("Index out of bounds %d/%d\n", idx,
                            opargs[0]->length);
+#else
+                       printf("Index out of bounds %d/%d\n", idx,
+                           opargs[0]->length);
+                       goto parse_error;
+#endif
                }
                switch (opargs[0]->type) {
                case AML_OBJTYPE_PACKAGE:

Reply via email to