Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp703310iob; Wed, 4 May 2022 06:24:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTUup9h3uccui3NC55kMOG8bJXUK4vELLOmuhX8tDg7/adzyzDy6ntg14rRWEcvK7zAsxc X-Received: by 2002:a17:907:971b:b0:6f4:3b8c:ae04 with SMTP id jg27-20020a170907971b00b006f43b8cae04mr15680049ejc.548.1651670663412; Wed, 04 May 2022 06:24:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651670663; cv=none; d=google.com; s=arc-20160816; b=OM0a6Ze1XXtIJcN1Ru90P/JFqRpXw8PTaDoh/wWCNi5H/SIbZpdF1tQdGRlSJETv3K g7m+mykLqwWciDflfwckePX2qKhMkn7QhPXVPZwxJk0dWcLOLLQ+jxNVKQpVz5kGbEVY Lda0Mz5YDxJGMKfbjJY9OZ5IVyBkKdd7+CwW5/gX+y9idEDuOzznkhaTjFu7ZP1EAATY ZMoq78lKPyKZW3I4wxgQ3waLaikRh5T62YdCe0u8aF6acH2JKOha2CTgHa9JOMJYaPYP 0XFe8+bRBhdbKKgIlyWHRojLB126ZR+dQhzBRtIhWjGLYJaVjnkK3nXG/pBLK6f8qwgp hgpw== 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=MNV4tPKjw+sU2P/KHe9Zp17alX1Ngr43TpGbZuOl74g=; b=IZZYgJ2Renj1LiSGKfy/4VIHy2EJSpkp1JG7SeDSnnNaevyS607W/BOPpuesiUr52B S7iBfp0YFi42CkC4xObwFzynWw4A2yY8NoJWNMXG6vqr8cHlw6rsquby7K46clOAUdm3 KUxVtXt5o6lWRSGnbfwKWjZI0O6C155PsZCjxqgpbOLvvKuyN5b243AdluxxzHkqNcFz wID4kLgrZSlMHQNBVua2I8F46pWmbBhfyuhQCmp+H94mC2XvbSZkZgZam3HwA78tKqTR qFQtG4GuZj5yQf7Ha4zoGOYCNkb1tRvDC/bU3zah6od9Q8iNd89WMRBK8EQ/p6uugr4G BuBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b="XH6mnT/T"; 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 x23-20020a1709064a9700b006f39f25eaaasi15800988eju.675.2022.05.04.06.24.03; Wed, 04 May 2022 06:24:23 -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=qcdkim header.b="XH6mnT/T"; 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 S1344173AbiEDGqN (ORCPT + 68 others); Wed, 4 May 2022 02:46:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239772AbiEDGqL (ORCPT ); Wed, 4 May 2022 02:46:11 -0400 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 432F31A04D for ; Tue, 3 May 2022 23:42:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1651646556; x=1683182556; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=MNV4tPKjw+sU2P/KHe9Zp17alX1Ngr43TpGbZuOl74g=; b=XH6mnT/T+JK5UDQ5X4Wg/CFQB44krw0FqDy0BQSbcowc+luLhCjo0f38 58Bb0K64vNlVlub8g/s8/cymt/GkyO7K/v1QF4AgQPgC+SIbc843lt0BK PSXJpIxTaEPeqc/E9PhD3IkdcWPXVrXie41HUjvYDQdE9N4YHs6jNUCm8 w=; Received: from unknown (HELO ironmsg01-sd.qualcomm.com) ([10.53.140.141]) by alexa-out-sd-01.qualcomm.com with ESMTP; 03 May 2022 23:42:35 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg01-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 May 2022 23:42:35 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Tue, 3 May 2022 23:42:35 -0700 Received: from [10.50.12.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.986.22; Tue, 3 May 2022 23:42:33 -0700 Message-ID: Date: Wed, 4 May 2022 12:12:30 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH v3] ath11k: Fix RX de-fragmentation issue on WCN6750 Content-Language: en-US To: Kalle Valo CC: , References: <20220328061947.28813-1-quic_mpubbise@quicinc.com> <87bkwgau67.fsf@kernel.org> From: Manikanta Pubbisetty In-Reply-To: <87bkwgau67.fsf@kernel.org> 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-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 On 5/2/2022 7:55 PM, Kalle Valo wrote: > Manikanta Pubbisetty writes: > >> The offset of REO register where the RX fragment destination ring >> is configured is different in WCN6750 as compared to WCN6855. >> Due to this differnce in offsets, on WCN6750, fragment destination >> ring will be configured incorrectly, leading to RX fragments not >> getting delivered to the driver. Fix this by defining HW specific >> offset for the REO MISC CTL register. >> >> Tested-on: WCN6750 hw1.0 AHB WLAN.MSL.1.0.1-00573-QCAMSLSWPLZ-1 >> Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-01720.1-QCAHSPSWPL_V1_V2_SILICONZ_LITE-1 >> Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.5.0.1-01100-QCAHKSWPL_SILICONZ-1 >> Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.4.0.1-00192-QCAHKSWPL_SILICONZ-1 >> >> Signed-off-by: Manikanta Pubbisetty > > [...] > >> @@ -2229,6 +2229,9 @@ const struct ath11k_hw_regs wcn6855_regs = { >> >> /* Shadow register area */ >> .hal_shadow_base_addr = 0x000008fc, >> + >> + /* REO MISC CTRL */ >> + .hal_reo1_misc_ctl = 0x00000630, >> }; > > I don't really see the benefit from the comment, it doesn't bring any > extra information. > You are right, let me check if I can add any info or I'll remove the comment. >> const struct ath11k_hw_regs wcn6750_regs = { >> @@ -2311,6 +2314,9 @@ const struct ath11k_hw_regs wcn6750_regs = { >> >> /* Shadow register area */ >> .hal_shadow_base_addr = 0x00000504, >> + >> + /* REO MISC CTRL */ >> + .hal_reo1_misc_ctl = 0x000005d8, > > Ditto. > > What about other ath11k_hw_regs tables: > > [1906] const struct ath11k_hw_regs ipq8074_regs = { > [1988] const struct ath11k_hw_regs qca6390_regs = { > [2070] const struct ath11k_hw_regs qcn9074_regs = { > > You don't mention anything about those in the commit log. If they don't > use this register (didn't check) we should at least initialise the > fields to zero, deadbeef or something to make it clear they are unused. > Let me make the changes to initialize the register to 0(zero) for other unsupported hardware. Thanks, Manikanta