Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1227337iog; Tue, 14 Jun 2022 01:43:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGhr6K3eaS8M9c36qfPwmUoDBY4013fUP0XaRtc16mIm2D0Mv+J3pEpWogSSFR6J1j6HIb X-Received: by 2002:a17:906:51de:b0:712:23e0:df84 with SMTP id v30-20020a17090651de00b0071223e0df84mr3273337ejk.453.1655196197966; Tue, 14 Jun 2022 01:43:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655196197; cv=none; d=google.com; s=arc-20160816; b=Ga5DD880qX5lS+1FpM6vdPTJVEp4QrtW5KwpTAic8wiv1v1k+ZoMKWWhpvfVNx6WxA qdPhblFltf+Vg5T7rGo5dRYl6JHMjtim9tj4uaF23TmQUuYz3NninulvGkj6LUPEGPA9 3nZb42smWm/DZuKnl6jp85SL3Qh/NsmT/tp4mnyKBnAvmyNYgwE/dk+64+RatY0WvF1t gpOwQEx+EjDfo8PfrWr7sdwJQ2UiXsKSL/K9gx6LNQYv397G2WUkr18x0KpVvT0GTS7T henJA9SB5NOO1Y1/bIPNC6Tt3QvY5dyK/nBaW3lqOVpmBDs4Ln0lq+eoIWg3r4chi37R zSiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:cc:to:from:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=5Jgj71gIRzjnrp1+nr7jAxW63t+bahifEcfs5nKzlXw=; b=PSBajFvvPIk6cHtUXrAoMC9tbpaQ005uR01k19hwS4ciAGqGmN+n1VMtmfIOaX26D0 kX74dHDFG8u8EhozQ335DlMSr4Rd7nD5RjqYImGxmHgpmLE9K4ITeWg86Uqy5al0Lqp8 HUn5MqnvWGlFVBX5ACXc34PN4Ux809lUoI7QIcr+Pd8lgxwVnyr0qU5Lg9Xu6UrI5rTO O9vX7xfrMZgvT1hlqpk/mvwaqXfrxHgCX2bubHmlJq1StsxubBcJlKvi98p3J0Tsz/kZ VJyGry3TrLHBZUw9yGp0K/fKea8sqluBSNPEk0hp/QipBdghM8IaOSsCLUT3YQUKMg3/ Dcfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=D9rHpoBn; 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 l6-20020a056402124600b0042fac24415csi9595321edw.589.2022.06.14.01.42.56; Tue, 14 Jun 2022 01:43:17 -0700 (PDT) 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=D9rHpoBn; 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 S1355051AbiFNImU (ORCPT + 65 others); Tue, 14 Jun 2022 04:42:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354685AbiFNImC (ORCPT ); Tue, 14 Jun 2022 04:42:02 -0400 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6AB142A28 for ; Tue, 14 Jun 2022 01:41:48 -0700 (PDT) Received: by mail-pf1-x433.google.com with SMTP id s37so5304884pfg.11 for ; Tue, 14 Jun 2022 01:41:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=message-id:date:mime-version:user-agent:subject:from:to:cc :references:in-reply-to; bh=5Jgj71gIRzjnrp1+nr7jAxW63t+bahifEcfs5nKzlXw=; b=D9rHpoBn02R5pkI1Z4WR+ft8XQMBFKCrW/P/WIBsBSwajPdILt7aps8ZBfVDON3Rln Io1+I/eINhA785ntOtbSkh2WOUw5bOU8czTa2ZKuvB3IdC8gYmhJqlMduAFIFYg46gp1 bMe3uzv2WqTp3MRYRE9G3qccXyLO7xLYlVPKI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :from:to:cc:references:in-reply-to; bh=5Jgj71gIRzjnrp1+nr7jAxW63t+bahifEcfs5nKzlXw=; b=GyJFgtha9JtAK5+GSPj6PACWy6ROlE0OKCHPGu+VcmcnZHDAxWFW6xYCFfKrEUF8Zc azSCLwhwBkkaVhA321Rl0zjM3YUEmEVfNSytwkVJRIsNLU6vcw3CVVOqEg7nAtbq7Psd oME9myDZWDp9g/G3dloVrVCoPNQgBxhSbd0N20Fyk65Eq6AKqNr+habJ87YJVBg8vbM+ +fDptjV4luY1dTBrieJjqD4fxrullJb8SPc0JDmSHqTV7b/S5aj6CO6vahn8QX71m4Jq 4SgUa9vCTDfwLvq8+BlD72K63J7qoflqiNxklO/1sM5BTkwBliho3XdAtD930rg4DOl+ eGVg== X-Gm-Message-State: AJIora/3wS6uIV7tHBxkeqS2l0acI/1pFU47m7pVHshznbcLfNEd2IOt SbNKHenam7ML1bHyZd0TLbio0vIFevDREEoSO8Gcjg== X-Received: by 2002:a62:8e11:0:b0:51c:445b:5ae6 with SMTP id k17-20020a628e11000000b0051c445b5ae6mr3683248pfe.48.1655196107980; Tue, 14 Jun 2022 01:41:47 -0700 (PDT) Received: from [10.176.68.61] ([192.19.148.250]) by smtp.gmail.com with ESMTPSA id a10-20020a62d40a000000b0051b416c065esm6901619pfh.8.2022.06.14.01.41.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 14 Jun 2022 01:41:46 -0700 (PDT) Message-ID: <2d921af3-9d21-7d86-e6da-bfcd904513e9@broadcom.com> Date: Tue, 14 Jun 2022 10:41:44 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: brcmfmac From: Arend van Spriel To: Sebastian Gottschall Cc: linux-wireless , Hranislav Milenkovic References: In-Reply-To: Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="00000000000012566b05e164608d" X-Spam-Status: No, score=-4.5 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,T_SCC_BODY_TEXT_LINE 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 --00000000000012566b05e164608d Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 6/13/2022 11:19 AM, Arend van Spriel wrote: > On 6/12/2022 5:49 PM, Hranislav Milenkovic wrote: >> Hi Arend, >> I fouded your e-mail here >> https://wireless.wiki.kernel.org/en/users/drivers/brcm80211 >> >> I have netgear R8000 with brcm 43602 wifi chip. I am using ddwrt with >> experimental build. There are 2 versions of build, normal with dhd and >> experimental with brvmfmac driver >> https://dd-wrt.com/support/other-downloads/?path=betas%2F2022%2F06-10-2022-r49139%2Fnetgear-r8000%2F >> >> >> Router crashes sometimes and I emailed ddwrt devs with crashlog... but >> they told me >> >> "there is nothing to fix. its a firmware error. broadcom does not >> provide support for these firmwares . I cannot fix the firmware error >> for that chipset. its a binary. we can only seek for a newer firmware >> binary somewhere in the wild..." > > Looked at the log and ddwrt devs are mistaken. In the log it shows: > >  Jun 12 13:26:00 109.198.5.214 logger : calling done start_checkhostapd >  Jun 12 13:26:07 109.198.5.214 kernel [ 4743.815344] ieee80211 phy2: > brcmf_fil_cmd_data: Firmware error:  (-23) cmd 262 >  Jun 12 13:27:04 109.198.5.214 kernel [ 4800.660849] Unable to handle > kernel NULL pointer dereference at virtual address 00000058 > > So there is a command failing in firmware with error -23, but this is > harmless. The NULL pointer dereference is a driver crash. Can you build > the kernel with CONFIG_DEBUG_INFO and provide me with the brcmfmac > kernel module, ie. brcmfmac.ko? Hi Sebastian, I heared from Hranislav that you have a modified version of brcmfmac so it would not help me to get a .ko with debug info from you. So decided to ask you directly. I doubt you modified much in flowring.c. Not sure about fweh.c, but these are the two source files I am interested in. Also I am not scared to look at the ARM assembly so anything you can throw at me would work. Regards, Arend --00000000000012566b05e164608d 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 MyBQZXJzb25hbFNpZ24gMiBDQSAyMDIwMIIBIjANBgkqhkiG9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