From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A53DA27816C for ; Mon, 30 Mar 2026 21:15:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=65.109.113.108 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774905341; cv=none; b=VpaujL1b99i2ANmHf6lp4okD6mJ4xXAg+0z5zMu8oBlD+jU6VW1s0dqoEwd4VaxASs4sTvAZuZpZeCjINGisdmWKMkPaNu35y0be5L5/yq7dXZIBFMY0UsSMQdvvnEuxIA/skrj3EEpA5n0WM5O3ET+9c9OWvlR2SKvRrh9itik= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774905341; c=relaxed/simple; bh=6Hc5aTlFj25REGM6zxqJoDgJGhMX4sAvm+eB0GAf1io=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=aPXTp4NTi78FHpni1ooW39vkOBCTXmqStsvC+RoRQR0LNB2XrFySAFhXU8//w/tXdcAO6My+awfm0do6NxEgv1DnvYtNlXmCtlAXzzYjbWf+UWpFFk673pwV5XjfUbAdkCcj0+QXm9yCfQI38zYjOX+zmXMUbNrtmZ4LUYMG+BA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de; spf=pass smtp.mailfrom=alien8.de; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b=Gkkgq6pc; arc=none smtp.client-ip=65.109.113.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alien8.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="Gkkgq6pc" Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id 5310B40E0298; Mon, 30 Mar 2026 21:15:37 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id pyq2vL5-7Mkp; Mon, 30 Mar 2026 21:15:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1774905333; bh=rb0tKAr5ODx14nHURe6Im7hPLjdzbygM1c/ZR3Rc2XE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Gkkgq6pcC1LTMIHdjv+MQhAGzqchyRZgWbmLhUB6DtpebQ0KCOAA8POrKqBssuXkQ +tamRkbku6jvkdqlEoW/Gy3fmlG4BtWjt3e/UOOIQnLmIJGPcr9LIcP/ZjC4PUc8z/ sRn6svVSy/lkuWnZCl3acbO4QxdNTUnfKB9er4ncbJ85TZ/M1fzDsghqD/mFsbenhW X+nyZdks7FGsnUSLaHnNj3LiBs05ZhWkWVksFgqsnGtxsOHCqMVtLAqBF8LQhRjxf0 Ki9DtFIwUWEPzfILCntAoy7GSnrfEDBAGt4ea1W0xxK/OZ8+IkdJaZyEmmXrfEWZNM mlHpMTsyiLh4qIfuF4stqjZj4Bm1nY/ne35oriIm1ShAvp/uRf5ZaMRW3j26yh7t8a PhzY1apaPxWysOjENqpCarKHCBSKEiQZa3f6tHlLOLba28GSaZAMvxE4i0MMCzrUU9 X2u5IoBXcB6eOYb1cZqc4gpWksEkrkjqd7d7Fx+Qv/Rk0qx6Pk3g4jR5WEzeImY/GA k5gL577K/8XLr1MBHQYVicUdjeYHYDyLA0mLukg2g62HhluC+674Fx1+IIA3gAExQy 8/rYsFmUo/QaA/U3oc2R/LdsR88d6mfL0njb34EtaACAWaFXt3LdrgI1nWro4+GwoR vwN+RmJts5zY4ynVUpuX7RSM= Received: from zn.tnic (p5de8e020.dip0.t-ipconnect.de [93.232.224.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with UTF8SMTPSA id 718E840E016E; Mon, 30 Mar 2026 21:15:12 +0000 (UTC) Date: Mon, 30 Mar 2026 23:15:11 +0200 From: Borislav Petkov To: Maciej Wieczor-Retman Cc: dave.hansen@linux.intel.com, hpa@zytor.com, xin@zytor.com, chang.seok.bae@intel.com, mingo@redhat.com, elena.reshetova@intel.com, maciej.wieczor-retman@intel.com, babu.moger@amd.com, sohil.mehta@intel.com, pawan.kumar.gupta@linux.intel.com, pmladek@suse.com, nik.borisov@suse.com, ptesarik@suse.com, darwi@linutronix.de, tglx@kernel.org, peterz@infradead.org, jpoimboe@kernel.org, ak@linux.intel.com, linux-kernel@vger.kernel.org, x86@kernel.org Subject: Re: [PATCH v12 2/4] x86/cpu: Check if feature string is non-zero Message-ID: <20260330211511.GIacrn373-FN3Yy_p4@fat_crate.local> References: <20260330200045.GUacrWbcsBhp9a-kfb@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=utf-8 Content-Disposition: inline In-Reply-To: On Mon, Mar 30, 2026 at 08:42:11PM +0000, Maciej Wieczor-Retman wrote: > + * Return the feature's "name" if available, otherwise return the > + * feature's bit numerals in "word:bit" format so it's easier to identify. This "numerals" thing is meh but I see why people use it. It doesn't get any clearer than "word number and bit position". > X86_NAMELESS_FEAT_BUF? > > X86_NUM_FEAT_BUF? > > Not sure how to make it much more shorter without making it also unreadable. Yeah, I'm at the same spot as you - I can't think of a better name. Since it is not too widespread, let's leave the longer, more descriptive one and we can change it later if really needed. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette