From owner-freebsd-current@freebsd.org Fri May 7 16:09:30 2021 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 68E2A6338FE for ; Fri, 7 May 2021 16:09:30 +0000 (UTC) (envelope-from jsm@FreeBSD.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4FcFky2Xbyz4nhV for ; Fri, 7 May 2021 16:09:30 +0000 (UTC) (envelope-from jsm@FreeBSD.org) Received: by mailman.nyi.freebsd.org (Postfix) id 57215633878; Fri, 7 May 2021 16:09:30 +0000 (UTC) Delivered-To: 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 56EDF633B65 for ; Fri, 7 May 2021 16:09:30 +0000 (UTC) (envelope-from jsm@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FcFky22pSz4nZs; Fri, 7 May 2021 16:09:30 +0000 (UTC) (envelope-from jsm@FreeBSD.org) Received: from freebsd2.freebsd.lan (mail.northatlanticmusicsupplies.com [212.237.182.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: jsm) by smtp.freebsd.org (Postfix) with ESMTPSA id DC50369BA; Fri, 7 May 2021 16:09:29 +0000 (UTC) (envelope-from jsm@FreeBSD.org) Subject: Re: CURRENT crashes at early boot on Lenovo T540p: rtsx to blame To: lev@FreeBSD.org, current@freebsd.org References: From: Jesper Schmitz Mouridsen Message-ID: <479cb9d3-a759-eaed-45f7-003965075e6b@FreeBSD.org> Date: Fri, 7 May 2021 18:09:25 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US 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, 07 May 2021 16:09:30 -0000 On 07.05.2021 13.33, Lev Serebryakov wrote: > > Several versions of 14-CURRENT (including > FreeBSD-14.0-CURRENT-amd64-20210506-49c894ddced-246502-memstick.img) > can not boot on Lenovo T540p 19 times out of 20. > > It crashes on device detection, after detecting sound subsystem, with > traps 9 and 12 (9 is more often) and mostly with this stacktrace (9 > out of 10 crashes have this stacktrace: > Perhaps similar to bug reported here https://forums.freebsd.org/threads/boot-timeout-error-on-rtsx-freebsd-13-0-hp-840-g3.80031/#post-508072 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255130 Do you happen to have an empty adapter (sd->micro sd) inserted in the slot. That causes a card-inserted interrupt, on all the realtek sd-card readers I have touched. Regards > -- trap > run_interrupt_driven_config_hooks() > boot_run_interrupt_driven_config_hooks() > mi_startup() > btext() > > > But twice I've got more interesting stacktraces: > > -- trap > strlen() > kvprintf() > vsnprintf() > vpanic() > panic() > __mtx_lock_flags() > _sleep() > mmc_wait_for_request() > mmc_wait_for_cmd() > mmc_go_discovery() > mmc_delayed_attach() > run_interrupt_driven_config_hooks() > boot_run_interrupt_driven_config_hooks() > mi_startup() > btext() > > --- trap > __mtx_lock_sleep() > __mtx_lock_flags() > mmc_wakeup() > rtsx_intr() > ithread_loop() > fork_exit() > fork_trampoline() > >  Looks like there is problem with rtsx driver! > >  I've checked memory with memtest86+ for 24 hours (4.5 passes) without > any problems. >