Re: CURRENT crashes at early boot on Lenovo T540p: rtsx to blame - 13.0-RELEASE crashes same way!

From: Lev Serebryakov <lev_at_FreeBSD.org>
Date: Thu, 13 May 2021 18:51:56 +0300
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: <ACPI PCI bus> 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: <ACPI PCI-PCI bridge> at device 28.1 on pci0


  Output WITH card is like this:

pci2: <ACPI PCI bus> 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: <MMC/SD bus> on rtsx0
pcib3: <ACPI PCI-PCI bridge> at device 28.1 on pci0
...
mmcsd0: 16GB <SDHC SDC   1.0 SN 0000056F MFG 01/2012 by 116 JE> at mmc0 50.0MHz/4bit/2048-block
...

  No visible delays in both cases.

  Both boots are "cold", with AC cycle

-- 
// Lev Serebryakov
Received on Thu May 13 2021 - 13:51:59 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:28 UTC