From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lithops.sigma-star.at (mailout.nod.at [116.203.167.152]) (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 3BA5026A0B9 for ; Mon, 23 Feb 2026 13:53:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=116.203.167.152 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771854796; cv=none; b=H8RtBfLPpFA6OrBjZfH6bHdH/HZllAFo9XChwnZSuDm00ZLadJJ8q/3m6xYQvatDYPkGaay4OpHQ3Jdq02OjpDpm9Pzqe1VSdkC5+za7z+VcvrQMUcoUBPEYPzghHrcUpngpCp13bvQtUQaVRc7tnQLwen4VSImGqH/XrBqDeGs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771854796; c=relaxed/simple; bh=4zEKT0q1465+Pxgpr2kylszkvVWoOhObzTOcAqhULac=; h=Date:From:To:Cc:Message-ID:In-Reply-To:References:Subject: MIME-Version:Content-Type; b=Oy1kIBYmBtmJtZcxPFRHRCwhgoxcJ44FIKOtJ3zYv7Uw/lTpoDpGaWBloPSSr1FqYLszvK1L3iw1D8CuCC6d0jGSiV9hbqVmP6wRQBkWS8Uqh/RH5sI9/GJUR16PjFtT/3hUgspBG3hjKTbRKs4y93lbbTbvl7fZHZpZ8H1Xw80= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nod.at; spf=fail smtp.mailfrom=nod.at; arc=none smtp.client-ip=116.203.167.152 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nod.at Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nod.at Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id C05D6298580; Mon, 23 Feb 2026 14:53:11 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id foDBApwCj6lx; Mon, 23 Feb 2026 14:53:10 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 17941298599; Mon, 23 Feb 2026 14:53:10 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id GvQuuyDXbWdo; Mon, 23 Feb 2026 14:53:10 +0100 (CET) Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lithops.sigma-star.at (Postfix) with ESMTP id E1215298580; Mon, 23 Feb 2026 14:53:09 +0100 (CET) Date: Mon, 23 Feb 2026 14:53:09 +0100 (CET) From: Richard Weinberger To: Greg Kroah-Hartman Cc: linux-kernel , bhe , sourabhjain@linux.ibm.com, Andrew Morton , senozhatsky , John Ogness , Steven Rostedt , Petr Mladek , upstream+linux@sigma-star.at Message-ID: <34633518.4353.1771854789638.JavaMail.zimbra@nod.at> In-Reply-To: <2026022306-macaw-cringing-19c2@gregkh> References: <20260223133448.411343-1-richard@nod.at> <2026022306-macaw-cringing-19c2@gregkh> Subject: Re: [PATCH] ksysfs: Expose hardware name 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-Transfer-Encoding: quoted-printable X-Mailer: Zimbra 8.8.12_GA_3807 (ZimbraWebClient - FF147 (Linux)/8.8.12_GA_3809) Thread-Topic: ksysfs: Expose hardware name Thread-Index: RDRdi4rTFNOYUmBd0DNWWSRtiAtOzw== ----- Urspr=C3=BCngliche Mail ----- > Von: "Greg Kroah-Hartman" > An: "richard" > CC: "linux-kernel" , "bhe" = , sourabhjain@linux.ibm.com, "Andrew Morton" > , "senozhatsky" , "J= ohn Ogness" , > "Steven Rostedt" , "Petr Mladek" ,= upstream+linux@sigma-star.at > Gesendet: Montag, 23. Februar 2026 14:49:31 > Betreff: Re: [PATCH] ksysfs: Expose hardware name > On Mon, Feb 23, 2026 at 02:34:48PM +0100, Richard Weinberger wrote: >> Userspace tools often require a short, descriptive name of the hardware >> platform. Currently, this information is fragmented: Device Tree-based >> platforms typically use /proc/device-tree/model, while x86 platforms >> combine multiple values from /sys/class/dmi/id/. There is no uniform, >> platform-agnostic way to retrieve this string. >>=20 >> The kernel already maintains dump_stack_arch_desc_str[], which contains >> the model name or DMI values used for the "Hardware name:" field in >> stack traces. >>=20 >> Expose dump_stack_arch_desc_str[] at /sys/kernel/hardware_name to >> provide userspace with a consistent interface for identifying the >> underlying hardware. >=20 > No objection from me, but now that this is a global symbol in the > kernel, "dump_" seems like an odd prefix for this. How about > "linux_hardware_name" to match up with the sysfs file name? I don't care much. The reason why I kept the variable as-is is because the function to set it is dump_stack_set_arch_desc(). So the prefix makes kinda sense. Thanks, //richard