From nobody Thu Jul 14 15:42:58 2022 X-Original-To: freebsd-arch@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4LkJfZ60vhz2pR3Y for ; Thu, 14 Jul 2022 15:43:02 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qt1-x82d.google.com (mail-qt1-x82d.google.com [IPv6:2607:f8b0:4864:20::82d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LkJfY5GLWz4GCl for ; Thu, 14 Jul 2022 15:43:01 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-qt1-x82d.google.com with SMTP id i21so1696827qtw.12 for ; Thu, 14 Jul 2022 08:43:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:subject:message-id:mime-version :content-disposition; bh=n3vJBVz+5neFzWIbfK0QF66lQwdixMHDVtpDk8Uu34A=; b=pZjE4/k+OfhK19WwdOFjccvO44S01ONTSAJRDfCK0dDAlzw9dmJN2jMo32znxtlaeR y6YotkX7CJCsCzPTuh0yQGf45wDgrqe1mMTHKjKept4vgc8VgVw5vbg+tZuaBCu4+J92 +sK6WJKlF0wq8jxZ/Rg1YsWZw5wCCRpIVP8g2Ontjs1dIWi9wxG2DxmrScCbcqCPrdca E5yzsP/LanyvpMcsRy7hH8piv7B7J7aER4v9XTVtjWmv+IosrIDC5tZ7KmLvKcFOQr/O bXt8psZkkg2r47XUZF92wcqG1WLKERHmgI3OxeKn613+gOD1cKB6uIHJpa8MQb+k0SjH K/Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:date:from:to:subject:message-id :mime-version:content-disposition; bh=n3vJBVz+5neFzWIbfK0QF66lQwdixMHDVtpDk8Uu34A=; b=Vy12Ap5pkRudqZZnczTYUzTIfHpnsMyDXR/35Ig6aFDmA4TGT/lqN0RVq4IwhTBI/y ONQ1WwQgNUwakPMnb1lk78VbWbw3rQZ034tyUeoLIq4B5qD+BlMcZugi/lBn8sG6oIG7 FJS8IIE4YzEeV62Hav/hdlAS+iqCg8NfH3d9Tp7Xw5CTjRlcPOgqErWjUaXVC6w9swxo /E+hIy89nhObH+1ue/S+E8rjWkRebOLiMp877jlft+L/e3VZ46kOXyF8GkR036KlKmOJ FM33Xhn8lHygwt9A7UQNfwLYlwL+CKDGnMbNuyJP5YJrCdYshqGCFHUdHaeBiO0Sgqr3 h7iA== X-Gm-Message-State: AJIora+wRM8/a6eOlZ6QioNVx7eeQ3uvs36J5S/DCvwhRRDPQExqSrVJ JeXLdhIiUGAhMkJfNWybBzlnHr8XTds= X-Google-Smtp-Source: AGRyM1sRnpw8bYSmM7jTgtWlQCi6Yxil2r076HWofCinDZpO40SIsLApUC/ImXV/PlJxFq15fTPthg== X-Received: by 2002:a05:622a:103:b0:31e:d338:cb88 with SMTP id u3-20020a05622a010300b0031ed338cb88mr2403145qtw.675.1657813380770; Thu, 14 Jul 2022 08:43:00 -0700 (PDT) Received: from nuc (192-0-220-237.cpe.teksavvy.com. [192.0.220.237]) by smtp.gmail.com with ESMTPSA id k11-20020ac8140b000000b0031e9d9635d4sm1774424qtj.23.2022.07.14.08.42.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Jul 2022 08:42:59 -0700 (PDT) Date: Thu, 14 Jul 2022 11:42:58 -0400 From: Mark Johnston To: freebsd-arch@freebsd.org Subject: new QAT driver from Intel Message-ID: List-Id: Discussion related to FreeBSD architecture List-Archive: https://lists.freebsd.org/archives/freebsd-arch List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arch@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 4LkJfY5GLWz4GCl X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b="pZjE4/k+"; dmarc=none; spf=pass (mx1.freebsd.org: domain of markjdb@gmail.com designates 2607:f8b0:4864:20::82d as permitted sender) smtp.mailfrom=markjdb@gmail.com X-Spamd-Result: default: False [0.95 / 15.00]; NEURAL_SPAM_LONG(0.98)[0.977]; NEURAL_HAM_SHORT(-0.56)[-0.559]; MID_RHS_NOT_FQDN(0.50)[]; FORGED_SENDER(0.30)[markj@freebsd.org,markjdb@gmail.com]; NEURAL_SPAM_MEDIUM(0.24)[0.235]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DOM_EQ_FROM_DOM(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arch@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::82d:from]; ARC_NA(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; DKIM_TRACE(0.00)[gmail.com:+]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_NONE(0.00)[]; MLMMJ_DEST(0.00)[freebsd-arch]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+]; FROM_NEQ_ENVFROM(0.00)[markj@freebsd.org,markjdb@gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_VIA_SMTP_AUTH(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Hi, A couple of years ago we imported a driver for Intel's QAT hardware. It implemented only the functionality required to offload cryptographic operations from OpenCrypto, mainly for use by IPSec. Recently, Intel has proposed adding the upstream driver to FreeBSD, replacing the existing one: https://reviews.freebsd.org/D34632 This driver maintains the OpenCrypto integration of the old one, while introducing various QAT-specific interfaces to provide offloading of cryptographic and compression operations. One wrinkle is that the new driver does not support legacy Atom C2XXX chipsets, so my plan is to rename sys/dev/qat to sys/dev/qat_c2xxx, and keep it around for now. The patch to do so is here: https://reviews.freebsd.org/D35817 D34632 still needs to be rebased on top of this one. Currently, either patch can be applied to the main branch for testing purposes. I believe this change will result in minimal disruption for users, as the new driver ought to be a drop-in replacement. Currently there's no plan to merge to any stable branches, but that may change. If anyone has any concerns about this change, please let me know; absent any problems, I plan to merge the new driver in a week or so.