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:
>
> Marc Veldman wrote:
>> Hello,
>> since r367998 my Lenovo P50s panics on boot:
>> mmc0: detached
>> panic: Bad link elm 0xfffff80003a73300 next->prep != elm
>> cupid=3
>> time=2
>> 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)
>
> 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):
>
> rtsx0@pci0:63:0:0: class=0xff0000 rev=0x01 hdr=0x00 vendor=0x10ec device=0x525a subvendor=0x17aa subdevice=0x224d
> vendor = 'Realtek Semiconductor Co., Ltd.'
> device = 'RTS525A PCI Express Card Reader'
>
> 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=0x060000 rev=0x08 hdr=0x00 vendor=0x8086 device=0x1904 subvendor=0x17aa subdevice=0x2231
vendor = 'Intel Corporation'
device = 'Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers'
class = bridge
subclass = HOST-PCI
vgapci0@pci0:0:2:0: class=0x030000 rev=0x07 hdr=0x00 vendor=0x8086 device=0x1916 subvendor=0x17aa subdevice=0x2232
vendor = 'Intel Corporation'
device = 'Skylake GT2 [HD Graphics 520]'
class = display
subclass = VGA
none0@pci0:0:8:0: class=0x088000 rev=0x00 hdr=0x00 vendor=0x8086 device=0x1911 subvendor=0x17aa subdevice=0x2231
vendor = 'Intel Corporation'
device = 'Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model'
class = base peripheral
xhci0@pci0:0:20:0: class=0x0c0330 rev=0x21 hdr=0x00 vendor=0x8086 device=0x9d2f subvendor=0x17aa subdevice=0x2231
vendor = 'Intel Corporation'
device = 'Sunrise Point-LP USB 3.0 xHCI Controller'
class = serial bus
subclass = USB
pchtherm0@pci0:0:20:2: class=0x118000 rev=0x21 hdr=0x00 vendor=0x8086 device=0x9d31 subvendor=0x17aa subdevice=0x2231
vendor = 'Intel Corporation'
device = 'Sunrise Point-LP Thermal subsystem'
class = dasp
none1@pci0:0:22:0: class=0x078000 rev=0x21 hdr=0x00 vendor=0x8086 device=0x9d3a subvendor=0x17aa subdevice=0x2231
vendor = 'Intel Corporation'
device = 'Sunrise Point-LP CSME HECI'
class = simple comms
ahci0@pci0:0:23:0: class=0x010601 rev=0x21 hdr=0x00 vendor=0x8086 device=0x9d03 subvendor=0x17aa subdevice=0x2231
vendor = 'Intel Corporation'
device = 'Sunrise Point-LP SATA Controller [AHCI mode]'
class = mass storage
subclass = SATA
pcib1@pci0:0:28:0: class=0x060400 rev=0xf1 hdr=0x01 vendor=0x8086 device=0x9d10 subvendor=0x17aa subdevice=0x2231
vendor = 'Intel Corporation'
device = 'Sunrise Point-LP PCI Express Root Port'
class = bridge
subclass = PCI-PCI
pcib2@pci0:0:28:2: class=0x060400 rev=0xf1 hdr=0x01 vendor=0x8086 device=0x9d12 subvendor=0x17aa subdevice=0x2231
vendor = 'Intel Corporation'
device = 'Sunrise Point-LP PCI Express Root Port'
class = bridge
subclass = PCI-PCI
pcib3@pci0:0:29:0: class=0x060400 rev=0xf1 hdr=0x01 vendor=0x8086 device=0x9d18 subvendor=0x17aa subdevice=0x2231
vendor = 'Intel Corporation'
device = 'Sunrise Point-LP PCI Express Root Port'
class = bridge
subclass = PCI-PCI
isab0@pci0:0:31:0: class=0x060100 rev=0x21 hdr=0x00 vendor=0x8086 device=0x9d48 subvendor=0x17aa subdevice=0x2231
vendor = 'Intel Corporation'
device = 'Sunrise Point-LP LPC Controller'
class = bridge
subclass = PCI-ISA
none2@pci0:0:31:2: class=0x058000 rev=0x21 hdr=0x00 vendor=0x8086 device=0x9d21 subvendor=0x17aa subdevice=0x2231
vendor = 'Intel Corporation'
device = 'Sunrise Point-LP PMC'
class = memory
hdac0@pci0:0:31:3: class=0x040300 rev=0x21 hdr=0x00 vendor=0x8086 device=0x9d70 subvendor=0x17aa subdevice=0x2231
vendor = 'Intel Corporation'
device = 'Sunrise Point-LP HD Audio'
class = multimedia
subclass = HDA
ichsmb0@pci0:0:31:4: class=0x0c0500 rev=0x21 hdr=0x00 vendor=0x8086 device=0x9d23 subvendor=0x17aa subdevice=0x2231
vendor = 'Intel Corporation'
device = 'Sunrise Point-LP SMBus'
class = serial bus
subclass = SMBus
em0@pci0:0:31:6: class=0x020000 rev=0x21 hdr=0x00 vendor=0x8086 device=0x1570 subvendor=0x17aa subdevice=0x2233
vendor = 'Intel Corporation'
device = 'Ethernet Connection I219-V'
class = network
subclass = ethernet
none3@pci0:2:0:0: class=0xff0000 rev=0x01 hdr=0x00 vendor=0x10ec device=0x522a subvendor=0x17aa subdevice=0x2233
vendor = 'Realtek Semiconductor Co., Ltd.'
device = 'RTS522A PCI Express Card Reader'
iwm0@pci0:4:0:0: class=0x028000 rev=0x3a hdr=0x00 vendor=0x8086 device=0x24f3 subvendor=0x8086 subdevice=0x1130
vendor = 'Intel Corporation'
device = 'Wireless 8260'
class = network
vgapci1@pci0:6:0:0: class=0x030200 rev=0xa2 hdr=0x00 vendor=0x10de device=0x137a subvendor=0x17aa subdevice=0x2232
vendor = 'NVIDIA Corporation'
device = 'GM108GLM [Quadro K620M / Quadro M500M]'
class = display
subclass = 3D
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7DDC11C4-41D2-440E-9C14-C37894325903>
