Re: Panic: _at_r323525: iflib

From: Jung-uk Kim <jkim_at_FreeBSD.org>
Date: Wed, 13 Sep 2017 19:08:26 -0400
On 09/13/2017 11:21, Sean Bruno wrote:
>> Previous successful build was:
>> FreeBSD g1-252.catwhisker.org 12.0-CURRENT FreeBSD 12.0-CURRENT #398  r323483M/323489:1200044: Tue Sep 12 04:31:08 PDT 2017     root_at_g1-252.catwhisker.org:/common/S4/obj/usr/src/sys/CANARY  amd64
>>
>> The usual historical information, including a verbose-boot dmesg.boot
>> from the above-cited build, may be found at
>> <http://www.catwhisker.org/~david/FreeBSD/history/>.
>>
>> I will try hand-transcribing some of the lock & backtrace info:
>>
>> ...
>> em0: allocated for 1 rx_queues
>> Kernel page fault with the following non-sleepable locks held:
>> exclusive sleep mutex taskqgroup (taskqgroup) r = 0 (0xfffffe07be2e4800) locked _at_ /usr/src/sys/kern/subr_gtaskqueue.c:803
>> stack backtrace:  [which I am abbreviating at this point -- dhw]
>> #0 ... at witness_debugger+0x73
>> #1 ... at witness_warn+0x43f
>> #2 ... at trap_pfault+0x53
>> #3 ... at trap+0x2c5
>> #4 ... at calltrap+0x8
>> #5 ... at iflib_device_register+0x2a61
>> #6 ... at iflib_device_attach+0xb7
>> #7 ... at device_attach+0x3ee
>> #8 ... at bus_generic_attach+0x5a
>> #9 ... at pci_attach+0xd5
>> #10 ... at device_attach+0x3ee
>> #11 ... at bus_generic_attach+0x5a
>> #12 ... at acpi_pcib_acpi_attach+0x3bc
>> #13 ... at device_attach+0x3ee
>> #14 ... at bus_generic_attach+0x5a
>> #15 ... at acpi_attach+0xe85
>> #16 ... at device_attach+0x3ee
>> #17 ... at bus_generic_attach+0x5a
>>
>> Fatal trap 12: page fault while in kernel mode
>> cpuid = 2; apic id = 02
>> fault virtual address   = 0xffffffff8b530c20
>> fault code              = supervisor write data, page not present
>> ...
>> [ thread pid 0 tid 100000 ]
>> Stopped at      0xffffffff80a743b0 = taskqgroup_attach+0x230:    orq   %rax,-0x 58(%rbp,%xrx,8)
>>
>> I can provide more specific excerpts, but I need to focus on some
>> other activities for a while.
>>
>> Peace,
>> david
>>
> 
> 
> When you get a chance, let me know what em(4) device is in your machine
> (pciconf -lvbc).  I'll see if I have one around here to test.

FYI, I have very similar panics after the commit.  Reverting the commit
from today's head, i.e., r323566 - (r323516 & r323517), fixed the
problem for me.

em0_at_pci0:7:0:0:	class=0x020000 card=0x115e8086 chip=0x105e8086 rev=0x06
hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82571EB Gigabit Ethernet Controller'
    class      = network
    subclass   = ethernet
    bar   [10] = type Memory, range 32, base 0xd0ca0000, size 131072,
enabled
    bar   [14] = type Memory, range 32, base 0xd0c80000, size 131072,
enabled
    bar   [18] = type I/O Port, range 32, base 0x2020, size 32, enabled
    cap 01[c8] = powerspec 2  supports D0 D3  current D0
    cap 05[d0] = MSI supports 1 message, 64 bit enabled with 1 message
    cap 10[e0] = PCI-Express 1 endpoint max data 256(256) NS
                 link x4(x4) speed 2.5(2.5) ASPM disabled(L0s)
    ecap 0001[100] = AER 1 0 fatal 1 non-fatal 0 corrected
    ecap 0003[140] = Serial 1 001517ffff51bcba
em1_at_pci0:7:0:1:	class=0x020000 card=0x115e8086 chip=0x105e8086 rev=0x06
hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82571EB Gigabit Ethernet Controller'
    class      = network
    subclass   = ethernet
    bar   [10] = type Memory, range 32, base 0xd0c40000, size 131072,
enabled
    bar   [14] = type Memory, range 32, base 0xd0c20000, size 131072,
enabled
    bar   [18] = type I/O Port, range 32, base 0x2000, size 32, enabled
    cap 01[c8] = powerspec 2  supports D0 D3  current D0
    cap 05[d0] = MSI supports 1 message, 64 bit enabled with 1 message
    cap 10[e0] = PCI-Express 1 endpoint max data 256(256) NS
                 link x4(x4) speed 2.5(2.5) ASPM disabled(L0s)
    ecap 0001[100] = AER 1 0 fatal 1 non-fatal 0 corrected
    ecap 0003[140] = Serial 1 001517ffff51bcba

> I'm assuming you do *not* have any iflib or em(4) tuning options set either.

Nope.

Jung-uk Kim


Received on Wed Sep 13 2017 - 21:08:32 UTC

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