From owner-freebsd-current@freebsd.org Fri May 7 18:04:44 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 CB3276379B5 for ; Fri, 7 May 2021 18:04:44 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 4FcJHw5M3Xz4vcd; Fri, 7 May 2021 18:04:44 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.not-for.work (onlyone.not-for.work [IPv6:2a01:4f8:201:6350::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: lev/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 8E2C774B3; Fri, 7 May 2021 18:04:44 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from [192.168.134.16] (unknown [94.19.224.8]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.not-for.work (Postfix) with ESMTPSA id 5F6B33DC7; Fri, 7 May 2021 21:04:43 +0300 (MSK) Reply-To: lev@FreeBSD.org Subject: Re: CURRENT crashes at early boot on Lenovo T540p: rtsx to blame - 13.0-RELEASE crashes same way! To: junchoon@dec.sakura.ne.jp, freebsd-current@freebsd.org References: <740cd7a0-3faf-7a56-80f7-dbb9bdacb55b@FreeBSD.org> <37122994-8172-b943-2602-fd1b4e9af78a@FreeBSD.org> <20210507132215.2469c296@ernst.home> <755d0029-bea6-3a43-c0c2-184349d88054@FreeBSD.org> <20210508013445.d4391b5591f21aaa791d6aae@dec.sakura.ne.jp> From: Lev Serebryakov Organization: FreeBSD Message-ID: <4afdd70f-ab27-6d87-e2c1-36ed1ccc03bf@FreeBSD.org> Date: Fri, 7 May 2021 21:04:43 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20210508013445.d4391b5591f21aaa791d6aae@dec.sakura.ne.jp> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit 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 18:04:44 -0000 On 07.05.2021 19:34, Tomoaki AOKI wrote: > Have you try > > dev.rtsx.0.inversion=1 > > in /boot/loader.conf with the device enabled on BIOS? Not yet :-) I'll try. > If not yet, it would be worth trying. > > In rtsx(4) manpage, > >> 〓 RTS522A on Lenovo P50s and Lenovo T470p, card detection and read-only >> switch are reversed. This is sovled by adding in loader.conf(5): >> >> dev.rtsx.0.inversion=1 > > If it works for you, possibly no one had tested on T540p yet. > And there can be much, much more PCs/chips which need it, but no one has > tested yet. > > My rtsx driver on ThinkPad P52 works fine without it, but IIRC, > paniced with it (I did it just a test purpose when it landed). > > And one more. > If you insert write-protected card and then mount it as writable, > it SHOULD certainly crash the system. > It's not a rtsx driver issue, but promised to happen. > I've encountered the problem on USB card readers, too. My slot is empty, no card, no adapters, no plastic pseudo-card, nothing. -- // Lev Serebryakov