From: Aditya Garg <gargaditya08@live.com>
To: Andre Eikmeyer <dev@deq.rocks>,
Arend van Spriel <arend.vanspriel@broadcom.com>
Cc: linux-wireless@vger.kernel.org, brcm80211@lists.linux.dev,
brcm80211-dev-list.pdl@broadcom.com,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] wifi: brcmfmac: handle missing D3 ACK on BCM4377 T2 Macs
Date: Sun, 20 Sep 2026 03:35:59 +0530 [thread overview]
Message-ID: <MAUPR01MB115463CF01C37B9FFBAB3A420B8862@MAUPR01MB11546.INDPRD01.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <20260918213014.1890677-1-dev@deq.rocks>
On 19/09/26 3:00 am, Andre Eikmeyer wrote:
> BCM4377 on the affected T2 Macs does not acknowledge HOST_D3_INFORM.
> The current PCIe suspend callback treats this as fatal and aborts system
> suspend.
>
> On the affected PCI and DMI combinations, mask the mailbox interrupt,
> preserve the bus-down state, and let generic PCI/ACPI suspend proceed. On
> resume the existing recovery path tears down and probes the device again
> instead of relying on a D0 mailbox transaction.
>
> Tested-on: MacBookAir9,1, MacBookPro15,4, MacBookPro16,3
> Signed-off-by: Andre Eikmeyer <dev@deq.rocks>
> ---
> drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c | 42 ++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 42 insertions(+)
>
> diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
> index 55f4d7b..57bbac1 100644
> --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
> +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
> @@ -9,6 +9,7 @@
> #include <linux/pci.h>
> #include <linux/vmalloc.h>
> #include <linux/delay.h>
> +#include <linux/dmi.h>
> #include <linux/interrupt.h>
> #include <linux/bcma/bcma.h>
> #include <linux/sched.h>
> @@ -49,6 +50,40 @@ enum brcmf_pcie_state {
> BRCMFMAC_PCIE_STATE_UP
> };
>
> +/*
> + * BCM4377 on these T2 Macs never acknowledges HOST_D3_INFORM. The platform
> + * can nevertheless enter and leave system suspend if the PCIe mailbox
> + * interrupt is masked and resume takes the existing cold-reprobe path.
> + */
> +static const struct dmi_system_id brcmf_pcie_no_d3_ack_quirk[] = {
> + {
> + .matches = {
> + DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "Apple Inc."),
> + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "MacBookAir9,1"),
> + },
> + },
> + {
> + .matches = {
> + DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "Apple Inc."),
> + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "MacBookPro15,4"),
> + },
> + },
> + {
> + .matches = {
> + DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "Apple Inc."),
> + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "MacBookPro16,3"),
> + },
> + },
> + {}
> +};
> +
The BCM4377 is Apple exclusive and present only on these three Macs. No other Mac, or PC of some other brand uses this. So the DMI check isn't needed.
prev parent reply other threads:[~2026-09-19 22:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-18 21:30 Andre Eikmeyer
2026-09-19 22:05 ` Aditya Garg [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=MAUPR01MB115463CF01C37B9FFBAB3A420B8862@MAUPR01MB11546.INDPRD01.PROD.OUTLOOK.COM \
--to=gargaditya08@live.com \
--cc=arend.vanspriel@broadcom.com \
--cc=brcm80211-dev-list.pdl@broadcom.com \
--cc=brcm80211@lists.linux.dev \
--cc=dev@deq.rocks \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®