Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5787006pxb; Wed, 26 Jan 2022 22:23:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJzpsLKDYD7kaQ97JoWvSZYzflb2whjCCm1OmJ9ayrWQh6Ug/7hpZ8l28lPpcly1lCp7VXXa X-Received: by 2002:a17:906:604d:: with SMTP id p13mr1708032ejj.639.1643264626691; Wed, 26 Jan 2022 22:23:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643264626; cv=none; d=google.com; s=arc-20160816; b=l+oMZItptC4rcZYjE7d/7fSSixui1xeMLZDESQwK3MMy62FpIAQJUFdG/qPUZh3S1C 81IhZS4FwQ/lkBnMpZYvLrs4HaMBaEEYP2nDNwvJie5DsWg4UfCZOsBxp2gfuLEwcIi/ Jukp52C3wJAXmcIkkESiBOcVIsqVvktAq21f1BEyQA9+DD2oA0bddr33M6RmvugPGt7i VCH4Rep9p6NwjbETu0ZVQoYhpvc1kbrPAx1boL9XU30SuBIim6Dvaf2u/z/edRMzLnQi FIQsRorhVS9i9w6mkwBKGTN72k3luzWjLxexvsbQIR08wsRJoY8bqdeEw3u33ium8EZG +Waw== 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=S9alxEZ7Ku5WvZcthXQSXTBt/vNp2zW2Loz41ChaQ14=; b=cHUBhJgrW+GRm8MjN7tZc3W4SpKHOOJKP1oU85CYI7fK65AuoFtVzOBYd0mAqAsooC R5ZcDjTBqw/hRZ2OGKBOxCftu770XvPmfcdYJrgtAR4vdYLGKG6L/zmEnlVqNLyBWs/w z/ar3g851dE+2Lu2/W9P6Kk4ssgy6fjLfxQddPKnMIf02A9VrRbG7f6ZjwQjeOWCyZ6C r3NA/hZ4P9tYY9Pbwvl8mFS2jPIy6P629PRMS2tN2zDH3toqAPctyS9QyTThR4sNsBDH WecQ5ilo/9lr2UMs6Otiu2XIJFtEGuOYJByehPXOILa7a9ma7WtVt5AuxnpwEfR+BW66 6kHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=ksZpQHt1; 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 p21si777938ejn.754.2022.01.26.22.23.11; Wed, 26 Jan 2022 22:23:46 -0800 (PST) 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=ksZpQHt1; 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 S233668AbiAZXfV (ORCPT + 99 others); Wed, 26 Jan 2022 18:35:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233637AbiAZXfT (ORCPT ); Wed, 26 Jan 2022 18:35:19 -0500 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0478C06161C for ; Wed, 26 Jan 2022 15:35:19 -0800 (PST) Received: by mail-yb1-xb4a.google.com with SMTP id 2-20020a251302000000b006118f867dadso2435760ybt.12 for ; Wed, 26 Jan 2022 15:35:19 -0800 (PST) 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=S9alxEZ7Ku5WvZcthXQSXTBt/vNp2zW2Loz41ChaQ14=; b=ksZpQHt1SIZhp5arp7HKPrgUPNVrjEAuxs3fcebtEeqTDoWMYkhHPwAqzxca+dOAkM CSRWd8vQ+A49d18OBdfNs4o5t0Esws1+/0hHNUkTB+/5rdd0LR1zTZseh8+VylfJSGvT bZNq1twTF7Qihr2wKsc1aH6O54AXvZagxG3ragiUQtGn068aHpDNTuJMcS2zkzyoGRd4 szj+m45YU3lwXWweSHuLnH/hYPkSu6day0n6GSrAFp/Iqw5UyUXJW496ndDQCTPPjtdy idGf0rHGRMQlPUiCRvMVEzr4IeK12T29SUI+ZUqn4zJDSEmN9YpEZX2cNcYiGElU3ZpV VD4g== 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=S9alxEZ7Ku5WvZcthXQSXTBt/vNp2zW2Loz41ChaQ14=; b=5VmEn63rm5schW4l3mQN6ePVZLaeuw3hwQ7sIq4Dwt9iZUVNUYr3iv+g2uxGpDhx+/ JbSJIDzMNjKQVrBmrYTQ9mWVd6uQGYMTy34WuNS2aOoPB3aOW4NWrJqmOrDQ4mHRvNTm CI/W9inzrlFep4hiBKGqDRTFmTtXyQgJU0aZhbwnvDW6sTbsT7ou05MZW1vKpu4Fyg4r RGMjiH9dd931NPJIz1iEx78ml76nHllfCLp3NxHnI7lwi1FBogeXrRq3WSuYHmGQeuxr +r8ItBa6sCaSV/EaMNi+lBrnFSYvZWy9LDhCWQb0P9XpW67vhSaCDwI2HRDgsocGBqlG D87Q== X-Gm-Message-State: AOAM530N11tffqN0O5rYxbAyHeqBZxltpEmAce3kbi3FCYgSDVCcjYh3 NCePDMxn6J+JEq6BZqjQ/kSHC94T+69Q2YydM4PcngjNtLoB3+aQxSsWfI/1zKmTTDPfF3ZaAYs O9WiGSsnwFflY7/hM4peAZ4pYVZ2LNj2ous1VaHb/Wg5zpVClumRtdoBPOmKez5o7V2fBE9ZB X-Received: from uluru3.svl.corp.google.com ([2620:15c:2cd:202:9ce0:6f20:c145:eac]) (user=eranian job=sendgmr) by 2002:a0d:db0b:: with SMTP id d11mr0ywe.483.1643240118330; Wed, 26 Jan 2022 15:35:18 -0800 (PST) Date: Wed, 26 Jan 2022 15:34:43 -0800 In-Reply-To: <20220126233454.3362047-1-eranian@google.com> Message-Id: <20220126233454.3362047-3-eranian@google.com> Mime-Version: 1.0 References: <20220126233454.3362047-1-eranian@google.com> X-Mailer: git-send-email 2.35.0.rc0.227.g00780c9af4-goog Subject: [PATCH v5 02/13] x86/cpufeatures: add AMD Fam19h Branch Sampling feature From: Stephane Eranian To: linux-kernel@vger.kernel.org Cc: peterz@infradead.org, kim.phillips@amd.com, acme@redhat.com, jolsa@redhat.com, songliubraving@fb.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 6db4e2932b3d..1533b3204a6c 100644 --- a/arch/x86/include/asm/cpufeatures.h +++ b/arch/x86/include/asm/cpufeatures.h @@ -318,6 +318,7 @@ #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_CPPC (13*32+27) /* Collaborative Processor Performance Control */ +#define X86_FEATURE_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.35.0.rc0.227.g00780c9af4-goog