Ah, the line in the acpi_cpu_mwait function should be read as: cpu_monitor(state, 0, 0);
Vitaly, could you test the jkim's patch again with the above line modified? Jung-uk, the MONITOR insn seems to result in GPF if its extensions is anything but zero. # I admit it's very confusing that the semantics of extensions to # MONITOR and MWAIT are different from each other... On Wed, 13 Jul 2011 00:04:11 +0300 Vitaly Magerya <vmage...@gmail.com> wrote: > Vitaly Magerya <vmage...@gmail.com> wrote: > > Jung-uk Kim m...@freebsd.org> wrote: > >> I have written a very rough patch and it is available from here: > >> > >> http://people.freebsd.org/m/acpi_cst.diff > >> > >> It compiles but wasn't tested at all, i.e., I have no hardware. > >> Please be careful. > > > > Cool. I'll try it. > > Sorry for the delay (I had to install CURRENT first). > > When I boot a kernel with that patch, I get this panic: > > Fatal trap 9: general protection fault while in kernel mode > cpuid = 0; apic id = 00 > instruction pointer = 0x20:0xc04cd782 > stack pointer = 0x28:0xc3bddc3c > frame pointer = 0x28:0xc3bddc80 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, def32 1, gran 1 > processor eflags = resume, IOPL = 0 > current process = 11 (idle: cpu0) > [ thread pid 11 tid 100003 ] > Stopped at acpi_cpi_idle+0x1c2: monitor > > Here's the backtrace: > > Tracing pid 11 tid 100003 td 0xc3d7f8a0 > acpi_cpu_idle(1d,c3bddca4,c0992e99,0,1d,...) at acpi_cpu_idle+0x1c2 > cpu_idle_acpi(0,1d,0,c3d7f8a0,c3bddcec,...) at cpu_idle_acpi+0x2f > cpu_idle(0,c3bddcc8,c0a27d18,a03,c3d7f8a0,...) at cpu_idle+0x89 > sed_idletd(0,c3bddd28,ff7ff3ff,c3d7d840,0,...) at sched_idletd+0x249 > fork_exit(c0721060,0,c3bddd28) at fork_exit+0x97 > fork_trampoline() at fork_trampoline+0x8 > --- trap 0, eip = 0, esp = 0xc3bddd60, ebp = 0 --- > > (Yes, I typed all that manually). > > My kernel is GENERIC without WITNESS, INVARIANTS and a whole lot > of drivers my system doesn't need (I can show the file on request). > _______________________________________________ > freebsd-acpi@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-acpi > To unsubscribe, send any mail to "freebsd-acpi-unsubscr...@freebsd.org" -- -|-__ 山本 拓 / YAMAMOTO, Taku | __ < <t...@tackymt.homeip.net> - A chicken is an egg's way of producing more eggs. - _______________________________________________ freebsd-acpi@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-acpi To unsubscribe, send any mail to "freebsd-acpi-unsubscr...@freebsd.org"