Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1078663rdh; Mon, 25 Sep 2023 02:34:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHtRbIC1lz8SW/9B3wc/R8ULG1OrAiHUGap+yU0/4D19xes3/C4r6synkbSxODefPsA2GYM X-Received: by 2002:a05:6a20:3cac:b0:14c:628b:4b98 with SMTP id b44-20020a056a203cac00b0014c628b4b98mr5097938pzj.4.1695634461314; Mon, 25 Sep 2023 02:34:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695634461; cv=none; d=google.com; s=arc-20160816; b=Bb+G1z1X9bL8DEwQw87Wj7G2m0ED7Tp6B/caTLbsYeUhwOq8bBBGMCTtxPpV1b9eNk sp9CR03kBTgVfjRZSvdIiHAtGSRKPEAsowAkheCCn2mhE7C9jEHHDNhHEEVXAyt4NPbz 7pf9f1iIUm9uj6dJmDfiHOwLR9yRCCYNzeXXeEnqf1vHNDUw2+sDaRdO3gJytg8SLPtP d+LJVFBUrjFnVbjTBI4Fu+XUh2P6C6VilGPTj4kDpbKkI0g6JLyjVsRid3vRsW7ejuvN cCXhdadJpyeWIbNXDGZ4K95To9gLP359ZfG84bW8Na9Rnl7PT2ZuDaTRRTy5Qv6SfOow Kdxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=uK7WjOd5sVmT1QP1QKi8Lj9Fx/VPr9j+ll9X55PnXTY=; fh=MAWxTtYtQDo6tfRbVHOCWJr26ADpuMel7VghVmrVUQ8=; b=WhdRJ9iSvFaOCS5MbLSW95F2SDkX/2Nsy9wRVSarcFPVvA7WSqG3OQ4Ju+piCT9CeP mMElHuGPbDpNqQfLGJjVNAPjnGP1si5zi6FsbjIvAp45VuDcuTVYOBgbedmD6gCDrx7j czFQWNNIxJJsD8ZtSOeIxydhbzqKVo5SRqvDPx9FvriJmw0fv1czpOneUzLOITc743Iq GWSVZGH3neHvtoXXVpl0ClgOOQxXtb+AX2zf1ZMGAE8lAN5aihWrp843zijVzAHeoGOS 6Z0Wf6iZIJ3Gr7i0axpgroscpRE3HavdWhMxE5RtBYGEfxrlkjj4sVepHkO0jHE4sg2E FstA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=hGGZZ1ZY; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id t4-20020a17090340c400b001bc434b9d95si9879487pld.156.2023.09.25.02.34.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 02:34:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=hGGZZ1ZY; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id E14F180765F9; Mon, 25 Sep 2023 02:25:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233201AbjIYJZM (ORCPT + 56 others); Mon, 25 Sep 2023 05:25:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233153AbjIYJZJ (ORCPT ); Mon, 25 Sep 2023 05:25:09 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB74FC0 for ; Mon, 25 Sep 2023 02:25:02 -0700 (PDT) Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38P91X20009677; Mon, 25 Sep 2023 09:24:59 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=uK7WjOd5sVmT1QP1QKi8Lj9Fx/VPr9j+ll9X55PnXTY=; b=hGGZZ1ZYg91ZSEed7d9FjLZKlPo/nJ5uTm/nv+6QZcJ11vNQItAE2fufnG6yMY3kE5dz YvGSJXHBcGmUKF7PIaL48njJkHbbYVoXBZlmEh7TOsw3sliNhDdfvFtbXvyzER0K6aTo vR7sMAzk53TXjNx94Y3PswCSfVCi+hO4+3kVAxXRN0wRNmnc5BhCUzHZ6i5pUpEcKOxW Kd9AJVBo9NqwUNQwdey/61apRGjQTSwcoXgxGCKXYsqPDzVA50QH5YgUv2hIn1vlyN6Z ILyH/wPSD24wZmU/t7JYcULBqfzGNeMjnJ4FxUKdoSlJecHIJun+8IsiQ4V1GT2Sn7E6 kg== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3tb72sg1p4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 25 Sep 2023 09:24:59 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 38P9OwgC029493 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 25 Sep 2023 09:24:58 GMT Received: from [10.231.195.204] (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.1118.36; Mon, 25 Sep 2023 02:24:57 -0700 Message-ID: Date: Mon, 25 Sep 2023 17:24:55 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH] ath11k: add trace log support Content-Language: en-US To: Venkateswara Naralasetty , CC: , Jeff Johnson References: <1636439755-30419-1-git-send-email-quic_vnaralas@quicinc.com> From: Wen Gong In-Reply-To: <1636439755-30419-1-git-send-email-quic_vnaralas@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit 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-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: Hhz7owki1JFB3dmWvCZvgVB3GKamHIR5 X-Proofpoint-ORIG-GUID: Hhz7owki1JFB3dmWvCZvgVB3GKamHIR5 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-09-25_04,2023-09-21_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 phishscore=0 mlxscore=0 priorityscore=1501 lowpriorityscore=0 clxscore=1015 malwarescore=0 adultscore=0 mlxlogscore=717 spamscore=0 suspectscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2309250067 X-Spam-Status: No, score=-2.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 25 Sep 2023 02:25:29 -0700 (PDT) On 11/9/2021 2:35 PM, Venkateswara Naralasetty wrote: [...] > diff --git a/drivers/net/wireless/ath/ath11k/wmi.c b/drivers/net/wireless/ath/ath11k/wmi.c > index 5ae2ef4..80f7760 100644 > --- a/drivers/net/wireless/ath/ath11k/wmi.c > +++ b/drivers/net/wireless/ath/ath11k/wmi.c > @@ -249,6 +249,8 @@ static int ath11k_wmi_cmd_send_nowait(struct ath11k_pdev_wmi *wmi, struct sk_buf > cmd_hdr = (struct wmi_cmd_hdr *)skb->data; > cmd_hdr->cmd_id = cmd; > > + trace_ath11k_wmi_cmd(ab, cmd_id, skb->data, skb->len); > + > memset(skb_cb, 0, sizeof(*skb_cb)); > ret = ath11k_htc_send(&ab->htc, wmi->eid, skb); > This will trace 3 times because ath11k_wmi_cmd_send() calls ath11k_wmi_cmd_send_nowait() 3 times when the credit is not available. Any one know how to change it with a good way? [...] >