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 F221A43746; Tue, 19 Dec 2023 16:52:04 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 34C7A42E31; Tue, 19 Dec 2023 16:51:42 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id B841842E2E for ; Tue, 19 Dec 2023 16:51:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1703001099; x=1734537099; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=+GA9fLd3+OVOZAFx4/AhIvvETaVF+75v7lZWVJNcC3o=; b=FzFOkq62CirzNmKhZjLHpbE1sDyw6F6u5O88kUWyjmhh4Uk6t62gzV+G 6u9IAOzFjKbvIwtrxvDU+1bzRfmVdt6TkgXCAnK1MoKt+SWgDNvMtNoIr UU4cBPv/uFfBMJOxvVZNrZGk9SAQlbeLADZFi7zOR5lY4tE/Gs+SkVOiY tywLU+E6kfRriDK7MpoudZeNl1z51jO1H2bih8GTiZLqCdnmD3EBnjwRk ppeNRDZifqC0YzIgHESWFRW9Fbex5Xs7xoCONphMEtmCmFZ1RcQSnsMoT zkJif5SMvd6CeoyXonWHxBxoaZXGVbsqqBW+jq+pbwD3sOHJM7CPoj5Pb g==; X-IronPort-AV: E=McAfee;i="6600,9927,10929"; a="399510267" X-IronPort-AV: E=Sophos;i="6.04,288,1695711600"; d="scan'208";a="399510267" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Dec 2023 07:51:39 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10929"; a="776021698" X-IronPort-AV: E=Sophos;i="6.04,288,1695711600"; d="scan'208";a="776021698" Received: from silpixa00400355.ir.intel.com (HELO silpixa00400355.ger.corp.intel.com) ([10.237.222.80]) by orsmga002.jf.intel.com with ESMTP; 19 Dec 2023 07:51:37 -0800 From: Ciara Power To: dev@dpdk.org Cc: Ciara Power , Kai Ji , Fan Zhang , Ashish Gupta Subject: [PATCH 4/4] crypto/qat: disable asym and compression for new gen3 device Date: Tue, 19 Dec 2023 15:51:23 +0000 Message-Id: <20231219155124.4133385-5-ciara.power@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231219155124.4133385-1-ciara.power@intel.com> References: <20231219155124.4133385-1-ciara.power@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 Currently only symmetric crypto has been added for the new gen3 device, adding a check to disable asym and comp PMDs for this device. Signed-off-by: Ciara Power --- drivers/compress/qat/qat_comp_pmd.c | 3 ++- drivers/crypto/qat/qat_asym.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/compress/qat/qat_comp_pmd.c b/drivers/compress/qat/qat_comp_pmd.c index 6fb8cf69be..bdc35b5949 100644 --- a/drivers/compress/qat/qat_comp_pmd.c +++ b/drivers/compress/qat/qat_comp_pmd.c @@ -687,7 +687,8 @@ qat_comp_dev_create(struct qat_pci_device *qat_pci_dev, qat_pci_dev->name, "comp"); QAT_LOG(DEBUG, "Creating QAT COMP device %s", name); - if (qat_comp_gen_ops->compressdev_ops == NULL) { + if (qat_comp_gen_ops->compressdev_ops == NULL || + qat_dev_instance->pci_dev->id.device_id == 0x578b) { QAT_LOG(DEBUG, "Device %s does not support compression", name); return -ENOTSUP; } diff --git a/drivers/crypto/qat/qat_asym.c b/drivers/crypto/qat/qat_asym.c index 2bf3060278..036813e977 100644 --- a/drivers/crypto/qat/qat_asym.c +++ b/drivers/crypto/qat/qat_asym.c @@ -1522,7 +1522,8 @@ qat_asym_dev_create(struct qat_pci_device *qat_pci_dev, qat_pci_dev->name, "asym"); QAT_LOG(DEBUG, "Creating QAT ASYM device %s\n", name); - if (gen_dev_ops->cryptodev_ops == NULL) { + if (gen_dev_ops->cryptodev_ops == NULL || + qat_dev_instance->pci_dev->id.device_id == 0x578b) { QAT_LOG(ERR, "Device %s does not support asymmetric crypto", name); return -(EFAULT); -- 2.25.1