From owner-freebsd-current@freebsd.org Wed May 12 14:11: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 86F5963F93F for ; Wed, 12 May 2021 14:11:34 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) (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 4FgGtZ33gNz4dyb; Wed, 12 May 2021 14:11:34 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-ed1-x533.google.com with SMTP id bf4so27251321edb.11; Wed, 12 May 2021 07:11:34 -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=1JM3agDqTUgDBtSwG8iKHqJlz6n8YWEYY8Wrx5O2ieQ=; b=ScySgaG5w3R9rxSydTwCB+AmVuAOmKP2JOzjcGEjZMWBno2aymhH3svHYbZdgPEZsH zMyUAVpvcct+h/sQetSs3tpWyiV8UrIF3Y3JhLuPvT7VSOLk7nyCL1Ze45G7eR497eFv JcEKD/hwf4VjhjC85IBffzmMTVnXK0QfoVkVtopAwCjHCWbujKPNhYuhbrM3SltGhKIJ J49CmCD5t+zBvcGb/aFPioSzOA9dzogZJrEd6K/ju2379Q0JbHlV8m4/7ls5zAQsi9kG ZSLGeoUzYw9KBVsINKu1rxyjwJBDU2lwN+daqZbVcJhWYkNJ3vCtoYEeY7jRFPIm4uG5 Teww== 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=1JM3agDqTUgDBtSwG8iKHqJlz6n8YWEYY8Wrx5O2ieQ=; b=S0aKLGbTwsT/CNzz3PasWuRRktC/vumJlZLiNwEHK4YT9zdl2f3bvgiMZpJcB7woqp /22qDcwjlPhlWROtbEFQDnr0VKPA+lGkQtF1m4pwfYMyDcIJSxf/pyXgrEQf9EUwbo6O baXAxbOAE2nSCV1kTE5H7Wvg1Oa+TWaHi83jVW4JHEQTZwbhF6MR6i8p6TjIUaICwtoU F5Y8Cn/hHDhEek+E+0pnr/R5AUQ356s2UC+1jQgVVCOjZXMhpZrggrBbFc7Rh/hCEmcp NqJ3W/mQCFXkrdaaq0zFa2tpJnxXMIJufcldf0qban87h14QC3x58kpOn9RSPe6AMAkj 41Nw== X-Gm-Message-State: AOAM531/Uq568Q3koS8EEtfwLZggDcx/wOg/Zh3fUjeMp2vfmOA/uPyi vn4f1y8PNv7COo5FihjwG71xpF45iBw= X-Google-Smtp-Source: ABdhPJwYnGyZPTrQ8VlhqnJOCk5jxi0bhgX0FjG0j+9wtkCWc45X65eBcqfv0gNv3Mi0vVWW+zVaXA== X-Received: by 2002:aa7:c7d5:: with SMTP id o21mr43998376eds.166.1620828692996; Wed, 12 May 2021 07:11:32 -0700 (PDT) Received: from ernst.home (pd9e23d76.dip0.t-ipconnect.de. [217.226.61.118]) by smtp.gmail.com with ESMTPSA id re26sm14217282ejb.3.2021.05.12.07.11.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 07:11:32 -0700 (PDT) Date: Wed, 12 May 2021 16:11:30 +0200 From: Gary Jennejohn To: Lev Serebryakov Cc: Henri Hennebert , freebsd-current@freebsd.org Subject: Re: CURRENT crashes at early boot on Lenovo T540p: rtsx to blame - 13.0-RELEASE crashes same way! Message-ID: <20210512141130.755ae361@ernst.home> In-Reply-To: References: <740cd7a0-3faf-7a56-80f7-dbb9bdacb55b@FreeBSD.org> <37122994-8172-b943-2602-fd1b4e9af78a@FreeBSD.org> <20210512122747.51d2f574@laptop.domain> <1e23c1de-7529-0be9-c4ec-83d17b2b6bac@restart.be> <20210512133456.57f374f4@ernst.home> 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: 4FgGtZ33gNz4dyb 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: Wed, 12 May 2021 14:11:34 -0000 On Wed, 12 May 2021 16:44:59 +0300 Lev Serebryakov wrote: > On 12.05.2021 16:34, Gary Jennejohn wrote: > > > Is sysctl debug.debugger_on_panic set to 1? You should automatically > > land in ddb if that is set. I suppose it is, since you posted some > > back trace in an earlier mail. It also seems to be the default, at > > least in my FreeBSD-14 kernel. > > I see ddb report about panic, but it's all. Keyboard doesn't work, and panic occurs before any disks are detected, so there is no space for crash dump. > > > AFAIK ddb has a command to generate a crash dump. But I can't easily > > check that :( > > Yep, but console is dead & there are no disks for crash dump at this stage. > A real challenge to debug. Maybe you could break into boot and start it with the -d flag (see boot(8)) so that it will enter ddb as early as possible. Don't know whether you use the boot menu or not. I always disable it. > > It seems like there's a major bug when no SD card is inserted and the > > driver is in the kernel. And a timing problem when a card is in the > > slot at boot time. > > > > Good to know that the module still works. > > Yep, smoke tests for module (without inversion!) pass: I could mount R/W SD card with release image, mount FS, read and write files, unmount FS and eject card without panics and errors. I didn't try any high-load tests, though. > > > > > Difficult to debug without your laptop model in the hands of a developer. > > It is "pretty common" (but old) Lenovo ThinkPad T540p. I could provide remote access to it, but it will not help for such low-level and early panic :-( > I took a look and even refurbished T540p's are still pretty expensive. On the order of 500 Euros. -- Gary Jennejohn