From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 A8FD1606A327 for ; Mon, 30 Nov 2026 03:21:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=WOX73KnO; dkim=pass (2048-bit key) header.d=archive.org header.i=@archive.org header.a=rsa-sha256 header.s=google header.b=Ms7W3h9B DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=WzwFFkEdMPZvKvgRLOpMEByhGKaQWI/9wMQ8hTBVaiY=; b=WOX73KnOWJHEid 6zE52mgRmd2yLpsrNdSNtjUY3tusrCNrCSEsAwYZvTVwwvVZ12qwxS2HxURibN0EkjB/Hfp+gCA/1 JGuRkyXjeYAigVtcAnIZZccwk+Hrxe9260/dTIgLVwNx0A4LT4UKImz02Wo1TCESgo9JH6r8sfxo4 nqDW5G1zl5/AbxUyZA6YNtE2NpqUsC11DLHAFsqk2EkA45tYtfzg7jTtBE3FnV7j/Qy+PyszptfZY fTMaxAt7Ct7Xsh/HP58fO5tKFl+HTsWWhymzGvv0lQuQYajQwKMS9tivT01vIedaWdT6Kr+7EOXa6 0Qdp511CXkKlTuUaxrYw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXrxC-0000000355D-0vxy; Mon, 30 Nov 2026 03:21:23 +0000 Received: from mail-dy1-x132b.google.com ([2607:f8b0:4864:20::132b]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXrx9-00000003546-0Cou for linux-arm-kernel@lists.infradead.org; Mon, 30 Nov 2026 03:21:20 +0000 Received: by mail-dy1-x132b.google.com with SMTP id 5a478bee46e88-33bf40b0c8bso2569942eec.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.infradead.org; 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=Ms7W3h9BTkpxjrFhpvOOhT6HjQcttOp0QTmf/w2B+SZVZ7TFFAz+kkE7LPxuI3JXIK QgEQnpz29yaTLJbRxMvaGnzebZjPoBFk/3tLCmMJgqDfZopRM0zA13sv7MSxdYT44+am HtLmtA7xX6SEoyOgCsvY0YhlyLk/LaFkJ4ciBUlmTGZW9FfSa9IyvMcxQT77QIKXhqxK SAbVzbaLCpkXuZVltG4TJD7va6EGh0Ckup6CvC5KI+XaVtJ6accplg4ajBqo4NAtcwV2 sLmUvQ8MDGNwi/KO1GPICiNXezRzXxgSIINuiEdu5vIloglh2ugRewjfZKB30WfsHkqd GDtg== 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/9wMQ8hTB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Ead03nIMovhE7gZvQnjg9qHTWhTh3uXGaBqzHLSHOGyCfxvu6WFobDC2LPKivB1N+0VQhluL gyDbauaPOKkuNrnr3tAFPsgj4rwkcZgokYLE0uiqt3+VsoqznzIEL1rD6sWU3LDGIHdi+P6XiqF Fx9sK5XGSgdOwASdHazprZT8cw== 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-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261129_192119_092722_7577FD7B X-CRM114-Status: GOOD ( 11.61 ) X-Spam-Score: -2.1 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-18.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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.