From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 60AB4A0C40; Fri, 30 Jul 2021 23:15:53 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 920BA40141; Fri, 30 Jul 2021 23:15:52 +0200 (CEST) Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) by mails.dpdk.org (Postfix) with ESMTP id 6F2374003F for ; Fri, 30 Jul 2021 23:15:51 +0200 (CEST) Received: by mail-pj1-f41.google.com with SMTP id l19so17117962pjz.0 for ; Fri, 30 Jul 2021 14:15:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:mime-version; bh=flFH+r6rMgqy+g2Zm2l4Dwjc3mUJUoHL4V7dcMJ43lI=; b=ADN5uSAXf3rhNDVRrU6rkCWaa6B3Eq4zczY/lkPreDDPuWETGKkDM4lKPB14HiTUeD SdDFam0wXt7IjAJCLfzs6damO1bbPg7La1NSyIIVElLsVBpPPITbVLR+I+RJO+qGozER WnSgf8U8799iepc4oD9LBsa4BiY5pJkHOeR04= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version; bh=flFH+r6rMgqy+g2Zm2l4Dwjc3mUJUoHL4V7dcMJ43lI=; b=sSyUc2rjq9Bq4vN1R8CXzo5UH4ODzIFfVq9yCrGDYOGdBinzJKFCUHAy8gsiduijpP Szc9QuTNQHScN7lj3FY+uWlpegJYHaxSNf3rC4xssB435BFHZZDVhWoWCWmlBdt/34QK UJ0/LfY1HXp4Kpw1oQcbSfJBcv3jdO+G4HSoXVGj2TJ1nWz1FATizhfeFiTA2hgAJv4Y CkUYoNTCFgY0EWXrnJOrVNp3NenKYvWV1jnndTogBVgiAv23GHd2RZyV/kvK6JpdKZSn mSKvgbnkt8l+Yv4ku5TgpXXZph1FESW2JnnulxGWnXUNGgTxDEG1s+2bpkBYNVzlmRtj URoQ== X-Gm-Message-State: AOAM5300d/4AXaUVl9nngf0c3ZptzVvxCw2Wx7dMCsoEKzRE4D4WBaa6 DOT0hsUxwAIxSu9zYiiP7giGwaRICOZE1l05T2WXd+7mtDAQFYdR7RU14v11PGtigA0WHfwWCf/ 2GVH7uOyv3lH3IRJ+AZFk9UKLA6Td0iyMdD/Ej6HMLhSpzTYTTLyj6GPnT0z1CIA= X-Google-Smtp-Source: ABdhPJzBw3E8Wj5+vr3vI9rcAFUZlojHavHLm/ZS3QmalKLcb/FIhsRBNYY71uHZu69P/JyyMqVyPQ== X-Received: by 2002:a05:6a00:1ac6:b029:3b2:7c87:f13f with SMTP id f6-20020a056a001ac6b02903b27c87f13fmr1138624pfv.41.1627679750232; Fri, 30 Jul 2021 14:15:50 -0700 (PDT) Received: from localhost.localdomain ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id r128sm3529423pfc.155.2021.07.30.14.15.49 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Jul 2021 14:15:49 -0700 (PDT) From: Ajit Khaparde To: dev@dpdk.org Cc: stable@dpdk.org Date: Fri, 30 Jul 2021 14:15:45 -0700 Message-Id: <20210730211545.16425-1-ajit.khaparde@broadcom.com> X-Mailer: git-send-email 2.21.1 (Apple Git-122.3) MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="00000000000059611d05c85db957" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: [dpdk-dev] [PATCH] net/bnxt: fix seg fault on Thor X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" --00000000000059611d05c85db957 Content-Transfer-Encoding: 8bit In a few cases with Thor device, PMD can segfault when VF representors are specified. Temporarily fix it by preventing VF reps for Thor device. This will be addressed in next release. Fixes: 3fe124d2536c ("net/bnxt: support Thor platform") Cc: stable@dpdk.org Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/tf_ulp/bnxt_ulp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/net/bnxt/tf_ulp/bnxt_ulp.c b/drivers/net/bnxt/tf_ulp/bnxt_ulp.c index fa2148ead7..dbf85e4eda 100644 --- a/drivers/net/bnxt/tf_ulp/bnxt_ulp.c +++ b/drivers/net/bnxt/tf_ulp/bnxt_ulp.c @@ -815,6 +815,11 @@ ulp_ctx_init(struct bnxt *bp, goto error_deinit; } + if (devid == BNXT_ULP_DEVICE_ID_THOR) { + ulp_data->ulp_flags &= ~BNXT_ULP_VF_REP_ENABLED; + BNXT_TF_DBG(ERR, "Enabled non-VFR mode\n"); + } + /* * Shared session must be created before first regular session but after * the ulp_ctx is valid. -- 2.21.1 (Apple Git-122.3) --00000000000059611d05c85db957--