From patchwork Fri Apr 5 23:55:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Chan X-Patchwork-Id: 13619592 X-Patchwork-Delegate: kuba@kernel.org Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) (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 8D36D339A8 for ; Fri, 5 Apr 2024 23:55:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712361333; cv=none; b=PY0oG2LiCOvjH8hFDa1rYzVvVx+LuAsJp2RBHsBLoijZzd2diJLKIJb6cxX2l1DaMkd8FIOHB9PzUPu6Bn9yKq51cVS92Nh4RjNUF2lxOtjB0FqsslfiwJp7WXiu5AQ4MqDxKA3YcMbj/f2xmQ9h8Hu2BpCkoe2y7/qR7zbJJyA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712361333; c=relaxed/simple; bh=9gWKmcCsWbVaDwV9IeuExjh4W1rfrPqRztKFYw16kEs=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=Upk0/OzGX2UIAK3gUGP6Ewq+Dc8ZKNDOe6YqyT9I+1V/TVYXoB5Y46jeF2HwVppCAm2M9aVVaO9xw4ZUDX9i8pvLFQLNBJQ0awPceQNJB2+8qzSXOlGWYU6pevn7WBKQHfMR/7X9kdCUZsdoy7fTTXM+FgLsWQYJGbwSDH3Yfsw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b=PnT2MWJM; arc=none smtp.client-ip=209.85.210.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="PnT2MWJM" Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-6ecff9df447so1324791b3a.1 for ; Fri, 05 Apr 2024 16:55:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1712361332; x=1712966132; darn=vger.kernel.org; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=6lubQUxIR+Kl2VFu8D/MJscgtN17uLwa5eizPrrHYeA=; b=PnT2MWJMGFn0FgWsN3veFiTrNhZNTMySsRigeY1Fkbn/tdbe/ODMwA+2DmngnaVLlB JiYhpnidZROd+e8zYt1jvRAlLbFzwIVj+6DC5YgXZVr1taYrwbG45ij7mQDLSiF6nn/E unxb1eTb+LNyvuIuqriKDDfZN3tTnQh1CCwWY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712361332; x=1712966132; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=6lubQUxIR+Kl2VFu8D/MJscgtN17uLwa5eizPrrHYeA=; b=gJzCA2FFqaKTjLIAPs2Xku9w27Akv2l/c1m7TNLhyMfxLjGs7rbbIRgLHTEAma7y/H ZJiv8Dd/Or1KAp2JAqnEN6dlUaRENRBDgMRiUeOBof2LzQHWnYzjQyWHnzxqOYN2QoBt E4GkQL8MnuLFn8J8ii06XIK0/gH4d+xkESgR/STAnDmhrgBZUHsAw9NI2nKaCmavI/yE A8dIANvX03kK6jvYWBKhVpOc6djLofn4Wtb/wE8nLKSih80KV/XEX5bqrP3bCU8GWBDg wM0HlIQFsOdEOomNcEW6uLvJGFiHRxlpRYMC9lqgA1s4rabgqbFztU1WMzw2r9Y4xb+p //fg== X-Gm-Message-State: AOJu0YwQs81YSvfVw1rWCKezKWb0PVEqAXGmvgsN4crW0FJfICPgOmHa M+wMn+K9DX41Aeg4816wJ322NNA1hG37XmfASDT7bgTbQyKNWoHHvknPqV/U5w== X-Google-Smtp-Source: AGHT+IGRpFLdlMwtPvwzhr2cEdwr/kKUGqzhWY9vqhH3hOCQZblskTiWLBYIJV4rczEqL9O7nE4rYA== X-Received: by 2002:a05:6a00:93a3:b0:6ea:d0f3:a152 with SMTP id ka35-20020a056a0093a300b006ead0f3a152mr3404589pfb.26.1712361331223; Fri, 05 Apr 2024 16:55:31 -0700 (PDT) Received: from lvnvda5233.lvn.broadcom.net ([192.19.161.250]) by smtp.gmail.com with ESMTPSA id it24-20020a056a00459800b006ea81423c65sm2162078pfb.148.2024.04.05.16.55.30 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Apr 2024 16:55:30 -0700 (PDT) From: Michael Chan To: davem@davemloft.net Cc: netdev@vger.kernel.org, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, pavan.chebbi@broadcom.com, andrew.gospodarek@broadcom.com, Vikas Gupta Subject: [PATCH net 2/3] bnxt_en: Fix error recovery for RoCE ulp client Date: Fri, 5 Apr 2024 16:55:12 -0700 Message-Id: <20240405235513.64668-3-michael.chan@broadcom.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20240405235513.64668-1-michael.chan@broadcom.com> References: <20240405235513.64668-1-michael.chan@broadcom.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org From: Vikas Gupta Since runtime MSIXs vector allocation/free has been removed, the L2 driver needs to repopulate the MSIX entries for the ulp client as the irq table may change during the recovery process. Fixes: 303432211324 ("bnxt_en: Remove runtime interrupt vector allocation") Reviewed-by: Andy Gospodarek Signed-off-by: Vikas Gupta Signed-off-by: Michael Chan --- drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c b/drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c index a5f9c9090a6b..195c02dc0683 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c @@ -210,6 +210,9 @@ void bnxt_ulp_start(struct bnxt *bp, int err) if (err) return; + if (edev->ulp_tbl->msix_requested) + bnxt_fill_msix_vecs(bp, edev->msix_entries); + if (aux_priv) { struct auxiliary_device *adev;