From nobody Sun Feb 8 11:25:58 2026 Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (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 E184F357A5D for ; Thu, 8 Jan 2026 08:25:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767860737; cv=none; b=LGUzze9H4hgljRCyNr1DNpMTR0ZbAN622k4ouTQkhRXyGQgLpL5A3XZA5qjfDnTklqUPG4jprukC5jfDvAL2S5ilYTzpbFJPJMmU9RKFWU3IYbuPqAqV3qmcbS6h4vCG7eyXHyyqEWb5NMsF31lb8T2wkO1xRdQjCxPRyH0DW70= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767860737; c=relaxed/simple; bh=KziMa7QNGUm/4xZVgFBikODfU6bmya2+U35lZ61t6IU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=mKLf/ExYiafjyXZ5ZIXKM99V/Uc1rmNoLwdhmVFTOMpOV/T7dPfZNI7vF+JKQK5Ia5dCWeFUxFqUvWHJIvt0rR/Nd4DMoFXRVjfAX2q7REJ722S4JXNkL0tYSqvEas4tNanZ8YzYF6FxY2XBuHQY8Z3qRBGmRskZdwSRrIL907E= 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=COHAo9Fa; arc=none smtp.client-ip=209.85.214.172 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="COHAo9Fa" Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-2a0a95200e8so18577435ad.0 for ; Thu, 08 Jan 2026 00:25:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1767860724; x=1768465524; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=x8t1+RviBZBkQiz1+F0jLoZoAGkcEhuc2rfeggUJxJA=; b=COHAo9Fadf1BUBEBbBuBuRFX794Igrky/O6OKgvi+ot2aYw8LXRpuPbABRts3k0y3W fTi5ZfvtOsYZHAl1MgA3+wht4f95hpELRmMeu/vpjP5YYngbGvnSbnE9lNd9+xJ5TtQ+ 2MqgfQ3/YMpHC1csfF9HBF53/D2XpRMONjtBB3wF9SE5/efNfI26+ZahAr35OeFZls3u SrlYcHe3sC6HB8a7ndUahZ5QNWQvxr6IdMo2zF+ACpV/KwNOpb7+P63VZaQ4frVjCpxH 6hEej5AgqDi0RDbh2UutrunlgJ958WDyLdzl9gEgC6ZdBicsxc6HSNLEpxYiufpzdZgQ BiOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767860724; x=1768465524; 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; bh=x8t1+RviBZBkQiz1+F0jLoZoAGkcEhuc2rfeggUJxJA=; b=ny1V0TJ8NuYyXBsBTqhkFVuNg6cmSeQs++C+egTYWyB/ftCC7R+BfbLjBT83t5n0pp FDhezHS+ODRzzuuqYyplDXeCJteO0d+PPJKqVRCUUkamUK57tme82B790Ue4yn21e+2B R72lA+vqWQWXFtTNQko8pALvmyGmqvAaIBhx/+JPuwJ6W3uZs2oRbauv+HORnKtNvDDe M4dp7zV7lr3Mb1eWZVL4hhNSEkSk0DXZLC06iApjPHHgaVjfTEIpLjH6Qny9+NIyMFpT oEXW5VHDOWpfprBsKFj6xlOO73V7yJfpnj6XbIl9e2Ay5vaPXrjNpOa+CrgBbg86xyv5 BXPg== X-Forwarded-Encrypted: i=1; AJvYcCXfG2I6y5TBcRLpKg6ocHnTDaN6FMr7UiRhcXq/Y7ReZ0j2T5JCBDe8rFikKb9sVYlgbIRkHJjVW/8EKWo=@vger.kernel.org X-Gm-Message-State: AOJu0YzfeFHmMNZHV/JOGGYlrZwTRwwEIsj91llIH/SPFKr2TiT6b7H5 hoTi4gEV7TunzBE5E+jz3OXwMYCYcqHbmlXfYtv7XX3b0cBmJuEUVNw= X-Gm-Gg: AY/fxX6jIubP7c6uxsD7lk4HI2Cr7p3twTD+YEthOMdmWRkQOSbRqEGaTgeZ0Rkza5X FhiA/l/QRpSgNDMxz71S4QLU3NRBZZR7wfTEoi+mffdKmAqb3anjTsH2mx3iBOFYgt5ETC+uwz/ U9FtUSdNq7DIEqx8bNIC5Iv0Ss4pflnRjaBzBdDF+V745d5XMOmQVBbKL84ffTpEbTcli2gcNso J93sAwOMOw/2Lq1iQjK6BetUVYwzjSbNrDuUiZBycsxRpk1C7OZ4VegEr62RzvZ3jbIt3V6vcUz Ev/9RM/F+3LDrATszfSalsStP2u8GMcUjzBqePRjBsLjeQhxcNa3WQOUBMj7Ge909eeNAkQHLgJ U1fWH1yhwS0ng2YwbVytWDqwXo9a0xuh8dujkUF73nIbNeTSF7GkMzmg+ovYVcFt6eOkUYi+BrP E9/2i82Vxicx78XRk= X-Google-Smtp-Source: AGHT+IFlqu/P/5sh9z5DWE3DsjYa1JH40CTlBeUg8uyttdF4r71Kg5WERp3YCavi1Kt+WDXEmDPaOw== X-Received: by 2002:a17:903:3c30:b0:2a0:fe4a:d67c with SMTP id d9443c01a7336-2a3ee437a5dmr49953365ad.10.1767860724001; Thu, 08 Jan 2026 00:25:24 -0800 (PST) Received: from at.. ([171.61.166.195]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2a3e3c47303sm70625825ad.24.2026.01.08.00.25.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jan 2026 00:25:23 -0800 (PST) From: Atharva Tiwari To: Cc: Atharva Tiwari , Bjorn Helgaas , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Mahesh J Salgaonkar , "Oliver O'Halloran" , Andreas Noever , Mika Westerberg , Yehezkel Bernat , Lukas Wunner , Kuppuswamy Sathyanarayanan , Feng Tang , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-usb@vger.kernel.org Subject: [PATCH v4] PCI/portdev: Disable AER for Titan Ridge 4C 2018 Date: Thu, 8 Jan 2026 08:25:03 +0000 Message-ID: <20260108082509.3028-1-atharvatiwarilinuxdev@gmail.com> X-Mailer: git-send-email 2.43.0 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 Disable AER for Intel Titan Ridge 4C 2018 (used in T2 iMacs, where the warnings appear) that generate continuous pcieport warnings. such as: pcieport 0000:00:1c.4: AER: Correctable error message received from 0000:07= :00.0 pcieport 0000:07:00.0: PCIe Bus Error: severity=3DCorrectable, type=3DData = Link Layer, (Receiver ID) pcieport 0000:07:00.0: device [8086:15ea] error status/mask=3D00000080/00= 002000 pcieport 0000:07:00.0: [ 7] BadDLLP macOS also disables AER for Thunderbolt devices and controllers in their dr= ivers. Closes: https://bugzilla.kernel.org/show_bug.cgi?id=3D220651 Signed-off-by: Atharva Tiwari --- Chnages since v3: - Fixed Grammer mistakes Changes since v2: - Transferred logic to arch/x86/pci/fixup.c to only target x86 - Added DMI quirk to only target Apple=C2=A0Systems Changes since v1: - Transferred logic to drivers/pci/quicks.c --- --- arch/x86/pci/fixup.c | 12 ++++++++++++ drivers/pci/pcie/aer.c | 3 +++ drivers/pci/pcie/portdrv.c | 2 +- include/linux/pci.h | 1 + 4 files changed, 17 insertions(+), 1 deletion(-) diff --git a/arch/x86/pci/fixup.c b/arch/x86/pci/fixup.c index 25076a5acd96..bd72f7cf5db9 100644 --- a/arch/x86/pci/fixup.c +++ b/arch/x86/pci/fixup.c @@ -1081,3 +1081,15 @@ static void quirk_tuxeo_rp_d3(struct pci_dev *pdev) } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, 0x1502, quirk_tuxeo_rp_d3); #endif /* CONFIG_SUSPEND */ + +#ifdef CONFIG_PCIEAER + +static void quirk_disable_aer(struct pci_dev *pdev) +{ + if (dmi_match(DMI_SYS_VENDOR, "Apple")) + pdev->no_aer =3D 1; +} +DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x15EA, quirk_disable_aer); +DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x15EB, quirk_disable_aer); +DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x15EC, quirk_disable_aer); +#endif /* CONFIG_PCIEAER */ diff --git a/drivers/pci/pcie/aer.c b/drivers/pci/pcie/aer.c index e0bcaa896803..45604564ce6f 100644 --- a/drivers/pci/pcie/aer.c +++ b/drivers/pci/pcie/aer.c @@ -389,6 +389,9 @@ void pci_aer_init(struct pci_dev *dev) { int n; =20 + if (dev->no_aer) + return; + dev->aer_cap =3D pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ERR); if (!dev->aer_cap) return; diff --git a/drivers/pci/pcie/portdrv.c b/drivers/pci/pcie/portdrv.c index 38a41ccf79b9..ab904a224296 100644 --- a/drivers/pci/pcie/portdrv.c +++ b/drivers/pci/pcie/portdrv.c @@ -240,7 +240,7 @@ static int get_port_device_capability(struct pci_dev *d= ev) if ((pci_pcie_type(dev) =3D=3D PCI_EXP_TYPE_ROOT_PORT || pci_pcie_type(dev) =3D=3D PCI_EXP_TYPE_RC_EC) && dev->aer_cap && pci_aer_available() && - (pcie_ports_native || host->native_aer)) + (pcie_ports_native || host->native_aer) && !dev->no_aer) services |=3D PCIE_PORT_SERVICE_AER; #endif =20 diff --git a/include/linux/pci.h b/include/linux/pci.h index 864775651c6f..f447f86c6bdf 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -440,6 +440,7 @@ struct pci_dev { unsigned int multifunction:1; /* Multi-function device */ =20 unsigned int is_busmaster:1; /* Is busmaster */ + unsigned int no_aer:1; /* May not use AER */ unsigned int no_msi:1; /* May not use MSI */ unsigned int no_64bit_msi:1; /* May only use 32-bit MSIs */ unsigned int block_cfg_access:1; /* Config space access blocked */ --=20 2.43.0