From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DBE5DC35671 for ; Sun, 23 Feb 2020 02:38:23 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 93D5920659 for ; Sun, 23 Feb 2020 02:38:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="pIQc710Y" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 93D5920659 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.92.3) (envelope-from ) id 1j5h9b-00045y-13; Sat, 22 Feb 2020 21:37:59 -0500 Received: from mail-il1-x142.google.com ([2607:f8b0:4864:20::142]) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92.3) (envelope-from ) id 1j5h9Y-00045s-62 for kernelnewbies@kernelnewbies.org; Sat, 22 Feb 2020 21:37:56 -0500 Received: by mail-il1-x142.google.com with SMTP id f70so4904163ill.6 for ; Sat, 22 Feb 2020 18:37:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:from:date:message-id:subject:to; bh=uOTXPV3dvTnFqUQLhaqQHjFKepKjINCgGOUJJy+2lhU=; b=pIQc710YnRxgs681DTAUru+762ejOU6vUxWrgWxtVPJjeuihXWrp2SW9q1xJa1RsF1 96XoT7H3PaF5LebXJn7HFy45u3BqoBcdeWrFQc3PXCjMplQ9k3PovvK9snKPQvXQ7ZR3 1gpPloQFiyfJSg0xtjq07ghP+T1c8jlngMhEe5o6UbaCcbnMrmnOIjvFXTADIJ945hDe fJxN8ZNNjEYTNBCZiZm2Kpduvd46GPQRuSatBYWZwaoTd6qJ4X7ujQTYrM8dBqwYVaER d+Fa0h+AF87QQ+IggtaA9R5++cM+rgQrFu+99/L8f0cjTvOfi+B3NMzbX681nsxoM8i4 Ms0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:from:date:message-id :subject:to; bh=uOTXPV3dvTnFqUQLhaqQHjFKepKjINCgGOUJJy+2lhU=; b=sC2pVqIpbBG6e3jSX3s57K+6rxmCO66Q1zV/9iMUQs/4vtj2B8VThSJJAZNRG1qVWd H3tUlUFv5oc7bsCPDAmAjwcEdpZFPO6zF3YgVsR4CLUn8oUuVnIAL4ypKrsrpfh8Qj5U B4RmeZfInJSI66IUdtSZVqkfvBqlCDe9FTozkTcMpUi89OZY1HOt8wFYQhwMwm5E7C+n MhlPyGskiGnzdletlf05eEJfJw5W/bX1lO4qRL3wexV7gyuahM/sR0uPupuQB7U1yDwT y6gmrp3/MfDQrI7x77h2V+42HmnlLeyDFyi2nfpqpIaBkmgfAeK32rXv6mnjTJ8S152V Nx1w== X-Gm-Message-State: APjAAAUTamI3dAcSYTcUHO67X/MvSXvtoFNANPA1dDGzgdZlOWmOrowe keSnJ6r3JpxBuAktjSRNsnPOyXJ3mYvO/8VIDngUhn4g X-Google-Smtp-Source: APXvYqwX1UQ1jptvLgkdC1Zthck35a5+Pdhugq2h8k0c6MKhoBWdqjJtqx252idubBBXS6zB14jYCI+dQALTpxQNCWA= X-Received: by 2002:a92:9857:: with SMTP id l84mr47773596ili.41.1582425412859; Sat, 22 Feb 2020 18:36:52 -0800 (PST) MIME-Version: 1.0 From: Jeffrey Walton Date: Sat, 22 Feb 2020 21:36:42 -0500 Message-ID: Subject: HWCAP for SHA-1 and SHA-256 To: kernelnewbies X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: noloader@gmail.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org Hi Everyone, I'm having trouble finding the HWCAP_* or HWCAP2_* for SHA-1 and SHA-256 on x86 machines. Poking around Torvald's GitHub does not reveal them in either auxvec.h or hwcap2.h. Also see https://github.com/torvalds/linux/tree/master/arch/x86/include/uapi/asm. Grepping my local machine (x86_64) provides them for arm64, but not x86 (WTF?): $ grep -IR HWCAP2_ /usr/include /usr/include/x86_64-linux-gnu/asm/hwcap2.h:#ifndef _ASM_X86_HWCAP2_H /usr/include/x86_64-linux-gnu/asm/hwcap2.h:#define _ASM_X86_HWCAP2_H /usr/include/x86_64-linux-gnu/asm/hwcap2.h:#define HWCAP2_RING3MWAIT (1 << 0) What are the HWCAP_* or HWCAP2_* to use for SHA-1 and SHA-256 on x86 machines? Thanks in advance. _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies