Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp799806iog; Mon, 13 Jun 2022 13:16:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXgBS0t1+jdE1wXxRuSq0x39L+mYWmogWk13uw4zWbbjGvzvfdGBPF653Wp8PrJqVio0yR X-Received: by 2002:a05:6402:1449:b0:42d:d250:e504 with SMTP id d9-20020a056402144900b0042dd250e504mr1680639edx.213.1655151384692; Mon, 13 Jun 2022 13:16:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655151384; cv=none; d=google.com; s=arc-20160816; b=xKIsoicC+pxEQi47ErrdU8D8VBhGFelN7gGUZVI2x0hEhCcsTZWNNIaAd83JnItYC2 u9BGLhBqmbFVAJ1AOJlbU3klnIZCltauZk//rxvS5NJzA57n63RpnR/roM/h+2Yu/eKm bxQSHZXON/nn360c9xJvcEkHYWfC6R8yDxcg9IuO5+BM5wHg7Po45vj+C8gIZuKxjIBO yqrcBK4mN4wt8WIXFFfLjyJHyXpyj3Ts6hszlzZmDgAjzmTJiTi7HB45WisNfHQSp79F vQMDBvoLFXJUVEt5kZITLWtNGIYNQ13AoCtbPpG0WnWItlIvkhHuRUZ7Qsc7qRVGRbLK itMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :feedback-id:references:in-reply-to:message-id:subject:reply-to:cc :from:to:dkim-signature:date; bh=k/A5E+7ARJ/sHkIngRT1u7vG7uuzBLZuLrkFI/eXrY4=; b=PBMZljBZ9YA/wIGkE/DChHkTkz6J3ULUszP2nx974+SyRwFxB+M236lzIaTpJObjB1 SjyDrIVKaAIPecCh32NSaOY5xI2SWhADISvafBC3L2bpUCGuWCfAZegaUG5mEqbTnDKO 0bgUvRoSNxI8THEreLZnZgsBask7Eo0Z4d3gDEDHa5FmBypZMqod1RTf6THTYBTiqBNd q/ZfEyy6xvsqaqfy8xuclsmBHeBcvIw+kgThWHjLx1XN1RqYgjeTN5J9YRxKLKMMBP2V FlNAXgrZEiBQqPKTEHGv29kxR5REWkxVJtcuFNX9RCOGMv1Iglews2YBnhUeYSWD7400 MEqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dannyvanheumen.nl header.s=protonmail2 header.b=Yq77ZG0M; 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=dannyvanheumen.nl Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nd17-20020a170907629100b006f42a32ebcdsi10116237ejc.753.2022.06.13.13.16.08; Mon, 13 Jun 2022 13:16:24 -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=@dannyvanheumen.nl header.s=protonmail2 header.b=Yq77ZG0M; 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=dannyvanheumen.nl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351018AbiFMUPl (ORCPT + 65 others); Mon, 13 Jun 2022 16:15:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233870AbiFMUP2 (ORCPT ); Mon, 13 Jun 2022 16:15:28 -0400 Received: from mail-4323.proton.ch (mail-4323.proton.ch [185.70.43.23]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17791BC10 for ; Mon, 13 Jun 2022 11:51:06 -0700 (PDT) Date: Mon, 13 Jun 2022 18:50:57 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dannyvanheumen.nl; s=protonmail2; t=1655146264; x=1655405464; bh=k/A5E+7ARJ/sHkIngRT1u7vG7uuzBLZuLrkFI/eXrY4=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=Yq77ZG0M4duLrWuYx2XkU+C6R+GaWB2P/ew0KaNrJ2o1egHPTtwU6bP2XzhqPewNW GCgh8amuQ2XqtWIERDa+KBZK57Z2ktyHF1bMt0808nFqSeYlfKQGZEaMrYBT3e0iVg AZJMF9FXKOCA9hDX/i/1K629srhE14nm7Bl2fwa14SnkOpEjGgSOpcvkqP9GKKz70W NG3IVS8fjj8h9ZRRCk4z2RM4ZJKg7ypJRIW8eWnLWxOxCWSq86/Ct+9SPHEDxwbrSz bRl4kGKM6IFkJroRm0X9JKNHEtJ1GjIGNhdonnHpmGJ9xfh5D7xxYj+YYx7t/zvbHm KXRw4L287Glhg== To: Arend Van Spriel From: Danny van Heumen Cc: Franky Lin , Arend van Spriel , Hante Meuleman , linux-wireless@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, SHA-cyfmac-dev-list@infineon.com Reply-To: Danny van Heumen Subject: Re: [PATCH] work-in-progress: double-free after hardware reset due to firmware-crash Message-ID: In-Reply-To: <1815e2011e8.279b.9b12b7fc0a3841636cfb5e919b41b954@broadcom.com> References: <51CC1C7B-400C-4A7A-A5D3-EB457DC6862F@broadcom.com> <1a116224-66ff-17b1-bb8b-9c0918dd47e4@broadcom.com> <1815e2011e8.279b.9b12b7fc0a3841636cfb5e919b41b954@broadcom.com> Feedback-ID: 15073070:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS,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 Hi Arend, ------- Original Message ------- On Monday, June 13th, 2022 at 19:32, Arend Van Spriel wrote: > [..] > > What would be the next steps? > > > You should send a proper patch to the linux-wireless list, ie. not in an > attachment but the commit message and patch diff in plain text email > message. Please refer to [1] for guidelines. Thanks. Will do. > I reinstated SDIO card in my test setup so I can test your patch. That's great! I have tried to reduce/remove the probe-logic in `.reset`, but I can simply= not reach that logic reliably (or at all atm), so I cannot test even basic= simplifications of the hardware-reset logic. > Regards, > Arend > > [1] > https://wireless.wiki.kernel.org/en/developers/documentation/submittingpa= tches Another question: `BRCMF_FW_DEF(43456, "brcmfmac43456-sdio");` This line defines IIUC that a firmware-binary exists. However, there is ano= ther macro that defines both the firmware-binary and the clm_blob binary. A= FAIK, BCM4345/9 (brcmfmac43456-sdio) supports loading a *.clm_blob file. So= I suppose the line should be: `BRCMF_FW_CLM_DEF(43456, "brcmfmac43456-sdio");` Does this really matter? Should I also submit a patch for this? Thanks so far, Danny