Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2710961lqo; Mon, 20 May 2024 14:13:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUH60h35fnJpids0+QaJy80xjUCoROK2m6WF156iQpUEc0zchO8wgOV8FdXe7+3ggyQiTjqN2NlyvXQ+rwdcvpncQ9rUAdQHphVu1+m+g== X-Google-Smtp-Source: AGHT+IHSpP6Qa8i2XXKShj/gtdkYL5I9UHS7WGnNNokWTDJsOrRQ6sitriZh0uekmAj8c36bfUph X-Received: by 2002:a05:6214:5881:b0:6a0:b2fa:71e9 with SMTP id 6a1803df08f44-6a168276d38mr328002336d6.61.1716239634379; Mon, 20 May 2024 14:13:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716239634; cv=pass; d=google.com; s=arc-20160816; b=Qa+cZpuH+y4c/Fs9aOSbYRf9EfUs1+R74jYKEjtvEyWtCy1MMNRnkZETZEcdMRW6Xp 6ggbrQ2VQvKPcYeN7x2kxrFWKYw1goMh33Gjn+PzdhPOaEmHoFAEs456L2IJiOlHOPg6 qsnP0MPeFBLtN5+n9gfYx8kItVRajkWkclxm3eU0eVAdD9uy1NiidWqhYzlyaqvz85CY /2s6WnvSK4/veKwZtgGIsOGAYlsFlgnge4oMiXs+mADUOAlmfD2CBipsNiT4jk0Z7mTh 63oL04yivwJWEYT7dn+Gxl1h9AN1jYZFRi/yASj0cGeEghSXoMvQXx3qyaxbZdc7K6T8 J2ww== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=xYBI3s9zbQFrZaAYDGWNnmHK3hZZH/hJu0ShJO0Ceg8=; fh=rsiM9xwLvi/eOSgzrAeyQ6DaImpoyC1yjCl4aNoqQO8=; b=jVRfi1Rk+XxA3VcIE8QbHBeAddBe+ivMShtke5E1tOjq2H05rl85+Oz/VIaJlgvncy wtcg6BSHEX/Y9VdJXtMNghKt0sMSvXFPwPGKIyE5AW1K6+JxuVcDhgPS8++18ocv8Ckq 1qrh0U72xzrw6WLptBfFWKE+7sUbtJkRElDM1yc9zQ5I7UIQI6FFkPgeaQdQTLbomK0e Zm9P4blGEoEZwgnZlDKFyGqk3h22m4RZv4XQu1ASl43hHAUbFuSyGfftDc2sGf3m2uAD OsGaRMFCJlJbqHXVx/iAX7KXYUzlrYXcKg27327Os8EmU5svFqBlRiKB2zu/R9Y8HA/k rQHQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=lFSqI2zd; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-7849-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7849-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6a15f29afdasi110088026d6.288.2024.05.20.14.13.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 14:13:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7849-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=lFSqI2zd; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-7849-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7849-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 1E9801C210A9 for ; Mon, 20 May 2024 21:13:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 285BE139CEB; Mon, 20 May 2024 21:13:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="lFSqI2zd" X-Original-To: linux-wireless@vger.kernel.org Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A1B9213959D for ; Mon, 20 May 2024 21:13:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716239623; cv=none; b=OqUEMXJZ3tRVhlJBRmBK4DKjImlt5zVl1Y7UJcQx6bCB+tdCDePV1GWR47XdFoDIg1UygW+97xxjTtz6TJ4hu7e+biiBVFJzehdaq1EbvCrloZrFZ9afv+4Gfsmi05HJWX8MHDcIlVGrocpJBgTpviW/tfAx1mERAuZjLIYQGuw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716239623; c=relaxed/simple; bh=iRiwNOqaBgOLUwZnI2h6WR1vdCYoCiYTxJdVwBDkuZA=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=bdqjmXQyL6SBOnKyeahmtx9mPJVXOx/ToAEZ9N4S/rW03pPfKkSwd3b8k/SNqXgURoo2PoyQNx5ceXDs8oRD0owy7H9IeKgT3mi23qdney/vSQB3RJcpEEICz1mtdmYb6q3Idfj62TXHkPt+QMcwNnW7CCyIVS857gwOjlJjibs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=lFSqI2zd; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 44KBjM9C023459; Mon, 20 May 2024 21:13:36 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=xYBI3s9zbQFrZaAYDGWNnmHK3hZZH/hJu0ShJO0Ceg8=; b=lF SqI2zd2YPI9jAHuzkIEHlYmAftk0WJ68xeKy7xMGuovbibNTbpp1dCMx3kX4jBic QPBLb6FnTCOAI8KRxLNCui0oOdEw4NpJ0MIIe00C0pH5RPk+vS/4vxQHgNaeKluc lEu8iH+aVzcp5bPFv27t8fPH+xRxG/+o1rq8Ckk/xFhaOQKbjQVACzZtDeX9wN1i Tw+ya4lYzRl6BIbgZ2pf/n4Puhidy3VqOjdWjJTpGeesmfCo5KOwc7cnO9ZyazyC 9VQDIZwWgDV77F8tkj2AIms2BZxVBCL6+CXt0ni37aCFRIvFou5CpEKF6JNr6Uf4 i0HigSKYzDgCriv0EGOw== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3y6pq5c9an-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 20 May 2024 21:13:36 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 44KLDZ7u022550 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 20 May 2024 21:13:35 GMT Received: from [10.110.17.44] (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.1544.9; Mon, 20 May 2024 14:13:34 -0700 Message-ID: <8efdfb76-c9fa-4622-bf78-185937439062@quicinc.com> Date: Mon, 20 May 2024 14:13:34 -0700 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] wifi: ath11k: fix WCN6750 firmware crash caused by 17 num_vdevs Content-Language: en-US To: Carl Huang , CC: References: <20240520030757.2209395-1-quic_cjhuang@quicinc.com> From: Jeff Johnson In-Reply-To: <20240520030757.2209395-1-quic_cjhuang@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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: JFSLwCTM8EG22QStGrTACYZnArVizhgb X-Proofpoint-ORIG-GUID: JFSLwCTM8EG22QStGrTACYZnArVizhgb X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-05-20_11,2024-05-17_03,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 malwarescore=0 adultscore=0 lowpriorityscore=0 priorityscore=1501 suspectscore=0 spamscore=0 clxscore=1015 mlxlogscore=999 mlxscore=0 bulkscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405010000 definitions=main-2405200169 On 5/19/2024 8:07 PM, Carl Huang wrote: > WCN6750 firmware crashes because of num_vdevs changed from 4 to 17 > in ath11k_init_wmi_config_qca6390() as the ab->hw_params.num_vdevs > is 17. This is caused by commit f019f4dff2e4("wifi: ath11k: support > 2 station interfaces") which assigns ab->hw_params.num_vdevs directly > to config->num_vdevs in ath11k_init_wmi_config_qca6390(), therefore > WCN6750 firmware crashes as it can't support such a big num_vdevs. > > Fix it by assign 3 to num_vdevs in hw_params for WCN6750 as 3 is > sufficient too. > > Fixes: f019f4dff2e4 ("wifi: ath11k: support 2 station interfaces") > Reported-by: Luca Weiss > Closes: https://lore.kernel.org/r/D15TIIDIIESY.D1EKKJLZINMA@fairphone.com/ > Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3 > Tested-on: WCN6750 hw1.0 AHB WLAN.MSL.1.0.1-01371-QCAMSLSWPLZ-1 > > Signed-off-by: Carl Huang Acked-by: Jeff Johnson