From owner-freebsd-current@freebsd.org Fri Dec 25 00:46:16 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 876EB4B0997 for ; Fri, 25 Dec 2020 00:46:16 +0000 (UTC) (envelope-from marc@bumblingdork.com) Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4D27Y31dvXz3q3c for ; Fri, 25 Dec 2020 00:46:15 +0000 (UTC) (envelope-from marc@bumblingdork.com) Received: by mail-ej1-x629.google.com with SMTP id b9so4998455ejy.0 for ; Thu, 24 Dec 2020 16:46:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=THHKxQXZuLBZwX6cZjFKLL3AWOd4AduVtiqpXy26GVc=; b=eXDjJwbXqg73pn9KUaBA2YGUTJdRwdH/B0Z39s+PZw4KBAkqrE5NoTbsYJQ3uBGFxd jx3IK4eGSzKm8RjNzjelKQR3g+vf813scK/v9DgYniPjCpbTk3yzvM2SM/fytf0DdfpL U+c9UTTvaG/ku/pfssF5MjhD+xt6PXvUdH3Iar2h0RUjVTCiGhrLrOMuqpXH5g2BkYpa d+0BIEBXPlAUu43sb6jskZ9qQX+7G7jjD4etnMvnplS+IPg/+OPR7oqvzhYTbJwzQJzV +/P1c7DIzzjdiNcOrz/HtH+VDe48EcX/+5Dqcabpxf68Kkle/MYf8wiAr9E3TPJZovqL yeWQ== X-Gm-Message-State: AOAM5330GWwIO/29wnBB8WfPIxtLdtBfpuIoiDj4RF54+TFsBOIXGTU1 vlmAQjnsYvNVnK8T3uvLp8H1jwfuwMcM5Yjz X-Google-Smtp-Source: ABdhPJzCfNBLxD9KSKNplHpLGuKxiSK7TPmExipxe6n5xLnmw/FXrU41uUDOc/034aQyMAmSF3ptqA== X-Received: by 2002:a17:906:154d:: with SMTP id c13mr17256310ejd.471.1608857173973; Thu, 24 Dec 2020 16:46:13 -0800 (PST) Received: from ?IPv6:2001:981:3350:1:6cb5:1462:d508:c7ae? ([2001:981:3350:1:6cb5:1462:d508:c7ae]) by smtp.gmail.com with ESMTPSA id z96sm32544105ede.81.2020.12.24.16.46.13 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Dec 2020 16:46:13 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.40.0.2.32\)) Subject: Re: Boot panic on Lenovo P50s since r367998 From: Marc Veldman In-Reply-To: <6d42bbaa-7c88-db53-c441-40513c043847@yuripv.dev> Date: Fri, 25 Dec 2020 01:46:12 +0100 Cc: freebsd-current@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <7DDC11C4-41D2-440E-9C14-C37894325903@bumblingdork.com> References: <89112D93-739D-45B5-B21A-3396C098A89B@bumblingdork.com> <6d42bbaa-7c88-db53-c441-40513c043847@yuripv.dev> To: Yuri Pankov , junchoon@dec.sakura.ne.jp X-Mailer: Apple Mail (2.3654.40.0.2.32) X-Rspamd-Queue-Id: 4D27Y31dvXz3q3c X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.49 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[bumblingdork.com:+]; DMARC_POLICY_ALLOW(-0.50)[bumblingdork.com,none]; NEURAL_HAM_SHORT(-0.99)[-0.989]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::629:from]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[bumblingdork.com:s=google]; FREEFALL_USER(0.00)[marc]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::629:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::629:from]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-current] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Dec 2020 00:46:16 -0000 > On 25 Dec 2020, at 00:04, Yuri Pankov 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