Re: "Fatal trap" when unloading usb2_controller_ehci

From: Paul B. Mahol <onemda_at_gmail.com>
Date: Mon, 9 Feb 2009 19:40:19 +0100
On 2/9/09, John Baldwin <jhb_at_freebsd.org> wrote:
> On Sunday 08 February 2009 4:26:20 am Hans Petter Selasky wrote:
>> Hi,
>>
>> I don't think this is a USB problem. I rather think it has something to do
>>
>> with the IRQ handler. On my box the EHCI IRQ is shared with the IRQ of the
>>
>> graphics adapter, and when I unload the EHCI driver under X11 a couple of
>> times X11 freezes. This does not happen on the console.
>
> Perhaps try reverting Jeff's per-CPU IDT changes to see if it is related to
> that?  It seems that the IDT handler was torn down, but that an APIC IRQ
> wasn't masked or some such.

I'm reporting similar problem with drm+X11+intel when zaping Xorg on
SMP enabled kernel (core2 CPU)

Panic happens in something like acpi_ec handler.

I share John's opinion about *recent* per CPU IDT changes being source
of problem.

>> --HPS
>>
>> On Sunday 08 February 2009, Bruce Cran wrote:
>> > Unloading usb2_controller_ehci is crashing FreeBSD on -CURRENT
>> > from a few days ago, resulting in a "Fatal trap" that isn't immediately
>> > fatal but ends up knocking out the rest of the system.
>> >
>> > Shortly after issuing a kldunload, the kernel drops into DDB with:
>> >
>> > Fatal trap 30: reserved (unknown) fault while in kernel mode
>> > cpuid = 0; apic id = 00
>> > instruction pointer = 0x8 : 0xffffffff804bc646
>> > stack pointer       = 0x10: 0xfffffffe40023b70
>> > frame pointer       = 0x10: 0xfffffffe40023b80
>> > code segment        = base 0x0, limit 0xfffff, type 0x1b
>> > processor eflags    = interrupt enabled, IOPL = 0
>> > current process     = 11 (idle : cpu0)
>> > [thread pid 11 tid 100004]
>> > Stopped at acpi_cpu_c1+0x6 : leave
>> >
>> > A backtrace just shows that the idle task was running at the time of
>> > the trap.  Attempting to continue results in a load of "calcru: runtime
>> > went backwards" messages followed by the ATA driver dying with:
>> >
>> > WARNING - SETFEATURES SET TRANSFER MODE taskqueue timeout - completing
>> > request directly
>> >
>> > Then follows similar messages about SET_MULTI, ENABLE RCACHE,
>> > ENABLE_WCACHE and WRITE_DMA48 etc.
>>
>>
>> _______________________________________________
>> freebsd-current_at_freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-current
>> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
>>
>
>
>
> --
> John Baldwin
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
>


-- 
Paul
Received on Mon Feb 09 2009 - 17:40:21 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:41 UTC