From nobody Thu Apr 17 13:20:31 2025 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Zddmw40Drz5t996 for ; Thu, 17 Apr 2025 13:20:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Zddmw0qHJz3DZh for ; Thu, 17 Apr 2025 13:20:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1744896032; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Rm3s+KqooskHFDn1BvXvn4YO0LA6Gj9kwQ5A0dDR4RA=; b=nGKpPVNpa0/Tz+cthBSVmr9qEbnX2g3x0MhF9UprT22WXvEcUeZV/+fe0rgTOiqubDUe34 Bg+KXedmBw4t8rQsUNXLyGXlVvXARoUBohm36GlNgiW/n7DSYTWbejpR008wK1HDU8ynof UNLMXVwN2Ag5kJ4x+bRsMPuH7vfVyveDFOk6MK7Ck9Cx3WRVXFqH6VXwl32t+Z0LhgY6+U cUvvPx4TkDsuSxAI4KJwORxnHhTZEhSjGbE4r9VUBfjGBQ6sIOfWmwFTsxzyvBGOLcUTus 4GGh+R579cdnQQOvIP2WBGxorrOlKCTmzfMeWIYNFU4i9NCSZDsoQAOCCYnFnA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1744896032; a=rsa-sha256; cv=none; b=WoyGDnI9bOzwXA7l/52mdl2H0aZPdE5kA5+ZksSrfBb5I2A8iXtbefVMAJCdT5poPDxxhY /bYssEGFxZAR3LfnMxWAl/nwxI0r0YTWvhTt1UNNPI03pjRARXkvQBBDNQa6KjGP7/PhdB Q6hdlG6wkBWY+7CxfWPXJcDLNaB9MO50QF+Psxj8/MhDsV+Vq8ygcaggBHgebouyMTn4eq TQSKoQFoC9GIV3zyC6b/IrCuhqOwIB7InUE1gC8428SXyf2rudeFXwApskyf366SY3yWDL l7Xta53ePdMhOXm4grQkTQb7B9xPpxUHT4Q2HQW9PS8A5oj2iguo0w6XS8NCSA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1744896032; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Rm3s+KqooskHFDn1BvXvn4YO0LA6Gj9kwQ5A0dDR4RA=; b=KXxr+ivNSv8tvlPzEiXfQiIdNGBkWTz2hByrBq7eJopflP60+P5r45KKGCKrjzmRDq1puK fd5uDZuY11l5ZwSLEye3iIGjj+7ua2uoyfPWOFz5uPhgwQIbJuqdFepAdQh86w1EJxKTLs y7H8/1AT2aqvAAu7/Mb8of/QnRQ1QgnP6RTvo/Uty2HlsNS5HOl39SiNacQ9z3PkErONtu 9OjG/6uwGDCPt2Jh78NdWNZ2g9e1l5uwwnB1w3vQWr/8CHqXlXW3VsEoCz/R+B/8jTbIn3 dlRJGqJmlcPAJggTB5949vWpLW970wisoqu+oq4DZsOSBdl3AVr4zQJm489veA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Zddmv6r6kzq7m for ; Thu, 17 Apr 2025 13:20:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 53HDKVEA065680 for ; Thu, 17 Apr 2025 13:20:31 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 53HDKVJC065679 for bugs@FreeBSD.org; Thu, 17 Apr 2025 13:20:31 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 285993] nvme device breakage in 14.2 STABLE n270867-25df691800f0 Date: Thu, 17 Apr 2025 13:20:31 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.2-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jhb@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? mfc-stable14? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D285993 --- Comment #20 from John Baldwin --- (In reply to Jim Long from comment #17) In this case, the PCI-e registers start at offset 0x90: cap 10[90] =3D PCI-Express 2 root port max data 128(256) ARI disabled The SLOT_CAP register is at a relative offset of 0x14 from there, so can you please do: pciconf -r pcib10 0xa4 You can also perhaps try this (fine to do on top of your existing patches): diff --git a/sys/dev/pci/pci_pci.c b/sys/dev/pci/pci_pci.c index 5e71a376604b..27aea3ebd2ed 100644 --- a/sys/dev/pci/pci_pci.c +++ b/sys/dev/pci/pci_pci.c @@ -1294,9 +1294,12 @@ pcib_setup_hotplug(struct pcib_softc *sc) sc->pcie_link_sta =3D pcie_read_config(dev, PCIER_LINK_STA, 2); sc->pcie_slot_sta =3D pcie_read_config(dev, PCIER_SLOT_STA, 2); + device_printf(dev, "initial SLOT_STA %#x\n", sc->pcie_slot_sta); /* Clear any events previously pending. */ pcie_write_config(dev, PCIER_SLOT_STA, sc->pcie_slot_sta, 2); + sc->pcie_slot_sta =3D pcie_read_config(dev, PCIER_SLOT_STA, 2); + device_printf(dev, "cleared SLOT_STA %#x\n", sc->pcie_slot_sta); /* Enable HotPlug events. */ mask =3D PCIEM_SLOT_CTL_DLLSCE | PCIEM_SLOT_CTL_HPIE | The one difference here beyond the printf's is that it is explicitly discar= ding any pending events from POST. --=20 You are receiving this mail because: You are the assignee for the bug.=