From owner-freebsd-current@freebsd.org Thu Dec 24 23:04:22 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 101E44D46A5 for ; Thu, 24 Dec 2020 23:04:22 +0000 (UTC) (envelope-from yuripv@yuripv.dev) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4D25HT0bp5z3hPm for ; Thu, 24 Dec 2020 23:04:20 +0000 (UTC) (envelope-from yuripv@yuripv.dev) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 481BB5C0091; Thu, 24 Dec 2020 18:04:20 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Thu, 24 Dec 2020 18:04:20 -0500 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvddutddgtdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthejredttdefjeenucfhrhhomhepjghurhhi ucfrrghnkhhovhcuoeihuhhrihhpvheshihurhhiphhvrdguvghvqeenucggtffrrghtth gvrhhnpeffhedvkeegieejveelvdffgfevueevgffgjefhleeuueevtedvvddvgfeiteff teenucfkphepledurddvgedtrdduvdegrdduheeknecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhephihurhhiphhvseihuhhrihhpvhdruggvvh X-ME-Proxy: Received: from [192.168.1.6] (unknown [91.240.124.158]) by mail.messagingengine.com (Postfix) with ESMTPA id 4A5D81080059; Thu, 24 Dec 2020 18:04:19 -0500 (EST) Subject: Re: Boot panic on Lenovo P50s since r367998 To: Marc Veldman , freebsd-current@freebsd.org References: <89112D93-739D-45B5-B21A-3396C098A89B@bumblingdork.com> From: Yuri Pankov Message-ID: <6d42bbaa-7c88-db53-c441-40513c043847@yuripv.dev> Date: Fri, 25 Dec 2020 02:04:18 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <89112D93-739D-45B5-B21A-3396C098A89B@bumblingdork.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4D25HT0bp5z3hPm X-Spamd-Bar: - X-Spamd-Result: default: False [-1.60 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[66.111.4.29:from]; R_SPF_ALLOW(-0.20)[+ip4:66.111.4.29]; RCVD_COUNT_THREE(0.00)[4]; DKIM_TRACE(0.00)[yuripv.dev:+,messagingengine.com:+]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[66.111.4.29:from]; ASN(0.00)[asn:11403, ipnet:66.111.4.0/24, country:US]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[66.111.4.29:from]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[yuripv.dev:s=fm1,messagingengine.com:s=fm1]; FREEFALL_USER(0.00)[yuripv]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(1.00)[0.999]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[yuripv.dev]; SPAMHAUS_ZRD(0.00)[66.111.4.29:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(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: Thu, 24 Dec 2020 23:04:22 -0000 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)?