From nobody Sun Feb 8 11:26:15 2026 Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) (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 BB5F418787A for ; Thu, 8 Jan 2026 08:19:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767860386; cv=none; b=axr2JqOEHr57L9Aky0YSrmxsvBMJ/A6U7Qzv0PyqjdINi3EEYSHMUMWVarg9u+V92JWQ0eopoda38sAMqJelHxVyw6emuXvp4YSafdo4hhXxwboO/R9zZNKFXWFkR2t0vubjazE+QDV3Ao616qa1Gh5gGln/2l2goezXq00YAdE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767860386; c=relaxed/simple; bh=ZqmOf0gGy6Ui7/SWJdII1LH9oZpSkCVX842PERXe3X4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=OOt0MA6p4AclGm6Y6N/v987YrmvjK6BNnzIqs1KERK+AyCLkqLNN6sf/ZXKZj2G2Q8DJkPV/A7874maAk2OIvCdz9GIzzeexObHAaigvXJNEqDVNuWZVNtFVUF9dRT5H1vkVtY0kZBwmgqZMOXZuebk+BXdgwE5M76vsF1QK2Gc= 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=Mu+m6rYJ; arc=none smtp.client-ip=209.85.216.50 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="Mu+m6rYJ" Received: by mail-pj1-f50.google.com with SMTP id 98e67ed59e1d1-34c9edf63a7so2399342a91.1 for ; Thu, 08 Jan 2026 00:19:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1767860372; x=1768465172; 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=fHAmKcdoN135Asq9ijVI3O1LODaST52jtA9RClzYjcQ=; b=Mu+m6rYJif3CKKWodxrZjtUHYfu7+RksKV1fiLl+HFWLSys58vVNHXieOeOi0deWz4 3+eOfGNQ4GGnQtQ3hqsampxlb3o5aNnJtct/o8MSiqKaD6vAcjF822N5/MKF1cwjL8kl HIqKm0W0Mk+Uz1GvWCRjqzWOgKYit7sY9GaoEFEK8bG2OF0f8nmEeFlQdLYwGi3NHOm2 F+yWKlMYXhuFiCsNqXM2dxmP1FfxFwyJG52EP3bGwxoOWx8s2TFXHZGx8TkMI1rViX9W DmKzdeQQdMxokPr5WxyX5GU7HnfBor4wkk0NSgFB+6biazEzj87oLbYtOENHaYQNdlmd dOdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767860372; x=1768465172; 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=fHAmKcdoN135Asq9ijVI3O1LODaST52jtA9RClzYjcQ=; b=VOmYrWwBqgqp9tteBcr0xpuMnDwSyIZFr4VZlBeUwqPmBJl/+l3IIlLdKSV7tvIIHl bm12GXR5Mad6wqJlVYZ1iqR7VN2EV8ZcsDULCAEkHEu7Yzno6I6UNUH2YWPQYqpzOuhy 7aNfuxa8VcqSDPfdL3O8jQE+VRJwC74LOby1QX/sZCfoVZUep5KObgn5RZXxppk++1IA CpGSKDv/MQuj8Mb3miS4aglCFkMz3T9a6eSZproniyvcH9HMgBZYpP7YXw8E2gYq8ld6 07RZfc6RnEH5aBKFAzMb85ZJasV075zSr09+YlJ7uYDWgc06w+Nyksaf9msN1IpkSWQ9 k+XA== X-Forwarded-Encrypted: i=1; AJvYcCWEBpSt2mU++g5uMNDiRBfWs2gbiu8eWqxST800bv91q8asj79uKLnwq8e1gaw0uY86IVPAlc5ZIt1JFMU=@vger.kernel.org X-Gm-Message-State: AOJu0YwgTvd/KnQq5lKcrMrIOhtcjZO2M6/XHHGyGUilqPng/Qfdah+c btNV4lsyxTE0L8hvu6BQGk0WFqBAZhjOSGx+CSBd0og9z1V+Yz0Wi1s= X-Gm-Gg: AY/fxX4ZsTKM/+fux6MLb90stF99MOjgVPBJdBobHl5Gzevdi1PNDbASZFVXySi9blg wkKtU0N3hxNTyeMOn317lD+xpB+VtiZHv4OdQPwBpMbUPWS+Bz3akp4WDUhcPHFg13c9+XuYmNc 6lHV2kKaQM4Pj8YmwH3G+q7nqSVOadvM5UW7t3QtvaaH3MCth0CGzXT0N/DMZs1LtR5Yqxmv96q EsDJq4jO49YDB9oEOsdhISNgr5WLNO8TBUZbH07f8sKHfCsV+7MzgfPTi9OAPSRldzr5beFocu5 ISjsrzRhctcko73dvqENnFDBtXJjifZ2nDm3caMEOGQjM5v2lhl9+kkEr3pR+8nKSa8V36caZ4z 4AEWfEnRNfwlzN667vy2xhhcLT56KhNe5/63GsZ1w206LnFzoqSJCNgTE2B4L2desa76hPzI1z/ KNRtksd0qK2ayw7Xk= X-Google-Smtp-Source: AGHT+IFDK5YD6a2Lz09PpXPJx2QnY/5/782hB7zl/Zgtvf8GF5ogkiCdodmnp0MwEz339uVRHb9Okw== X-Received: by 2002:a17:90b:4c11:b0:338:3d07:5174 with SMTP id 98e67ed59e1d1-34f68c7a647mr5191292a91.5.1767860371991; Thu, 08 Jan 2026 00:19:31 -0800 (PST) Received: from at.. ([171.61.166.195]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-34f5f7b19ebsm6979077a91.3.2026.01.08.00.19.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jan 2026 00:19:31 -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 , Dave Jiang , Giovanni Cabiddu , Feng Tang , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-usb@vger.kernel.org Subject: [PATCH v3] PCI/portdev: Disable AER for Titan Ridge 4C 2018 Date: Thu, 8 Jan 2026 08:18:53 +0000 Message-ID: <20260108081904.2881-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 Changes since v1: Transferred log 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 --- Changes in 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