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 4561B41C50 for ; Fri, 10 Feb 2023 19:02:51 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4B3BA42D17; Fri, 10 Feb 2023 19:02:50 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 67DFE410D3; Fri, 10 Feb 2023 19:02:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1676052165; x=1707588165; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=z9x7j7d8wtAKEc2sEIRRV2kQFNBIwjzyAG0cDRY4djI=; b=IH4i9W+7g6MdrxthOtidc54OApu5Fzcvv34xTR2Gn8ACR0tL9lpVJknO wbJQdxolkL+3vbUxBqle2qAcajAlhMNucP8q5q99Zb15268X6e8MtADWA GLX/fTjRGESALq9NfJq5j9c9xHpVorvNkbinTolbgTv/GABok5KiZa55T m0HMRB8RBreiDQp1lGrCcOyd2Bd786J7qtA93FunkpPLQsuPZQWy1haQR m0EPQXeyKWMS12I82hZjqV/HyJhRqJMvSBdNcds8Di9AfdMSuvgxs0keg NxmPAeAIsxU1kxZtp2JiuDglhgmJV0tNu3lxZegLFwEtY/3Puqz8sE78u Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10617"; a="310117903" X-IronPort-AV: E=Sophos;i="5.97,287,1669104000"; d="scan'208";a="310117903" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Feb 2023 10:02:14 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10617"; a="670076705" X-IronPort-AV: E=Sophos;i="5.97,287,1669104000"; d="scan'208";a="670076705" Received: from spr-npg-bds1-eec2.sn.intel.com (HELO spr-npg-bds1-eec2..) ([10.233.181.123]) by fmsmga007.fm.intel.com with ESMTP; 10 Feb 2023 10:02:14 -0800 From: Nicolas Chautru To: dev@dpdk.org, maxime.coquelin@redhat.com Cc: hernan.vargas@intel.com, stable@dpdk.org, Nicolas Chautru Subject: [PATCH v2 2/9] baseband/acc: remove interrupt support on VRB1 Date: Fri, 10 Feb 2023 17:58:34 +0000 Message-Id: <20230210175841.303450-3-nicolas.chautru@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230210175841.303450-1-nicolas.chautru@intel.com> References: <20230209221929.265059-2-nicolas.chautru@intel.com> <20230210175841.303450-1-nicolas.chautru@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Not enabling interrupt in VRB1 PMD variant to avoid potential corner case. Fixes: 3cabc8eaf524 ("baseband/acc200: support interrupt") Cc: stable@dpdk.org Signed-off-by: Nicolas Chautru Reviewed-by: Maxime Coquelin --- drivers/baseband/acc/rte_vrb_pmd.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/baseband/acc/rte_vrb_pmd.c b/drivers/baseband/acc/rte_vrb_pmd.c index 3afaea71a3..fc68f47ca6 100644 --- a/drivers/baseband/acc/rte_vrb_pmd.c +++ b/drivers/baseband/acc/rte_vrb_pmd.c @@ -586,6 +586,14 @@ vrb_intr_enable(struct rte_bbdev *dev) { int ret; struct acc_device *d = dev->data->dev_private; + + if (d->device_variant == VRB1_VARIANT) { + /* On VRB1: cannot enable MSI/IR to avoid potential back-pressure corner case. */ + rte_bbdev_log(ERR, "VRB1 (%s) doesn't support any MSI/MSI-X interrupt\n", + dev->data->name); + return -ENOTSUP; + } + /* * MSI/MSI-X are supported. * Option controlled by vfio-intr through EAL parameter. -- 2.34.1