From owner-freebsd-current@freebsd.org Fri May 7 14:08:34 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 0AEBD62F2AB for ; Fri, 7 May 2021 14:08:34 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4FcC3P1mZTz4fQq for ; Fri, 7 May 2021 14:08:33 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id 3A8F062ED3B; Fri, 7 May 2021 14:08:33 +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 3A0CC62ED3A for ; Fri, 7 May 2021 14:08:33 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FcC3N4PKZz4f45; Fri, 7 May 2021 14:08:32 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-ed1-x52d.google.com with SMTP id s6so10345393edu.10; Fri, 07 May 2021 07:08:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=W5N61Cz7UihzHsoF80sPZb8Ps0MC1zZyh61f3FHeFj8=; b=nCDMIIh3v0Aoq54C5CLUCXdafL3c9CIaajdU9x8xhuzvgGU0dNdqC8DOElE76/xFsd YrwV7zS/m8HcSUP6TQHc2nLqtEXSP63jyZre9OATC5DD1WBI2cnzkPpbgEdFFmuRXxyF NH4/iIWwR2UbMtzL0ViD+5c9h3xc/J7TziS/WWUZy2Mw6buGPmyLmYvHDR/TYcjVrf3d 1QdDYPWxkqaS5lbFjNXCpk0FoUuy2itQnkEdu6Hv53vcIjKb44EcBrLeMYwfPPunLJcY yHTjBu+l9gh88HjW3czWEAKClogUbJK7OtRqyQ7gyX0CCbfOJ0MtBVDnF0EfEbOhm/yh cuzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=W5N61Cz7UihzHsoF80sPZb8Ps0MC1zZyh61f3FHeFj8=; b=LuAtpF9ekbmwL8rpDcX15sTLKKu5UuM+F7yaEKTKr8MOlTP+NcDfhSwSNPJM50jFIO 9EN5FFEJ3Ezar5a4P5U2ORWNzstrBZuHd0cM8gn5e+gj5khOq6JIIOTSg/ZewwuBDK0Y qu4sLmhrO2hoSBa62twOXdqr+GlgTPvN4nLCingcvdJ6YTp7mRJPogjp3eCLD8MprNYu h4yvTRAPqrq6s21DOzpd9hFafKgBOnFgVi4fo5t8fDl6Ow+HKMiyzPPRWH388+612mY6 lKLdvkOK7oj5UX5BWcQILrnR6ruh0RzSSW/rVv+OUR0KENDgQiizoj1E8v3DpxUE+Szp g/BQ== X-Gm-Message-State: AOAM532IAAtugtx3kw9lKnnl9N+nDXbfrzl8E5+SMbS9oGJ12Xwl8vhO tLSphK1aK13YoIZJExke0sR81vrHICw= X-Google-Smtp-Source: ABdhPJw8WCnnpItIJBm2vDlfA+eZu0M11tQElcPJE7rpbBB/W2IUOTqqL/1aqMfTc4nbmDwNC3r9pQ== X-Received: by 2002:a05:6402:c98:: with SMTP id cm24mr11764307edb.18.1620396510495; Fri, 07 May 2021 07:08:30 -0700 (PDT) Received: from ernst.home (pd9e23d76.dip0.t-ipconnect.de. [217.226.61.118]) by smtp.gmail.com with ESMTPSA id v26sm3748633ejk.66.2021.05.07.07.08.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 May 2021 07:08:30 -0700 (PDT) Date: Fri, 7 May 2021 16:08:29 +0200 From: Gary Jennejohn To: Lev Serebryakov 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: <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> Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4FcC3N4PKZz4f45 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] 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 14:08:34 -0000 On Fri, 7 May 2021 16:59:35 +0300 Lev Serebryakov 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)