Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp997679lqp; Thu, 23 May 2024 06:28:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXOnqaMkuU9DGegRkacizHiDcRGjqDRrl75pb3c8GKRgusa+IQiOGe/C4uYSTQ2yKAcjKYghj0Uogg0OK2+cQ8nPFijk5vtUxKLycZ+YA== X-Google-Smtp-Source: AGHT+IHpXcQlLq5gTnrvjLLMzTAsv1Hsn+agJ3vQPPOxT3gkwvnCYDt8a17Nb98ks2YWnWROqPLT X-Received: by 2002:ac2:43a1:0:b0:521:742a:baf4 with SMTP id 2adb3069b0e04-526beca9746mr4449016e87.9.1716470905178; Thu, 23 May 2024 06:28:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716470905; cv=pass; d=google.com; s=arc-20160816; b=IFXM/to7LcqHx1nBcYMoCLOIDQeVZImydrdxgwExpbDhMFpKOOjotYQL8sLn2BXnMt iYGyhVuTKrSficcz7FvMmZE6u1fNUUdGiZn5VQcn2xPBPC0ez9cXE8u7XR9XxgiJjM0u EGXPmlgbe1eXIFp8Txu1lERQmYQnHXkOsl1mahRi33En9R/jB7woqlHqmG/hr+XKoppC jtd6qmbUNQg9Hjv4T5Xx14No9l562tARO1IeNHzN8tysYbuPClV0wDjN55OOc1UFKMxJ AO5gQHZ8ua3deERGuAzfKReEox5oq0T9yk4SvQlw2Z5r3ADEdvzZwRgqd1SOaExhoYME OBIg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=3ecj33QZXZXVevJHdyLfH5OZKEAadHxrsR7tRQqP8K0=; fh=gNywOoGH9FiEKkqPngRyqJ0mvecwQizKE+QEYR6/Bdw=; b=nuF4qfXbAGJBp5KcqtHg4w5KXEigLLglz0pPZbAL4nhElM7MnMJKs8Sm4FyL0PZSek 3deldvXqHw1LhOR9X+g28FEfpe9JuWPm21PQNgcin+8xvO3NLGxcMUIokNrETbUpjj92 CyrWSg7cdrHeU+uoWRITA7WKYDRfAoH/iF6AQqz0NXzGCQofIqcvVjFWvJzNcBAAUnCR I5kPLHZAMYPlXDitBRM57IhqgEYRNyICHg9o1PSNaZQXEPAmpIWPhK2Wj+taOE8VKD8y NsNprd4fY1HNSiWia2FoFvhiUsvK2qANdY6Elzo1P3+WH4jLAquF7At6yA8zcOZ6Gbs2 ytKw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=emYKTxdu; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-8010-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8010-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733beac6f9si16053627a12.25.2024.05.23.06.28.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 06:28:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8010-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=emYKTxdu; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-8010-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8010-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 42C371F24D81 for ; Thu, 23 May 2024 13:17:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 326C114B084; Thu, 23 May 2024 13:16:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="emYKTxdu" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0DC9014B083 for ; Thu, 23 May 2024 13:16:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716470217; cv=none; b=tllNAi3gLEefjO2/ORu9p+l98rEu/4XFtRRV/CLbbtj4PrQRP3uLLMEKYQJK11R5VAsTvZllzg82UDabvylbBOLOhY+aR1HN4PEOu3drSrKnQ8m/oiHg4trwD+UlbJpJKuHE8PA3eJX8FyZ1Jl+lA3b3eompwcPRGlPznjUs20E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716470217; c=relaxed/simple; bh=J5sH+IM11mBCk3fnWcNmwtCQ+GTlbAmt2HVgytd/hmc=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=gOY5ETIX04m1d5UN8jrH329HqMXemFGIAC7UHZ5RUwSCb43BegfgZt+yWgVA1VA2/E79/Zyi7Enm6KbiObIvyi2m8VZckpuDP2w7o30cmJlMnl04gy6sB2F/PC7u5Dkph21tNJA/EqDUNVxPcCquiqge6pRJ35CYLXkhBenbCSI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=emYKTxdu; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 011B4C2BD10; Thu, 23 May 2024 13:16:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716470216; bh=J5sH+IM11mBCk3fnWcNmwtCQ+GTlbAmt2HVgytd/hmc=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=emYKTxduxBpDO12T2xwVodY7YjreMBh9rc90N+1HiMMwq4BYKuneR4jiSMezbRv+v eshWiyqm5GVTsJPBPmqxGQh0B0luEo4WppDy3h66d0KQGNF+vhsQ/OCUnoCa24FUj4 vQYufD+/mAT2lAtLQ6Vj+ARuiYHetzdhldo6dYes+1VWrevYXybWaWPOGjsi46iQ2S U4IkV5UqqdiVqsI4RMsMP1hy4dAAlmZ+q6ZJClVen3EvvsMP9RP9qAlubqlTSv97yf QIwbHhwH/+FE5uWJo6Bd2NcoZNdvyMlFkvIWInExWEePPzsIsXIIzyr4UEVrlTO6LL CkhRJFjA2HeXw== From: Kalle Valo To: Karthikeyan Periyasamy Cc: , Subject: Re: [PATCH 2/2] wifi: ath12k: improve the rx descriptor error information References: <20240516000807.1704913-1-quic_periyasa@quicinc.com> <20240516000807.1704913-3-quic_periyasa@quicinc.com> Date: Thu, 23 May 2024 16:16:53 +0300 In-Reply-To: <20240516000807.1704913-3-quic_periyasa@quicinc.com> (Karthikeyan Periyasamy's message of "Thu, 16 May 2024 05:38:07 +0530") Message-ID: <87a5kgbrcq.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Karthikeyan Periyasamy writes: > The ath12k_dp_get_rx_desc() failure log currently contains the same > information across multiple Rx data paths and lacks sufficient detail for > debugging purposes. To address this, change the ath12k_dp_get_rx_desc() > failure log to include cookie information along with Rx path details. > This will provide more specific data for debugging purposes. > > Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1 > Tested-on: WCN7850 HW2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3 > > Signed-off-by: Karthikeyan Periyasamy > --- > drivers/net/wireless/ath/ath12k/dp_rx.c | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/drivers/net/wireless/ath/ath12k/dp_rx.c b/drivers/net/wireless/ath/ath12k/dp_rx.c > index 37205e894afe..85ce6e840efa 100644 > --- a/drivers/net/wireless/ath/ath12k/dp_rx.c > +++ b/drivers/net/wireless/ath/ath12k/dp_rx.c > @@ -2625,7 +2625,7 @@ int ath12k_dp_rx_process(struct ath12k_base *ab, int ring_id, > if (!desc_info) { > desc_info = ath12k_dp_get_rx_desc(ab, cookie); > if (!desc_info) { > - ath12k_warn(ab, "Invalid cookie in manual desc retrieval"); > + ath12k_warn(ab, "Rx, invalid cookie 0x%x\n", cookie); > continue; > } > } > @@ -3323,7 +3323,7 @@ ath12k_dp_process_rx_err_buf(struct ath12k *ar, struct hal_reo_dest_ring *desc, > if (!desc_info) { > desc_info = ath12k_dp_get_rx_desc(ab, cookie); > if (!desc_info) { > - ath12k_warn(ab, "Invalid cookie in manual desc retrieval"); > + ath12k_warn(ab, "Rx Exception, invalid cookie 0x%x\n", cookie); > return -EINVAL; > } > } > @@ -3742,7 +3742,8 @@ int ath12k_dp_rx_process_wbm_err(struct ath12k_base *ab, > if (!desc_info) { > desc_info = ath12k_dp_get_rx_desc(ab, err_info.cookie); > if (!desc_info) { > - ath12k_warn(ab, "Invalid cookie in manual desc retrieval"); > + ath12k_warn(ab, "WBM Rx err, invalid cookie 0x%x\n", > + err_info.cookie); > continue; > } > } In the error messages please try to use full english sentences to make them at somehow useful to users. I tried add those now, please check: https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/commit/?h=pending&id=4033754ea78119ede328f09005b8ae1e9dd3f4f2 -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches