From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E566A1F91D6 for ; Mon, 11 May 2026 23:20:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778541615; cv=none; b=TG9QWJXhF80bELl+pDZkXf6dkAjaDSyRgwEr5AnPRurwZt1159Mlh4KvL/z1UrMbjW4n3+fjpgh8OAS/ULPUKMtb3bzqKh0oMFxXws74w0ySCMI13NgrJggoZ3vkXGAWXBKLQ+2RIw99UTO6TmmrvVnb7eSYqVkPDGBtXKW7TzQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778541615; c=relaxed/simple; bh=iuavlYcSC7GyVZkJn4eD+OeF9wNgjkrI8Te04FStY08=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=W33Ug9g2QNoyRQQGPGkGvK36WdK0BTCKC+CJ+PQx9usI6KckyVKpVFch3NrVQAcR1Xv9xi7UD+cyAWanjmyMAbdPkG7JdMlCVRXnTiES4uMkAypzXqhy483nIu9OKtUBZwdlTxotHSWaXK37NZw6qxLI0R3Y4DR7lafl6QJkFSc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=gM/EhbEb; arc=none smtp.client-ip=209.85.167.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gM/EhbEb" Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-5a4113ab355so4573829e87.1 for ; Mon, 11 May 2026 16:20:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778541612; x=1779146412; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=eKeFaDyaApRaenceXFBzhlhr5RKF4sYAm+7+RMza1rM=; b=gM/EhbEbANWAXiB+/4r1uLu1vT0cp9b/mHZeBBgTqlylN8TupH7vn1EW3Qo1v/1Y8R fhRFZN9tOBZugRFhyYrcHBpzXKsrTC0cwi/+NR85Taa7zDsSoPrqyFMpR2/IsptaMgtW Fc7gJhtML0gDqnlAMRk6EazHixiruCCjqVr+dte3Oz80UzB/3SEFLexbtFfPrCrTv1xk 2E5LlqjPQrpAESMxpuznqikQjR9nzpJX0zkJZvSbGvFZXB7+3I46O0yRQE3H922P9CUD 2of/txmlrOmYK5Ul7H3wGPBWgULzDwjjzNB/QaHYTo+mKOcgdU2M1z4zx0KmTrcxfgSD 9Yug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778541612; x=1779146412; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=eKeFaDyaApRaenceXFBzhlhr5RKF4sYAm+7+RMza1rM=; b=Fke9pQZPqb2IkkAmxuaEibh8eVwbJ4w80e3S26ou1RdNnq3eEqhIwFjK7d7LghJ/k3 Lu+AVrHqvdBsoEnVT6YML7fzs5v7Y+pKV3LLp65EEjJfZnEdvDHAr0sXepgBBqisJY3I 72Mpd6W9+VEBG0Y+sj9LlNI0bL9U09zkNJ3hi2rKXZcR/c68JaDxoiQ9f5TCFSOp8leT RgyVC6fDfLHO1ZP88J/NvES26vf9AbPVlc+cERdQONdybiiFdHO1k+s6PcC7cpxh/Lui pwVAMZAr992g7CZUIFiPRmwORwYkMkPqTVI3AEUvFhkInqcmefqHtA+7M8zKzXavpsWd mabQ== X-Forwarded-Encrypted: i=1; AFNElJ/JyYBRLeratkxrLp9RH94E9m16oz0dwO5jMqf85d+gFOcYpoowEUSOAbmYVX80vc5WtWJXoJPE/1mX+f8=@vger.kernel.org X-Gm-Message-State: AOJu0YyXvN8g8n018p592wVxxMW2NnhSTBp6z2MVZu6P3CbQovspOygK ogZPklYZUYeuW/QfmnuvGDghNEVTeVow12eaOYzV9riAugrScR/jM9tLw6ozHw== X-Gm-Gg: Acq92OFblB14vr8KLnGC6W/NkSGOiEhc0CpRaWW9X5fT/d++uUGEh6UFvsLisa7oJlE U2fGw4GIbYon5tM849JAMD7WtdotEhb9CSUcnxPvMbkCxk2H335c4CcJxCDgFp+MHj248psDrTY D9CHL3+tjRsjV+3bJ3RxIam7Uwd9ENH/9pQJbMqsPw+Osh7ucBp8YcPCXAYyLcxiHWS6SqZG8nD 5QOAQG7hbcTJ4QpLhgJ6BV9gI4qh9Z2cqDFcXhwNCMz95tidonuninaeYCBYcheyjsvtiP8tYdk 0/nuMPMVBLtcVsbSG58st9yYntLrv1tONBExUJ5U0qP57lbhtgsHj+6ko+DVqsPgaxOBFCCsKvP luxClptyTVRrirnXLZoM5oAiXRzm3jQh+YoyJtgcysQD9SBQ7eyeWAKI9JMci9++QT6yEchixn0 RivKtieB0VwNCBxpVXM3ee5CDxz9b/mxp4 X-Received: by 2002:a05:6512:3d1a:b0:5a8:8222:7fbb with SMTP id 2adb3069b0e04-5a8a94c6b2cmr5792750e87.34.1778541611890; Mon, 11 May 2026 16:20:11 -0700 (PDT) Received: from foxbook (bgw15.neoplus.adsl.tpnet.pl. [83.28.86.15]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-393f60db67esm29185641fa.24.2026.05.11.16.20.09 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Mon, 11 May 2026 16:20:11 -0700 (PDT) Date: Tue, 12 May 2026 01:20:06 +0200 From: Michal Pecio To: Paul Menzel Cc: Mathias Nyman , Greg Kroah-Hartman , linux-usb@vger.kernel.org, LKML , 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 Message-ID: <20260512012006.66aeb0c5.michal.pecio@gmail.com> In-Reply-To: <69fa1c3f-3ea9-42cb-a49a-7da39f72806e@molgen.mpg.de> References: <20260506193037.6de9e355.michal.pecio@gmail.com> <69fa1c3f-3ea9-42cb-a49a-7da39f72806e@molgen.mpg.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, 11 May 2026 23:57:33 +0200, Paul Menzel wrote: > Am 06.05.26 um 19:30 schrieb Michal Pecio: > > On Wed, 6 May 2026 18:06:20 +0200, Paul Menzel wrote: =20 > >> On the IBM Power S822LC (8335-GCA POWER8), rebooting into Linux 7.1-rc= 2+ > >> with kexec results in the warning below: > >> > >> [ 0.000000] Linux version 7.1.0-rc2+ (x@b) (gcc (Ubuntu 11.2.= 0-7ubuntu2) 11.2.0, GNU ld (GNU Binutils for Ubuntu) 2.37) #3 SMP PREEMPT W= ed May 6 08:50:5 > >> [=E2=80=A6] > >> [ 0.000000] Hardware name: 8335-GCA POWER8 (raw) 0x4d0200 opa= l:skiboot-5.4.8-5787ad3 PowerNV > >> [=E2=80=A6] > >> [ 1.593760] NET: Registered PF_UNIX/PF_LOCAL protocol family > >> [ 1.593859] pci 0021:0d:00.0: enabling device (0140 -> 0142) > >> [ 1.627080] pci 0021:0d:00.0: xHCI HW did not halt within 320= 00 usec status =3D 0x0 > >> [ 1.627094] pci 0021:0d:00.0: quirk_usb_early_handoff+0x0/0x3= 00 took 32465 usecs > >> [ 1.627123] PCI: CLS 0 bytes, default 128 =20 >=20 > > Does it work any better if kexecing other kernel versions? =20 >=20 > No, the problem goes as far back as 5.17-rc7. (I didn=E2=80=99t try anyth= ing=20 > before.) >=20 > > What if you increase XHCI_MAX_HALT_USEC by 10* or 100* ? =20 >=20 > I have to test this. I missed your dmesg attachment previously. This may not help if another halt attempt 200ms later fails too. Per spec (5.4.1.1), the HC is supposed to complete halt in 16ms. > > Does the controller work normally after this warning? =20 > It does not look like it. In the log attached to my report, later on=20 > there is: >=20 > [ 1.739374] xhci_hcd 0021:0d:00.0: xHCI Host Controller > [ 1.739431] xhci_hcd 0021:0d:00.0: new USB bus registered,=20 > assigned bus number 1 > [ 1.794727] Freeing initrd memory: 52928K > [ 1.801984] xhci_hcd 0021:0d:00.0: Host halt failed, -110 > [ 1.801988] xhci_hcd 0021:0d:00.0: can't setup: -110 > [ 1.802137] xhci_hcd 0021:0d:00.0: USB bus 1 deregistered > [ 1.802154] xhci_hcd 0021:0d:00.0: init 0021:0d:00.0 fail, -110 > [ 1.802250] xhci_hcd 0021:0d:00.0: probe with driver xhci_hcd=20 > failed with error -110 Right, this chip seems stuck and the driver fails to reinitialize it. > PS: Claude Sonnet 4.6 cooked up the attached patch, which does *not*=20 > help though, but does get it to the return code 0x10, which Claude=20 > replied to with: >=20 > > =E2=97=8F The status change 0x0 =E2=86=92 0x10 is meaningful: 0x10 is P= CD (Port Change Detect, bit 4), > > HCHalted=3D0. The old-kernel reset (from our commit) did take effect = =E2=80=A6 =20 Do you mean that running xhci_reset() before kexec() causes the new kernel to see 0x10 instead of 0x0 in the status register? Is this reproducible, not random or a one time fluke? A little odd, one could expect reset to have the opposite effect. Is there truly some machine firmware running during kexec() and using the HC, as your LLM says? 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 capcturing old kernel's log up to kexec() through a serial cable. Regards, Michal