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 35B5F41C56; Thu, 9 Feb 2023 23:23:32 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 99BC842D17; Thu, 9 Feb 2023 23:23:14 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 8546742670; Thu, 9 Feb 2023 23:23:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1675981388; x=1707517388; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=QDLKDQwRyAkntVhT3a2smO6U2VM4GT7/jbRRMB6IJpA=; b=BlfJU1MvV1OWoqVJHIICGqR1gIbXhzQgBDoOwV0vofLoAUSe35CK3JSL Gdvrw/Y4a93r63RlqFy1MkgKOkgFkPJsg/NKj6Mrh+mhWejq9S+cz5guO uRnq8+9SDfJ56HMmiuDPm8AYc3kT5kWWoCTTxoPx0fmQoiynf4Kn/4Aqq cd0TNJWS0OV59XhaCUIVE7crD56aU6s3EQmByhh3EesAo80uWUfCN8/86 N5MbSOm2ODS15aqYBWhTUjhA7Vdf/rri6i06XK61PL5M1Xb1SHyZX8Ttj TUoL1JlSF38O+Fo5n9GsfaUnoeMXqGmGWUhqMqHpZCIzFnxN2vNEP+6vL Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10616"; a="331563034" X-IronPort-AV: E=Sophos;i="5.97,285,1669104000"; d="scan'208";a="331563034" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Feb 2023 14:23:06 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10616"; a="736513267" X-IronPort-AV: E=Sophos;i="5.97,285,1669104000"; d="scan'208";a="736513267" Received: from spr-npg-bds1-eec2.sn.intel.com (HELO spr-npg-bds1-eec2..) ([10.233.181.123]) by fmsmga004.fm.intel.com with ESMTP; 09 Feb 2023 14:23:05 -0800 From: Nicolas Chautru To: dev@dpdk.org, maxime.coquelin@redhat.com Cc: hernan.vargas@intel.com, stable@dpdk.or, Nicolas Chautru , stable@dpdk.org Subject: [PATCH v1 3/9] baseband/acc: remove interrupt support on VRB1 Date: Thu, 9 Feb 2023 22:19:23 +0000 Message-Id: <20230209221929.265059-4-nicolas.chautru@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230209221929.265059-1-nicolas.chautru@intel.com> References: <20230209221929.265059-1-nicolas.chautru@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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 --- 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 c43c08afe8..a111836e51 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