Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp315671pxb; Thu, 9 Sep 2021 01:21:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1lfA3gBtGDBK3vTseM7DjZcXWpcQynZBGRrAJLHPpdOjOABq9417eewjh32SaOm+8IlIX X-Received: by 2002:a02:9542:: with SMTP id y60mr1783863jah.87.1631175694427; Thu, 09 Sep 2021 01:21:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631175694; cv=none; d=google.com; s=arc-20160816; b=l2RsuGMjcP9GLlpjxjjFodcWpHdIsvM3WMhMNH29f7ocGEBdA1ogapfk04VN8ebDwJ Er4+9p5DzPSaHXAlz6y4je2zT+3ySrxEOdOPCRnTSgV30DrUXRvLUvKVqVz1DHPVmx/5 oXwPd4IhxOm5GwFU1p+97cj4Smgue1J2B4tYjAii7XCc3X6K3YXUtxP71Tloxb+RF445 RQaEeTHBJf4iwPCBWDsNDk9cuFg6jbq+uxzqoXn9eDExC1NaD0f4K4TiwODt6FDdJWvZ r685HuNro2ienjJ9Ka8oc29jJOx2CF6+S6reek15cLQGTNiAwK2fZXcKUi1Bs8h80fYL 8m4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=VV4e5cXq8IiLf604F5fMr/AHVRLEwRZwQ8HOpIWKAfs=; b=fDa4SL/hBdKdlVWcs+cFJS9OOUdtFpGugBa044xwrfIXOzEJYuO5auGBy+s7PzKIhJ /vPQg32flS7wot2bz3bgOi5hNCF4F9Y2S3FObDNidSrsO4DmtPgnag7KAE9W+wKb5AP3 tR2e1qQy2LNLV0M+QtzHDL32FbgrjBN2EDbtGIQmLI4YeZYS8B3Ky7Z+Dne8GUShb/nH wFbzxFcBuJj3DDykQUFqEfwWPbTWbgS2ATWBCJ9JBKgCVtK8IEf7dk/wO/q7xbJg85RW FwjvmSkAdAbW+b3g0sQD2a/EuDe/I7ePiag3U205+VFGtR1hXRpw6uBAEIS0Ux32YpUe O9zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=W4MpQX2G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k14si1423405ilo.4.2021.09.09.01.21.22; Thu, 09 Sep 2021 01:21:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=W4MpQX2G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229564AbhIIH76 (ORCPT + 99 others); Thu, 9 Sep 2021 03:59:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230190AbhIIH7w (ORCPT ); Thu, 9 Sep 2021 03:59:52 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B930BC061575 for ; Thu, 9 Sep 2021 00:58:43 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id 83-20020a251956000000b0059948f541cbso1426921ybz.7 for ; Thu, 09 Sep 2021 00:58:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=VV4e5cXq8IiLf604F5fMr/AHVRLEwRZwQ8HOpIWKAfs=; b=W4MpQX2GWybdJ8Z8NEZyUiB6RAhU2gG2auoxVcT6YDOYp7m40/uzxzuSOQS462lre5 83+7jXv3PMNsdP8eYGyZLtMSNim2qI1ja49CxbwHX+kf8B83cvYYd43g14ihdd4za2Sj hw7VVm7SiW088atTWfqDTTH/4OqmJxTfCABdXPtotKcSuNg7ofcRBIgWSOaJnK8SD9cU polZFK0EGhw3iHA9mklaKyJeYC+4dTJNuF7u7+UJ05bCxNdInfEmG9MjxlUWlM5HWx8O MQSXBAnb0F8O5rGX4mkMHO1Dx/lrdnMwo+lE/3WZeTE1hjPWzwAyL9YDrOsbGSx7v3YJ eOeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=VV4e5cXq8IiLf604F5fMr/AHVRLEwRZwQ8HOpIWKAfs=; b=cnXO3Yge3YPcEoZjH827aV1sI55oCshqBDKATrXJaB6YoiCG2ZlJKmo+KSV2Dng9yS ygx1oaATAeL5MU+YKZZUfTOSeL2GwZI1QDNnPKiGREAhZwZedAxAhcHS0WER1naFFz06 q9AGKdWWPQYM7Bsl2X6VnlNeAyct+5k5Z1hjiqHPf+qls5bcOGTbU4XkuHLbottncsuc Ss8NpWsWkDwcs6oCUhdg/wf/iJyUlrSptrXHPgdJbNUyV+PJJMP/wE5EwYonpPhb47CQ CsftnYwDydUPSwJVYdrvfJ7wS1YbunOqcTyt2g4PgPwYxCsv0TVJQOHSVtgRQN1FNXrN WfgQ== X-Gm-Message-State: AOAM532QfMcoXf6XRhnWA3Ev/t1B1fd9Zj+7mIG4gvSfT1ktruP9DiTl QNMyO1LnjeU6q0sIxt22nh7x7g+lyYwco55GKDmSkfQx4ULdkni2s3P1X9FlZb0tFGi/Q4Irttx O4iBNNrorTQKdJDsSdz8nCsN48vH6frRPJ9opbV4ajY8FD4c4ZmYAUxEkl9VlmQfgUqv1Gn51 X-Received: from uluru3.svl.corp.google.com ([2620:15c:2cd:202:f950:61f2:f1ec:ae8b]) (user=eranian job=sendgmr) by 2002:a25:d615:: with SMTP id n21mr2692ybg.500.1631174322957; Thu, 09 Sep 2021 00:58:42 -0700 (PDT) Date: Thu, 9 Sep 2021 00:56:49 -0700 In-Reply-To: <20210909075700.4025355-1-eranian@google.com> Message-Id: <20210909075700.4025355-3-eranian@google.com> Mime-Version: 1.0 References: <20210909075700.4025355-1-eranian@google.com> X-Mailer: git-send-email 2.33.0.153.gba50c8fa24-goog Subject: [PATCH v1 02/13] x86/cpufeatures: add AMD Fam19h Branch Sampling feature From: Stephane Eranian To: linux-kernel@vger.kernel.org Cc: peterz@infradead.org, acme@redhat.com, jolsa@redhat.com, kim.phillips@amd.com, namhyung@kernel.org, irogers@google.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds a cpu feature for AMD Fam19h Branch Sampling feature as bit 31 of EBX on CPUID leaf function 0x80000008. Signed-off-by: Stephane Eranian --- arch/x86/include/asm/cpufeatures.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/include/asm/cpufeatures.h b/arch/x86/include/asm/cpufeatures.h index d0ce5cfd3ac1..74fd7ab7d74d 100644 --- a/arch/x86/include/asm/cpufeatures.h +++ b/arch/x86/include/asm/cpufeatures.h @@ -313,6 +313,7 @@ #define X86_FEATURE_AMD_SSBD (13*32+24) /* "" Speculative Store Bypass Disable */ #define X86_FEATURE_VIRT_SSBD (13*32+25) /* Virtualized Speculative Store Bypass Disable */ #define X86_FEATURE_AMD_SSB_NO (13*32+26) /* "" Speculative Store Bypass is fixed in hardware. */ +#define X86_FEATURE_AMD_BRS (13*32+31) /* Branch Sampling available */ /* Thermal and Power Management Leaf, CPUID level 0x00000006 (EAX), word 14 */ #define X86_FEATURE_DTHERM (14*32+ 0) /* Digital Thermal Sensor */ -- 2.33.0.153.gba50c8fa24-goog