Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp5902169rwl; Mon, 9 Jan 2023 01:09:06 -0800 (PST) X-Google-Smtp-Source: AMrXdXvHR8RTRBPfKPcqzNUaO97o0K1tuPvQLH/9WpxVW5DdDP2qvkbKEO6ExrO3Cthu10a3UT4K X-Received: by 2002:a17:906:3ad7:b0:7c1:6e53:dd02 with SMTP id z23-20020a1709063ad700b007c16e53dd02mr60403341ejd.64.1673255345828; Mon, 09 Jan 2023 01:09:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673255345; cv=none; d=google.com; s=arc-20160816; b=V4wT54BoENjG5QEWISr0LgvMy8O+Patwzw0tgR1DMOCyiTO9G9VVdTiqNHGKs7m4Mf vnttnQJ87Jf3CXkdXjcONcM6CVIm0HyvZjIka8R8D9mCS6o46T12migxw3GgFKm8nZBd myGdQV0EePVcIvQfBbueJ+NJiNmN0tTIV0Ig58IrFkV3KvpGp6NvAwQb2+r0jJePlaSj 1GglCHJ+fiR0VuUgtVlP131SDA0usZUlemmHgyE2Br5v0uVHj/aj/ozDiMnz/RYK4dsB QGRArdPc11BM/fwey7s9eYB/lUIK6ZMW2EJkE4DH1j40M66AquhsZjce0iURVX9DZkpY Ev3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=Y+nDtOrLAo5FbpPFU4pZaCY314ByPTc7RfFDzvIbxWY=; b=DGMEfOr8OKy7nP8Xl7YI77+LFehNKMFKn41Wj/cPxaUJT9frVewJMFCnBHRVzZ3nsU 2KQI3qY7q/WrkVineXRa/kCWq6JLX5/QPIgbdgRzWKdoqTCgtGWcUL/kcF2torQZlOBC st/hCCcdHeUNhJu2Bi83YVSMs6EHCHOE339+mKEG1AVBwiL12bCX8z9uvwRAhZ6ENuDj ewvJaMMDK9wWCoE+49vgRQrI/eNURzMGIaTEjXjJlKuKmkyGPe1f9+XK4esnzdioTOyL HWwVQCGAql6TrdiLKUsTtBjx46hEijx+V9B2D3sUHgQfypP/7svCwVO/Y5uvAWTTse3m l1IA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=Q4RtkCtV; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hr24-20020a1709073f9800b00781c1645926si9707667ejc.524.2023.01.09.01.08.45; Mon, 09 Jan 2023 01:09:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=Q4RtkCtV; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236513AbjAIJBS (ORCPT + 65 others); Mon, 9 Jan 2023 04:01:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236902AbjAIJAx (ORCPT ); Mon, 9 Jan 2023 04:00:53 -0500 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFE91183B1 for ; Mon, 9 Jan 2023 00:52:35 -0800 (PST) Received: by mail-wr1-x429.google.com with SMTP id bn26so7420597wrb.0 for ; Mon, 09 Jan 2023 00:52:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; 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=Y+nDtOrLAo5FbpPFU4pZaCY314ByPTc7RfFDzvIbxWY=; b=Q4RtkCtVdJ0/KbeYvpM5t7TLam/gOgYts1LxlqPcyco5rlKDK8sqbcLKbRgsskeX6s ixcx3jYoW43Ak26IqjSYw4WinCFWtpWCC+WzI9dxn96m1jWAaqGDPbJHZs5xJQ3sDFBc vGNSEDxT4xnIfiA1+k6cxZjy6aC528puo9bNA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=Y+nDtOrLAo5FbpPFU4pZaCY314ByPTc7RfFDzvIbxWY=; b=kZ9mEnevnaBOOjMS04aLrXHjCpRsHztcBaQkGzqdIEMZopzSj7H3fzBC2Q1VEBS1z+ MVX/gTOE0jaLxI6SIqK/eEofd2qeVtwuWIXDsPOVoO/po4+LHMJheY26KT2mYqD0Omsw ERYdh6S1DQf4514LsQ+0wojazDZ7zglhD97wDIZ78ZiQ4P9zWS0P5ujQRBpRborYk+Uq cxSXYSYzqM19CjSCKM/l0Ml8lzyUvWZclzeCMAi1Xt7CPFehGTOz47/B3ylZY0Se35DJ Ngyj88UCuIkWvue5Sz/F8tnL1vL9wnI4RyddOFqmzpRVNiRFQxdwvt65ArGch3Jbx99y Wrgg== X-Gm-Message-State: AFqh2kpYMZgybeym4EVaZaQ6NXz04hFUcBnl1HryO4g6Dg4jwlwuOuhE XobzU2211p8FP+FbjEznKzllOQ== X-Received: by 2002:adf:f702:0:b0:2bb:dacb:da3a with SMTP id r2-20020adff702000000b002bbdacbda3amr4311860wrp.38.1673254354328; Mon, 09 Jan 2023 00:52:34 -0800 (PST) Received: from [10.230.42.27] ([192.19.152.250]) by smtp.gmail.com with ESMTPSA id e7-20020a056000120700b00241dd5de644sm7992686wrx.97.2023.01.09.00.52.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 09 Jan 2023 00:52:33 -0800 (PST) Message-ID: <3c470a48-e971-9991-e096-3adfe1cc4468@broadcom.com> Date: Mon, 9 Jan 2023 09:52:32 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH 2/3] brcmfmac: return error when getting invalid max_flowrings from dongle To: chainofflowers , ian.lin@infineon.com Cc: Double.Lo@infineon.com, brcm80211-dev-list@broadcom.com, brcm80211-dev-list@cypress.com, franky.lin@broadcom.com, hante.meuleman@broadcom.com, kvalo@kernel.org, linux-wireless@vger.kernel.org References: <4781984.GXAFRqVoOG@luna> From: Arend van Spriel In-Reply-To: <4781984.GXAFRqVoOG@luna> Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="0000000000006cd21105f1d0e348" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org --0000000000006cd21105f1d0e348 Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 1/8/2023 9:53 PM, chainofflowers wrote: > Hi! This patch: > https://lore.kernel.org/all/20220929031001.9962-3-ian.lin@infineon.com/ > > causes my Asus PCE-AC88 (1043:86fb) to stop working, because when modprobe > loads brcmfmac it throws this error: > --- > [ 2740.647600] brcmfmac 0000:0d:00.0: brcmf_pcie_init_ringbuffers: invalid > max_flowrings(264). > --- > > This is also being reported on reddit: > https://www.reddit.com/r/archlinux/comments/104pqv9/ > no_wifi_since_kernel_update_yesterday/ > > (also, see https://forum.manjaro.org/t/brcmfmac-fails-to-load/131128) > > I think that the check on value > 256 is used as a kind of red herring to > indirectly spot an inconsistent properties report from the PCI bus (?) about > the network card. The firmware loaded into the wifi device requests the host for 264 flowrings. This was apparently not expected to be a valid value, but your device shows it is. > Before that patch, the driver was correctly working for me and I could not > observe any kernel panic. Maybe, at least in my case, the wrong value was > still reported but could be safely ignored, as at a later point in time, when > the card is initialised, everything worked fine. > > I am now stuck at kernel 6.1.1, if I upgrade I cannot use the card. > Is there anything I can do to circumvent this issue? May I help somehow with > debugging & testing? Please let me know... 6.2 is not formally released so I suppose you are an early adopter and aware of the risk that implies ;-) There is no real debugging needed. I will figure out what a sensible value would be and come up with a patch. If you can test that that would be great. Will let you know. Regards, Arend --0000000000006cd21105f1d0e348 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 MyBQZXJzb25hbFNpZ24gMiBDQSAyMDIwMIIBI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