Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp631650pxb; Sat, 18 Sep 2021 12:57:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzb/mP4oU/mPMvJWFTrZa1xasGe4GJgT3DBAPB1EGaTmznBY4gl9ScSxD5LRV78PA4zT7t+ X-Received: by 2002:a17:906:9401:: with SMTP id q1mr20008610ejx.313.1631995069455; Sat, 18 Sep 2021 12:57:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631995069; cv=none; d=google.com; s=arc-20160816; b=Q/Egt2Hw/kycjReIgWLpR2JX191QBrjxbNiJE0IogKa0Dq+ac0DarJmhT5AaB5zg3T +sV6teZeHtEKIG0zM+SghMOt5O7ujf7ih0Zjzh0jXQGuxxSiJ0b0ZnMxTrpJq2tIQWWc 2Ho+i4a96nVr5FrXJYQg/ESU8iHPdQitujfG8QMpmngDRqV/U1ihRjai6YCPDkxvS+8L I4WRTAMW7y42roEO0Ad7wwI5ViNNf1q37OAgxkKlsfksX80UzA5LjmL/X/Jf3E5v1HV7 WZDSo9GU8Bndwnjkz+oWe+LPvxQEu8V2zSE973mbGtjeJVl4tH4i5RjkoW9zsesXLp6f GFtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=+vTIBq7OgcFSIUkKEdHY3wi/HPPALeiPsoDimZEmejs=; b=mdmuxi3bkyY+0Tsknc8AJFJfAlAH3h6XCTm/4W1E5/OzkfieClup0HIxzjLUcP38WL Jynhgtb/bxbdNeVhrvXuDfKTPFWLpAyneAlp//yQEf6a7NsAxA0JefVoHB8gtQbK70kc gqpEGDT0iBUAAMa4j1XB2y38pVMBn/JIj2fQqcWLLsO3t9IvzGm3Mn4+Zg2a/8M9ZE3A PnYFPxvtdZtDegGop3QXDAUTZrV2ke/CpBQ2mExn1gB6//iySqEnLQw/jOaXlekLXQj7 oOB/zxV8N7QvgG/kMgUHEEia2tAK2Svft719oTorB6WtjElmWxunc4XjOFTbCtWu/zgM 70WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ojab.ru header.s=ojab header.b=TB7+9svn; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a18si10192830ejj.147.2021.09.18.12.57.30; Sat, 18 Sep 2021 12:57:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ojab.ru header.s=ojab header.b=TB7+9svn; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239053AbhIRLWq (ORCPT + 78 others); Sat, 18 Sep 2021 07:22:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230313AbhIRLWp (ORCPT ); Sat, 18 Sep 2021 07:22:45 -0400 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C432C06175F for ; Sat, 18 Sep 2021 04:21:22 -0700 (PDT) Received: by mail-io1-xd30.google.com with SMTP id b10so15545291ioq.9 for ; Sat, 18 Sep 2021 04:21:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ojab.ru; s=ojab; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+vTIBq7OgcFSIUkKEdHY3wi/HPPALeiPsoDimZEmejs=; b=TB7+9svnr9db5eEQUcCbKnnthERxnsR3zGSst85Gue8c5XVSczZl73Z3IQ8pRQfT3c 7ZoKYL6RyebbyeInS8PBtSlIu7ibrCwG32ouDax/Ezk8jYGrxqo3TndHw2eqAwfY13dN 9V/+EThULN+urYK/0fnnBbnraXPIl/T8mbPIDcr6aRMwDh2KRjXt3ir27rUKwA7Wv+9S Y+VefQsIGKFPPmPRfFvFoYNP/CvB6FfBTp7Wv1rZQHFOKnkfhLFpELOwMOuiZye51uWT G5icb2n99Mcu+90RKzfpCg5SU68h27lE/XZhrc0SI9UfiWqxdidObJhBjP32Zgshluca plaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+vTIBq7OgcFSIUkKEdHY3wi/HPPALeiPsoDimZEmejs=; b=q+dcGTf2JhLbz9GO0K7IYd80T3herDUBvolKudUpS8NeV1TA4GtH244UaeY6z0Lao1 VuGAg+AdonllFS2kqkFjZb/5gkN0vU6kiMUlBuMj88nMcIi2H04m9/FfEc2PhcJs59QP owrWvOMb0Na8xluHHrKNkQ0+Pt1Iyhl/lgPo+1LykhCGg2fu2Jy8nym5kzxRoprMxaB1 L3k94jkInYajsWJeMJudANnOYjWL5/2qUQnvn+t/1VJ5niXHJdvn1IQrJek/+RjZH9bQ sg7EPulVEOLNasAV6VwsFU2bErmf70G4+/JGT++IlGEOBzYqs3hYYw/97Oxiye9TZNjL 61EA== X-Gm-Message-State: AOAM5336GhdrDcMHHHKZG6jvnsDL7Hyvfh77xU2BHoaxsVn2EvG1SEdd ZN6nqpfdrxbbvsmyb1yaDg6MT/fr+kw9AQKK5oyvRw== X-Received: by 2002:a6b:f007:: with SMTP id w7mr12181943ioc.112.1631964081521; Sat, 18 Sep 2021 04:21:21 -0700 (PDT) MIME-Version: 1.0 References: <20210722193459.7474-1-ojab@ojab.ru> <538825a2-82f0-6102-01da-6e0385e53cf5@gmx.de> In-Reply-To: <538825a2-82f0-6102-01da-6e0385e53cf5@gmx.de> From: "ojab //" Date: Sat, 18 Sep 2021 14:21:10 +0300 Message-ID: Subject: Re: [PATCH V2] ath10k: don't fail if IRAM write fails To: "sparks71@gmx.de" Cc: Kalle Valo , "David S. Miller" , Jakub Kicinski , ath10k@lists.infradead.org, Linux Wireless , netdev@vger.kernel.org, LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org oh, awesome. Thanks! //wbr ojab On Sat, 18 Sept 2021 at 13:12, sparks71@gmx.de wrote: > > Have you seen the new patch? > > https://www.mail-archive.com/ath10k@lists.infradead.org/msg13784.html > > https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/commit/?h=master-pending&id=973de582639a1e45276e4e3e2f3c2d82a04ad0a6 > > > could probably have been communicated better > > > best regards > > > > Am 17.09.21 um 21:30 schrieb ojab //: > > ._. > > > > //wbr ojab > > > > On Thu, 9 Sept 2021 at 02:42, ojab // wrote: > >> Gentle ping. > >> > >> //wbr ojab > >> > >> On Wed, 25 Aug 2021 at 19:15, ojab // wrote: > >>> Can I haz it merged? > >>> > >>> //wbr ojab > >>> > >>> On Thu, 22 Jul 2021 at 22:36, ojab wrote: > >>>> After reboot with kernel & firmware updates I found `failed to copy > >>>> target iram contents:` in dmesg and missing wlan interfaces for both > >>>> of my QCA9984 compex cards. Rolling back kernel/firmware didn't fixed > >>>> it, so while I have no idea what's actually happening, I don't see why > >>>> we should fail in this case, looks like some optional firmware ability > >>>> that could be skipped. > >>>> > >>>> Also with additional logging there is > >>>> ``` > >>>> [ 6.839858] ath10k_pci 0000:04:00.0: No hardware memory > >>>> [ 6.841205] ath10k_pci 0000:04:00.0: failed to copy target iram contents: -12 > >>>> [ 6.873578] ath10k_pci 0000:07:00.0: No hardware memory > >>>> [ 6.875052] ath10k_pci 0000:07:00.0: failed to copy target iram contents: -12 > >>>> ``` > >>>> so exact branch could be seen. > >>>> > >>>> Signed-off-by: Slava Kardakov > >>>> --- > >>>> Of course I forgot to sing off, since I don't use it by default because I > >>>> hate my real name and kernel requires it > >>>> > >>>> drivers/net/wireless/ath/ath10k/core.c | 9 ++++++--- > >>>> 1 file changed, 6 insertions(+), 3 deletions(-) > >>>> > >>>> diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/ath/ath10k/core.c > >>>> index 2f9be182fbfb..d9fd5294e142 100644 > >>>> --- a/drivers/net/wireless/ath/ath10k/core.c > >>>> +++ b/drivers/net/wireless/ath/ath10k/core.c > >>>> @@ -2691,8 +2691,10 @@ static int ath10k_core_copy_target_iram(struct ath10k *ar) > >>>> u32 len, remaining_len; > >>>> > >>>> hw_mem = ath10k_coredump_get_mem_layout(ar); > >>>> - if (!hw_mem) > >>>> + if (!hw_mem) { > >>>> + ath10k_warn(ar, "No hardware memory"); > >>>> return -ENOMEM; > >>>> + } > >>>> > >>>> for (i = 0; i < hw_mem->region_table.size; i++) { > >>>> tmp = &hw_mem->region_table.regions[i]; > >>>> @@ -2702,8 +2704,10 @@ static int ath10k_core_copy_target_iram(struct ath10k *ar) > >>>> } > >>>> } > >>>> > >>>> - if (!mem_region) > >>>> + if (!mem_region) { > >>>> + ath10k_warn(ar, "No memory region"); > >>>> return -ENOMEM; > >>>> + } > >>>> > >>>> for (i = 0; i < ar->wmi.num_mem_chunks; i++) { > >>>> if (ar->wmi.mem_chunks[i].req_id == > >>>> @@ -2917,7 +2921,6 @@ int ath10k_core_start(struct ath10k *ar, enum ath10k_firmware_mode mode, > >>>> if (status) { > >>>> ath10k_warn(ar, "failed to copy target iram contents: %d", > >>>> status); > >>>> - goto err_hif_stop; > >>>> } > >>>> } > >>>> > >>>> -- > >>>> 2.32.0 > > _______________________________________________ > > ath10k mailing list > > ath10k@lists.infradead.org > > http://lists.infradead.org/mailman/listinfo/ath10k > > > > >