Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp389233lqd; Wed, 24 Apr 2024 05:48:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVlE90sPKXXqQvgqH7YTduNpj8snTMLHq5qdDlhCzC5tABGvJzzPUsYoxEIbTSkOylifez76DeNU5Ht5Z4cK9DAU1nDRdk3t73evTWQgQ== X-Google-Smtp-Source: AGHT+IHiV+3IXBInyGTfIZG78AzRL/BSzsyCsMGypdQtZFMrK0Cl8pN80wApG43gfs4Ul4uqnddV X-Received: by 2002:a17:902:e84f:b0:1e2:a162:6f7a with SMTP id t15-20020a170902e84f00b001e2a1626f7amr2916121plg.43.1713962910904; Wed, 24 Apr 2024 05:48:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713962910; cv=pass; d=google.com; s=arc-20160816; b=stebaeEl9HR5DFmNMZXa1V9/b2nf6yIyPksNW5TuHiU+7SkZD+xhPBQzmRuYbZN/Lc hYTdzYDI/mzNsob+906dMSzPfKkpSR0Rn5NzElBPk3t5YqtQKOKo56hlTQHKBxUc8L8+ c2RbWbo40jg3I6n7afDbrtAlsjEZFnoLpMzFHplpYSjBXak/AIwhSGW4+KcKEO1sS+U1 WCAo2JGijv9/3ZKAmL4rlOALqF34mpGupQFWfp15ZlKt4ac3F4rQyFnpXNLx4cPRPDb2 kWYtCZVY3QhrlUF4vDs8hfw2SLHvUZm6K/HOH6qHOm+IoHKjLvcby2lxkNaVpEYWCSHM 6vvA== 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:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=ocen2Pswahg44tyFdWzmonpZBfzUoCyyDptpctSisNc=; fh=eHEggrb2yexBjYR+2dmkElX1f3ewHucDfLc27zDkPwc=; b=VsWbQGD8qh036w/5YE2932GWHbd9i6p0Y9yF/OKlOcJuOo8aRwd1TQjlnA65Nv0WRG +nKHmg2/YDq2XDyamXokKlS1mQByYspraYfBeGPnPtzNoKWBJiGAwl1buy0s/ND667O5 6j8r43K6dhYxwWv8D32QymXeAsnyha1KgkbzfjKsBgjJS2PFlxwCXNKlwxQKhiksiUg4 t4K6qjoyX5DFTdXU7kQHq7JdspDh2ZvnTmQZAjig5tlL0T5ur+6I2ByESKd1N/sJRam1 DipuinWWg5ZRHzKepL10/sBlSlDEfUog9WR8yL8KDhC4bVQdi9P6Q996+ECYiBZBRJ4J Uwcw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=hYguyXVC; arc=pass (i=1 spf=pass spfdomain=mailbox.org dkim=pass dkdomain=mailbox.org dmarc=pass fromdomain=mailbox.org); spf=pass (google.com: domain of linux-wireless+bounces-6769-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6769-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=mailbox.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id ma12-20020a170903094c00b001e49428f307si11287284plb.329.2024.04.24.05.48.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 05:48:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6769-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=hYguyXVC; arc=pass (i=1 spf=pass spfdomain=mailbox.org dkim=pass dkdomain=mailbox.org dmarc=pass fromdomain=mailbox.org); spf=pass (google.com: domain of linux-wireless+bounces-6769-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6769-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=mailbox.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id DF899B24EDB for ; Wed, 24 Apr 2024 12:32:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A38AB2F52; Wed, 24 Apr 2024 12:32:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b="hYguyXVC" X-Original-To: linux-wireless@vger.kernel.org Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172]) (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 688871E528 for ; Wed, 24 Apr 2024 12:32:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.241.56.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713961949; cv=none; b=hu7ioS80MCCfB+Q+mgDzdOE+Zsx9i/bSSXjd5htgD2GFNzWhd81YCcxw0nFFD8LgWy8h2GnMVkUJJUL281Ud9d08eTmOk7wUliNSttlsAdGpq5qVRbfbxF+FAgGrzt38rQ5SOpIBbOs6OiXfmBS1FFrcM7CV2FYXRh6NTgKRy6c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713961949; c=relaxed/simple; bh=LYEsWdL4GUnssBeOlDMCbFKVyTLdGrPhv3ZaXpKqbPA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=QjIlekWp0qq1pSGu9B32BWFLuHAzcDAMDgljzSrS7yiW0L3M+PkeZ3fEZkUWU/FFJYutSNdlnmjP/RSeqIjtnj2EPO7YQilL2dnpVqn4Avj51sfC2fiBvF8sMEMqD7b7ZY+lRiRJ068kiVSW30kgQctKi7l2GaT1iPkQ38Y74l0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=mailbox.org; spf=pass smtp.mailfrom=mailbox.org; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b=hYguyXVC; arc=none smtp.client-ip=80.241.56.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=mailbox.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mailbox.org Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4VPdWr2bjzz9spZ; Wed, 24 Apr 2024 14:26:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1713961592; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ocen2Pswahg44tyFdWzmonpZBfzUoCyyDptpctSisNc=; b=hYguyXVCMkevSlAI9zbuEYJT2RyA0TslxzTC/flPcZWcuUbMEJW+Sbav34bYwafr48j2FL WV7Al0nutqKdqxtqpZsQGxybVM2AKP/9XdL5oB+TYtUQZ2gY0IYhoEU8Rfq/Isz+fS/bYT FAJouDEMKWkj3htU0N2WccqnkPo8P6duFdbz/OMiMGPEAS76L2zrPmvs+qu+CkKDiqKrBu agb/NaO03WJw8bFTFI8Bxdu4ueBNAa0e8mbw03U8syOESqcvcAB9R5BWSgU/g0pgLuBJOB BPqye9UkYW//N4UsOHPUoJkQGZo2YyKB2F+sDMW547VUH00Jpqai7CMkWodS0g== Message-ID: Date: Wed, 24 Apr 2024 14:26:30 +0200 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH] wifi: iwlwifi: mvm: fix link ID management Content-Language: en-US To: Johannes Berg , linux-wireless@vger.kernel.org Cc: Johannes Berg References: <20240420154435.dce72db5d5e3.Ic40b454b24f1c7b380a1eedf67455d9cf2f58541@changeid> From: Tor Vic In-Reply-To: <20240420154435.dce72db5d5e3.Ic40b454b24f1c7b380a1eedf67455d9cf2f58541@changeid> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-MBO-RS-META: 7em8th45ys7abjod6ifj95tzcnfndoqi X-MBO-RS-ID: f0c7217f281fdc8d27e On 4/20/24 15:44, Johannes Berg wrote: > From: Johannes Berg > > On older (pre-MLD API) devices, we started also calling > iwl_mvm_set_link_mapping()/iwl_mvm_unset_link_mapping(), > but of course not also iwl_mvm_remove_link(). Since the > link ID was only released in iwl_mvm_remove_link() this > causes us to run out of FW link IDs very quickly. Fix > it by releasing the link ID correctly. > > Fixes: a8b5d4809b50 ("wifi: iwlwifi: mvm: Configure the link mapping for non-MLD FW") > Signed-off-by: Johannes Berg > --- > drivers/net/wireless/intel/iwlwifi/mvm/link.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/link.c b/drivers/net/wireless/intel/iwlwifi/mvm/link.c > index 9f69e04594e4..fe5bba8561d0 100644 > --- a/drivers/net/wireless/intel/iwlwifi/mvm/link.c > +++ b/drivers/net/wireless/intel/iwlwifi/mvm/link.c > @@ -279,6 +279,7 @@ int iwl_mvm_unset_link_mapping(struct iwl_mvm *mvm, struct ieee80211_vif *vif, > > RCU_INIT_POINTER(mvm->link_id_to_link_conf[link_info->fw_link_id], > NULL); > + iwl_mvm_release_fw_link_id(mvm, link_info->fw_link_id); > return 0; > } > > @@ -296,7 +297,6 @@ int iwl_mvm_remove_link(struct iwl_mvm *mvm, struct ieee80211_vif *vif, > return 0; > > cmd.link_id = cpu_to_le32(link_info->fw_link_id); > - iwl_mvm_release_fw_link_id(mvm, link_info->fw_link_id); > link_info->fw_link_id = IWL_MVM_FW_LINK_ID_INVALID; > cmd.spec_link_id = link_conf->link_id; > cmd.phy_id = cpu_to_le32(FW_CTXT_INVALID); Hi, this patch fixes the issue on my old ThinkPad with Network controller: Intel Corporation Wireless 8265 / 8275 (rev 78) Tested-by: Tor Vic