Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5481124rwd; Wed, 24 May 2023 02:21:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4YBl8x+6tsyFQ7Aey/Q7lAiY/odtwrU1QeQuXDyyXGhxdJldboWsylzFyys7PqABVHhtxn X-Received: by 2002:a17:902:d2ce:b0:1a9:90bc:c3c6 with SMTP id n14-20020a170902d2ce00b001a990bcc3c6mr17846471plc.16.1684920061608; Wed, 24 May 2023 02:21:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684920061; cv=none; d=google.com; s=arc-20160816; b=aMGnnwApq+cXpGsHL+6EyDBC1pFIuczcIAPUt3fA0uHVcBx4FQg0d1GEL3G/92Ks3F dtdMAVjDwyaGklnwu7pzwBhbHZ4nMu3N9Buzo3eKIFQaJVdsTMvF4/y1cc/RZeHze7PF plOHgP7IvEwFo33N7E8z9HqGPSL9VSEG+zco13S4NDKtCklRqHtHpJRXEIgAfpIZhZsN qSk3oIuauOGBSr9+LtwwtY4MkIpc75QHomP0Cr7yle6xKoPqfTCxI6s57CsAMMZBpGwE stJVjzidVi95MIhTzlNaBVRUwUOJ9onKExVhqNoHbOmsCFfRlCLVWgbmw4jH11nQtfZA 4qjQ== 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=N/p+dePJSk7D0FoMiKsWRSRYPh86mqh1AROoetvQcv0=; b=gSf6C3f+X+kEGrZTLRgkklzw+giWrXsFhaD11JxTstQqaNZL0kI2t7KL7ambNKbfri 7cu9+wPH04NKDMJWd2343yYjYzYoo3695MtDy/I/aOHHusJTB74Ay8jUY0dloLQ9uiCW efvfbqz2UwmYrWtpfrjPgnTqR8oObeh8qsTaresXyKa8hDu0Wi/p+cPcpqTmcLTD1f4D JoItGta1xI4YpN+ohvFTdwkEI6xUjxXqX0axwLmxK+MgUiQ5sTREK3w0KopPxjlwjHz8 tdZt95gaEnG7slDyHB6l0IH+HVtsKkP+LfkWfyfhpR8xDeS0w+GoPOwNJ5Qd58XYUsDj R10A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=VljOIB+V; 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 k3-20020a637b43000000b0053477896e81si1336010pgn.187.2023.05.24.02.20.51; Wed, 24 May 2023 02:21:01 -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=qcppdkim1 header.b=VljOIB+V; 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 S240544AbjEXJDe (ORCPT + 62 others); Wed, 24 May 2023 05:03:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240554AbjEXJDU (ORCPT ); Wed, 24 May 2023 05:03:20 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 168F297 for ; Wed, 24 May 2023 02:03:15 -0700 (PDT) Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34O6abYO017530; Wed, 24 May 2023 09:03:09 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=N/p+dePJSk7D0FoMiKsWRSRYPh86mqh1AROoetvQcv0=; b=VljOIB+V6uTJIzBaJCDXiHFK2hX8B20O0kKI5xrq8hya4/tKuuRgzgaRjkd6p1KL7Rje rR5YhK0HKIw3SrsybUB98+f7qx8h38xu6sB6jXZvPJEs5mAVuvbV7GE7P0GKdsZ/PD6z 4i+hmu9eJW4n0OYlMsKRqdFeRs4fOIc4x3ReR3pMCUd9Ph9JV8cIxWT/iGVg1ncsAcXP KNskyI2G9+rcb2/7b5F5g138bJ+ou9N8QxMZmxH6MGPbB8/5HCmrK5rooH7YoTNVNp51 L/GQlcp9uiwVQcjQ9ReloqLCsD8I96qb9ngoNxXhNLKAzmML3T1bE0jo7ZdhRs8oY/9k 2g== Received: from nasanppmta02.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qs69811r5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 May 2023 09:03:09 +0000 Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 34O9380s026108 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 May 2023 09:03:08 GMT Received: from [10.201.165.164] (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Wed, 24 May 2023 02:03:06 -0700 Message-ID: Date: Wed, 24 May 2023 14:33:03 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [PATCH v3] wifi: ath11k: Add rx histogram stats Content-Language: en-US To: Tyler Stachecki CC: "open list:QUALCOMM ATHEROS ATH11K WIRELESS DRIVER" , "open list:NETWORKING DRIVERS (WIRELESS)" , , References: From: Maharaja Kennadyrajan In-Reply-To: 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 nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: gGsXZOF5rSkMptCEG_6FLT_dTCWHdPNj X-Proofpoint-GUID: gGsXZOF5rSkMptCEG_6FLT_dTCWHdPNj X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-05-24_05,2023-05-23_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 mlxlogscore=775 impostorscore=0 spamscore=0 mlxscore=0 lowpriorityscore=0 phishscore=0 bulkscore=0 malwarescore=0 suspectscore=0 priorityscore=1501 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305240076 X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_MSPIKE_H2, 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 On 5/21/2023 11:21 PM, Tyler Stachecki wrote: > Was this really tested on QCN9074 as the commit text suggests...? > >> const struct ath11k_hw_ops ipq6018_ops = { >> @@ -1132,6 +1147,7 @@ const struct ath11k_hw_ops wcn6750_ops = { >> .rx_desc_get_msdu_payload = ath11k_hw_qcn9074_rx_desc_get_msdu_payload, >> .reo_setup = ath11k_hw_wcn6855_reo_setup, >> .mpdu_info_get_peerid = ath11k_hw_ipq8074_mpdu_info_get_peerid, >> + .mpdu_info_get_mpdu_len = ath11k_hw_qcn9074_mpdu_info_get_mpdu_len, > ... > >> +static u32 ath11k_hal_rx_mpduinfo_get_mpdu_len(struct ath11k_base *ab, >> + struct hal_rx_mpdu_info *mpdu_info) >> +{ >> + return ab->hw_params.hw_ops->mpdu_info_get_mpdu_len(mpdu_info); >> +} > I think you want to put this under qcn9074_ops. As of now, when > QCN9074 is present, it attempts to jump to a NULL pointer as > mpdu_info_get_mpdu_len remains uninitialized for qcn9074_ops. > > And, do you not need to define mpdu_info_get_mpdu_len for all the > other hw_ops? If so, please be careful about defining it for > WCN6855/WCN6750 as there was a recent regression due to how the RX > MPDU info is provided by those firmwares as it differed from > IPQ8074/QCN9074. I personally do not have the appropriate literature > to determine whether or not this is consequential or not here as well, > though it seems like it would be: > https://lore.kernel.org/linux-wireless/20230404072234.18503-3-quic_youghand@quicinc.com/ > > Tyler Thanks for your comments. Will fix this in the upcoming patchset.