Received: by 2002:a05:7412:85a1:b0:e2:908c:2ebd with SMTP id n33csp126195rdh; Mon, 30 Oct 2023 16:27:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEMpN9j77gCN+5bGoW67HrZqV2EnRrO/WynK2bKFuxxiCIa3hc7QBtbMfEa1Xb+VExJ1f96 X-Received: by 2002:a17:902:e5c5:b0:1cc:53d1:10b8 with SMTP id u5-20020a170902e5c500b001cc53d110b8mr3158817plf.50.1698708442993; Mon, 30 Oct 2023 16:27:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698708442; cv=none; d=google.com; s=arc-20160816; b=IBsaGdvkPOrTARsGAlKi3qVMxoZqYuqxIKw6+FozFHRn6QJwFgb3YjRMfYx4BDpLlY 6+bgCq9wDbeD57v6UWo3K7ryup5Rtatm0qMh+0XEwZXvIwOKCvaqenzSEZ8qz10nzjqQ tnXksP/OEGrRF78XOedm9nBv35rxAX4BdyPiqTieCAnAzGyWyoMzgq3V98ZJ3/oYu1t3 BLhBqhsQs5aumPSVZ0AJfY5aYcbLfC6a2WBjmntD7G+Rwqhg3ZsrC8bvIG39ggI53ZSv Mn+7vDiUlfQ8MibsJ/CJrynP4Uyop3K5+J4wEPH/SfmFtXGShg8i16vlyRbaHo5wsgE1 6w2g== 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=41jd054tMAEs5554kFCbhwolD8WHBLktf5FQAE1o/P8=; fh=RDM9plcpLf5xfaVjeMbx5QA1nfE3KaWQ3No4eJmOMGU=; b=ZQCUp7q12om4LeqYCxR/tSfpec12Kkbh/2Wln2KoESOinnKGLkZTI97vQaQyFV7H0Z cbhuAY0khor0JSrq98msQ1KLSY0HuqP6n1dCU1bxFFBYf6XxFs9HzRmN7CDvr5tkNPMP /kX0Ez/iqR+dx371rkXsxuAM2ci0jq1ua+2c8Nf9F4E5bS2eeS822ugaZbRr8RaBhoqR KPSD3Dmv224ioheJ3oxS2DohPPslhCM/lUJdcliIPk2yCDYjec2D/G5DknfIqjq8LZ9T 1cWTiUOxPDbZcvxSIv60lJv8u3SfeutyUAhdJNQsetXOVdsr+UKSim8gC84TwR9K2wW2 0sjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=C3GZhexU; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id n9-20020a170902e54900b001c4401a7e18si100596plf.382.2023.10.30.16.27.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 16:27:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=C3GZhexU; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 1E3B8802B053; Mon, 30 Oct 2023 16:27:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230417AbjJ3X1W (ORCPT + 52 others); Mon, 30 Oct 2023 19:27:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229646AbjJ3X1V (ORCPT ); Mon, 30 Oct 2023 19:27:21 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60FF9E4 for ; Mon, 30 Oct 2023 16:27:19 -0700 (PDT) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39UNLmCo023598; Mon, 30 Oct 2023 23:27:17 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=41jd054tMAEs5554kFCbhwolD8WHBLktf5FQAE1o/P8=; b=C3GZhexUSxBRroKVVW3illVc61cZPuJSGOMyh/Fd/bTCtyg2WD9FiY8UTdUiL6fZxKMu UJr7IP/UuN72MvKG803tQcAUuC8KNYuEVYTh7wqeOM7E2icY6sMqTiq1Rl4scbNQi7zK I7svyVJxE4VLOhH4JzuqSshZxWdm6NyGhpTwTqjX8e/GrekBzVAAyARJB6utIYcyJawT e5CuX9Es7U+r4VKT1keRj6noSDCiupCdlU773TgZ2HMrxEDg39RlneCM0DjpTR7YSfG+ KYa/u/J318gAuFNw7Ft9gCP8qqsVrXOTSYVQFQXtJiMw5cRGb25EwjekLA46JuU6jNWR SA== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3u280jt1xh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 30 Oct 2023 23:27:17 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 39UNRGfl001827 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 30 Oct 2023 23:27:16 GMT Received: from [10.48.245.206] (10.49.16.6) 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.39; Mon, 30 Oct 2023 16:27:16 -0700 Message-ID: Date: Mon, 30 Oct 2023 16:27:15 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 07/13] wifi: ath12k: fix firmware assert during insmod in memory segment mode Content-Language: en-US To: Raj Kumar Bhagat , CC: , Aaradhana Sahu References: <20231030222700.18914-1-quic_rajkbhag@quicinc.com> <20231030222700.18914-8-quic_rajkbhag@quicinc.com> From: Jeff Johnson In-Reply-To: <20231030222700.18914-8-quic_rajkbhag@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) 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: JNHAMg839pNOtHJQ1EI9_8kqIQyssdyq X-Proofpoint-ORIG-GUID: JNHAMg839pNOtHJQ1EI9_8kqIQyssdyq X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-30_13,2023-10-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 lowpriorityscore=0 priorityscore=1501 phishscore=0 mlxlogscore=999 adultscore=0 spamscore=0 bulkscore=0 impostorscore=0 clxscore=1015 mlxscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310240000 definitions=main-2310300183 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 30 Oct 2023 16:27:22 -0700 (PDT) On 10/30/2023 3:26 PM, Raj Kumar Bhagat wrote: > From: Aaradhana Sahu > > In segment memory mode, firmware allocates memory segments of size > 2 MB. This 2 MB memory is used by firmware for the number of peers. > This number of peer is sent from host to firmware during WMI init > command. For single-phy the number of peers sent is > TARGET_NUM_PEERS_SINGLE = 529 (512 + 17). While for split-phy number > of peers sent to firmware is TARGET_NUM_PEERS_DBS = 2 *(512 + 17) = > 1058. With this 1058 number of peers firmware is unable to allocate > memory in 2 MB segment and firmware crash is observed. > > Hence, fix this firmware crash by reducing the number of stations > TARGET_NUM_STATIONS for split-phy. > > Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.1.1-00188-QCAHKSWPL_SILICONZ-1 > Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1 > > Signed-off-by: Aaradhana Sahu > Co-developed-by: Raj Kumar Bhagat > Signed-off-by: Raj Kumar Bhagat Acked-by: Jeff Johnson