From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.125.188.122 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796182077; b=TbYSBtisDfbilFq60f8D/0nsejkT5du22+q+n5chebi7cr47krhWpBkw2Mk+BjQJvP0p gZWfE6oIJQXnwKTp4sC4lXqXNiRRPelTxHUi7HzueojlcPQxRalvygj5IGi4Kf+RhboBY QAwaZihV9IugZWzuOqpbCagrNHjDecO0Ae5AL+j646zN5uFWsi9HQQHKcuq6v+lqRuPQ/ 1P6VTgn2iJRsk1s5/wyOsRl/0xoGAOaN7EQjXghYXJp0Lh/cDRanEjQ6IaAYYImYAcYT8 IFWRqaz06Tw5C2eMaC9Asv0USxDto5Zp9KPZFLWb2F3voM0Vm4THxqZTGVy98OUfZgg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796182077; h=DMARC-Filter:Received:DKIM-Signature:Received: X-Google-DKIM-Signature:X-Forwarded-Encrypted:X-Gm-Message-State: X-Gm-Gg:X-Received:X-Received:Received:From:To:Cc:Subject:Date: Message-Id:X-Mailer:MIME-Version:Content-Transfer-Encoding; bh=ytBFuEknYv5r003K2WDePlEwnHnHi1khczFkwmKI8bs=; b=36n1izp64glvOMQDpeVV2xorBclNfni+SzzYcG8I1AvU1QXAAMveVZm0bCQhdbqJs6mc +MQjzmEeoeiNkGIHN9VNtM0wKF23S728XcDm3+CzlJxP3CpLziI7IXIK+1Fq2942lGIo4 xCHYLozuQ07KkxwupAeiBdoCZzRr3EeKdDDPhd4T7etyLLxZFO0j0ZLKI37ZLLNwq2tUc pryhhIiJtqbHZyGvo2YZbib/mt/MY4Oz6pmnVAVJTKLv5hC0Wj/Nwl8Qn3zTWKnLsLVhj UeZ0zT3LE9EbnZ8akDUJBSssu05LvxmpP1Y+SxPKKitMmJh6KK4bK5kHFGBMj1zc1qA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=canonical.com; spf=pass smtp.mailfrom=canonical.com; dkim=pass header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20251003 header.b=r14LkAG0; arc=none smtp.remote-ip=185.125.188.122 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5E38E606A329 for ; Wed, 2 Dec 2026 03:27:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 5E38E606A329 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=canonical.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=canonical.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20251003 header.b=r14LkAG0 Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 307D33F12E for ; Wed, 2 Dec 2026 03:27:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20251003; t=1796182069; bh=ytBFuEknYv5r003K2WDePlEwnHnHi1khczFkwmKI8bs=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=r14LkAG09J9GfNrGD9/ve39E6q7y2wNVk/M9g46zHMaJDbQCxqeHLZU7tR3t3IFOb y+Vy4V2uR/JO+jNgQt7LDcASXhUZkpcOzWNZWueBguVJuqA+RI8Zz7xTawyabq35sU +YZtKEtLAdSCAcUsP83PNWcT0+YgGFnTMBBlNJOIHxueJfqeRm4dJX1F+q0Aie/ruD mchM/eYzQ8eC0SSHiX/CRqvouMzE3G7scz3MyB6LO85VU1irXAn5/ugnDWdxmoZsFc VMB42Z4fyJS+hW4JaxVVQSaou7bw+ro78uPpDz7sNxsbHI0Zu8HKlQJqEQc04xmGN3 Y7Q+kmpFsvUr6+DuoujVFXjXEsymwUqMj5s0+UJJ0yNNU/kgmE6Bv6NmYgIelRikxl LjDL/1JKrIYWdADuVgZMQNdyWWVi0EP0gyYYoIyV5jyde0/bxJDOsBWahzEB7GXXN/ NB+SvPEXDQ0Btp2Pd9xfzGEoZT6kC8tKqlL0uNanFejFNFgSp0gNC+zjs6RNWFiXib 5/H5FVTt0dvuNkMxXpwfY2rORD+2NdKqv+O1Dj90AdATXXoKvLet0AzJ/mzj8C4C7C FwiVY/zYxWLDXUgh6sFIhlYcbN2R/PdvNGCJlBX8hIUc1NR+HDiY1ACBzdiF0OQfs4 SHdiGrb+ta98geHdy+pK2nxs= Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-3b410059690so2460371a91.0 for ; Tue, 01 Dec 2026 19:27:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796182068; x=1796786868; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=ytBFuEknYv5r003K2WDePlEwnHnHi1khczFkwmKI8bs=; b=ZNvY7nLs8TPhJWTtDjTcler/Q66wqxsE+2XB3vBR61lsjjbeTuPZCvzveZ9Q4Vt7RX ogfgjD4v7O+St7Q/rbRWaqe+L1WArKOVfr/hQKLTU1mZ/Zy2C9M9lwX/MZm/vXXy836q iLIPFwUcoVoWN6F81hLziM9y3uzuPX4ov0V6gx/fHKlptKm8vp2kjFmcJi2kp+KLbSEp 6hEqXbPAab+HAEzCo3A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2002:a17:90a:e70c:b0:3a0:c1b1:45fb with SMTP id 98e67ed59e1d1-3b41c58aebdmr65245907a91.0.1796182067494; Tue, 01 Dec 2026 19:27:47 -0800 (PST) X-Received: by 2002:a17:90a:e70c:b0:3a0:c1b1:45fb with SMTP id 98e67ed59e1d1-3b41c58aebdmr65245873a91.0.1796182067052; Tue, 01 Dec 2026 19:27:47 -0800 (PST) Received: from localhost.localdomain (2001-b011-2008-63d2-c5f0-dba7-fa38-79b6.dynamic-ip6.hinet.net. [2001:b011:2008:63d2:c5f0:dba7:fa38:79b6]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b44b776a14sm28256764a91.2.2026.12.01.19.27.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2026 19:27:46 -0800 (PST) From: ChunAn Wu To: lukas@wunner.de Cc: bhelgaas@google.com, linux-pci@vger.kernel.org, stable@vger.kernel.org Subject: [PATCH v2] PCI/AER: Keep ANFE masked on Dell Pro Precision 9 R2 Date: Wed, 2 Dec 2026 11:27:40 +0800 Message-Id: <20261202032740.123728-1-an.wu@canonical.com> X-Mailer: git-send-email 2.34.1 X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Since commit eddba19b8b5f ("PCI/AER: Support Advisory Non-Fatal Errors"), pci_aer_init() unmasks Advisory Non-Fatal Errors (ANFE) on devices with native AER. On the Dell Pro Precision 9 R2 PW9R2275, enumeration reads absent devices behind some bridges, such as the PLDA PCIe-to-PCI bridge in front of the BMC VGA device and the PCIe switch in front of an AMD GPU. The bridge returns a UR completion and, with ANFE unmasked, also signals the error through Firmware First. The firmware reports it as a fatal error even though the hardware severity is non-fatal (bit 20 of the Uncorrectable Error Severity register is clear). The kernel then resets the Root Port, the devices behind it lose their configuration, recovery fails, and the VGA or the GPU becomes inaccessible. Kernels before v7.3 are not affected. Set no_aer_anfe with an early fixup, as done for the Apple T2 Secure Enclave in commit 7209846a169f ("PCI/AER: Keep ANFE masked on Apple T2 Secure Enclave"), so that pci_aer_init() leaves ANFE masked. Restrict it to this system with a DMI match because the problem comes from the platform firmware. Limiting it to the devices seen so far is not enough, since any device that returns a UR for an absent function triggers it. Fixes: eddba19b8b5f ("PCI/AER: Support Advisory Non-Fatal Errors") Cc: stable@vger.kernel.org Signed-off-by: ChunAn Wu --- Changes in v2: - Restrict the quirk to this system with a DMI match instead of matching the PLDA bridge ID, as suggested by Lukas. - Apply it to all devices on the system. Masking ANFE only on the PLDA bridge (1556:be00) and the AMD switch port (1002:1478) was not enough: the same error then came from the AMD switch downstream port and the GPU functions, so the quirk is not limited to the devices seen so far. - Tested on Dell Pro Precision 9 R2 PW9R2275 (BIOS 0.0.8): no GHES fatal records, and both amdgpu and mgag200 probe. v1: https://lore.kernel.org/r/20261125020013.639193-1-an.wu@canonical.com/ drivers/pci/quirks.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index 4a02fc80755d..8ae8c848d91c 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -2610,6 +2610,36 @@ static void quirk_no_aer_anfe(struct pci_dev *dev) } DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_APPLE, 0x1802, quirk_no_aer_anfe); +/* + * On the systems below, platform firmware reports an Advisory Non-Fatal + * Error caused by a UR, such as one raised when enumeration reads an absent + * device behind a bridge, as a fatal error. The Root Port is then reset and + * the devices below it become inaccessible. This was seen with the PLDA + * PCIe-to-PCI bridge in front of the BMC VGA device and with the PCIe switch + * in front of an AMD GPU. + */ +static const struct dmi_system_id no_aer_anfe_dmi_table[] = { + { + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), + DMI_MATCH(DMI_PRODUCT_NAME, "Dell Pro Precision 9 R2 PW9R2275"), + }, + }, + { } +}; + +static void quirk_dmi_no_aer_anfe(struct pci_dev *dev) +{ + static int dmi_matched = -1; + + if (dmi_matched < 0) + dmi_matched = dmi_check_system(no_aer_anfe_dmi_table) ? 1 : 0; + + if (dmi_matched) + dev->no_aer_anfe = 1; +} +DECLARE_PCI_FIXUP_EARLY(PCI_ANY_ID, PCI_ANY_ID, quirk_dmi_no_aer_anfe); + /* * Under some circumstances, AER is not linked with extended capabilities. * Force it to be linked by setting the corresponding control bit in the -- 2.34.1