From nobody Wed Jul 20 21:48:45 2022 X-Original-To: bugs@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 4Lp8Tp1hMmz4X3Fm for ; Wed, 20 Jul 2022 21:48:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Lp8Tn3BhPz3fX0 for ; Wed, 20 Jul 2022 21:48:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Lp8Tn2FkTz1CXt for ; Wed, 20 Jul 2022 21:48:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 26KLmjSg062404 for ; Wed, 20 Jul 2022 21:48:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 26KLmjWb062403 for bugs@FreeBSD.org; Wed, 20 Jul 2022 21:48:45 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 265348] aesni should take advantage of AVX instruction set to do hardware accelerate HMAC Date: Wed, 20 Jul 2022 21:48:45 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: clear.screen@orange.fr X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658353725; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5DuJ7Abca8qJAd4bvX8xKk2QEugpBoZ3mVwKI4g3q/g=; b=irAmKUP8XW9uxdPl+M8sv6XR2DH4qsMJeSh2xRQCVMQ0bn4iT6JZnuQVf1nRp9Ri3/kMOl SCWT/CFjZS0Dx20CCIVD566+1G0Cn3+LHeEWP92EDOHp69dC1ytGC4wQN9jnJHX5+e9c2g XVEHRQlcOjw3hXvNSwKuym8GBzBSDBlzzf5AwYJlFxrvHPUKYDb2NjNMJ7ckd2QE6JI050 2wksHT+4L1okAOhCNUTCbnoxQ3PSzBonXIbLYKoejMIkSNiBf6KPPVmbME6nr3Cfo8eqRB 6ok1t52vZOXSbD4fvONf5GogZeEM3sQBN4VTFp+6sBwX1LfIDTRqJmrc5rlagw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658353725; a=rsa-sha256; cv=none; b=UbQ9PimrOq44WH5qJqE/rVC9owNsgmavPy+g+Fei3FNx8qNB4TdDFBZTgvM5r1hiLqI2+s HjCVlegtlpuSCpJRaTUu/mqlJRyRr4Dtfec+3JrhZcGDVMV25KZN4Qqz8RiEPdHf08WM40 AQjhpIIwKlkG8n1lKSYUDvFjpa0aSUr4TmFxBpk3gXnl4+sgx4zcS4K5Mu94J0QQ3n+aoS xGkP9NhBzh3M8b8M7RCOEj4FG4eL4Xjj4ufNwgY86yguvM/Vh1ID2iCSB82J/QYHBcRlgv XYs3gghSpKYJIpsl4qpx5n2JGnBVFBIlzqhzY/OxYFWYLylbaCj2pXc4t8Mf9Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265348 Bug ID: 265348 Summary: aesni should take advantage of AVX instruction set to do hardware accelerate HMAC Product: Base System Version: 13.0-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Many People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: clear.screen@orange.fr =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Configuration =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 1 - FREEBSD ------------------------------------------------- Kernel version: FreeBSD 13.0-RELEASE-p11 #0: Tue Apr 5 18:54:35 UTC 2022 root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GEN= ERIC 2 - CPU ------------------------------------------------- intel xeon E5-2603 v3 Features2=3D0x7ffefbff 3 - AESNI ------------------------------------------------- aesni register following features : aesni0: 4 - GELI ------------------------------------------------- kernel: 7 userland: 7 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D DESCRIPTION =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D If only AES instruction set are available and not SHA instruction set, geli= is working as "accelerated software" with -e AES-XTS and only "software" with = -e AES-XTS AND -a HMAC/* As instruction set exists to accelerate HMAC SSE but mainly AVX which seems= to be employed on linux to accelerate SHA (sample=20 linux/arch/x86/crypto/sha256-avx-asm.S) Freebsd should take if possible advantage of such instructions to add benef= its of full acceleration for encryption with AES instruction set and authentica= tion with AVX instruction set (fast SHA implementation). --=20 You are receiving this mail because: You are the assignee for the bug.=