Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6563846rdb; Fri, 15 Dec 2023 02:03:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IGxQHvQ1ocP9dmh5jQLCGjQHNLm9NJd6audA9/gId5785dhobqPCTJbquZTg2lqATNd8Vlj X-Received: by 2002:a05:6a00:806:b0:6ce:5a69:8b2c with SMTP id m6-20020a056a00080600b006ce5a698b2cmr7595349pfk.23.1702634609465; Fri, 15 Dec 2023 02:03:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702634609; cv=none; d=google.com; s=arc-20160816; b=EGNaoRry4bMyXuhV7ctkMS/1LKqZE4iXv/yjp7ixnJDKYV20AZkLmG+waIer4Mdzo1 NrLIwyUlObaShdym7SI4FG4kjxmkYKs6yYBFYBlg9F6cBkvn5E2idgtYIEEKbn4g78gL D7fob9gk1FJqeC58zbTMcNhPcJnaaiz4fL+Ynn8ZgHntisWbHxFrq4aBFF7ITACU/uwc RGqpVZluVU4XR3b0TQNcXXc4w8Kel4GrgKtBt0KwPnvNUjgof9gmv4FRk36m/CvoYD9Q GUUVkZPQs8LqrolBTemPwa1tdDqqawwjeGH42LnHKILQll5yYSavpIs7ThcGmxYEnVuY Cefg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:organization:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:cc:to:from:dkim-signature; bh=/e3rYaF/GfA3L4ZbtC98io9qoL6R5mY7yvL63NjW/p4=; fh=UdkG4AweFH2yMGehrLnMHjSuotyR7wxkgnI3aeQb9V4=; b=I0jfuLRxbnqOVW297MJ2ILZsZkJVnlKE1QvXVM1jZbjhbzyhIy6dZZD4sR3rsv8lgR BC+NswNj7rbnRBKmIBBDHwuntAYgTn6yiYY8oulqb3TAEq/Q2iLwFjXBCWKRIkbOT/pw Blx0CUA4tkRLBuh3h+gDXoYjTJ/ctJOYw4iUZU3MWPNRyba+ZSoE33hBoKTqELl4ajmK OqIsCykRnnrUvFN8LtPUaq3hhIkFmPpvlAQpLLsd4fLc4lhoWEa7/NU+nJBmt1sacNR/ rlPCz8JvOQsquwO/pTxYvcIAZCIZWDhQMivgQS/yxdpKYLXrDvkxBOlDPSOun+Xavmtk OYyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YgfAmpV2; spf=pass (google.com: domain of linux-crypto+bounces-856-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-crypto+bounces-856-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d35-20020a631d63000000b005b930e0b600si11611387pgm.820.2023.12.15.02.03.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 02:03:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-856-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YgfAmpV2; spf=pass (google.com: domain of linux-crypto+bounces-856-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-crypto+bounces-856-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 66C062848F8 for ; Fri, 15 Dec 2023 10:03:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CFDB41944D; Fri, 15 Dec 2023 10:03:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="YgfAmpV2" X-Original-To: linux-crypto@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2024C19441 for ; Fri, 15 Dec 2023 10:03:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702634602; x=1734170602; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=ZWhNVHj2COz1GLO0rRuGKZX0PbiCsufTtRzl+bH9h98=; b=YgfAmpV2POzE5Xye2vFPS8Ha6ismp4leOEoMaXW6CrxZAcI4h9CuT5pf WHrtcdzimaQMRaGfQosQXbuEgec1BOoaCT5ESD/KzMaEiOeqLIJZwoUHM lzrbCg8thLc3L+ogAyi9GO77RMzHy8L4DBRDKpUJuvadjcjGvKkrOXNMj uqbu5c+3t2Y/NIrso8k9cB6H36euxolfKl3WT14lASf9j7ANiewoOxDgx 9uFdvfnSWfWbYwLmC58g9eOL7M7F0JF0wXbZDsU7vHPkAXOlDur/4lmNO RyZ0mH+YHz5TOlPgYlgpJo7OgYe1o2hr1c2wj75/waVaHkNcRd3hNyIBA w==; X-IronPort-AV: E=McAfee;i="6600,9927,10924"; a="374759842" X-IronPort-AV: E=Sophos;i="6.04,278,1695711600"; d="scan'208";a="374759842" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Dec 2023 02:03:21 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10924"; a="845074075" X-IronPort-AV: E=Sophos;i="6.04,278,1695711600"; d="scan'208";a="845074075" Received: from qat-wangjie-342.sh.intel.com ([10.67.115.171]) by fmsmga004.fm.intel.com with ESMTP; 15 Dec 2023 02:03:19 -0800 From: Jie Wang To: herbert@gondor.apana.org.au Cc: linux-crypto@vger.kernel.org, qat-linux@intel.com Subject: [PATCH 0/5] crypto: qat - add support for 420xx devices Date: Fri, 15 Dec 2023 05:01:43 -0500 Message-Id: <20231215100147.1703641-1-jie.wang@intel.com> X-Mailer: git-send-email 2.32.0 Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Organization: Intel Asia-Pacific Research & Development Ltd. - No. 880, Zi Xing, Road, Shanghai Zizhu Science Park, Shanghai, 200241, PRC Content-Transfer-Encoding: 8bit This set adds support for 420xx devices. Compared to 4xxx devices, 420xx devices have more acceleration engines (16 service engines and 1 admin) and support the wireless cipher algorithms ZUC and Snow 3G. Here is a summary of the changes: * Patch #1 relocates and renames get_service_enabled() since it is not specific to 4xxx. * Patch #2 changes the signature of the function uof_get_num_objs() as it is required by the 420xx driver. * Patch #3 moves the common logic between QAT GEN4 accelerators to the intel_qat folder. * Patch #4 moves the fw config related structures to a newly created header file. * Patch #5 implements the QAT 420xx driver. The first 4 patches just refactor the code and do not introduce any functional changes. Jie Wang (5): crypto: qat - relocate and rename get_service_enabled() crypto: qat - change signature of uof_get_num_objs() crypto: qat - relocate portions of qat_4xxx code crypto: qat - move fw config related structures crypto: qat - add support for 420xx devices drivers/crypto/intel/qat/Kconfig | 11 + drivers/crypto/intel/qat/Makefile | 1 + drivers/crypto/intel/qat/qat_420xx/Makefile | 4 + .../intel/qat/qat_420xx/adf_420xx_hw_data.c | 552 ++++++++++++++++++ .../intel/qat/qat_420xx/adf_420xx_hw_data.h | 55 ++ drivers/crypto/intel/qat/qat_420xx/adf_drv.c | 202 +++++++ .../intel/qat/qat_4xxx/adf_4xxx_hw_data.c | 232 ++------ .../intel/qat/qat_4xxx/adf_4xxx_hw_data.h | 52 -- drivers/crypto/intel/qat/qat_4xxx/adf_drv.c | 277 +-------- drivers/crypto/intel/qat/qat_common/Makefile | 1 + .../intel/qat/qat_common/adf_accel_devices.h | 5 +- .../intel/qat/qat_common/adf_accel_engine.c | 2 +- .../intel/qat/qat_common/adf_cfg_common.h | 1 + .../intel/qat/qat_common/adf_cfg_services.c | 27 + .../intel/qat/qat_common/adf_cfg_services.h | 4 + .../intel/qat/qat_common/adf_fw_config.h | 18 + .../intel/qat/qat_common/adf_gen4_config.c | 287 +++++++++ .../intel/qat/qat_common/adf_gen4_config.h | 11 + .../intel/qat/qat_common/adf_gen4_hw_data.c | 148 +++++ .../intel/qat/qat_common/adf_gen4_hw_data.h | 74 +++ .../crypto/intel/qat/qat_common/icp_qat_hw.h | 14 +- .../intel/qat/qat_common/icp_qat_uclo.h | 2 +- drivers/crypto/intel/qat/qat_common/qat_hal.c | 6 +- .../crypto/intel/qat/qat_common/qat_uclo.c | 1 + 24 files changed, 1457 insertions(+), 530 deletions(-) create mode 100644 drivers/crypto/intel/qat/qat_420xx/Makefile create mode 100644 drivers/crypto/intel/qat/qat_420xx/adf_420xx_hw_data.c create mode 100644 drivers/crypto/intel/qat/qat_420xx/adf_420xx_hw_data.h create mode 100644 drivers/crypto/intel/qat/qat_420xx/adf_drv.c create mode 100644 drivers/crypto/intel/qat/qat_common/adf_fw_config.h create mode 100644 drivers/crypto/intel/qat/qat_common/adf_gen4_config.c create mode 100644 drivers/crypto/intel/qat/qat_common/adf_gen4_config.h base-commit: 1ac058e8f5b5adc5e365d72361486922bfbd0cb9 -- 2.32.0