Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp6498102ioo; Thu, 2 Jun 2022 07:38:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyO5Yf1F8B7rgCx+r78qBlsoNLULX/zukI7ooGlzqlCcwMBr3xcTARjYAYJU/NDgdHWBL1t X-Received: by 2002:a05:6402:278d:b0:42b:6076:ee3 with SMTP id b13-20020a056402278d00b0042b60760ee3mr5827678ede.249.1654180725541; Thu, 02 Jun 2022 07:38:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654180725; cv=none; d=google.com; s=arc-20160816; b=yDXbjWM3NWjixhTPHgiI6saXOgRku1NpQvs1W/Sru2R3BOhj6J7C7VNlKd3AvWm0MX Dk0dLTxkpgCy+EyF2NIXzJwgObZGvNpWhNRUQ7KNpylI0QKdNpUmb326/sOj7LyXaOgX ac1HP4lnpJ6HFtMKzbxw61gWL/jgzXg+BHfFXKuJYY6flSHnVk7h8WgZOP6KQ07REG/I 5F1OsbCMYJXLFmVQwbV9kwDh+sKG8MCdvnukM7WW+G0FEFPH8oxvE/qLXB0NT9gXxmLB nxUDik4LcR5trhEMkUiMQpuodQh6/QLpPD2eGEwxm6gGyRIThMytpuRde0Q3qDkuYSCh gLaQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=9AjnxMvJuxH4TY/KbMZHtuCZaHlq8F3bM59fs+EKbyw=; b=na0BF2mSjbVpVnhknekGpFxsxN0QMpdDS/cc7rh0JseNilcxRzDNdMdPvk9vg6KdHH ffmlFyOkIfESziPlTb75Bv+xFUKKHkk8TnNf4dbPPyr0lInRq1j3TApWPYf/RRgKyeiO PRUXvn8aKw4+fg1NCfiaiNNol/g/V970sRclurbMR0YOGfCx8bXvUZyAzW4uOl9XxCgI fVup/i80je9dnk4blaoW8TpADgf7n7tlNkfKny+v9yvp2tCFXzHAcIFO0eB0HqxPWly/ uzrewp5OJVTGGYN0/kRftCB8s4ytx7tmeugxX9ryW1o9W6qRiyz5h4IkL1SCdnIrhLrQ hrOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=CVeMc0PS; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w11-20020a05640234cb00b0042ac24a6842si5804196edc.175.2022.06.02.07.38.22; Thu, 02 Jun 2022 07:38:45 -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=@quicinc.com header.s=qcdkim header.b=CVeMc0PS; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234996AbiFBM3x (ORCPT + 67 others); Thu, 2 Jun 2022 08:29:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234993AbiFBM3w (ORCPT ); Thu, 2 Jun 2022 08:29:52 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 570CB1FA4C4 for ; Thu, 2 Jun 2022 05:29:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1654172991; x=1685708991; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=9AjnxMvJuxH4TY/KbMZHtuCZaHlq8F3bM59fs+EKbyw=; b=CVeMc0PSWtP4NXaP53XVCj46ajhHmcUl0JOZDr/pG2uotbNqJxbVRi5l QdQgQ3unVse4+SQIfiUW5Nx3jzRAaV5Exsdwt09/KnwhOxzVRcHIYfigx QQ30WjmOOJYEIfpRE61xS9RkZIl3ks53ipS9RMRcq81yTlE2wrEFSQ3et 4=; Received: from ironmsg-lv-alpha.qualcomm.com ([10.47.202.13]) by alexa-out.qualcomm.com with ESMTP; 02 Jun 2022 05:29:49 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg-lv-alpha.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jun 2022 05:29:49 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Thu, 2 Jun 2022 05:29:48 -0700 Received: from mpubbise-linux.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Thu, 2 Jun 2022 05:29:47 -0700 From: Manikanta Pubbisetty To: CC: , Manikanta Pubbisetty Subject: [PATCH] ath11k: Avoid REO CMD failed prints during firmware recovery Date: Thu, 2 Jun 2022 17:59:29 +0530 Message-ID: <20220602122929.18896-1-quic_mpubbise@quicinc.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 Currently when firmware recovery is in progress, we do not queue REO commands to the firmware, instead -ESHUTDOWN will be returned to the caller leading to a failure print on the console. The REO command in the problem scenario is sent for all tids of a peer in which case we will have 16 failure prints on the console for a single peer. For an AP usecase, this count would be even higher in a worst case scenario. Since these commands are bound to fail during firmware recovery, it is better to avoid printing these failures and thereby avoid message flooding on the console. Tested-on: WCN6750 hw1.0 AHB WLAN.MSL.1.0.1-00887-QCAMSLSWPLZ-1 Fixes: 8ee8d38ca472 ("ath11k: Fix crash during firmware recovery on reo cmd ring access") Signed-off-by: Manikanta Pubbisetty --- drivers/net/wireless/ath/ath11k/dp_rx.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/dp_rx.c b/drivers/net/wireless/ath/ath11k/dp_rx.c index e16beb96c37c..2148acf37071 100644 --- a/drivers/net/wireless/ath/ath11k/dp_rx.c +++ b/drivers/net/wireless/ath/ath11k/dp_rx.c @@ -835,8 +835,9 @@ void ath11k_peer_rx_tid_delete(struct ath11k *ar, HAL_REO_CMD_UPDATE_RX_QUEUE, &cmd, ath11k_dp_rx_tid_del_func); if (ret) { - ath11k_err(ar->ab, "failed to send HAL_REO_CMD_UPDATE_RX_QUEUE cmd, tid %d (%d)\n", - tid, ret); + if (ret != -ESHUTDOWN) + ath11k_err(ar->ab, "failed to send HAL_REO_CMD_UPDATE_RX_QUEUE cmd, tid %d (%d)\n", + tid, ret); dma_unmap_single(ar->ab->dev, rx_tid->paddr, rx_tid->size, DMA_BIDIRECTIONAL); kfree(rx_tid->vaddr); -- 2.35.1