Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5498233rwd; Wed, 24 May 2023 02:40:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4+GDw7kRG8bAv5pc4TtRbfZ0SZ6WKykDj1ijSmeI6+TdfRphiuz8bwkliC6x2D9q/dZAHe X-Received: by 2002:a05:6a20:72a8:b0:10c:1047:68b9 with SMTP id o40-20020a056a2072a800b0010c104768b9mr8218995pzk.50.1684921225003; Wed, 24 May 2023 02:40:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684921224; cv=none; d=google.com; s=arc-20160816; b=gKLiCj9CeQ/k2XKtM9PaAJPg6H6aN7GnaE72x7ejPW0tiy6macrFG7RJo9IWxUfPFK vPJM+Y4E5pTAFyp58OKtozL/FTckK3nMLywHF215YJa5Ut+bman30QPskPwmIJjbiJOY wgG4KxeS9thmsfZHYAzcXt730c0G1ZL99tTxg5uTkWZxA2QIiL/AhNmmDIBepUjErSHn z8aIT/sVFvxJyOZew2yukHx6UJP4zSJel1Uf7j5PBl0Xi9TC9RIu3xmovnEqm777YSlb 5cXp0eIYCTBVYhinr/UEekA6VJLTRdsgb7hhZmgxqEXDklFXOI+gukJZ7Bq6lRLD9Lv/ paCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=z90i+jpzGu/BJB0maAZKYEZKtcIKvfvOdcgnnziVa6Q=; b=H2sJ11p77dgY75eS0bVFBej+YJBCmG/u3IYDeSJEQeY+Bm2ubtMMiQF3jx9Yp/zGmN s8syJ5lDuQ4lpDzkM3lwtRv1HGtPV0ky+4/BiknL/YAiNjjHcuRUmTmMp0aFRBVsusDs v20Vy/XVP1JEKVX6YXCyRiQ2LmkCmi+81DpIpr33b4bxgutG24PREN4FVt3bH5lZr5Nm T8vgVNdqo7VPseWCeD/m5rKS+3JuVwR1ViyZZ9a0dioydEYaEfhhfoDkh7HAKaZowvLI /xgK5YWAJglICvPB9nDSWhgq7y6ahDZYli8v2EcxozYFjHJbYVlA87SMIw66hHE0pbvw N/ZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bmJlENkB; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p16-20020a170902e75000b001a64e7b7026si2575374plf.438.2023.05.24.02.40.15; Wed, 24 May 2023 02:40:24 -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=@kernel.org header.s=k20201202 header.b=bmJlENkB; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229448AbjEXJhG (ORCPT + 62 others); Wed, 24 May 2023 05:37:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230143AbjEXJgp (ORCPT ); Wed, 24 May 2023 05:36:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53E34E58 for ; Wed, 24 May 2023 02:36:23 -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 dfw.source.kernel.org (Postfix) with ESMTPS id D1420639B6 for ; Wed, 24 May 2023 09:36:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DA40AC433D2; Wed, 24 May 2023 09:36:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684920982; bh=3RDAmXbPpZPlOZLbdKiVZC4UxcSl6x7J31OGNvXq5Rc=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=bmJlENkBDccadjEH4PGKANOqT/6lqCbALQYInWsgBP5OJU+zonwS9F0jnSYtH1Kj/ UFt2W3H7a3OUEoqry9N6asPSLTOKBh4brdVAIr4Uil5ARjtjAq14hphcJn7IQ8JM8A Tyt1FOYiLwGvN7BscozZ8uwFzSHsCp311RbTSigiVbdR4AT48o5VcXd9qT2t96qvYM M8yI+M3iPuNBAo3xODQRHVK915onOprsEHBJXBy1Ere1iW+DI64jZ6NGCUc9b7V+Q8 t3hduGP9XDxw8BHRhfY950yyL3Rdc2phE0vsn0FrgNRqCuTKho4oQOTSR9qedIaW8X JxNRFNGOPKZLA== From: Kalle Valo To: Maharaja Kennadyrajan Cc: Tyler Stachecki , "open list\:QUALCOMM ATHEROS ATH11K WIRELESS DRIVER" , "open list\:NETWORKING DRIVERS \(WIRELESS\)" , , Subject: Re: [PATCH v3] wifi: ath11k: Add rx histogram stats References: Date: Wed, 24 May 2023 12:36:16 +0300 In-Reply-To: (Maharaja Kennadyrajan's message of "Wed, 24 May 2023 14:33:03 +0530") Message-ID: <87h6s2kr5b.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, 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 Maharaja Kennadyrajan writes: > 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. I have some comments as well but I haven't been able to send them yet. I recommend waiting for them before sending the next version. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches