Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.172 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796008879; b=Yvza4C6KuR+Nw4SgIR9fOI7NjbVOQypBOvflkTTVFSOTH1GEzU+mJePh2qkJ799lqiML Y2KEExOD/lhhWUQEgPErIgoKHVK3enFLgTCsFneWNon/CXJWn1LQ9LI0iwxXPUAxD3WnC dR4iYg3oiAdd1B9Dspzjv9tozoG3aKfFOp1AzoYcOp3EF5SwpbzGMi2BH1M34i0q6Vyno W75R1qsNrBP3kuoePB+kpFyePu6GqVoEUx6iBEcsOCmEuHklHGJ+dJ2xpWUewO1YmiOhD LTOfbBmWhUFgLOSd41HbjBl6LaZ5QSM4rGKph8LQzVtO3jex8+Xi+KAKAKv+XEx8g9Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796008879; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=WzwFFkEdMPZvKvgRLOpMEByhGKaQWI/9wMQ8hTBVaiY=; b=FxhuDL/CUBgzdLf/dRXCCyZNa+eTclWc2K76UARlI+4Nfco83yhOkG3ryactU3usfb1u lySRhd1kVDt0xsdZ18zJfi6OJ19bG3YLof+DNDZ5F9Jq8HfKlfKupLJqGBFOgq0lJvkiJ O7bZF2tRr5JnQEo/QQ47fSmevQ4RpDzdaxMf5/bfc243e5QmCqzzJfF4xtUkW8Mh71nOq iScp+R87XWQM00L2W7dahM5NC6bOurAPEo8YzgU675gzW4AeI2Zq/giOTbid76UULGAB6 EzaIjKgfWeoLx8ISlLSM08r3DVeYVZq7HJXUQewtq8bvSBRbtOtm45QUab22/23+rwA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=archive.org; spf=pass smtp.mailfrom=archive.org; dkim=pass header.d=archive.org header.i=@archive.org header.a=rsa-sha256 header.s=google header.b=dlEgvzqt; arc=none smtp.remote-ip=74.125.82.172 Received: from mail-dy1-f172.google.com (mail-dy1-f172.google.com [74.125.82.172]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0EA61606A329 for ; Mon, 30 Nov 2026 03:21:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0EA61606A329 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=archive.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=archive.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=archive.org header.i=@archive.org header.a=rsa-sha256 header.s=google header.b=dlEgvzqt Received: by mail-dy1-f172.google.com with SMTP id 5a478bee46e88-33bf40b0c8bso2569940eec.0 for ; Sun, 29 Nov 2026 19:21:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=archive.org; s=google; t=1796008878; x=1796613678; darn=lists.linux.dev; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=WzwFFkEdMPZvKvgRLOpMEByhGKaQWI/9wMQ8hTBVaiY=; b=dlEgvzqtS3DZ4CH1URm8dpICvZQhZetrqPFUh5w2H6a1Pr01gXzdI88t8azjhGxJSv UBoZ3H8zgJp00PxLNz+2MXlG5wH4AdRjc0sP29oa5LkBYeXsHIkPezWg4cIEoZBlG1VV lK1Hp+Wy7OXa7xIrMXmbPhecxyqxo0vkq1Qlw4pz2ATAa3zfdC3ihIEOXmlLjUDBw8ZL Zqyti3XuB/4+VwdenO1Cuo4f0b9aud3uQIBwMSEhytErF2bnk/qPxHQ6IcewbuF/cbXX 7aYN9MCORvbIXU4lQf4JpPDM1S7pANEAxAQXiQO54JCbU33mMK4VZQyD1Y2DXDjguidf scvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796008878; x=1796613678; h=content-transfer-encoding:mime-version:references:in-reply-to :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=WzwFFkEdMPZvKvgRLOpMEByhGKaQWI/9wMQ8hTBVaiY=; b=Jc0bBKmJP5erTZcj7XgdfW5J+h44irctw4q7510LXFR1Wq1/s83SEmQrSPebYJhjji 8kMBobtWXIdFAJsyfptgcIbBdOjOWC28T+8xsg5sTFPlykGTHlOyQ/8pxiuqxr+Wuchf jlyykrUUglsbHbF/cfUijnZmNF9yqnNMx5F9N5DS7BGRgl6C2NV7d5q2gfX38ICFdNzf l/YKvPNPCyct6ZBCHOJY+T8F/qcSl2fusOOZeakFjLXKe5BbzdFqfcLe9NXoPOa3Wpl3 vyNPapcvo4IropFnhmJOBhfuQFrqpzv/kjCBsRLdWM4RAutSE5XdJakA4RlA2nvMSh+A VZpg== X-Forwarded-Encrypted: i=1; AL+hErHQqrqx4V8GfZUSRaRPhmRwarkacRIAmM8W+Pntv/6i+6SBU/YzD7K7mWAUZKu6ISi+P5ZKWg==@lists.linux.dev X-Gm-Message-State: APuU4Z9dssB1x6v8tlEpimyc29OV6Y5ReW+S5qGfal1Pb9wKw7RjD2gM yuPeUkRsnehBaHBWhG20ciI2gmN60fXiuFH71Lec+6Rp4W0nMJphuP/PKHOaiJI88w4= X-Gm-Gg: AZFdTZekbZQ+N3Q0IgrrOgiVfky72+12W9NXT4U38AIat+eGq/ZM0keI8Z+wHaRQnF9 310XYcUqK/t72zP/1aj3Xgao3va4FvL0sypmzir7sG+ajPEXqGVaAr5jgOm6sSRok89TqHXeR1I 3hleDsBu1JcVoomFUx3KQ9fmi6UBEbkyfn3rMTtRMlXw5TU56i+YgkCMTkNrteS9TrkOfY8fv/1 JMPmCZ/9yMVlg1Wgxgd2ZhaGOnq6J+KfdJelJuKi8a43sflC1hMWUNiIAXOe05hGcbryVx57LTQ b2h2kzJ3gyNmVwzJoHQpNj4/59Rw7R6/OsRXQ8ikVGHPKKqEnn4K+RQ3Zb3JPKJ+zeWFEXdZIRr zzZDOovCiy1Pmdp3fP7xLNuFOQLeWFxEqQf/5UrO1oKhBAE05aPvzQR0hmjRvVQYMnw4itFnOkl nBuXBIRJUYXoWkvmgngPHEKMV86UWVWJS8QplOKlwMp3XU3Rx4igkgvcJstss0FFMcqPcpTo/7U huUGDWw0bkMTokGI3cv3Q5stomIoKoVp88QlygSnsx9oTFVrWTNElwv2nbdzt/StzDmYX8eUmZg bacNep+m/BXTvNOSAF97NctFqg== X-Received: by 2002:a05:693c:8604:b0:386:b3e6:e741 with SMTP id 5a478bee46e88-386b3e6e883mr19027260eec.26.1796008878101; Sun, 29 Nov 2026 19:21:18 -0800 (PST) Received: from omarchy ([98.47.114.6]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-386992b404bsm79385114eec.1.2026.11.29.19.21.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 19:21:17 -0800 (PST) From: Raymond Berger To: dev@deq.rocks Cc: Sven Peter , Marcel Holtmann , Luiz Augusto von Dentz , Janne Grunau , Neal Gompa , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/3] Bluetooth: hci_bcm4377: probe again after a resume through firmware Date: Sun, 29 Nov 2026 19:20:58 -0800 Message-ID: <20261130032058.26628-1-ray.berger@archive.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261127132501.262651-3-dev@deq.rocks> References: <20261127132501.262651-1-dev@deq.rocks> <20261127132501.262651-3-dev@deq.rocks> X-Mailing-List: asahi@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Tested on a MacBookAir9,1 on 7.2.15, with your "wifi: brcmfmac: reload the firmware after a missing D3 ACK" (as carried in linux-t2-patches PR 80 [1]) for Wi-Fi, not your brcmfmac S3 series. Bluetooth came back after S3: 4 of 4 resumes on AC, 8 of 8 on battery (45 s to 15 min) and 3 of 3 with audio streaming, plus the 8 short ones in my 3/3 reply. Most of these runs had 3/3 applied too; 3 of the battery resumes had only 1/3 and 2/3. One other resume failed, but not because of this patch; see below. One observation: the re-probe's function reset lands at nearly the same moment as brcmfmac's firmware reload on the Wi-Fi function. In 59 of 65 logged resumes the two were within 50 ms (mostly with PR 87's re-probe; with this patch, 8 of 8 at 13-27 ms). Once, with PR 87, the Wi-Fi firmware crashed 2 s after the overlapping reset ("Firmware has halted or crashed") and Wi-Fi stayed down until reboot. I now unbind Bluetooth before suspend and bind it again once Wi-Fi is back, from userspace, so the re-probe path isn't used; that has given 0 failures in over 140 resumes. I can't prove the overlap caused the firmware crash, but it may matter for the brcmfmac series too. The failed resume, with all three of your patches, was the only one I started with a bare "rtcwake -m mem" instead of systemctl suspend. While suspending, before entering S3, the root port logged a DPC containment event (status 0x1f01) and both functions "AER: can't recover". On resume brcmfmac's reload read 0xffffffff and failed (-19), then the re-probe failed reading the OTP (-2). The machine hung on the next suspend. I've seen the same DPC/AER pair once before (August, 7.1.8, in-tree drivers), so I don't think the re-probe caused it. [1] https://github.com/t2linux/linux-t2-patches/pull/80 Tested-by: Raymond Berger I used Claude Opus 5.5 to help run these tests and go through the logs.