Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9ECE8C6FD1D for ; Wed, 15 Mar 2023 09:12:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231808AbjCOJMs (ORCPT ); Wed, 15 Mar 2023 05:12:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231368AbjCOJMR (ORCPT ); Wed, 15 Mar 2023 05:12:17 -0400 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1395427D72 for ; Wed, 15 Mar 2023 02:12:15 -0700 (PDT) Received: by mail-ed1-x531.google.com with SMTP id r11so21036109edd.5 for ; Wed, 15 Mar 2023 02:12:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1678871533; h=in-reply-to:from:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=1p9BKQFT3p0Gc4x3pp/GnkSwuxWFgXmimeRkfxJHlaE=; b=GbMoDdOr1SFxKkr1AnKd0G523uPUttrQ1Q/OUgeT9aklbNmzCHFvFMHYRnncnUy5r7 7MF0EfWBtDPlktG2e7bvicqcPHofiyMwJ7GNmJjJeGIdUvfI6BXEnqhTH81TIesm37zm JT/w3G9Xz1SECgpxZDM2mFYZ4+uaFeoDHqusM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678871533; h=in-reply-to:from:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=1p9BKQFT3p0Gc4x3pp/GnkSwuxWFgXmimeRkfxJHlaE=; b=rNHUe9gTYgG6plmynB3fRfN9/NySm7Yk9b00EUFUVMU3MeC2ADpMy3bPf+WTGO4rcI lTsJJzK+ShFbWUgEnIESfNM5UzKRcsTybZz1Lz/3w1liwxGc2rw4d+/DXpQG+0N+6lBc XFfswizKnko7UwNL1OGLa2tTW7sNJtG3748ialeporQibuNhV1/pGXxmcnp0JPb9XCkL yk5MKEcVbYv9ICVfEwNVznpTjFyVtAouh9bTX7aMxgXZyWKaEEMH74F4tslwDnKQGAj6 UKlZUgIZla0Xc0byGYk6GGocGYge0WYG7fj2/1iQHhrTaaUJcRWIKbunEfVg8jxP3LXn 5kcQ== X-Gm-Message-State: AO0yUKWFK43Xdc+z1OS50+fS/TX5/KupjfsQms9oH05WTSvfQw6gh0qN HGUQtcmdDXtWAJpWdM3STibWzg== X-Google-Smtp-Source: AK7set9vmVUTPa3wUxhxzxh+XCk7SVFgXTF/g3hGktkei2CWtssA4CpEhlDUM1SfxbXhDYWM9qETAA== X-Received: by 2002:a17:906:4ac2:b0:92b:7e6a:bca1 with SMTP id u2-20020a1709064ac200b0092b7e6abca1mr6374718ejt.20.1678871533496; Wed, 15 Mar 2023 02:12:13 -0700 (PDT) Received: from [192.168.178.136] (f215227.upc-f.chello.nl. [80.56.215.227]) by smtp.gmail.com with ESMTPSA id k10-20020a170906680a00b008d044ede804sm2193368ejr.163.2023.03.15.02.12.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 15 Mar 2023 02:12:13 -0700 (PDT) Message-ID: <89262772-7358-77e8-8913-c459819d544a@broadcom.com> Date: Wed, 15 Mar 2023 10:12:12 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.7.2 Subject: Re: wifi breakage due to commit "wifi: brcmfmac: add support for vendor-specific firmware api" To: Michael Stapelberg Cc: Kalle Valo , Franky Lin , Pieter-Paul Giesberts , Hante Meuleman , linux-wireless@vger.kernel.org References: <186e23b5668.279b.9b12b7fc0a3841636cfb5e919b41b954@broadcom.com> <186e26dc0a8.279b.9b12b7fc0a3841636cfb5e919b41b954@broadcom.com> <186e4673718.279b.9b12b7fc0a3841636cfb5e919b41b954@broadcom.com> From: Arend van Spriel In-Reply-To: Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="00000000000065aaa505f6ecbdc5" Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org --00000000000065aaa505f6ecbdc5 Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 3/15/2023 9:53 AM, Michael Stapelberg wrote: > Hey Arend > > On Wed, 15 Mar 2023 at 09:33, Arend Van Spriel > wrote: >> >> On March 15, 2023 8:58:43 AM Michael Stapelberg >> wrote: >> >>> Hey Arend >>> >>> Thanks for taking a look. >>> >>> The brcmfmac-wcc module is present on my installation, but I’m not >>> currently loading it. >>> (I only load brcmutil, then brcmfmac.) >>> >>> But, even if I load it, the wlan0 interface still doesn’t show up. >>> >>> In the modules.dep, I see that brcmfmac-wcc should be loaded after >>> brcmutil and brcmfmac. >>> Is that accurate? >> >> Yes. Actually brcmfmac loads brcmfmac-wcc by itself. > > Hmm, when I run lsmod after booting, I don’t see it: > > /tmp/breakglass1452371198 # lsmod > hci_uart 61440 0 - Live 0xffffba314a2cd000 > btbcm 24576 1 hci_uart, Live 0xffffba314a2c6000 > bluetooth 786432 3 hci_uart,btbcm, Live 0xffffba314a205000 > brcmfmac 258048 0 - Live 0xffffba314a1c5000 > brcmutil 20480 1 brcmfmac, Live 0xffffba314a1bf000 > ecdh_generic 16384 1 bluetooth, Live 0xffffba314a1ba000 > ecc 36864 1 ecdh_generic, Live 0xffffba314a1b0000 > /tmp/breakglass1452371198 # That is expected as the log shows: >>>>>>> + brcmfmac: brcmf_fwvid_request_module: mod=wcc: failed -2 >>>>>>> + ieee80211 phy0: brcmf_attach: brcmf_fwvid_attach failed So in brcmf_fwvid_request_module it tries to load brcmfmac-wcc, but for some reason it fails. > How does the “load by itself” mechanism work? > Maybe I’m missing a userspace component for it. I think it works pretty similar to firmware loading. These days firmware loading does not rely on a user-space helper and I assumed the same is true for module loading. Will look into it. Regards, Arend > Thanks > >> >> >>> My installation is somewhat unusual in that I use a custom userland >>> (see https://gokrazy.org/). >> >> Bit tricky choice of name :-p I will check it out. >> >> Regards, >> Arend >> >>> >>> Thanks >>> Best regards >>> Michael >>> >>> >>> On Wed, 15 Mar 2023 at 00:21, Arend Van Spriel >>> wrote: >>>> >>>> On March 14, 2023 11:49:05 PM Michael Stapelberg >>>> wrote: >>>> >>>>> Of course, find it attached. Thanks. >>>> >>>> Strange. Could it be there is some build config needed to install the >>>> additional kernel modules (brcmfmac-wcc.ko, etc.) on RPi image? >>>> >>>> Regards, >>>> Arend >>>> >>>>> >>>>> On Tue, 14 Mar 2023 at 23:26, Arend Van Spriel >>>>> wrote: >>>>>> >>>>>> On March 14, 2023 8:39:05 PM Michael Stapelberg >>>>>> wrote: >>>>>> >>>>>>> Hey Arend >>>>>>> >>>>>>> I recently bisected a user-reported WiFi breakage on the Raspberry Pi >>>>>>> 3B+ to your commit >>>>>>> https://github.com/torvalds/linux/commit/d6a5c562214f26e442c8ec3ff1e28e16675d1bcf >>>>>>> https://lore.kernel.org/r/20221129135446.151065-4-arend.vanspriel@broadcom.com >>>>>>> >>>>>>> On our end, the issue was reported here: >>>>>>> https://github.com/gokrazy/wifi/issues/3 >>>>>>> >>>>>>> As of Linux 6.2.6, this seems to still be unfixed, so I wanted to >>>>>>> check in and see if you could take a look please? >>>>>> >>>>>> I have a suspicion, but can you provide the kernel .config file so I can >>>>>> see if I am on the right track. >>>>>> >>>>>>> + brcmfmac: brcmf_fwvid_request_module: mod=wcc: failed -2 >>>>>>> + ieee80211 phy0: brcmf_attach: brcmf_fwvid_attach failed >>>>>>> + brcmfmac: brcmf_sdio_firmware_callback: brcmf_attach failed >>>>>> >>>>>> Regards, >>>>>> Arend >> >> >> --00000000000065aaa505f6ecbdc5 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIQdwYJKoZIhvcNAQcCoIIQaDCCEGQCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg gg3OMIIFDTCCA/WgAwIBAgIQeEqpED+lv77edQixNJMdADANBgkqhkiG9w0BAQsFADBMMSAwHgYD VQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UE AxMKR2xvYmFsU2lnbjAeFw0yMDA5MTYwMDAwMDBaFw0yODA5MTYwMDAwMDBaMFsxCzAJBgNVBAYT AkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMTEwLwYDVQQDEyhHbG9iYWxTaWduIEdDQyBS MyBQZXJzb25hbFNpZ24gMiBDQSAyMDIwMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA vbCmXCcsbZ/a0fRIQMBxp4gJnnyeneFYpEtNydrZZ+GeKSMdHiDgXD1UnRSIudKo+moQ6YlCOu4t rVWO/EiXfYnK7zeop26ry1RpKtogB7/O115zultAz64ydQYLe+a1e/czkALg3sgTcOOcFZTXk38e aqsXsipoX1vsNurqPtnC27TWsA7pk4uKXscFjkeUE8JZu9BDKaswZygxBOPBQBwrA5+20Wxlk6k1 e6EKaaNaNZUy30q3ArEf30ZDpXyfCtiXnupjSK8WU2cK4qsEtj09JS4+mhi0CTCrCnXAzum3tgcH cHRg0prcSzzEUDQWoFxyuqwiwhHu3sPQNmFOMwIDAQABo4IB2jCCAdYwDgYDVR0PAQH/BAQDAgGG MGAGA1UdJQRZMFcGCCsGAQUFBwMCBggrBgEFBQcDBAYKKwYBBAGCNxQCAgYKKwYBBAGCNwoDBAYJ KwYBBAGCNxU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