Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 May 2021 16:08:29 +0200
From:      Gary Jennejohn <gljennjohn@gmail.com>
To:        Lev Serebryakov <lev@FreeBSD.org>
Cc:        current@freebsd.org, jsm@FreeBSD.org, hlh@restart.be
Subject:   Re: CURRENT crashes at early boot on Lenovo T540p: rtsx to blame - 13.0-RELEASE crashes same way!
Message-ID:  <20210507140829.20acbf73@ernst.home>
In-Reply-To: <755d0029-bea6-3a43-c0c2-184349d88054@FreeBSD.org>
References:  <a7363387-c53f-d6c0-acc0-be9081590ea1@FreeBSD.org> <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>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 7 May 2021 16:59:35 +0300
Lev Serebryakov <lev@FreeBSD.org> wrote:

> On 07.05.2021 16:22, Gary Jennejohn wrote:
> 
> >>>> Looks like there is problem with rtsx driver!  
> >>>   Oh, I forgot to add: disabling SD Card Reader in BIOS solves problem!
> >>>
> >>> And console on these crashes is totally dead, and disks are not
> >>> detected yet, so I can not look at structures in memory and/or
> >>> dump core.  
> >>
> >> 13.0-RELEASE installation media crashes in same way if SD reader is
> >> enabled in BIOS.
> >>  
> > 
> > I see that rtsx was added to GENERIC.  Might have been premature.
> > 
> > The only thing I can recommend is to install with the SD card reader
> > disabled in the BIOS.  
>   Yep, it works. Not only install, but booting of installed system too ___ any GENERIC kernel panics, even new, built by hands from latest sources.
> 
> > It may be the case that rtsx still works even if the card reader is
> > disabled in the BIOS.  That's the first thing I would try out.  
>   Nope, it doesn't work (and I don't need it on this Laptop, to be honest). If SD reader is disabled in BIOS, it isn't detected at all.
> 
> > If that fails then generate a kernel with rtsx as a module rather than
> > it being hard coded into the kernel.
> > 
> > You could then re-enable the SD card reader in the BIOS and load the
> > module to check whether the SD card reader works or causes a panic
> > when the moduke is loaded.  This approach might make it possible to
> > get a crash dump if a problem occurs.  
>   Ok, I'll try this, good idea.
> 
>   BTW, I've got hints that it it rtsx-related only after ~40 crashes, as most of stack traces don't have rtsx in them and are very generic. Looks like rtsx mangle kernel memory and it crashes in other places/kernel threads.
> 

Good luck.  I don't have a device with rtsx, the work I did on the driver
was done with a loaner laptop.  So, all I can offer is moral support :)

-- 
Gary Jennejohn (gj@freebsd.org)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20210507140829.20acbf73>