Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3087575rwb; Mon, 15 Aug 2022 17:49:36 -0700 (PDT) X-Google-Smtp-Source: AA6agR6STK8Oz7okkDUbmUMwNMmsm6+zMVcJtN+VNLSGsETJPW+hUNK9qdDaT+mt+OlphatOsDVP X-Received: by 2002:a05:6402:177b:b0:43d:64c5:7799 with SMTP id da27-20020a056402177b00b0043d64c57799mr17210192edb.180.1660610976114; Mon, 15 Aug 2022 17:49:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660610976; cv=none; d=google.com; s=arc-20160816; b=hvL1ePeGBWvn4/YrkoFk0ZtZ8qZYeBkwUiGXOMa49N4Xj8Qs76Gdl2+2UiiZBFOAYL r0jy8937n3fLX0aF6hQBSEBQ+fvEkc+5EVi5UFZEdHhR2mGPOx8pYJW5kU9P15yLSfv/ 506FKXHB6v2yFEeEJFqeO+hiJtmF6hucrfXyNIamRVtWdd2xCMDVQQaq7F3cQS57k/0n OfWwmLdEhVAIFZhmRn3lqQX4XUWacdJ7wO9k59E5AZomg+yyo2NyC+aIBYeUVJNhtW9f VaENID/vKYBuf9Lva774mZdFy/tU1I887EDFE4zHNAYSQbcBS/hpzVDUiVyhpYfurzxP ArZA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=5tp1SskoxL05sWYWO3TwhH6DmSRNNKK4frmbXXhMqZ0=; b=GEH5O6ldMIE74DE7TF+kyk2FlvKOFpVSio/8kJw3ED+Rlv/Cc95CTUaXDf5VqPB4Bn VpIz2aOnqPc7vz/O6y02gKTZ/ESMFxMauFzWv0lWAMU+I+Z8hyTu+LABzY7MoGDVeCp1 FTHzLLhl8kRYz0kC7p/qrnu3SlLVTzfKueZuFOBWSwyZw6+5Df1vYCQemblz/PnviQ13 R4Bng5RWR76y9IwNN/tqHm98NPsunax8YuHs3ZkbpVmQcRlKJnmHZhPO/z3jBhmitgW7 FZ87bKVZipGb682hK12J/39kjjW/4oyjfUQSyJORm4blhyS2VnuZLVJ/NVfd/EWKYILr UVGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Vml4N3bB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s19-20020a50d493000000b0043dfb97250dsi9764217edi.599.2022.08.15.17.49.10; Mon, 15 Aug 2022 17:49:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@linuxfoundation.org header.s=korg header.b=Vml4N3bB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243485AbiHOXYh (ORCPT + 99 others); Mon, 15 Aug 2022 19:24:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245258AbiHOXUe (ORCPT ); Mon, 15 Aug 2022 19:20:34 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EE35B4E8E; Mon, 15 Aug 2022 13:04:13 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 47ED8CE12C5; Mon, 15 Aug 2022 20:04:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3FFFEC433D6; Mon, 15 Aug 2022 20:04:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660593849; bh=I+I2wzV0Z+MxOytYnSFYZBmG2OVavB/tYy6DM0PO2BQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Vml4N3bB6nZrIwRaaWgyMctMLkieNYwTgsL/E6dZjulgfFy1V/nNHU5Hr0ly9OrTs IQAdGrA7lhxeE+FuMbk9gKATEu+Zhb6M9/Yp8saOfuY2TWF1YZrxI159h0ULJSZkcz K9X99v0jJ/s2XFZUcxNtpt/Des7A7cmjb1Kv/MpE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Manikanta Pubbisetty , Kalle Valo , Sasha Levin Subject: [PATCH 5.19 0335/1157] ath11k: Avoid REO CMD failed prints during firmware recovery Date: Mon, 15 Aug 2022 19:54:51 +0200 Message-Id: <20220815180453.069184063@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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-kernel@vger.kernel.org From: Manikanta Pubbisetty [ Upstream commit 0ab52b2bd7be8fd49c8ade7703c1faa15359c6c5 ] 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 Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/20220602122929.18896-1-quic_mpubbise@quicinc.com Signed-off-by: Sasha Levin --- 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 049774cc158c..b3e133add1ce 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