Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Dec 2020 01:46:12 +0100
From:      Marc Veldman <marc@bumblingdork.com>
To:        Yuri Pankov <yuripv@yuripv.dev>, junchoon@dec.sakura.ne.jp
Cc:        freebsd-current@freebsd.org
Subject:   Re: Boot panic on Lenovo P50s since r367998
Message-ID:  <7DDC11C4-41D2-440E-9C14-C37894325903@bumblingdork.com>
In-Reply-To: <6d42bbaa-7c88-db53-c441-40513c043847@yuripv.dev>
References:  <89112D93-739D-45B5-B21A-3396C098A89B@bumblingdork.com> <6d42bbaa-7c88-db53-c441-40513c043847@yuripv.dev>

next in thread | previous in thread | raw e-mail | index | archive | help


> On 25 Dec 2020, at 00:04, Yuri Pankov <yuripv@yuripv.dev> wrote:
>=20
> Marc Veldman wrote:
>> Hello,
>> since r367998 my Lenovo P50s panics on boot:
>> mmc0: detached
>> panic: Bad link elm 0xfffff80003a73300 next->prep !=3D elm
>> cupid=3D3
>> time=3D2
>> KDB: stack backtrace:
>> db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame =
0xffffffff8299a9c0
>> vpanic() at vpanic+0x181/frame 0xffffffff8299aa10
>> panic() at panic+0x43/frame 0xffffffff8299aa70
>> config_intrhook_disestablish() at =
config_intrhook_disestablish+0xf3/frame 0xffffffff8299aa90
>> config_intrhook_oneshot_func() at =
config_intrhook_oneshot_func+0x18/frame 0xffffffff8299aab0
>> run_interrupt_driven_config_hooks() at =
run_interrupt_driven_config_hooks+0x77/frame 0xffffffff8299aad0
>> boot_run_interrupt_driven_config_hooks() at =
boot_run_interrupt_driven_config_hooks+0x1f/frame 0xffffffff8299ab60
>> mi_startup() at mi_startup+0xec/frame 0xffffffff8299abb0
>> btext() at btext+0x2c
>> KDB: enter: panic
>> [thread pid 0 tid 100000]
>> Stopped at     kdb_enter+0x37: movq     $0,0x10ada46(%rip)
>=20
> r367998 adds rtsx driver for card reader, seems to work for me on P51 =
(as in "detected and does not panic", I don't have any cards around to =
really test it):
>=20
> rtsx0@pci0:63:0:0:	class=3D0xff0000 rev=3D0x01 hdr=3D0x00 =
vendor=3D0x10ec device=3D0x525a subvendor=3D0x17aa subdevice=3D0x224d
>    vendor	=3D 'Realtek Semiconductor Co., Ltd.'
>    device	=3D 'RTS525A PCI Express Card Reader'
>=20
> To confirm the issue is indeed in rtsx, does disabling the card reader =
in bios help?  If it does, what is the device exactly (`pciconf -lv` =
when booted on pre-r367998)?

The laptop does boot with the card reader disabled in BIOS, pciconf -lv =
output:.

hostb0@pci0:0:0:0:      class=3D0x060000 rev=3D0x08 hdr=3D0x00 =
vendor=3D0x8086 device=3D0x1904 subvendor=3D0x17aa subdevice=3D0x2231
    vendor     =3D 'Intel Corporation'
    device     =3D 'Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor =
Host Bridge/DRAM Registers'
    class      =3D bridge
    subclass   =3D HOST-PCI
vgapci0@pci0:0:2:0:     class=3D0x030000 rev=3D0x07 hdr=3D0x00 =
vendor=3D0x8086 device=3D0x1916 subvendor=3D0x17aa subdevice=3D0x2232
    vendor     =3D 'Intel Corporation'
    device     =3D 'Skylake GT2 [HD Graphics 520]'
    class      =3D display
    subclass   =3D VGA
none0@pci0:0:8:0:       class=3D0x088000 rev=3D0x00 hdr=3D0x00 =
vendor=3D0x8086 device=3D0x1911 subvendor=3D0x17aa subdevice=3D0x2231
    vendor     =3D 'Intel Corporation'
    device     =3D 'Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen =
Core Processor Gaussian Mixture Model'
    class      =3D base peripheral
xhci0@pci0:0:20:0:      class=3D0x0c0330 rev=3D0x21 hdr=3D0x00 =
vendor=3D0x8086 device=3D0x9d2f subvendor=3D0x17aa subdevice=3D0x2231
    vendor     =3D 'Intel Corporation'
    device     =3D 'Sunrise Point-LP USB 3.0 xHCI Controller'
    class      =3D serial bus
    subclass   =3D USB
pchtherm0@pci0:0:20:2:  class=3D0x118000 rev=3D0x21 hdr=3D0x00 =
vendor=3D0x8086 device=3D0x9d31 subvendor=3D0x17aa subdevice=3D0x2231
    vendor     =3D 'Intel Corporation'
    device     =3D 'Sunrise Point-LP Thermal subsystem'
    class      =3D dasp
none1@pci0:0:22:0:      class=3D0x078000 rev=3D0x21 hdr=3D0x00 =
vendor=3D0x8086 device=3D0x9d3a subvendor=3D0x17aa subdevice=3D0x2231
    vendor     =3D 'Intel Corporation'
    device     =3D 'Sunrise Point-LP CSME HECI'
    class      =3D simple comms
ahci0@pci0:0:23:0:      class=3D0x010601 rev=3D0x21 hdr=3D0x00 =
vendor=3D0x8086 device=3D0x9d03 subvendor=3D0x17aa subdevice=3D0x2231
    vendor     =3D 'Intel Corporation'
    device     =3D 'Sunrise Point-LP SATA Controller [AHCI mode]'
    class      =3D mass storage
    subclass   =3D SATA
pcib1@pci0:0:28:0:      class=3D0x060400 rev=3D0xf1 hdr=3D0x01 =
vendor=3D0x8086 device=3D0x9d10 subvendor=3D0x17aa subdevice=3D0x2231
    vendor     =3D 'Intel Corporation'
    device     =3D 'Sunrise Point-LP PCI Express Root Port'
    class      =3D bridge
    subclass   =3D PCI-PCI
pcib2@pci0:0:28:2:      class=3D0x060400 rev=3D0xf1 hdr=3D0x01 =
vendor=3D0x8086 device=3D0x9d12 subvendor=3D0x17aa subdevice=3D0x2231
    vendor     =3D 'Intel Corporation'
    device     =3D 'Sunrise Point-LP PCI Express Root Port'
    class      =3D bridge
    subclass   =3D PCI-PCI
pcib3@pci0:0:29:0:      class=3D0x060400 rev=3D0xf1 hdr=3D0x01 =
vendor=3D0x8086 device=3D0x9d18 subvendor=3D0x17aa subdevice=3D0x2231
    vendor     =3D 'Intel Corporation'
    device     =3D 'Sunrise Point-LP PCI Express Root Port'
    class      =3D bridge
    subclass   =3D PCI-PCI
isab0@pci0:0:31:0:      class=3D0x060100 rev=3D0x21 hdr=3D0x00 =
vendor=3D0x8086 device=3D0x9d48 subvendor=3D0x17aa subdevice=3D0x2231
    vendor     =3D 'Intel Corporation'
    device     =3D 'Sunrise Point-LP LPC Controller'
    class      =3D bridge
    subclass   =3D PCI-ISA
none2@pci0:0:31:2:      class=3D0x058000 rev=3D0x21 hdr=3D0x00 =
vendor=3D0x8086 device=3D0x9d21 subvendor=3D0x17aa subdevice=3D0x2231
    vendor     =3D 'Intel Corporation'
    device     =3D 'Sunrise Point-LP PMC'
    class      =3D memory
hdac0@pci0:0:31:3:      class=3D0x040300 rev=3D0x21 hdr=3D0x00 =
vendor=3D0x8086 device=3D0x9d70 subvendor=3D0x17aa subdevice=3D0x2231
    vendor     =3D 'Intel Corporation'
    device     =3D 'Sunrise Point-LP HD Audio'
    class      =3D multimedia
    subclass   =3D HDA
ichsmb0@pci0:0:31:4:    class=3D0x0c0500 rev=3D0x21 hdr=3D0x00 =
vendor=3D0x8086 device=3D0x9d23 subvendor=3D0x17aa subdevice=3D0x2231
    vendor     =3D 'Intel Corporation'
    device     =3D 'Sunrise Point-LP SMBus'
    class      =3D serial bus
    subclass   =3D SMBus
em0@pci0:0:31:6:        class=3D0x020000 rev=3D0x21 hdr=3D0x00 =
vendor=3D0x8086 device=3D0x1570 subvendor=3D0x17aa subdevice=3D0x2233
    vendor     =3D 'Intel Corporation'
    device     =3D 'Ethernet Connection I219-V'
    class      =3D network
    subclass   =3D ethernet
none3@pci0:2:0:0:       class=3D0xff0000 rev=3D0x01 hdr=3D0x00 =
vendor=3D0x10ec device=3D0x522a subvendor=3D0x17aa subdevice=3D0x2233
    vendor     =3D 'Realtek Semiconductor Co., Ltd.'
    device     =3D 'RTS522A PCI Express Card Reader'
iwm0@pci0:4:0:0:        class=3D0x028000 rev=3D0x3a hdr=3D0x00 =
vendor=3D0x8086 device=3D0x24f3 subvendor=3D0x8086 subdevice=3D0x1130
    vendor     =3D 'Intel Corporation'
    device     =3D 'Wireless 8260'
    class      =3D network
vgapci1@pci0:6:0:0:     class=3D0x030200 rev=3D0xa2 hdr=3D0x00 =
vendor=3D0x10de device=3D0x137a subvendor=3D0x17aa subdevice=3D0x2232
    vendor     =3D 'NVIDIA Corporation'
    device     =3D 'GM108GLM [Quadro K620M / Quadro M500M]'
    class      =3D display
    subclass   =3D 3D







Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7DDC11C4-41D2-440E-9C14-C37894325903>