Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp228770pxb; Sat, 18 Sep 2021 00:50:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHBlVL0co4m4vUZ7rP4XNMA1EA6Cyzu0D84PWuEyv+Ow1o/hxmomYVoGfpALWHvRhwkLkG X-Received: by 2002:a17:906:f92:: with SMTP id q18mr16478594ejj.353.1631951419170; Sat, 18 Sep 2021 00:50:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631951419; cv=none; d=google.com; s=arc-20160816; b=bKUo4xJ+hW59R9bnIVGAAmr6m2mfFo+aKjCuSvuIaPzS1jzaT7Xa3JxySD+8mDc3UJ l1S95WGEh0oS5/BZZZDzBRGxhTVsA3xiK0ws+fsB0SoQIAbl4oLSIEIERWMUz24dzDxx u8yLxvC6tpHTyurBTK17dwG7Fk/V2ORH1/qByvR39QRVfHdUNtvxfTkGFFaPCDS4cKWv FaaVvu7Kd8nIOoaqoDMq20Q+UDrkrojlp/PaJC73bWNQV8XDAJL4LFrv3UFriL22paEA xN8eCgU5uvLmSfGJffaDVlK1ZyWoXNGuNYhgtEGwb0qiWdxENQ+jOB0WhWKFceg8bqD8 k1pQ== 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=ojecROmdoKkDHQugVR33EyjeLmCBRcyr3oOr5dKqIQg=; b=CozSQTg7dEJ/XgGr3RBCce6efzqcyZtlZCwf5YuGzn27r/g/+5KM2y/Pu1B7eECMs9 HbltAElUuRZiSFFpgScNqn332SWIs8aJ8nQmwWf7h2IrcCXNA/bTCFPQvp2BU3P7b+6z cmEpu9G7O24SVunOES+WWxxflCgT2SH9ivFo5/eFqiwHQILAdLYbhA8+zdaDYODvUP4g H9FjKoiYGTlvpKw3B1msjev/OzuAEF/5NSJeeu2BRJje5yHWyS3RwSIl0jaewqYoPZXy 2HczzbwzF5sOOkt+W8/DqKnsDdG7WBG+cKOiDdS3ZQiI7LRfx3eUDxy0fcf5Bfqb6YRy MQzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ojab.ru header.s=ojab header.b=Ep0ZieCc; 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 x2si20005ejy.385.2021.09.18.00.49.48; Sat, 18 Sep 2021 00:50:19 -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=Ep0ZieCc; 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 S1343805AbhIQTbr (ORCPT + 78 others); Fri, 17 Sep 2021 15:31:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343779AbhIQTbn (ORCPT ); Fri, 17 Sep 2021 15:31:43 -0400 Received: from mail-il1-x12b.google.com (mail-il1-x12b.google.com [IPv6:2607:f8b0:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A169C061574 for ; Fri, 17 Sep 2021 12:30:21 -0700 (PDT) Received: by mail-il1-x12b.google.com with SMTP id d11so7503761ilc.8 for ; Fri, 17 Sep 2021 12:30:21 -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=ojecROmdoKkDHQugVR33EyjeLmCBRcyr3oOr5dKqIQg=; b=Ep0ZieCcO4BsRRbYVJprHD1D0tCQbXTeINo5K+rm/qMUe5lOMFaqTIx5rLAbUK3MZ0 iU2JgBpLlUxdCT9DhLA8cvosIVBG7Fyjz4cZ9HLY48P5FGCV2UgWZRTVuMIdBE0GX8ti 7coXIdlvUVOHrZ+ClGUILKUxAj0c5kbBFTiGEJtQPf+NkVrZijx4GqSF3O67JGs4GWVg bmIk6weEl1jaxtmRgq/wlX8dMuxRcgHhMoKCZUd+RSJNEsaLtfSt0MX6Sqo4aWrVfTEF /h0nUj+npLuTlV4j0AVc/PyneJXT1JaXpPxQ8Xycxrcxmsfi5XmsLZ212M+v5pMtFIG6 VhDg== 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=ojecROmdoKkDHQugVR33EyjeLmCBRcyr3oOr5dKqIQg=; b=SQh4l5CDVMUmbxXuBqD1rDXYZNa0gAQdJ8Wf4gS54dItmwl13/s8vYWXj5N/R01hal 1SqxKXlLvuwesElrL9egID4QlptAB7O1YWxn2V7pX03Os/JVmTNQXPtSfPOkBJpUvvN/ Ung5B/6ESZV+bQVdzQ4e5xmsoa2s5MtXYImDveQHtz2q15w1pc0rKy3urFWwgbDFe7dk REVfmXF3gEVFgZoqGJefTP7ig318aUc1Dhtw7YnF6tLUsjPOZ4Y/sNnmHgvoC34FdYIJ zaCGM9uTCz3mXEjK3jRmsNU48FobJrYQrdeqXjVM/KEW5aPAL6PhG/QXfcnmXkQd5Tsz 4PAA== X-Gm-Message-State: AOAM530vNNc/vZObfjT/Pg8U7C8bV1BxRGVGJUQ1J7uZdiyEYRtGiqga PyRT2FGld8ZH8p5KRIf2pePpO4PC5MKdZ1GWflcjjg== X-Received: by 2002:a05:6e02:1bc3:: with SMTP id x3mr9490382ilv.113.1631907020457; Fri, 17 Sep 2021 12:30:20 -0700 (PDT) MIME-Version: 1.0 References: <20210722193459.7474-1-ojab@ojab.ru> In-Reply-To: From: "ojab //" Date: Fri, 17 Sep 2021 22:30:09 +0300 Message-ID: Subject: Re: [PATCH V2] ath10k: don't fail if IRAM write fails To: Kalle Valo , "David S. Miller" , Jakub Kicinski Cc: 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 ._. //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