Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp345641lqo; Fri, 10 May 2024 01:23:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUDNLYffiho+GffFqn8+0/hNaDZfKp3zFlEpbAIbK2SACWg/Whp/F+gVrdIRB7pmvg6ISmOtjSDZ0j3Dz8+axJHGMqFiAuunM7gfd1Org== X-Google-Smtp-Source: AGHT+IFvymSf6LyyOboaa97tgj2DsLBPwbqCDqrR78XldCqo4H2aZ+HXFx3tkBk2EqkKYCzX6SYi X-Received: by 2002:a50:cdd0:0:b0:572:20cb:475d with SMTP id 4fb4d7f45d1cf-5734d597c86mr1808183a12.7.1715329380840; Fri, 10 May 2024 01:23:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715329380; cv=pass; d=google.com; s=arc-20160816; b=HxmVO/Qn1wbnGPka586ZzZyPdcMrsxzLcLWlm+pJhoCIp85/HDU0YOAmIhEHTtSaqB XJsb8UA8xx4SPdPix9Ayotck/TpaNsltrrN70FlLbktx83qN/TpGcVuTAnQtVGo0cV6X ewlvI/n8lW76ilex1vF4sgxB1+ZhPkkelJ9YaxLzfL06xmggzAb6Lz4tl1hWBpnqrIfX 6jVnNPokdR4OZJLEqQWBleAGjPyZu+nUpu6fTDXZQltp1/CrXp47YkI30wDJq0h/cpHr JNfj7HwK+Ktn9OcHA4+WHeoL47YZXvitz/lCKEsq0UybAmHde0aOwaxGc8u7nrqv16+G wwJQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=RJYW2yUsDK+rQ7kYscbP7Cvbto0NCRhsjdmn+T6jF4Q=; fh=/wNDxSMwReUm9vyY1ftAaICcrhyHoLYJO3WY7lat1a8=; b=jvg+uKDAcrVsAU3rlc1N1MQGdaGQsPCuQbornduaBFyea1WFQ1gy2HBWsAKfwcYqlY brA1nIuKCa4dEvQeVSQ0lxw69RXr6Z6e2/Hypo6W1ZCaaMh+NO0cOVa7UZWTbP/70M45 Zpxywqo/xKUrDoXPSCyUtq6CvHe2XQYmgD6FcsyO8sj05Q7LaZc/hfGVOc8/QV/S1+cG MgxvL5XDjxnzGnI4x359wutaC/++aahSiw7qOWQnuc5/YGgmBZA7rCvDm8na4+a/WTMS MPUl3+59idwWfaIyQZwu/sbTQu4NhYjygr6imJ3/AG+8+naMMtlcMtEmPXtk9mBdkPdu RSBQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=B6fBUWGb; arc=pass (i=1 spf=pass spfdomain=fairphone.com dkim=pass dkdomain=fairphone.com dmarc=pass fromdomain=fairphone.com); spf=pass (google.com: domain of linux-wireless+bounces-7439-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7439-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c36e334si1669199a12.549.2024.05.10.01.23.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 01:23:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7439-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=B6fBUWGb; arc=pass (i=1 spf=pass spfdomain=fairphone.com dkim=pass dkdomain=fairphone.com dmarc=pass fromdomain=fairphone.com); spf=pass (google.com: domain of linux-wireless+bounces-7439-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7439-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 59A8F1F21E7E for ; Fri, 10 May 2024 08:23:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0EC23149C51; Fri, 10 May 2024 08:22:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b="B6fBUWGb" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0FA0E1FA4 for ; Fri, 10 May 2024 08:22:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715329376; cv=none; b=rEfQPon5i69WlbdpFXm2aA5MgOGixs++1YXYDhHDxoOD8iQZDeWfJjU/jSvZEa5fstSmcoLvrgIHb0CSSGMBdChYo3+aucarpNw7Xh2RekdRimoFevu2Gc1BpthZcsSPk4HeCY9dz94qHxSXxquI63vS2Rx7gVEFSQpmYeuVNt0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715329376; c=relaxed/simple; bh=4BrdtXALMBFR5fWtmmMhwOKWfVtyzZmxtFQXJjcqA+w=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=YbljPeQ8K9jzIQdPFGLTsbfPR4aSSaPCZVpiI1GiNeesrxeCTKHxNQ2p34kPWOXzpviV+ErYGJKeCBdIrY6vxUcL6k1vrzito4s3oRGXIXaV2SK6n+CGYAhsN0JScF5kaZDQZEW4sWeuh9GfHvVxqVkQ11Cysfei7id9LNBtDw0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com; spf=pass smtp.mailfrom=fairphone.com; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b=B6fBUWGb; arc=none smtp.client-ip=209.85.167.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fairphone.com Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-51fdc9af005so2779923e87.3 for ; Fri, 10 May 2024 01:22:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1715329372; x=1715934172; darn=vger.kernel.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=RJYW2yUsDK+rQ7kYscbP7Cvbto0NCRhsjdmn+T6jF4Q=; b=B6fBUWGb+Klv6Ec6KubvJf/gOXXZuu/V2OxD2eSNP/8zAfcFzOAZTOQd+teIy/fxdU oz8lpi/Ck/IXDlmq6KBJYcwMzZLZxQ7f9EcKrGgSxVuXUBh9JDBlGRqWkrxHOoAwQXam 85jBy3loxzqDEVHTZmdMT3OKuZJCuquj2jxlpHbyH/gty+a4E79nsa8fJYa72065q8C/ EnM4DVsoaVB24qkAm4ys5QkPGtZMoumSHVunA6t9YNHTa4UUj96TePsm5sBNN1wleb5G KJQMZ654Hzuva4Lpt9ENs4iBjsjvuOWeh4YWKf5OatUVgR2EbMqfGID3a/ooQ/79am8z Gpvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715329372; x=1715934172; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=RJYW2yUsDK+rQ7kYscbP7Cvbto0NCRhsjdmn+T6jF4Q=; b=TfqfUBgFlamLfJQ/gwlkpk0uceYnJ0psdA9Ebp71cZoMZejLqJzd+pTDlXu4Ol7yKl 1GYHriykIu84wRVZHK/4oz8oq3pMMPUbx5mY88jSTE74BXAbAfrexYlGxBJOUkR6hjEi Ln0xZsMnx8AeBmMHbczkcZiG6nDXhKUUvnWu76NtYpWbYWugpZgH7creYY4RrtxzxtRU P9iLbCwaocYgIgYfaEN4YyG8Bne3M70MQnSvDuhF/FzPbAqRXnzG8ZCi6OhYsMqkYjsn 3L1bE5g/r5HY8RzRgVtBdszc1NY5I0Hm3FHsZKLg8R1BDPcFpJHB61RXmMEhovyjK5P6 8Ycw== X-Gm-Message-State: AOJu0YzLxzVCT/Lnt+Wb0JRG2MRqQLpM6+7cV3qJAx8AnzIztgxjhfbS n4yQTWwcchHgnka4CHBCSvIdVHIOvo4Yl5yRIOqB9kQhtt6hYT8RSPBS2+ju63M= X-Received: by 2002:a05:6512:444:b0:51f:3e0c:ace3 with SMTP id 2adb3069b0e04-5220fd7c6bdmr1763658e87.16.1715329371862; Fri, 10 May 2024 01:22:51 -0700 (PDT) Received: from localhost (2a02-a210-20ba-5a00-9ceb-707b-2d57-26f7.cable.dynamic.v6.ziggo.nl. [2a02:a210:20ba:5a00:9ceb:707b:2d57:26f7]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a179c7dd4sm157412066b.139.2024.05.10.01.22.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 10 May 2024 01:22:51 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 10 May 2024 10:22:50 +0200 Message-Id: Cc: Subject: Re: [PATCH 1/2] wifi: ath11k: supports 2 station interfaces From: "Luca Weiss" To: "Carl Huang" , X-Mailer: aerc 0.17.0 References: <20230714023801.2621802-1-quic_cjhuang@quicinc.com> <20230714023801.2621802-2-quic_cjhuang@quicinc.com> In-Reply-To: <20230714023801.2621802-2-quic_cjhuang@quicinc.com> On Fri Jul 14, 2023 at 4:38 AM CEST, Carl Huang wrote: > Add hardware parameter support_dual_stations to indicate > whether 2 station interfaces are supported. For chips which > support this feature, limit total number of AP interface and > mesh point to 1. The max interfaces are 3 for such chips. > > The chips affected are: > QCA6390 hw2.0 > WCN6855 hw2.0 > WCN6855 hw2.1 > Other chips are not affected. > > For affected chips, remove radar_detect_widths because now > num_different_channels is set to 2. radar_detect_widths can > be set only when num_different_channels is 1. See mac80211 > function wiphy_verify_combinations for details. > > Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ= _LITE-3 Hi Carl, Unfortunately this commit breaks wifi on a QCM6490 smartphone (qcm6490-fairphone-fp5) and makes the board crash. Reverting this commit (plus for conflict resolution 5dc9d1a55e95 ("wifi: ath11k: add support for QCA2066") and 24395ec11707 ("wifi: ath11k: provide address list if chip supports 2 stations")) makes wifi work again. Here's the crash log: [ 43.458118] ath11k 17a10040.wifi: Adding to iommu group 11 [ 43.459075] ath11k 17a10040.wifi: wcn6750 hw1.0 [ 43.461219] remoteproc remoteproc2: powering up 8a00000.remoteproc [ 43.490363] remoteproc remoteproc2: Booting fw image qcom/qcm6490/fairph= one5/wpss.mbn, size 7435056 [ 43.614039] remoteproc remoteproc2: remote processor 8a00000.remoteproc = is now up [ 43.746227] ath11k 17a10040.wifi: chip_id 0x1 chip_family 0xb board_id 0= xff soc_id 0xffffffff [ 43.746262] ath11k 17a10040.wifi: fw_version 0x1011855b fw_build_timesta= mp 2023-09-03 07:43 fw_build_id WLAN.MSL.1.0.1-01371-QCAMSLSWPLZ-1 [ 53.116443] qcom_q6v5_pas 8a00000.remoteproc: fatal error received: cmno= s_thread.c:4645:Asserted in cmnos_allocram.c:cmnos_allocram_base_with_align= ment_recurse:497 with Args:0x3,0x3,0x0 [ 53.116503] remoteproc remoteproc2: crash detected in 8a00000.remoteproc= : type fatal error [ 53.116734] remoteproc remoteproc2: handling crash #1 in 8a00000.remotep= roc [ 53.116749] remoteproc remoteproc2: recovering 8a00000.remoteproc [ 53.125088] ath11k 17a10040.wifi: failed to send WMI_PDEV_SET_PARAM cmd [ 53.125116] ath11k 17a10040.wifi: failed to enable PMF QOS: (-108 [ 53.125167] remoteproc remoteproc2: stopped remote processor 8a00000.rem= oteproc [ 53.127827] ath11k 17a10040.wifi: failed to send WMI_PDEV_SET_PARAM cmd [ 53.127848] ath11k 17a10040.wifi: failed to enable PMF QOS: (-108 [ 53.258990] remoteproc remoteproc2: remote processor 8a00000.remoteproc = is now up [ 53.390288] ath11k 17a10040.wifi: chip_id 0x1 chip_family 0xb board_id 0= xff soc_id 0xffffffff [ 53.390319] ath11k 17a10040.wifi: fw_version 0x1011855b fw_build_timesta= mp 2023-09-03 07:43 fw_build_id WLAN.MSL.1.0.1-01371-QCAMSLSWPLZ-1 [ 53.404765] ath11k 17a10040.wifi: Last interrupt received for each CE: [ 53.404789] ath11k 17a10040.wifi: CE_id 0 pipe_num 0 580ms before [ 53.404804] ath11k 17a10040.wifi: CE_id 1 pipe_num 1 476ms before [ 53.404818] ath11k 17a10040.wifi: CE_id 2 pipe_num 2 476ms before [ 53.404831] ath11k 17a10040.wifi: CE_id 3 pipe_num 3 580ms before [ 53.404844] ath11k 17a10040.wifi: CE_id 5 pipe_num 5 4294720700ms before [ 53.404858] ath11k 17a10040.wifi: CE_id 7 pipe_num 7 4294720700ms before [ 53.404871] ath11k 17a10040.wifi: CE_id 8 pipe_num 8 4294720700ms before [ 53.404883] ath11k 17a10040.wifi:=20 Last interrupt received for each group: [ 53.404894] ath11k 17a10040.wifi: group_id 0 4294720700ms before [ 53.404907] ath11k 17a10040.wifi: group_id 1 4294720700ms before [ 53.404918] ath11k 17a10040.wifi: group_id 2 4294720700ms before [ 53.404929] ath11k 17a10040.wifi: group_id 3 4294720700ms before [ 53.404940] ath11k 17a10040.wifi: group_id 4 4294720700ms before [ 53.404952] ath11k 17a10040.wifi: group_id 5 4294720700ms before [ 53.404964] ath11k 17a10040.wifi: group_id 6 4294720700ms before [ 53.404976] ath11k 17a10040.wifi: group_id 7 4294720700ms before [ 53.404987] ath11k 17a10040.wifi: group_id 8 4294720700ms before [ 53.404998] ath11k 17a10040.wifi: group_id 9 4294720700ms before [ 53.405009] ath11k 17a10040.wifi: group_id 10 4294720700ms before [ 53.405021] ath11k 17a10040.wifi: dst srng id 0 tp 0, cur hp 0, cached h= p 0 last hp 0 napi processed before 4294720700ms [ 53.405037] ath11k 17a10040.wifi: dst srng id 1 tp 0, cur hp 0, cached h= p 0 last hp 0 napi processed before 4294720700ms [ 53.405052] ath11k 17a10040.wifi: dst srng id 2 tp 0, cur hp 0, cached h= p 0 last hp 0 napi processed before 4294720700ms [ 53.405066] ath11k 17a10040.wifi: dst srng id 3 tp 0, cur hp 0, cached h= p 0 last hp 0 napi processed before 4294720700ms [ 53.405082] ath11k 17a10040.wifi: dst srng id 4 tp 0, cur hp 0, cached h= p 0 last hp 0 napi processed before 4294720700ms [ 53.405097] ath11k 17a10040.wifi: src srng id 5 hp 0, reap_hp 248, cur t= p 0, cached tp 0 last tp 0 napi processed before 4294720700ms [ 53.405114] ath11k 17a10040.wifi: src srng id 8 hp 0, reap_hp 2550, cur = tp 0, cached tp 0 last tp 0 napi processed before 4294720700ms [ 53.405130] ath11k 17a10040.wifi: dst srng id 9 tp 0, cur hp 0, cached h= p 0 last hp 0 napi processed before 4294720700ms [ 53.405145] ath11k 17a10040.wifi: src srng id 16 hp 0, reap_hp 16376, cu= r tp 0, cached tp 0 last tp 0 napi processed before 4294720700ms [ 53.405162] ath11k 17a10040.wifi: src srng id 17 hp 0, reap_hp 16376, cu= r tp 0, cached tp 0 last tp 0 napi processed before 4294720700ms [ 53.405179] ath11k 17a10040.wifi: src srng id 18 hp 0, reap_hp 16376, cu= r tp 0, cached tp 0 last tp 0 napi processed before 4294720700ms [ 53.405196] ath11k 17a10040.wifi: src srng id 24 hp 0, reap_hp 248, cur = tp 0, cached tp 0 last tp 0 napi processed before 4294720700ms [ 53.405213] ath11k 17a10040.wifi: dst srng id 25 tp 0, cur hp 0, cached = hp 0 last hp 0 napi processed before 4294720700ms [ 53.405228] ath11k 17a10040.wifi: src srng id 32 hp 12, reap_hp 8, cur t= p 12, cached tp 12 last tp 8 napi processed before 580ms [ 53.405244] ath11k 17a10040.wifi: src srng id 35 hp 4, reap_hp 0, cur tp= 4, cached tp 4 last tp 0 napi processed before 580ms [ 53.405260] ath11k 17a10040.wifi: src srng id 36 hp 20, reap_hp 0, cur t= p 20, cached tp 12 last tp 12 napi processed before 460ms [ 53.405276] ath11k 17a10040.wifi: src srng id 39 hp 0, reap_hp 124, cur = tp 0, cached tp 0 last tp 0 napi processed before 4294720700ms [ 53.405294] ath11k 17a10040.wifi: src srng id 57 hp 1022, reap_hp 1022, = cur tp 2, cached tp 2 last tp 2 napi processed before 476ms [ 53.405310] ath11k 17a10040.wifi: src srng id 58 hp 18, reap_hp 18, cur = tp 22, cached tp 22 last tp 22 napi processed before 476ms [ 53.405327] ath11k 17a10040.wifi: src srng id 61 hp 1020, reap_hp 1020, = cur tp 0, cached tp 0 last tp 0 napi processed before 584ms [ 53.405345] ath11k 17a10040.wifi: dst srng id 81 tp 4, cur hp 4, cached = hp 4 last hp 4 napi processed before 476ms [ 53.405361] ath11k 17a10040.wifi: dst srng id 82 tp 44, cur hp 44, cache= d hp 44 last hp 44 napi processed before 476ms [ 53.405378] ath11k 17a10040.wifi: dst srng id 85 tp 0, cur hp 0, cached = hp 0 last hp 0 napi processed before 4294720700ms [ 53.405394] ath11k 17a10040.wifi: src srng id 104 hp 65532, reap_hp 6553= 2, cur tp 0, cached tp 0 last tp 0 napi processed before 588ms [ 53.405411] ath11k 17a10040.wifi: src srng id 105 hp 0, reap_hp 504, cur= tp 0, cached tp 0 last tp 0 napi processed before 4294720700ms [ 53.405427] ath11k 17a10040.wifi: dst srng id 106 tp 0, cur hp 0, cached= hp 0 last hp 0 napi processed before 4294720700ms [ 53.405443] ath11k 17a10040.wifi: dst srng id 108 tp 0, cur hp 0, cached= hp 0 last hp 0 napi processed before 4294720700ms [ 53.405458] ath11k 17a10040.wifi: dst srng id 109 tp 0, cur hp 0, cached= hp 0 last hp 0 napi processed before 4294720700ms [ 53.405474] ath11k 17a10040.wifi: dst srng id 110 tp 0, cur hp 0, cached= hp 0 last hp 0 napi processed before 4294720700ms [ 53.405491] ath11k 17a10040.wifi: src srng id 128 hp 8190, reap_hp 8190,= cur tp 0, cached tp 0 last tp 0 napi processed before 464ms [ 53.405507] ath11k 17a10040.wifi: src srng id 129 hp 0, reap_hp 2046, cu= r tp 0, cached tp 0 last tp 0 napi processed before 4294720700ms [ 53.405525] ath11k 17a10040.wifi: src srng id 132 hp 2046, reap_hp 2046,= cur tp 0, cached tp 0 last tp 0 napi processed before 460ms [ 53.405542] ath11k 17a10040.wifi: dst srng id 133 tp 0, cur hp 0, cached= hp 0 last hp 0 napi processed before 4294720700ms [ 53.747641] qcom_q6v5_pas 8a00000.remoteproc: fatal error received: plat= form_msl.c:513:PCIE ACMT error debug0 0x6030, debug1 0x101 [ 53.747677] remoteproc remoteproc2: crash detected in 8a00000.remoteproc= : type fatal error [ 53.747864] remoteproc remoteproc2: handling crash #2 in 8a00000.remotep= roc [ 53.747875] remoteproc remoteproc2: recovering 8a00000.remoteproc [ 53.758632] remoteproc remoteproc2: stopped remote processor 8a00000.rem= oteproc [ 53.886889] remoteproc remoteproc2: remote processor 8a00000.remoteproc = is now up [ 54.017475] ath11k 17a10040.wifi: chip_id 0x1 chip_family 0xb board_id 0= xff soc_id 0xffffffff [ 54.017505] ath11k 17a10040.wifi: fw_version 0x1011855b fw_build_timesta= mp 2023-09-03 07:43 fw_build_id WLAN.MSL.1.0.1-01371-QCAMSLSWPLZ-1 [ 54.027605] ath11k 17a10040.wifi: Last interrupt received for each CE: [ 54.027627] ath11k 17a10040.wifi: CE_id 0 pipe_num 0 1204ms before [ 54.027642] ath11k 17a10040.wifi: CE_id 1 pipe_num 1 1100ms before [ 54.027655] ath11k 17a10040.wifi: CE_id 2 pipe_num 2 1100ms before [ 54.027667] ath11k 17a10040.wifi: CE_id 3 pipe_num 3 1204ms before [ 54.027680] ath11k 17a10040.wifi: CE_id 5 pipe_num 5 4294721324ms before [ 54.027692] ath11k 17a10040.wifi: CE_id 7 pipe_num 7 4294721324ms before [ 54.027704] ath11k 17a10040.wifi: CE_id 8 pipe_num 8 4294721324ms before [ 54.027716] ath11k 17a10040.wifi:=20 Last interrupt received for each group: [ 54.027726] ath11k 17a10040.wifi: group_id 0 4294721324ms before [ 54.027738] ath11k 17a10040.wifi: group_id 1 4294721324ms before [ 54.027749] ath11k 17a10040.wifi: group_id 2 4294721324ms before [ 54.027760] ath11k 17a10040.wifi: group_id 3 4294721324ms before [ 54.027771] ath11k 17a10040.wifi: group_id 4 4294721324ms before [ 54.027782] ath11k 17a10040.wifi: group_id 5 4294721324ms before [ 54.027794] ath11k 17a10040.wifi: group_id 6 4294721324ms before [ 54.027805] ath11k 17a10040.wifi: group_id 7 4294721324ms before [ 54.027816] ath11k 17a10040.wifi: group_id 8 4294721324ms before [ 54.027827] ath11k 17a10040.wifi: group_id 9 4294721324ms before [ 54.027838] ath11k 17a10040.wifi: group_id 10 4294721324ms before [ 54.027850] ath11k 17a10040.wifi: dst srng id 4 tp 0, cur hp 0, cached h= p 0 last hp 0 napi processed before 4294721324ms [ 54.027866] ath11k 17a10040.wifi: src srng id 5 hp 0, reap_hp 248, cur t= p 0, cached tp 0 last tp 0 napi processed before 4294721324ms [ 54.027882] ath11k 17a10040.wifi: src srng id 8 hp 0, reap_hp 2550, cur = tp 0, cached tp 0 last tp 0 napi processed before 4294721324ms [ 54.027898] ath11k 17a10040.wifi: dst srng id 9 tp 0, cur hp 0, cached h= p 0 last hp 0 napi processed before 4294721324ms [ 54.027914] ath11k 17a10040.wifi: src srng id 16 hp 0, reap_hp 16376, cu= r tp 0, cached tp 0 last tp 0 napi processed before 4294721324ms [ 54.027930] ath11k 17a10040.wifi: src srng id 17 hp 0, reap_hp 16376, cu= r tp 0, cached tp 0 last tp 0 napi processed before 4294721324ms [ 54.027947] ath11k 17a10040.wifi: src srng id 18 hp 0, reap_hp 16376, cu= r tp 0, cached tp 0 last tp 0 napi processed before 4294721324ms [ 54.027964] ath11k 17a10040.wifi: src srng id 24 hp 0, reap_hp 248, cur = tp 0, cached tp 0 last tp 0 napi processed before 4294721324ms [ 54.027980] ath11k 17a10040.wifi: dst srng id 25 tp 0, cur hp 0, cached = hp 0 last hp 0 napi processed before 4294721324ms [ 54.027997] ath11k 17a10040.wifi: src srng id 32 hp 0, reap_hp 60, cur t= p 0, cached tp 0 last tp 0 napi processed before 4294721324ms [ 54.028014] ath11k 17a10040.wifi: src srng id 35 hp 0, reap_hp 124, cur = tp 0, cached tp 0 last tp 0 napi processed before 4294721324ms [ 54.028030] ath11k 17a10040.wifi: src srng id 36 hp 0, reap_hp 8188, cur= tp 0, cached tp 0 last tp 0 napi processed before 4294721324ms [ 54.028045] ath11k 17a10040.wifi: src srng id 39 hp 0, reap_hp 124, cur = tp 0, cached tp 0 last tp 0 napi processed before 4294721324ms [ 54.028063] ath11k 17a10040.wifi: src srng id 57 hp 1020, reap_hp 1020, = cur tp 0, cached tp 0 last tp 0 napi processed before 440ms [ 54.028079] ath11k 17a10040.wifi: src srng id 58 hp 1020, reap_hp 1020, = cur tp 0, cached tp 0 last tp 0 napi processed before 436ms [ 54.028095] ath11k 17a10040.wifi: src srng id 61 hp 1020, reap_hp 1020, = cur tp 0, cached tp 0 last tp 0 napi processed before 436ms [ 54.028112] ath11k 17a10040.wifi: dst srng id 81 tp 0, cur hp 0, cached = hp 0 last hp 0 napi processed before 4294721324ms [ 54.028128] ath11k 17a10040.wifi: dst srng id 82 tp 0, cur hp 0, cached = hp 0 last hp 0 napi processed before 4294721324ms [ 54.028143] ath11k 17a10040.wifi: dst srng id 85 tp 0, cur hp 0, cached = hp 0 last hp 0 napi processed before 4294721324ms [ 54.028160] ath11k 17a10040.wifi: src srng id 104 hp 65532, reap_hp 6553= 2, cur tp 0, cached tp 0 last tp 0 napi processed before 448ms [ 54.028177] ath11k 17a10040.wifi: src srng id 105 hp 0, reap_hp 504, cur= tp 0, cached tp 0 last tp 0 napi processed before 4294721324ms [ 54.028194] ath11k 17a10040.wifi: dst srng id 106 tp 0, cur hp 0, cached= hp 0 last hp 0 napi processed before 4294721324ms [ 54.028210] ath11k 17a10040.wifi: dst srng id 108 tp 0, cur hp 0, cached= hp 0 last hp 0 napi processed before 4294721324ms [ 54.028226] ath11k 17a10040.wifi: dst srng id 109 tp 0, cur hp 0, cached= hp 0 last hp 0 napi processed before 4294721324ms [ 54.028242] ath11k 17a10040.wifi: dst srng id 110 tp 0, cur hp 0, cached= hp 0 last hp 0 napi processed before 4294721324ms [ 54.622819] ath11k 17a10040.wifi: failed to receive control response com= pletion, polling.. [ 55.646232] ath11k 17a10040.wifi: ctl_resp never came in (-110) [ 55.646259] ath11k 17a10040.wifi: failed to connect to HTC: -110 [ 55.653201] ath11k 17a10040.wifi: failed to start core: -110 Let me know if you need any more information. Regards Luca > > Signed-off-by: Carl Huang > --- > drivers/net/wireless/ath/ath11k/core.c | 14 ++++-- > drivers/net/wireless/ath/ath11k/hw.c | 2 +- > drivers/net/wireless/ath/ath11k/hw.h | 1 + > drivers/net/wireless/ath/ath11k/mac.c | 62 +++++++++++++++++--------- > 4 files changed, 53 insertions(+), 26 deletions(-) > > diff --git a/drivers/net/wireless/ath/ath11k/core.c b/drivers/net/wireles= s/ath/ath11k/core.c > index bebfd342e28b..739a8d13d57d 100644 > --- a/drivers/net/wireless/ath/ath11k/core.c > +++ b/drivers/net/wireless/ath/ath11k/core.c > @@ -120,6 +120,7 @@ static const struct ath11k_hw_params ath11k_hw_params= [] =3D { > .tcl_ring_retry =3D true, > .tx_ring_size =3D DP_TCL_DATA_RING_SIZE, > .smp2p_wow_exit =3D false, > + .support_dual_stations =3D false, > }, > { > .hw_rev =3D ATH11K_HW_IPQ6018_HW10, > @@ -202,6 +203,7 @@ static const struct ath11k_hw_params ath11k_hw_params= [] =3D { > .tx_ring_size =3D DP_TCL_DATA_RING_SIZE, > .smp2p_wow_exit =3D false, > .support_fw_mac_sequence =3D false, > + .support_dual_stations =3D false, > }, > { > .name =3D "qca6390 hw2.0", > @@ -251,7 +253,7 @@ static const struct ath11k_hw_params ath11k_hw_params= [] =3D { > .cold_boot_calib =3D false, > .cbcal_restart_fw =3D false, > .fw_mem_mode =3D 0, > - .num_vdevs =3D 16 + 1, > + .num_vdevs =3D 2 + 1, > .num_peers =3D 512, > .supports_suspend =3D true, > .hal_desc_sz =3D sizeof(struct hal_rx_desc_ipq8074), > @@ -286,6 +288,7 @@ static const struct ath11k_hw_params ath11k_hw_params= [] =3D { > .tx_ring_size =3D DP_TCL_DATA_RING_SIZE, > .smp2p_wow_exit =3D false, > .support_fw_mac_sequence =3D true, > + .support_dual_stations =3D true, > }, > { > .name =3D "qcn9074 hw1.0", > @@ -367,6 +370,7 @@ static const struct ath11k_hw_params ath11k_hw_params= [] =3D { > .tx_ring_size =3D DP_TCL_DATA_RING_SIZE, > .smp2p_wow_exit =3D false, > .support_fw_mac_sequence =3D false, > + .support_dual_stations =3D false, > }, > { > .name =3D "wcn6855 hw2.0", > @@ -416,7 +420,7 @@ static const struct ath11k_hw_params ath11k_hw_params= [] =3D { > .cold_boot_calib =3D false, > .cbcal_restart_fw =3D false, > .fw_mem_mode =3D 0, > - .num_vdevs =3D 16 + 1, > + .num_vdevs =3D 2 + 1, > .num_peers =3D 512, > .supports_suspend =3D true, > .hal_desc_sz =3D sizeof(struct hal_rx_desc_wcn6855), > @@ -451,6 +455,7 @@ static const struct ath11k_hw_params ath11k_hw_params= [] =3D { > .tx_ring_size =3D DP_TCL_DATA_RING_SIZE, > .smp2p_wow_exit =3D false, > .support_fw_mac_sequence =3D true, > + .support_dual_stations =3D true, > }, > { > .name =3D "wcn6855 hw2.1", > @@ -498,7 +503,7 @@ static const struct ath11k_hw_params ath11k_hw_params= [] =3D { > .cold_boot_calib =3D false, > .cbcal_restart_fw =3D false, > .fw_mem_mode =3D 0, > - .num_vdevs =3D 16 + 1, > + .num_vdevs =3D 2 + 1, > .num_peers =3D 512, > .supports_suspend =3D true, > .hal_desc_sz =3D sizeof(struct hal_rx_desc_wcn6855), > @@ -533,6 +538,7 @@ static const struct ath11k_hw_params ath11k_hw_params= [] =3D { > .tx_ring_size =3D DP_TCL_DATA_RING_SIZE, > .smp2p_wow_exit =3D false, > .support_fw_mac_sequence =3D true, > + .support_dual_stations =3D true, > }, > { > .name =3D "wcn6750 hw1.0", > @@ -613,6 +619,7 @@ static const struct ath11k_hw_params ath11k_hw_params= [] =3D { > .tx_ring_size =3D DP_TCL_DATA_RING_SIZE_WCN6750, > .smp2p_wow_exit =3D true, > .support_fw_mac_sequence =3D true, > + .support_dual_stations =3D false, > }, > { > .hw_rev =3D ATH11K_HW_IPQ5018_HW10, > @@ -693,6 +700,7 @@ static const struct ath11k_hw_params ath11k_hw_params= [] =3D { > .tx_ring_size =3D DP_TCL_DATA_RING_SIZE, > .smp2p_wow_exit =3D false, > .support_fw_mac_sequence =3D false, > + .support_dual_stations =3D false, > }, > }; > =20 > diff --git a/drivers/net/wireless/ath/ath11k/hw.c b/drivers/net/wireless/= ath/ath11k/hw.c > index d7b5ec6e6904..3b56ba1b8534 100644 > --- a/drivers/net/wireless/ath/ath11k/hw.c > +++ b/drivers/net/wireless/ath/ath11k/hw.c > @@ -58,7 +58,7 @@ static void ath11k_hw_wcn6855_tx_mesh_enable(struct ath= 11k_base *ab, > static void ath11k_init_wmi_config_qca6390(struct ath11k_base *ab, > struct target_resource_config *config) > { > - config->num_vdevs =3D 4; > + config->num_vdevs =3D ab->hw_params.num_vdevs; > config->num_peers =3D 16; > config->num_tids =3D 32; > =20 > diff --git a/drivers/net/wireless/ath/ath11k/hw.h b/drivers/net/wireless/= ath/ath11k/hw.h > index f5533630a7f9..40ed5608fe81 100644 > --- a/drivers/net/wireless/ath/ath11k/hw.h > +++ b/drivers/net/wireless/ath/ath11k/hw.h > @@ -225,6 +225,7 @@ struct ath11k_hw_params { > u32 tx_ring_size; > bool smp2p_wow_exit; > bool support_fw_mac_sequence; > + bool support_dual_stations; > }; > =20 > struct ath11k_hw_ops { > diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless= /ath/ath11k/mac.c > index 8c77ade49437..3a9494bc944c 100644 > --- a/drivers/net/wireless/ath/ath11k/mac.c > +++ b/drivers/net/wireless/ath/ath11k/mac.c > @@ -9287,28 +9287,46 @@ static int ath11k_mac_setup_iface_combinations(st= ruct ath11k *ar) > return -ENOMEM; > } > =20 > - limits[0].max =3D 1; > - limits[0].types |=3D BIT(NL80211_IFTYPE_STATION); > - > - limits[1].max =3D 16; > - limits[1].types |=3D BIT(NL80211_IFTYPE_AP); > - > - if (IS_ENABLED(CONFIG_MAC80211_MESH) && > - ab->hw_params.interface_modes & BIT(NL80211_IFTYPE_MESH_POINT)) > - limits[1].types |=3D BIT(NL80211_IFTYPE_MESH_POINT); > - > - combinations[0].limits =3D limits; > - combinations[0].n_limits =3D n_limits; > - combinations[0].max_interfaces =3D 16; > - combinations[0].num_different_channels =3D 1; > - combinations[0].beacon_int_infra_match =3D true; > - combinations[0].beacon_int_min_gcd =3D 100; > - combinations[0].radar_detect_widths =3D BIT(NL80211_CHAN_WIDTH_20_NOHT)= | > - BIT(NL80211_CHAN_WIDTH_20) | > - BIT(NL80211_CHAN_WIDTH_40) | > - BIT(NL80211_CHAN_WIDTH_80) | > - BIT(NL80211_CHAN_WIDTH_80P80) | > - BIT(NL80211_CHAN_WIDTH_160); > + if (ab->hw_params.support_dual_stations) { > + limits[0].max =3D 2; > + limits[0].types |=3D BIT(NL80211_IFTYPE_STATION); > + > + limits[1].max =3D 1; > + limits[1].types |=3D BIT(NL80211_IFTYPE_AP); > + if (IS_ENABLED(CONFIG_MAC80211_MESH) && > + ab->hw_params.interface_modes & BIT(NL80211_IFTYPE_MESH_POINT)) > + limits[1].types |=3D BIT(NL80211_IFTYPE_MESH_POINT); > + > + combinations[0].limits =3D limits; > + combinations[0].n_limits =3D 2; > + combinations[0].max_interfaces =3D ab->hw_params.num_vdevs; > + combinations[0].num_different_channels =3D 2; > + combinations[0].beacon_int_infra_match =3D true; > + combinations[0].beacon_int_min_gcd =3D 100; > + } else { > + limits[0].max =3D 1; > + limits[0].types |=3D BIT(NL80211_IFTYPE_STATION); > + > + limits[1].max =3D 16; > + limits[1].types |=3D BIT(NL80211_IFTYPE_AP); > + > + if (IS_ENABLED(CONFIG_MAC80211_MESH) && > + ab->hw_params.interface_modes & BIT(NL80211_IFTYPE_MESH_POINT)) > + limits[1].types |=3D BIT(NL80211_IFTYPE_MESH_POINT); > + > + combinations[0].limits =3D limits; > + combinations[0].n_limits =3D 2; > + combinations[0].max_interfaces =3D 16; > + combinations[0].num_different_channels =3D 1; > + combinations[0].beacon_int_infra_match =3D true; > + combinations[0].beacon_int_min_gcd =3D 100; > + combinations[0].radar_detect_widths =3D BIT(NL80211_CHAN_WIDTH_20_NOHT= ) | > + BIT(NL80211_CHAN_WIDTH_20) | > + BIT(NL80211_CHAN_WIDTH_40) | > + BIT(NL80211_CHAN_WIDTH_80) | > + BIT(NL80211_CHAN_WIDTH_80P80) | > + BIT(NL80211_CHAN_WIDTH_160); > + } > =20 > ar->hw->wiphy->iface_combinations =3D combinations; > ar->hw->wiphy->n_iface_combinations =3D 1;