Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8790438rwb; Thu, 24 Nov 2022 04:27:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf48RyasFc4JD7BVTiROkXJ8fa8gD6+THTICpXZIDRErpJLvUSLJIY8fZHgpYiJ+mot4DtnW X-Received: by 2002:a17:90b:2d8b:b0:212:fe4a:c378 with SMTP id sj11-20020a17090b2d8b00b00212fe4ac378mr35959422pjb.82.1669292860882; Thu, 24 Nov 2022 04:27:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669292860; cv=none; d=google.com; s=arc-20160816; b=nu+8AOchX5pgFsW7PG40MfBET+5wBK5MqNkg3xF3moyiPoy+xM/CItTYJ7J6SFm+dM sdbBeD0dBu60BsAcgXAzR7hhXjxiwkqjGQrH/8yDhu2Dtq5Im6X4fqXxJPktrpDYxPkt 6JMpOV4QNKIyvqokUcn02ZTYafMIdvPuGby/1UIYwMRwBEz6IcekWGCAJNsk9X3Hq0B/ YkKw5qkINMbkmWG8XjlvicUlAoGfyacJ8r92+OY5juHwV0BxXy4HuVqA8YNZQ0joyYkN wRU7nUmU7ngZBGK9U8ESfHNTeprtbnPdIaPEKoWsC1DTt6nIs29RpRrUuYfIIHmYQKtO FvKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-filter; bh=KVMQB8L8E8zVbvXs0wCRy86hUTh+0mILCfDqfVGkWWk=; b=YzVJpYoDAcHiYPOEzBXYjWlUxxIpPECAzH/MX61xGaTpADm6H7XeUxdM/P6+f7j46k sIGP47rrBw/zkIKwMT9pUolbHYFVYMZcZb8Hyz9qByaZtyur2cPqf5Lm9mo3LkXiOz+s e+8Ax49ZTc3O2pJzofyI5JQfNYNZWjk8v7ehLGlIoe4BkanuTRbIm9RrJbUQw/0gLN3B /I+2gcVPMnz9EKixuVAXLT/ggZeaQyY+do0B/hJobWkbNBSye4wPsP0Y2zL9WRPIxhDL zhILvVLeFaafxHHELp9vydQbY6jtBS8tniV/1e6ql9y58zYZFUFO90yJBxC9H0DBXKwl Icjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@warmcat.com header.s=default header.b=Fq5F4JBg; 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=NONE sp=NONE dis=NONE) header.from=warmcat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t20-20020a635f14000000b00477650a2cdbsi1350491pgb.18.2022.11.24.04.27.32; Thu, 24 Nov 2022 04:27:40 -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=@warmcat.com header.s=default header.b=Fq5F4JBg; 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=NONE sp=NONE dis=NONE) header.from=warmcat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229512AbiKXM0u (ORCPT + 67 others); Thu, 24 Nov 2022 07:26:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229479AbiKXM0t (ORCPT ); Thu, 24 Nov 2022 07:26:49 -0500 Received: from mog.warmcat.com (mog.warmcat.com [178.170.10.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D2450DA4C9 for ; Thu, 24 Nov 2022 04:26:48 -0800 (PST) Received: from mx.warmcat.com (host31-53-12-215.range31-53.btcentralplus.com [31.53.12.215]) by mog.warmcat.com (Postfix) with ESMTPSA id 0822C135628; Thu, 24 Nov 2022 12:26:48 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 mog.warmcat.com 0822C135628 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=warmcat.com; s=default; t=1669292808; bh=KVMQB8L8E8zVbvXs0wCRy86hUTh+0mILCfDqfVGkWWk=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Fq5F4JBgAsZsJk2YeJI5AQO80MnHT68+lvMvmC1Zu0S3MoqbJeScjS8JEWV1eDQrP oz2GskYBaCLJX0+7jDSiFw698Iushj4PIBrAwZIQNAoAXyc3sj77Yk40Ocwm4zgALo mXwMeSavYKstg2wu/c2V3USIf3zsgbCS3Qp8SLMs= Received: from [192.168.4.115] (unknown [192.168.4.115]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (Client did not present a certificate) by mx.warmcat.com (Postfix) with ESMTPSA id 78AFA2A00EB; Thu, 24 Nov 2022 12:26:47 +0000 (GMT) Message-ID: Date: Thu, 24 Nov 2022 12:26:45 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: AP6275 / bcm43752 pcie on mainline brcmf Content-Language: en-US To: Arend van Spriel , Shengyu Qu Cc: franky.lin@broadcom.com, linux-wireless@vger.kernel.org References: <08416710-655a-c87c-a599-3fe2563f7de4@warmcat.com> <18470a1e910.279b.9b12b7fc0a3841636cfb5e919b41b954@broadcom.com> <184720fc920.279b.9b12b7fc0a3841636cfb5e919b41b954@broadcom.com> <625f1d5d-e137-7ad7-96b9-92035e87df8b@broadcom.com> <638afa8e-a393-410c-3182-0d8e9b6da17d@warmcat.com> <1848793db88.279b.9b12b7fc0a3841636cfb5e919b41b954@broadcom.com> <3a562a50-0cef-4879-3691-3258596f5213@warmcat.com> <1cbb3bf5-fd70-e9db-2405-640178862857@broadcom.com> <6c3f592e-3e20-edef-ce7a-cde8988eef2d@warmcat.com> <9fe8caec-453a-28c1-04d3-5966200b8db1@broadcom.com> From: Andy Green In-Reply-To: <9fe8caec-453a-28c1-04d3-5966200b8db1@broadcom.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS 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 On 11/24/22 12:22, Arend van Spriel wrote: > On 11/24/2022 1:14 PM, Andy Green wrote: >> >> >> On 11/24/22 09:42, Arend van Spriel wrote: >>> On 11/18/2022 6:41 AM, Andy Green wrote: >>>> >>>> >>>> On 11/17/22 21:52, Arend Van Spriel wrote: >>>> >>>>> I see. So could you load bcmdhd and provide log. Preferably with >>>>> higher debug level. It also has a module parameter for it. I think >>>>> it is called dhd_msg_level and please set it to 0x817. >>>> >>>> It's here: >>>> >>>> https://warmcat.com/ap6275p-dhd-log1.txt >>> >>> Hi Andy, >>> >>> Thanks for the log. Together with the dhd driver sources I could make >>> some sense of it. Perhaps you can try the following hack and see if >>> we make it over the first hurdle. >> >> OH!  I found that the line below should be count, not sizeof(count). > > Good job! I was testing you obviously. You passed. Nah, I just feel stupid. No it's great, the point is it directly identified the root cause without access to the platform, it's not so easy. >> ... any way, good job! > > Thanks. Will clean it up and formally submit it. I also had a quick look > at the SDIO variant, but not seeing anything obvious there in terms of > firmware loading. I only have the pcie module not the SDIO one. For the scan situation, he understands what is being asked via connmanctl "enable wifi", but he feels something wrong connmanctl> enable wifi connmanctl> Enabled wifi connmanctl> [ 272.174946] ieee80211 phy0: brcmf_run_escan: error (-52) [ 272.174956] ieee80211 phy0: brcmf_cfg80211_scan: scan error (-52) connmanctl> [ 275.133157] ieee80211 phy0: brcmf_run_escan: error (-52) [ 275.133166] ieee80211 phy0: brcmf_cfg80211_scan: scan error (-52) connmanctl> [ 284.138852] ieee80211 phy0: brcmf_run_escan: error (-52) [ 284.138856] ieee80211 phy0: brcmf_cfg80211_scan: scan error (-52) 52 is EBADE, I recall you mentioned that the scan api had been changed recently... is this possibly related to that? Grepping around for EBADE near the function it mentions, it tries to take evasive action if it sees one in some places already. -Andy