The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Michal Pecio <michal.pecio@gmail.com>
To: Paul Menzel <pmenzel@molgen.mpg.de>
Cc: Mathias Nyman <mathias.nyman@intel.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	linux-usb@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>,
	linuxppc-dev@lists.ozlabs.org
Subject: Re: IBM Power S822LC: pci 0021:0d:00.0: xHCI HW did not halt within 32000 usec status = 0x0
Date: Tue, 12 May 2026 10:22:33 +0200	[thread overview]
Message-ID: <20260512102233.290d3665.michal.pecio@gmail.com> (raw)
In-Reply-To: <6106b5b9-17d2-48be-8215-3320f3d1d261@molgen.mpg.de>

On Tue, 12 May 2026 08:17:08 +0200, Paul Menzel wrote:> 
> > I honestly don't know what to do with this. I think I would start with
> > looking whether xhci_shutdown() in the old kernel manages to halt it
> > successfully or if it also fails, and what's the USBSTS there.
> > 
> > It seems that you can get such information by enabling dynamic debug
> > 
> >    echo 'module xhci_hcd +p' >/proc/dynamic_debug/control
> > 
> > and capturing old kernel's log up to kexec() through a serial cable.  
> Unfortunately, nothing is logged over the serial console (BMC SOL) after 
> running `sudo kexec -e` or `sudo systemctl reboot`. I just see:
> 
>      [69530.180531343,5] OPAL: Switch to big-endian OS
>      [69538.407292205,5] OPAL: Switch to little-endian OS
> 
> Which is the OPAL firmware, so it might be involved? No idea, if it 
> touches the xHCI controller.

So some FW involvement is potentially possible.

BTW, another method of doing kexec is to setup a crash kernel and
then trigger panic with /proc/sysrq-trigger.

This probably won't run xhci_shutdown(). Not sure about OPAL FW.
Is the outcome any different?

> But strangely no xHCI messages are there –  also after booting with
> Petitboot and initialized xHCI controller? No idea, if it points to,
> that during kexec or shutdown nothing is power off?
> 
> With `sudo systemctl reboot` only the line below are logged:
>
>      [  121.811384] libvirt-guests.sh[3366]: Running guests on default URI:
>      [  121.811988] libvirt-guests.sh[3376]: no running guests.
>      [ … (systemd service stop notifications)]
>      [  136.254846] systemd-shutdown[1]: Waiting for process: watch_ldconfig
>      [  218.549684] reboot: Restarting system
>      [69760.484679183,5] OPAL: Reboot request...
>        3.55778|Ignoring boot flags, incorrect version 0x0
>        3.59881|ISTEP  6. 3

Only "reboot: Restarting system" looks like it's kernel. Maybe you need
to tweak loglevel before rebooting or kexecing? Try to get more kernel
messages showing over serial during operation, then kexec.

Regards,
Michal

  reply	other threads:[~2026-05-12  8:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-06 16:06 IBM Power S822LC: pci 0021:0d:00.0: xHCI HW did not halt within 32000 usec status = 0x0 Paul Menzel
2026-05-06 17:30 ` Michal Pecio
2026-05-11 21:57   ` Paul Menzel
2026-05-11 23:20     ` Michal Pecio
2026-05-12  6:17       ` Paul Menzel
2026-05-12  8:22         ` Michal Pecio [this message]
2026-05-12 15:32           ` Paul Menzel

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=20260512102233.290d3665.michal.pecio@gmail.com \
    --to=michal.pecio@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=mathias.nyman@intel.com \
    --cc=pmenzel@molgen.mpg.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox