Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp579689rdb; Thu, 21 Dec 2023 20:42:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IE9Vw+A3+FOEV3KTfh/caJMs9aW0VAZ0/J9fjg+WQYGcCiOu4hg0gyE3KhI84gJJgJZMRGi X-Received: by 2002:a05:622a:2485:b0:425:88d5:e487 with SMTP id cn5-20020a05622a248500b0042588d5e487mr1299779qtb.50.1703220156681; Thu, 21 Dec 2023 20:42:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703220156; cv=none; d=google.com; s=arc-20160816; b=SJMAjWpfk6Sr74FfyLuLy/z20dHNkqlnTiM3qyC/NQ855Xx48J4LTVvHnmGn6sIygT m6YZ4IDDiH5+BH+yiPnpYQXa0ZYRovHXN0kunepa0FKzARpJPaScDl1OQZqWSQcQPQdB ARM343huris4nlMCtxX6OQ6xV28XXrgM1TxtPm20vf4+cFb+ER43SInwvJMEVPD//DBL /1t8E6j83AbpaRXOivyIMw6nloLmqeUleeQKOQr8LHBAf4pypRc852SwaKp6FeDWFZ/D 2jao/9RUIAaMeZxyX8hHAxLm0C3yzNbUAW7OIyYWPtXYIL2hc3EnM94nzB8nH5pbMwnK GM2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=2HEXZLHSs0Mv3B7HoWvY6Fja3Ee3wM0pJP+SI2oq9us=; fh=W9tzYrG7MAipkApndgHUcgMUo/pb0KYF3pwV9Gw5hWI=; b=HXxeNYRafc1/i9FULAReAR4cA3rcv70eGh0dkLdun/cl4btD3D5BLUkG8GETtsOn6W fuKkd1wsybe/botKwNGcqiuTWHCMoG7J919rrNXPT6B5CAIr3pOKtCe78mgtLuxf5v/E KnarA20hHBijcN6OERnw87Kz0o/PG4Y/qupp5hPu0EgF1xFndI6RAnPUjWGijkWRbwp0 W0iIbTEKwYRuAeGcsnFOOfsbDW6pHtGWioUSra4Tn9PfYWDG3/jKEpahLbSxgLjMfrhK F28FmdCQ3VomDVRHQcOfAYxWky/iN7iZf4oZD6Q0y6ZwpthZHFH9z2iTLezYgJOmk39N DsIw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto+bounces-967-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-967-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id e21-20020ac84e55000000b004239a0ac919si3653090qtw.455.2023.12.21.20.42.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 20:42:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-967-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto+bounces-967-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-967-linux.lists.archive=gmail.com@vger.kernel.org" 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 704C31C2197F for ; Fri, 22 Dec 2023 04:42:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 75C079455; Fri, 22 Dec 2023 04:41:49 +0000 (UTC) X-Original-To: linux-crypto@vger.kernel.org Received: from abb.hmeau.com (abb.hmeau.com [144.6.53.87]) (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 E92448C1F for ; Fri, 22 Dec 2023 04:41:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gondor.apana.org.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gondor.apana.org.au Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1rGXLy-00DhZ7-25; Fri, 22 Dec 2023 12:41:43 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Fri, 22 Dec 2023 12:41:52 +0800 Date: Fri, 22 Dec 2023 12:41:52 +0800 From: Herbert Xu To: Jie Wang Cc: linux-crypto@vger.kernel.org, qat-linux@intel.com Subject: Re: [PATCH 0/5] crypto: qat - add support for 420xx devices Message-ID: References: <20231215100147.1703641-1-jie.wang@intel.com> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231215100147.1703641-1-jie.wang@intel.com> On Fri, Dec 15, 2023 at 05:01:43AM -0500, Jie Wang wrote: > 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 All applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt