Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp852606lqt; Tue, 19 Mar 2024 06:05:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWxROBQWnckFQdPeqdu8h+vnziQxMLzcS+UzgR8KBszCq10wfisuPpZ+VXCOp9gwBKrO4JJPN9HT8kqeqtBmh7h+2+b/hLfzXFaKCs0Fw== X-Google-Smtp-Source: AGHT+IFEJ113e78rEAQz4EGnSr6XktdHYVz3mRhPvXLoO5s3ZNZLmYsd+Dxov0S7wMIa+E9KL9ln X-Received: by 2002:aa7:ce0f:0:b0:56a:7449:897c with SMTP id d15-20020aa7ce0f000000b0056a7449897cmr3285319edv.3.1710853546386; Tue, 19 Mar 2024 06:05:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710853546; cv=pass; d=google.com; s=arc-20160816; b=Sh02sH3tZkNQJuYRdATfJXnAh8r+dmNkuuyGEgd+sPqyXQFYkHTIvPAW2YzWVdZnF4 DSJUGtbNRCckSuipFgdRiQJU5wZFwhsqaRTdX0BB3c96GOWvSj38P6adabJl+NNA54Kb n5bjemNfiH94VgQ0bkijgqZFYSzAET95AtIJsYomcOjp+RqkwaynWAReOTyt6GkoElJr QtDhiRQh9NH4Wi0OtF5IKmeiBNFQUnD0+qHNpcVckFzfovgF0dFnYtGwqVLp2mOjqBJ7 tyB2T61gWpBLbYzgMKLcP8CPantQHJnev9whG22AqIGeV4r3ombBWh5v77ko8gRsdREX rMYQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:sender:dkim-signature; bh=buHRSmThstc3lB/h829bc4UnKHIltSZp3sHBDY/iNLs=; fh=aN5stJLBzm7syIhIdv5rq6XMiITF7OsdhDL6dlT3wpA=; b=KPIhQEMZA6qsVsreF1KrwlNyKAq+pgRCXdhzAXxCGMsNd/D2sH2BFfiV8K7+mmqfLR tlkXU1tKsk4WXelZOeISNzJwvUTGENYo0irgCZ6emBy1NF8uc7zH4KG4O7N53x4wXI6e UKSzoEhlxHAkqd0CKW4ZlpH76xUE653/XDWZdimBXMSRCSqCfnyrqGl0Ij9sCzN2jf9M opRDuc7E4LpnPML/5+cg3fUBr5vujYlzXy3cMHgrsH/9SsWavduc9jpcyVmdTAOSgfEw 6foDULo6sWVEzXNgKVodC6L6v/ZE+ZSQwaJOuGXXELFRJuSXU7yd5UAEA7dTfDP/Dd7O AP3w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=O4nqZynV; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-107553-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107553-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id n23-20020a056402515700b0056884c7dca7si5402380edd.203.2024.03.19.06.05.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 06:05:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-107553-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=O4nqZynV; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-107553-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107553-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 1D9801F22A55 for ; Tue, 19 Mar 2024 13:05:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E9BDE58206; Tue, 19 Mar 2024 13:05:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="O4nqZynV" Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 75B363FB89; Tue, 19 Mar 2024 13:05:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710853538; cv=none; b=JDAWVjyiMtyJ5LxlWgjcJADGCFVQU8bXbDZLIHswslkE5Nn1vCWnZCKSSkPS4h6/f/TvAMF4CVjXxFjJ8lUlu5PEw9ZCoUM4jgDFO5bFvHx40TXbW5YcnbLTyB8Az5KqY2A+rlGJqL0X0QlT+xnAiNDA4Woz7KEHkOHYPhVptjE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710853538; c=relaxed/simple; bh=TXD8ENN6EsOKfpXCrEzmdZ3YAUwaICWDB++s3TcnFpY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=pS6A+fHYtgWHPUi0wyybjxkPKdXh64oe7z23oUGEOfH3PrwziOYZLQc1OX8ETX9RK8B1Um6+QFtCs1Rb+dQGOD4A1crlVu1IXUC7wQjMCtLZQzHFCOlQpLPH2wgyXakQj3oZyeq2aSHhJMJKEzf2pce1pH8hzBWBHkeTWe9Tv5Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=O4nqZynV; arc=none smtp.client-ip=209.85.208.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-5658082d2c4so6976799a12.1; Tue, 19 Mar 2024 06:05:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710853535; x=1711458335; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=buHRSmThstc3lB/h829bc4UnKHIltSZp3sHBDY/iNLs=; b=O4nqZynVxbgudOzN2Qf9qGalAzdWj8tbekFhHc6g0FxRGVOkFY7PXx0DbQThh8G5Ch 4kCdcjTkwtnFsSM2PiJpKVEU9bOmagIdDtM6DNpSgHeSrcpzA65EZdaHivPNqkb6Euzg ww70rZDMRIeHjTUMUc6KAlBz1iim4vPhTKJ76A0UmGvjOI7J2pSKFLl4OPIl9bAmcfgt CcTe+NS0Ku86mtpq2thfS4iCp78EaHOh7gYER8YeGOi7ijBs8IbUkvGvzBEUeLpv0zUE keANB0LLI3ds2vtDdRPeqDnQedSBLGdaOv+igwymre5AzrBbpyGe2AtAVogPAqfMistg 5sbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710853535; x=1711458335; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=buHRSmThstc3lB/h829bc4UnKHIltSZp3sHBDY/iNLs=; b=B5sVtCIRlN6FrJj8hCkSpUHt7hr+SNon7lRy5l0/UTtkye8dp9I3qscB/VYqCEd/Gv vTvOSwzC1gWn3KEzSOxkW1c69MlaK513CI/F5JCHAxa/aM65cXfLa/uRIu6jbtGdnvXQ afyDaeRj4Tx+2gfz4g/gdflHOwtxNu9ssdkojrG4bAG4+kWqZLAa0cJRbGjWx986IHRQ r7fmmgs1nr+7vbkHI0sXT3+077Hr5MVVB6DclCDBlah3P1ZiCA3moTTvh8n4m8eVOIql 3UvjSR9XvvePgofhCzHhlCvhbxdRUBnzwJxFaoCnO5IfLbZDjEWcdf9bAvg8wpQOo1gF 8zAA== X-Forwarded-Encrypted: i=1; AJvYcCXbfwuZVBAsNyxjeLw9xNUqb17IwuaIYYDjXUEz1HnE/0iicVvAfQuOKVTJGu7S8bCP5cG/kQJdXM1mEdzLC7k9pBAAEJlq393cDugspDy1lJRiFzbyJIMp1JAoI0UcD9eIDIfqtQ9OsFPBbjWiIAg= X-Gm-Message-State: AOJu0YyXW3NnBFZ53d4p/ONm2Bk+3Pml+s4zmnY73rfMdaM2nzBcpY+G nEMPIn/KNkkNrDWiBFYiYXOoHe05NMlVNhd3CfyP+ex/qfvwa/bNiGjnSGNQpTI= X-Received: by 2002:a05:6402:1586:b0:567:de59:e93e with SMTP id ij6-20020a056402158600b00567de59e93emr9129004edb.25.1710853534465; Tue, 19 Mar 2024 06:05:34 -0700 (PDT) Received: from gmail.com (1F2EF04C.nat.pool.telekom.hu. [31.46.240.76]) by smtp.gmail.com with ESMTPSA id v17-20020a056402175100b005651ae4ac91sm5718075edx.41.2024.03.19.06.05.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 06:05:33 -0700 (PDT) Sender: Ingo Molnar Date: Tue, 19 Mar 2024 14:05:31 +0100 From: Ingo Molnar To: Borislav Petkov Cc: Sandipan Das , linux-kernel@vger.kernel.org, linux-tip-commits@vger.kernel.org, x86@kernel.org Subject: Re: [tip: perf/urgent] x86/cpufeatures: Add dedicated feature word for CPUID leaf 0x80000022[EAX] Message-ID: References: <171084456107.10875.4104379273551108641.tip-bot2@tip-bot2> <20240319130054.GCZfmMhp-7Qa0eDaTC@fat_crate.local> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240319130054.GCZfmMhp-7Qa0eDaTC@fat_crate.local> * Borislav Petkov wrote: > On Tue, Mar 19, 2024 at 10:36:01AM -0000, tip-bot2 for Sandipan Das wrote: > > The following commit has been merged into the perf/urgent branch of tip: > > > > Commit-ID: f0a22ea644717fa21698a32d342fcd307e53a935 > > Gitweb: https://git.kernel.org/tip/f0a22ea644717fa21698a32d342fcd307e53a935 > > Author: Sandipan Das > > AuthorDate: Tue, 19 Mar 2024 13:48:16 +05:30 > > Committer: Ingo Molnar > > CommitterDate: Tue, 19 Mar 2024 11:23:47 +01:00 > > > > x86/cpufeatures: Add dedicated feature word for CPUID leaf 0x80000022[EAX] > > > > Move the existing scattered performance monitoring related feature bits > > from CPUID leaf 0x80000022[EAX] into a dedicated word since additional > > bits will be defined from the same leaf in the future. This includes > > X86_FEATURE_PERFMON_V2 and X86_FEATURE_AMD_LBR_V2. > > That CPUID leaf has a whopping three bits defined and the rest is > reserved. You should do a dedicated leaf when we use at least 50% of the > bits in the leaf. But not like this. > > Please do simply another synthetic leaf and put your bits there. Yeah, that was my original suggestion too, so fully agreed - I got distracted by the cleanup factor, but it's not worth spreading out the cpuinfo.x86_capability[] bits unnecessarily. Thanks, Ingo