From: Sean Christopherson <seanjc@google.com>
To: "Ben Mesman | Spark Narrowcasting" <ben@sparknarrowcasting.nl>
Cc: Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
Dave Hansen <dave.hansen@linux.intel.com>,
"x86@kernel.org" <x86@kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Ulf Hansson <ulf.hansson@linaro.org>,
Fred Ai <fred.ai@bayhubtech.com>,
Adrian Hunter <adrian.hunter@intel.com>
Subject: Re: Bug: After a 'warm' reboot the disk is missing (not detected by the bios) on a HP t640
Date: Tue, 2 Jan 2024 09:58:57 -0800 [thread overview]
Message-ID: <ZZRO4Y41UTNm88eg@google.com> (raw)
In-Reply-To: <AS1PR05MB939337F702FDD79AFDF18F56B69EA@AS1PR05MB9393.eurprd05.prod.outlook.com>
On Thu, Dec 28, 2023, Ben Mesman | Spark Narrowcasting wrote:
> > Please don't send private mails. Kudos for using get_maintainer.pl, but a demerit
> > for not Cc'ing the mailing lists :-)
> >
> > https://people.kernel.org/tglx/notes-about-netiquette
>
> Definitely saving that in my URLs-cache. Might need it again in a few years :-)
> (last time I needed it was about 10 years ago)
>
> > > I recently started upgrading some of my remote managed thin-clients from a
> > > 5.15.x kernel to a 6.1.x kernel. When rebooting with the new(er) kernel, the
> > > HP t640 clients failed. The problem is that after the warm reboot, the BIOS
> > > is unable to locate the internal storage (so it can't boot a valid OS).
> > >
> > > With some digging around I found that adding "reboot=p" will solve the
> > > problem, but because the systems are remote managed, I am unable to add this
> > > boot-parameter in any straightforward way.
> [snip]
> > I'm not familiar with this code (I'm not actually a maintainer/reviewer for this
> > code, by default get_maintainer.pl Cc's people that have recently modified the
> > file in question), but this looks like a hack to workaround a bug elsewhere.
> >
> > All of these quirks are obviously workarounds for some kind of bug, but AFAICT
> > the quirks are to workaround hardware or firmware bugs, not kernel bugs. Since
> > 5.15.x kernels worked, odds are good a bug was introduced between 5.15 and 6.1,
> > i.e. that this is fudging around a kernel bug that can and should be fixed.
> >
> > Are you able to bisect the kernel between 6.1 and 5.15 to try and pinpoint an
> > exact commit that introduced the problem?
>
> That took a few days, but resulted in the following:
>
> 4be33cf187036744b4ed84824e7157cfc09c6f4c is the first bad commit
> commit 4be33cf187036744b4ed84824e7157cfc09c6f4c
> Author: Fred Ai <fred.ai@bayhubtech.com>
> Date: Mon Dec 20 20:09:40 2021 -0800
>
> mmc: sdhci-pci-o2micro: Improve card input timing at SDR104/HS200 mode
>
> Card input timing is margin, need to adjust the hold timing of card input.
>
> Signed-off-by: Fred Ai <fred.ai@bayhubtech.com>
> Link: https://lore.kernel.org/r/20211221040940.484-1-fred.ai@bayhubtech.com
> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
>
> drivers/mmc/host/sdhci-pci-o2micro.c | 57 ++++++++++++++++++++++++++++++------
> 1 file changed, 48 insertions(+), 9 deletions(-)
>
> I'm not sure how this code impacts this device, but it does contain a "HS200 MMC card":
> $ dmesg | grep mmc
> [ 1.044708] mmc0: emmc 1.8v flag is set, force 1.8v signaling voltage
> [ 1.044937] mmc0: SDHCI controller on PCI [0000:01:00.0] using ADMA
> [ 2.120632] mmc0: new HS200 MMC card at address 0001
> [ 2.122912] mmcblk0: mmc0:0001 hA8aP> 14.7 GiB
> [ 2.124810] mmcblk0: p1 p2 p3
>
> I can provide more info on the hardware, which is also available in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1056056
Adding the relevant people from that commit, this is waaaaay outside my area of
expertise.
next prev parent reply other threads:[~2024-01-02 17:58 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <DB3PR0502MB999347F512ECFDBE3BFA9941B697A@DB3PR0502MB9993.eurprd05.prod.outlook.com>
2023-12-20 16:47 ` Bug: After a 'warm' reboot the disk is missing (not detected by the bios) on a HP t640 Sean Christopherson
2023-12-28 12:39 ` Ben Mesman | Spark Narrowcasting
2024-01-02 17:58 ` Sean Christopherson [this message]
2024-01-03 12:23 ` 回复: " Fred Ai(WH)
2024-01-04 10:31 ` Ben Mesman | Spark Narrowcasting
2024-01-08 2:02 ` 回复: " Fred Ai(WH)
2024-01-09 12:25 ` Ben Mesman | Spark Narrowcasting
2024-01-19 8:40 ` 回复: " Fred Ai(WH)
2024-01-22 15:52 ` Ben Mesman | Spark Narrowcasting
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZZRO4Y41UTNm88eg@google.com \
--to=seanjc@google.com \
--cc=adrian.hunter@intel.com \
--cc=ben@sparknarrowcasting.nl \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=fred.ai@bayhubtech.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--cc=ulf.hansson@linaro.org \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.