Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6661148rwl; Mon, 9 Jan 2023 11:12:10 -0800 (PST) X-Google-Smtp-Source: AMrXdXt0OU7rWksINvVx8vuzMvws5oFl/oTF7yzMcHptS88HPVRkq/yqJccFtGnNOfXLKqR+pSst X-Received: by 2002:a05:6402:128a:b0:499:bec6:f492 with SMTP id w10-20020a056402128a00b00499bec6f492mr2184577edv.36.1673291530338; Mon, 09 Jan 2023 11:12:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673291530; cv=none; d=google.com; s=arc-20160816; b=lSmXCPJTxyG53vkYYG/2OdgynuoinOxUF0hZmFYKtQ2FF1Ux+S/wesq/m8CWpMyh8n 37M4KAmYxu3ArvNJGA9I7YfAuFzpno55fwEKu5qkB77JBmfW//wvg+F/PLIxIcckRp1Q C8GhZRkzgWSyl2zmQ73nAKhFtKXTuKaomdxq3QK6fVZBXcy9rEsPA82T5lvRp21n/a+q 8O9/5OQqup1dvNHr9+pAFcBxVl6+7vLLKJcZyVfNMvx2DX0Xur/oX+Lm7GCw3Fowrh8N 8frwtDY68WF+ZhnQc18ouTcLSfPuhoHE/nzoBSWau5lPPF3QdgfUg4yRv6HueN9ut9mu 6x5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=T/C2ZNsdnbD7anTm7jFesx/2sE3BiumYPYtc/1Ha8co=; b=Qq0mHfqg3B8X5cz7zWdFnVBhq7VMB83Lm1WKBVJ/sNoLO41ztuDAtNcWpln/KiRGQL 492plj0QXSDDL2JXzAr6rxQpZRcDSTD+xCQg+1PbSONoQqWZEpowDpDyBQ2UpJeKogTl CCphQOQRu8ul6aLyBkmtrKn8z+WWP7dWf+AtyYhDDXDnFsqJC5b7lrU4etppKHlRKJTw hPWkZd7/KmIxBa0wgWmzn9TrgqRNHWBNCK/5lZIcR7ql5NYuv8Zi6njPbAh6wEvUIw5T kds8vhckFvXeHiH29Y7iEifuzVjHzNSgjRTxQba9J+9Len1QotPP7dLHdjxtMwB7p7Lp tXeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=b1yYS9IV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u1-20020a05640207c100b0048ed4a7af9esi7840793edy.435.2023.01.09.11.11.57; Mon, 09 Jan 2023 11:12:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=b1yYS9IV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237463AbjAIS6o (ORCPT + 53 others); Mon, 9 Jan 2023 13:58:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237503AbjAIS6Z (ORCPT ); Mon, 9 Jan 2023 13:58:25 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE9641CB31; Mon, 9 Jan 2023 10:58:18 -0800 (PST) Received: from zn.tnic (p5de8e9fe.dip0.t-ipconnect.de [93.232.233.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 50DE31EC0354; Mon, 9 Jan 2023 19:58:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1673290697; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=T/C2ZNsdnbD7anTm7jFesx/2sE3BiumYPYtc/1Ha8co=; b=b1yYS9IVnAWfK1sWk9+HU/hMRjCkilHzvuC+7tUeignRByPme3+dlWe93egoeYGgrLjg8D UpF84JnHIegvsMtVRUnveeZhE7oVOwMMgQnne97xRMV7hzsOMKAaq2jBaMAaPWx2yplRlw L6SYWz8JYVfj8QS0fZr2jT4OJ6gkpnc= Date: Mon, 9 Jan 2023 19:58:13 +0100 From: Borislav Petkov To: Babu Moger Cc: corbet@lwn.net, reinette.chatre@intel.com, tglx@linutronix.de, mingo@redhat.com, fenghua.yu@intel.com, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, paulmck@kernel.org, akpm@linux-foundation.org, quic_neeraju@quicinc.com, rdunlap@infradead.org, damien.lemoal@opensource.wdc.com, songmuchun@bytedance.com, peterz@infradead.org, jpoimboe@kernel.org, pbonzini@redhat.com, chang.seok.bae@intel.com, pawan.kumar.gupta@linux.intel.com, jmattson@google.com, daniel.sneddon@linux.intel.com, sandipan.das@amd.com, tony.luck@intel.com, james.morse@arm.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, bagasdotme@gmail.com, eranian@google.com, christophe.leroy@csgroup.eu, jarkko@kernel.org, adrian.hunter@intel.com, quic_jiles@quicinc.com, peternewman@google.com Subject: Re: [PATCH v11 04/13] x86/cpufeatures: Add Bandwidth Monitoring Event Configuration feature flag Message-ID: References: <20230109164405.569714-1-babu.moger@amd.com> <20230109164405.569714-5-babu.moger@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230109164405.569714-5-babu.moger@amd.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 09, 2023 at 10:43:56AM -0600, Babu Moger wrote: > diff --git a/arch/x86/include/asm/cpufeatures.h b/arch/x86/include/asm/cpufeatures.h > index 00045123f418..db5287c06b65 100644 > --- a/arch/x86/include/asm/cpufeatures.h > +++ b/arch/x86/include/asm/cpufeatures.h > @@ -308,6 +308,7 @@ > #define X86_FEATURE_CALL_DEPTH (11*32+19) /* "" Call depth tracking for RSB stuffing */ > #define X86_FEATURE_MSR_TSX_CTRL (11*32+20) /* "" MSR IA32_TSX_CTRL (Intel) implemented */ > #define X86_FEATURE_SMBA (11*32+21) /* Slow Memory Bandwidth Allocation */ > +#define X86_FEATURE_BMEC (11*32+22) /* Bandwidth Monitoring Event Configuration */ If those flags are meant only for internal kernel code use - it looks like it - and userspace doesn't care, pls put "" in front of both in the comment like the others above them do. This way they won't be visible in /proc/cpuinfo. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette