From owner-freebsd-current@freebsd.org Thu May 13 15:51:59 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 226F86461C3 for ; Thu, 13 May 2021 15:51:59 +0000 (UTC) (envelope-from lev@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 4Fgx3y5Z0bz3M6w; Thu, 13 May 2021 15:51:58 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.not-for.work (onlyone.not-for.work [148.251.9.81]) (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 9C5CEB08E; Thu, 13 May 2021 15:51:58 +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 DF19948E1; Thu, 13 May 2021 18:51:56 +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: Henri Hennebert , Marc Veldman Cc: freebsd-current@freebsd.org References: <20210512133456.57f374f4@ernst.home> <20210512141130.755ae361@ernst.home> <9f0abf48-ed13-bff3-5687-fca0d57195d8@restart.be> <8d4e076b-9ecd-aef2-0ee8-73519bb9d939@FreeBSD.org> <8d2be5f2-4144-082e-4237-0dac0c4b37e6@restart.be> <6798878a-c499-d78d-e96d-d744513cb80d@restart.be> <1de588e2-20cb-3206-3aea-f3f88f577675@restart.be> <67f0874a-6a05-67f1-3f2b-c4b3dc67fa11@FreeBSD.org> <83b823bf-c6c2-2f6a-b5dd-2e91b4d1931e@restart.be> <2c208bbc-5adc-2327-4717-a5e7c8d64b4b@FreeBSD.org> <9a15daa7-2b17-e257-d4d1-850c632a9db8@restart.be> From: Lev Serebryakov Organization: FreeBSD Message-ID: <417a97b9-2c40-310c-c445-b193c493b880@FreeBSD.org> Date: Thu, 13 May 2021 18:51:56 +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: <9a15daa7-2b17-e257-d4d1-850c632a9db8@restart.be> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit 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, 13 May 2021 15:51:59 -0000 On 13.05.2021 18:38, Henri Hennebert via freebsd-current wrote: > This seems a good news. > > Can you replace sys/dev/rtsx.c by the latest version (2.0g) from > https://github.com/hlh-restart/rtsx > > I reduce the DELAY to 250000 and make some other updates waiting in the pipeline. I've replaced two files in /usr/src/sys/dev/rtsx, rebuilt GENERIC kernel and it boots! Output WITHOUT card is like this: pci2: on pcib2 rtsx0: <2.0g Realtek RTS5227 PCI MMC/SD Card Reader> mem 0xf4500000-0xf4500fff at device 0.0 on pci2 rtsx0: We are running with inversion: 0 rtsx0: Interrupt card inserted/removed rtsx0: Card absent rtsx0: No card is detected pcib3: at device 28.1 on pci0 Output WITH card is like this: pci2: on pcib2 rtsx0: <2.0g Realtek RTS5227 PCI MMC/SD Card Reader> mem 0xf4500000-0xf4500fff at device 0.0 on pci2 rtsx0: We are running with inversion: 0 rtsx0: Interrupt card inserted/removed rtsx0: Card present rtsx0: A card is detected mmc0: on rtsx0 pcib3: at device 28.1 on pci0 ... mmcsd0: 16GB at mmc0 50.0MHz/4bit/2048-block ... No visible delays in both cases. Both boots are "cold", with AC cycle -- // Lev Serebryakov