Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2240505lqo; Sun, 19 May 2024 21:57:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWMtaKlsR2c3Oz26qPn/2kCSJkqQFIiDMKwOm8KPZKaeacXsvKdPIRU0V9BVN7W6axpe7YBGO7+D0IPEU0Q9DdWb5l1NACIyTvboSVzkQ== X-Google-Smtp-Source: AGHT+IGGoruqVK3Rd5I6jcW1Zhi6wTPVMima62OCvwx0/I1mzLMXUVS8ipzRiqFxp3VQATVvD0hw X-Received: by 2002:a05:6870:8e14:b0:23c:3b00:ac8e with SMTP id 586e51a60fabf-24172a75892mr33144969fac.17.1716181033504; Sun, 19 May 2024 21:57:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716181033; cv=pass; d=google.com; s=arc-20160816; b=J28M/JaAj7b5/yFej2QXO1B4l/M8e4tjGH/eUOa4DcJe0MV8Ob/k9erShmc2ineOL5 DtaJRvxzKAYbtm3/Udh0iqNmFL2zKWMNWGfXarUvfVu1Y9xwN7p/ZU7J68m3ORuSTqC0 TfTwZhK9cfTk5j1BA311TR7XQoVcziJjHmFU5xo4sMTwNyvHlgWV1ohWaZHp/NRLmjnR FdMWbfCrF2MZ5W8iWDSGIjpKh+BRbcvqDt6GnpScC91qh/SeaSCNdRP5/rxVi6/QJtwE p2f0o7ebfpou2VawvvmnfHx3FLd/fTcopvPQEfaa/2/n6Co1ErNEyVYkVPxYRoHIIAq+ TFjQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=TYW5nPiWMNSPOB06uS3rc1WPwBpNnN2j0nMmjIJlVBU=; fh=I+Hcip5wbEKKLIv0PrfHeEjcE6oZ73C2mcqEBm9wQXc=; b=bnNZ2l4t7BJTcsJONhhTGHG1lZJUtTK5IsUschYoHr9eL6iixP8CmN4hsB4g7G1hiY 97Zx0ubjUc0zOdNc1xj4xFFWG8cRCRPaB7TDAw0TiUs8+qevy6uVIZINMIqOYQ94urPd cNPeKhJQJGfzfxXkkATFPrhhMNjNaPJ0L+to4BqkQV9ic25IDzpRwL8DpAUgSjOfBk7s +eYOp7jFppeoKLZvt1vY815g5FehS5Ixc+WZL3f/U1/qTk5e2+BHuv0vKk66Qo+ZcCjJ y082DyYU96I8izIFPb5U01QhCUkwzyJMehG0au1KeQLpLZPq+uoLLmS0Z23Z9ZijsA76 /tkA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kqgx06eg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-7832-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7832-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f4d2aeede9si21543581b3a.156.2024.05.19.21.57.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 May 2024 21:57:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7832-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kqgx06eg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-7832-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7832-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id B24C7281CB2 for ; Mon, 20 May 2024 04:57:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 45D46D52F; Mon, 20 May 2024 04:57:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kqgx06eg" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 174372F56 for ; Mon, 20 May 2024 04:57:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716181029; cv=none; b=d+urkVbrU2rDGsoGePPcs1y8AWrlWkktPEbWcDzyjgXLC5/8A9jMAdB+KqjVOjH9rJVHN2zi80tbxopBampYKx/IA9guXu4cUqaKUQeulhvF8b6X9Z9uv0l3AkNJYoU5HPXsYRQewL3MKKV5aSmopzgYYWcxMNtcTktGVXDB6Rs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716181029; c=relaxed/simple; bh=QMkoV1HCgGjWuiwba/dY7eyC1+I7pq8rO6I224Vc+2Y=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=a0U9/xz9NDkF8z1oq+wX+IvqSqahjSsi/yyEgBsQaIUoWTOVv4C0b+8VugU3h7vVTkRrWebrXW0wzSFiQ+ukBStzkr0aL4AcPMR2I6UrfJCyAaBTEd5SnYgq34w2/4PM9kJt1g2VSpOTZ7/zre035xp/vxeDEF47dN0mA3bV8YM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kqgx06eg; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE470C2BD10; Mon, 20 May 2024 04:57:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716181028; bh=QMkoV1HCgGjWuiwba/dY7eyC1+I7pq8rO6I224Vc+2Y=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=kqgx06eg8ovepo5EOJmZNq13iLlGxTNawK1yCgXOJUPXOY6xfZoZ8OPawlMB/xV3Q p0pLIzi0qwB5HGUAjaDusfCdQo1OA2aIkR0P5Hcf4LJwHBphBdMmfq1C+cA6FDQbD8 WD1QT5ujPLIlk8QgZ0AFr71dQiB4PjJes4Mn8znsSUan6Vqrjc2t0VT2kHSLoBhpTq nDyLsbUAXYK+3UUX1Al7iPBeEJ1UOlpQD+ArX5zH/fXvRi5lOHYyeWPAckunQhANyc a8IeWwKmPeiEAYREQnkSb2wTzUqt1SvHMvA2YuxvlP4/qSNqfPUG8wlD3b2KGtWJ2+ C0pBxRB/VrUaw== From: Kalle Valo To: Carl Huang Cc: , Subject: Re: [PATCH] wifi: ath11k: fix WCN6750 firmware crash caused by 17 num_vdevs References: <20240520030757.2209395-1-quic_cjhuang@quicinc.com> Date: Mon, 20 May 2024 07:57:05 +0300 In-Reply-To: <20240520030757.2209395-1-quic_cjhuang@quicinc.com> (Carl Huang's message of "Mon, 20 May 2024 11:07:57 +0800") Message-ID: <87wmnpdqse.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Carl Huang writes: > 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 Luca, can you test this as well just to be sure? The patch is here: https://patchwork.kernel.org/project/linux-wireless/patch/20240520030757.2209395-1-quic_cjhuang@quicinc.com/ -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches