From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.176 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796008879; b=GgcHSMf56KON8a0qtANb/Gc4j+y6enM70ph8oXJBF2YWCkmkrbkJ565Q7aMev70+rijA DYx/+3w835yPxccq4nYrHIW8iG2CbDqpFVvOtIjceRDjFW0n0e6SMmIOP5OXD4phs3VDM Os8gkHQDaL67HhaVMd+hUsuxBWj9V4adimQjSJ8c+/KAG7fAM7VFy5xUkw77yiFCpilyw AVIyKrfO3T2NDTDRkWKcgnB2LKTKyB+6W7QqOVKAazBK943VaBpUDA1ES2hhjC2Sv6VYD XmIsWEz2PE3u0DWs9MbUXtUiDBABjNbkIMjERr0IO9kOxrV1uLw72PSKJpXWB1ZHxTw== 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=fThHoobT8piJYSht9x9IN0hTfCu7/OeZn88cwNPeMi98u9/bkPuUXxoNKhUjU8BAJG1w HtnzxitORxMBmDe8bpIRB+uFJvsqqI9HOX6aontesNVOtgMaRAlABc7/w/H4C6QKgAUBQ QZnNkrA9TLZtnXTVZ89KBDXJHIXver8AbUQ6iOoTlKj5onXEHwMbZdH+1JtWiHFCVnX2N +QmwXVwyp0/I8Z+Nce+yaWYetKaYcs3RMkwgp4y3nkNHrvelzVtoto4TKxVy9seOUpFwu sbn0MM3wGnpfMmN9+ZFh1JtZXfXX9Eo20RonAd6F9DwWojtzOgE3pcKPE56lRAZMFnQ== 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="ZC6Mk/3y"; arc=none smtp.remote-ip=74.125.82.176 Received: from mail-dy1-f176.google.com (mail-dy1-f176.google.com [74.125.82.176]) (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 F3658606A31C for ; Mon, 30 Nov 2026 03:21:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org F3658606A31C 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=ZC6Mk/3y Received: by mail-dy1-f176.google.com with SMTP id 5a478bee46e88-386bd881d39so2363008eec.1 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=vger.kernel.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=ZC6Mk/3ymdASUcktfepLKhFa8sProkR6Cezot/3ewToygIaFaAWxU+kYDo67jJOlHK pESTLzPVkhjfpbtqu8swgCLmHgcgPddT9eUbtvM0GzK+n0a88B8y8oNjlOcK68VI7bk0 oG+L/95XXGrl1ecOa1wE0zZdOwuVOsNfEpYhJ1UcC9fiMs5yUHIt+6hMx6ksy/e+kPHD aFOnOuEwaazEiHNBDtPCXVi6WaFKGWo1OWWh0iKzG4bVamIPo3jrgkMxxLwlawjnzZCJ E5SQm7x7jHpQnfwO0d9ms/I6TITjNuHKZhLOfuGXJ+UtfUsqHOijfhpBCtkX0yQvlPAA 0pfQ== 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=Ee/eVpZoMn5finIBoLfvm/wwpZ+M5DPu7EwfT1if5aEJHofkCIiyZvDTakPd+3paNo zVD1lEhu4EC5xys6lutF0/LQoCbpEQq+Pi7G+fpi1lK+jYKJmGRhdxM4vT7wLE7JH6b2 jS1L8jXTbWIo6HS5C/zw+ts6i1y8EWpG24RxgZ5MvTnl11L502JpJm9NEivaHzdsRlXx S6j1bapHEARyrt+jrfYxGGkH1ApAHJ9XvkI5/S5VLuI0d8NnRTbvvZx31oc4Df/rAjj5 tzR0UctWnK/q9p6ThaifOHWXtkoQERk63PBUTI+Oqmf9umgOQxpSOEYY5xYUM0zkSegK /g5Q== X-Forwarded-Encrypted: i=1; AL+hErHXWIaqdpUA1FnWXjG2YogCIgjx5sstnDPanDfvph7/Hc5um50bYgqV8FgghKjZPc24CZHK3+Hd2JwsZV4=@vger.kernel.org X-Gm-Message-State: APuU4Z+KYl3jaK5uXvFkLXNttmwexkwGMk19UK9lGTt2JOYz6VCZYrkz WuJF4j4QfWHhXQSiR5obbmD3H2hV7jFLe9JXnwFevqPCu17QwcO+Oq2GF8yBSbMsMpA= X-Gm-Gg: AZFdTZd8PJB/ulAQ9PxL1YXWz5Cr3EtrAVOu/wHdFTdt+2qHLdFlhOVwa2JaEEjw7rw z9DnFdrjjqDmR6dxf+CrARBlBSvJOp4fBfyANNfQSkU6n6lDZf5FtN8CSdOArUVi96YWCwn4w26 5CR2wnnAaniGgz9LeFh+LoEqssyxe5G0EAzV9KhiE7AQON+S6zH7wCm9ndmT7+o87Lbu1akT1hg q2WcMtGSaRziDV2eJugNFfAv/vCyjZpaa25HgGSr3gzO5c6WnkQKa8bKb3O72hRXDiCeRywIDo4 Lg6mXhyszlkkWHfbWsq01N+b2qE+L5jhSiGe7pAGb4k+BsGK/wvcGdWlzFvnubyg07o6z12+2Pm g3sZj+Np2NfoX3PQosI1ZYcHTyQLE5mpguSbbUtePRi6xIudlBK1RdnSYYWXbeV9PJVxFM/1J6p cNVcI/uC2uVSy86KC6MsPdJILGCHpcuE5aAO4qOCfPFeI4jqC+WE9qZrI99mSCEZlkyMMNlrPaU r766gdsOwcHNA1iRleFgObGOQGuZ5rce6RkJloCUro7tSrCH8rFdT7HlLp/7Foy0IZW65UitJBg ENGd3Oli6I+4dg7c5RLtbbX/zA== 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: linux-kernel@vger.kernel.org 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.