From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id +H86L21KVWegpwAAe85BDQ:P1 (envelope-from ) for ; Sun, 08 Dec 2024 07:27:42 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id +H86L21KVWegpwAAe85BDQ (envelope-from ) for ; Sun, 08 Dec 2024 08:27:41 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b="e8/8kZou"; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=JAxS1Pi8; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1733642861; a=rsa-sha256; cv=none; b=aPoAjQUQh+mT9nrcF3kVg9sdZm9mnJ7WfYPDdPUB4eHcMJwHrTtOfX65hxFAKiv2PZZ55A y1yI01hvdXt5RLaFjJZbfjhcy5+UCYsNZuNxTbu36TA8XvpB77V6uFjcNlnNWBajAbmc6R BgZzoqQ0q3YRhZNMxUfcFzXs/IkMsTvga+bjy5Wzt3R6VB7BJHnvSCRUP+K9eRiuyeeYIW K65dplW8fVCeieyYAtgnKeCD8TP1kzM7jpbPZ/TbMc3xgqNX4ffD+GUtVrZZxMgJ1Y6FC0 AiA+Eat3L5CBeZxnWSdQzFxknGu9VmXgs8S1q0xtM/AtU1vYLQPOjDgeMb+ETg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b="e8/8kZou"; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=JAxS1Pi8; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1733642861; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=u+HPtQUJCvpe37d7xPJzDLjpdnBoI2Qb8jXnbyrV7Vc=; b=FJ5E/H+Z9jXiZg7IAl9nsB5TbT/AUmgVzK0lLHpCk5bRSvrcn5nzKWNqqjpN4UGMl0Q/oq YSMtnuewW+tcS9Fsf9w4na8JH2kCp0/8CExu+bfySJpdRCpUGbAdhi0vTnMPR8UvqepELG Yb+O8fboLjodu5pnr/J63fpB9aNFA7/uKM+wPdjeQhvShfB/5kbRwlMKs1DHZ7zd/1Wm+v 8EBwTwaIqi4fHkl+t2w/pcr8Vmj3E1yoY0VcasSqAg63USQmg8sK+0A9o5FoRP9q54Zrau vIFuJcI7JdWitTNiBwvuofUrkWQ2FonByA38z8JcOxC+X5FzObdO1uS03Utylg== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B5A888F4D7 for ; Sun, 08 Dec 2024 08:27:40 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tKBh9-0004t0-7f; Sun, 08 Dec 2024 02:27:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tKBh1-0004sR-35 for bug-guix@gnu.org; Sun, 08 Dec 2024 02:27:03 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tKBh0-0008TS-RO for bug-guix@gnu.org; Sun, 08 Dec 2024 02:27:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:From:Date:To:Subject; bh=u+HPtQUJCvpe37d7xPJzDLjpdnBoI2Qb8jXnbyrV7Vc=; b=e8/8kZouqAChe5byclc1o1T4L8Skgdf72pQu8oYtteN1gxaLhBJRmn4MOgKYd9eOQDOeuvEfTDEUviubJWyN8MWQgUM5uCpUduWMJYj5uBfmMrz73JfB1fqZr7bA5W1RmTcLYldRYAItfmaYaQBerTvBitTp5hi7YdEjUx5yrCYwCQ7pRVNFSKOiklCCZ2bQ21aQhaMu7gXn8gWx97iMwfZxMVXX0QcTYR+GpuJ3OVf0M7QRFmjQVgDQr289CDXWStKfKmhewXnbnZqGP9Cdk6UIRRSI2vXBgANkQZgwRigN3y1B23R7P9yAD5bJTKlHkyInqiYT2e2nP3q0VRN9uQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tKBh0-0000gR-MJ for bug-guix@gnu.org; Sun, 08 Dec 2024 02:27:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#74731: guix/cpu should parse /sys/devices/system/cpu/modalias Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 08 Dec 2024 07:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74731 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 74731@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17336427772549 (code B ref -1); Sun, 08 Dec 2024 07:27:02 +0000 Received: (at submit) by debbugs.gnu.org; 8 Dec 2024 07:26:17 +0000 Received: from localhost ([127.0.0.1]:49503 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tKBgG-0000f2-SX for submit@debbugs.gnu.org; Sun, 08 Dec 2024 02:26:17 -0500 Received: from lists.gnu.org ([209.51.188.17]:36484) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tKBgD-0000er-7i for submit@debbugs.gnu.org; Sun, 08 Dec 2024 02:26:15 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tKBgB-0004pt-6w for bug-guix@gnu.org; Sun, 08 Dec 2024 02:26:11 -0500 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tKBg5-0008RC-QJ for bug-guix@gnu.org; Sun, 08 Dec 2024 02:26:09 -0500 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-434e3953b65so7935255e9.1 for ; Sat, 07 Dec 2024 23:26:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733642764; x=1734247564; darn=gnu.org; h=content-disposition:mime-version:mail-followup-to:message-id :subject:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=u+HPtQUJCvpe37d7xPJzDLjpdnBoI2Qb8jXnbyrV7Vc=; b=JAxS1Pi804lPj7TTlQbSM58S4EpnAL1WFYmu7msM9Y4+S92seyzMb9EygssCZaBtsQ k8rwgftfaWWsg+vtZJIROE1m/YqQsmE0VgJKQWnP4BFUlUamIgHeH7CWKR67feHLhPNi 6Hvt7leLyrZIC8HTQAMtGtt0QQeAJzMExfbwtZi7g6isfSpmL4Bcep6jiN2UPq3oGma2 rNcdFxCsE2rj0rZ1h7ZKqDqXaJpmf0k//UI5rnwNlcsDf/la1RWWy8vBL4t5whKsCzhB UshPgieZvylsnCOUOVL9EkBq5iUh9aiZAGLio4SbfGYY8y5fbO+d89ZcuFLjvbfVCRbH 3gzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733642764; x=1734247564; h=content-disposition:mime-version:mail-followup-to:message-id :subject:to:from:date:sender:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=u+HPtQUJCvpe37d7xPJzDLjpdnBoI2Qb8jXnbyrV7Vc=; b=HULCwQk9R8EoK7HovW4HdU5cPFHnueUuO4FR3QzGIlqInTIvJp28vLYcPPh3AJ+VI4 /aM/u8V/thpkcnmD86L4ZfUGvQ7/CfJcS9b0KauYCynBcCwGz1NqwhzwNHaiG+J0tkuQ q8paHJywcywmpengokburBPyAo+2+2Fdo8sgqhQ9OSoTGfe4DJkQUU4xV0pAodQR61LG kUu67P+1mZanD9J1YXjYAk+0ssf9RqLCkc4ezB0DOn1yC6zYOSiiiTOnRQcKndxIO7C3 EnW/w1pt206ZVFWwBIqQ5jHUZu05CfWvAFyo9H7LT3NPdn+gnjvOwkKQXK8Cc/srvx88 4paQ== X-Gm-Message-State: AOJu0Yz4ekGJcvN5J7TgvQ7xpMLokFrh6WR12ECzq9FBI70c94n3eAcI j1jnP6SZo5WHQ3P/oYKRvQK1JX30cgtIfDRP/Oh372W7eGVYdpNGRxd91e9O X-Gm-Gg: ASbGnct+w73WZPxRL0k4g06Z35v7O0cvrYXWRNbuhrmmNmW3Rw7VVJGnr/QB7qA5iwD wrszZlElO7Lt1E0v/m1d+/orLLESK5B28Qr6lUWAc+RAMpt7sftd0ES53Z8iNfk0ydUFSOECcZZ VG02SRo2cAil9dCk13TBtKmobYYay54Fi2bx3UuGVk83Fq0CFAG2BI/V9NCbG2wfnDxs6fUJ4Ww 9CJ5GDEmM+mQgbJeSnCQ6LxZ+hUsVVSvNByGkfPJs0LrS7ycw== X-Google-Smtp-Source: AGHT+IHnk2pW6XzJwwLrtQe54Rukp0BctCRgn/urjCm4Z13M9gnIqL6285YOEcFc2OkmLnH22XUCcw== X-Received: by 2002:a05:600c:46c7:b0:434:9c1b:b36a with SMTP id 5b1f17b1804b1-434ddeb51femr69751185e9.13.1733642763703; Sat, 07 Dec 2024 23:26:03 -0800 (PST) Received: from localhost ([31.210.180.118]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3861ecf4087sm9500029f8f.5.2024.12.07.23.26.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Dec 2024 23:26:02 -0800 (PST) Date: Sun, 8 Dec 2024 09:25:59 +0200 From: Efraim Flashner Message-ID: Mail-Followup-To: Efraim Flashner , bug-guix@gnu.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="cQe8am69YhIDeLD5" Content-Disposition: inline X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=efraim.flashner@gmail.com; helo=mail-wm1-x331.google.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -7.81 X-Spam-Score: -7.81 X-Migadu-Queue-Id: B5A888F4D7 X-Migadu-Scanner: mx10.migadu.com X-TUID: N7qmd56IzW4E --cQe8am69YhIDeLD5 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I saw a post by Marcan=C2=B9 of Asahi Linux the other day about not parsing /proc/cpuinfo and remembered that's what we're doing in (guix cpu). I've included a couple of dumps below and some notes regarding future implementation: // My machine (ins)efraim@3900XT ~$ cat /sys/devices/system/cpu/modalias cpu:type:x86,ven0002fam0017mod0071:feature:,0000,0001,0002,0003,0004,0005,0= 006,0007,0008,0009,000B,000C,000D,000E,000F,0010,0011,0013,0017,0018,0019,0= 01A,001C,0020,0021,0022,0023,0024,0025,0026,0027,0028,0029,002B,002C,002D,0= 02E,002F,0030,0031,0034,0036,0037,0038,0039,003A,003B,003D,0064,0068,006E,0= 070,0074,0075,0076,0078,0079,007A,007C,007D,0080,0081,0083,0089,008C,008D,0= 093,0094,0095,0096,0097,0099,009A,009B,009C,009D,009E,00C0,00C1,00C3,00C4,0= 0C5,00C6,00C7,00C8,00C9,00CA,00CC,00CD,00D1,00D6,00D7,00D8,00DA,00DC,00DD,0= 0DE,00E2,00E4,00E6,00E8,00EA,00ED,00F0,00F1,00F2,00F3,00F5,00FA,00FB,00FC,0= 10F,0120,0123,0125,0127,0128,012C,012F,0132,0133,0134,0137,0138,013D,0140,0= 141,0142,0160,0161,0162,0163,0165,016C,016E,016F,0170,0178,017C,01A0,01A1,0= 1A2,01A4,01A6,01A9,01AA,01AC,01AD,01AF,01B2,01B3,01B8,01C2,01E0,01E1,01E2,0= 1E3,01E4,01E5,01E6,01E7,01EA,01EB,01EC,01ED,01EF,01F0,01F1,01F4,0202,0216,0= 220,0221,0223,0224,0261,0262,0263,0270,0282,029C // Berlin, aka ci.guix.gnu.org (ins)efraim@berlin ~$ cat /sys/devices/system/cpu/modalias cpu:type:x86,ven0002fam0017mod0001:feature:,0000,0001,0002,0003,0004,0005,0= 006,0007,0008,0009,000B,000C,000D,000E,000F,0010,0011,0013,0017,0018,0019,0= 01A,001C,0020,0021,0022,0023,0024,0025,0026,0027,0028,0029,002B,002C,002D,0= 02E,002F,0030,0031,0034,0036,0037,0038,0039,003A,003B,003D,0064,0068,006E,0= 070,0074,0075,0078,0079,007A,007B,007C,007D,0080,0081,0083,0089,008C,008D,0= 093,0094,0096,0097,0099,009A,009B,009C,009D,009E,00C0,00C1,00C2,00C3,00C4,0= 0C5,00C6,00C7,00C8,00C9,00CC,00CD,00D1,00D6,00D7,00D8,00DA,00DC,00DD,00E2,0= 0E8,00EA,00ED,00F1,00F3,00F5,00F8,00FA,00FC,010F,0120,0123,0125,0127,0128,0= 132,0133,0134,0137,013D,0140,0141,0142,0143,0165,016C,016E,016F,0170,0178,0= 17F,01A0,01A1,01A2,01AC,01C2,01E0,01E1,01E2,01E3,01E4,01E5,01E6,01E7,01EA,0= 1EB,01EC,01ED,01EF,01F0,0220,0221,0223,0224,0261,0262,0263,0282,029C // pine64, kickstarter addition (ins)efraim@3900XT ~$ ssh pine64 cat /sys/devices/system/cpu/modalias cpu:type:aarch64:feature:,0000,0001,0002,0003,0004,0005,0006,0007,000B // rock64 (ins)efraim@3900XT ~$ ssh rock64 cat /sys/devices/system/cpu/modalias cpu:type:aarch64:feature:,0000,0001,0002,0003,0004,0005,0006,0007,000B // raspberry pi 5b (ins)efraim@3900XT ~$ ssh ubuntu.unicorn-typhon.ts.net cat /sys/devices/sys= tem/cpu/modalias efraim@ubuntu.unicorn-typhon.ts.net: Permission denied (publickey). (ins)efraim@3900XT ~$ ssh ubuntu@ubuntu.unicorn-typhon.ts.net cat /sys/devi= ces/system/cpu/modalias cpu:type:aarch64:feature:,0000,0001,0002,0003,0004,0005,0006,0007,0008,0009= ,000A,000B,000C,000F,0010,0014 // power9 machine from OSU for ci.guix.gnu.org (ins)efraim@3900XT ~$ ssh guixp9 cat /sys/devices/system/cpu/modalias cpu:type:power9:feature:,0001,0006,0007,0008,000A,000D,000E,001A,001B,001C,= 001E,001F,0034,0035,0036,0037,0039,003A,003B,003C,003D,003F // rpi 1b (ins)efraim@3900XT ~$ ssh 192.168.68.50 cat /sys/devices/system/cpu/modalias cpu:type:v6l:feature:,0001,0002,0004,0006,0007,0008,000F // hifive unmatched, riscv64 (ins)efraim@3900XT ~$ ssh 192.168.68.51 cat /sys/devices/system/cpu/modalias cat: /sys/devices/system/cpu/modalias: No such file or directory // macbook 4,1 I think (ins)efraim@3900XT ~$ ssh israel.unicorn-typhon.ts.net cat /sys/devices/sys= tem/cpu/modalias cpu:type:x86,ven0000fam0006mod0017:feature:,0000,0001,0002,0003,0004,0005,0= 006,0007,0008,0009,000B,000C,000D,000E,000F,0010,0011,0013,0015,0016,0017,0= 018,0019,001A,001C,001D,001F,002B,0034,003D,0068,006B,006C,006D,006F,0070,0= 072,0074,0075,0079,007C,0080,0082,0083,0084,0085,0087,0088,0089,008D,008E,0= 08F,0093,00C0,00EB,00ED,00F3,00FD,00FF,0100,0101,0102,0104,0165,016C,0172,0= 1C0 arch/x86/include/asm/cpufeatures.h list of CPU features for x86 and x86_64 I haven't been able to find the table for other architectures yet. =C2=B9 https://social.treehouse.systems/@marcan/113548772069263164 --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --cQe8am69YhIDeLD5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmdVSgMACgkQQarn3Mo9 g1F0DxAAr0NcsqlfxewgCVd0TsOaPOkT5YPAHDVxZU7SRRoUi/G8dWVnYW3njh5a FGyxfUwKElpDgfz9xUOfP1J/dw3iaktW7Bzd/pY7vL8ZpaIeaft0HzVBLX2dHF3q lwExnBcDq08S53k6RuJyNr7GvOTw7jfN+Ss7AWOGEOWBOJ6Fa41wmnEdiHth1v5X PuTlWeeRVWU5WKE/OgNMmuoqSrKXzu6ImOl6S3mjXf4MkEFdd2f2KXv1xiJpuikb 7VdnGeRvxCnqvrDxKaxf+gxhzNLN4uM9ZrjFxRpcFpVx6oighUmavIB+AgmLhi1c PGGPB0NJRuP7qVHf7/wssQEsVzTjBoHIKmZf15E1T7EVxBoXvnJAwN1x0ZGRqzFK ODIMoGUpu2/TqU+M37kWOfxkWABwN1ioylRas1duL5L/wwVnN/5JCu04PdHq+K5Z zxpUiqCIOjNeu2U/Hma3rmAZ3hp3N1kXcrqtPAiYFHE2y7mgnT5vfjnmpeHYsjWM RCcgpoKThbLHgDACDIPxUfEzKqiZl7tvft5T5W9HRA26AOKleiPTYSry8EmlfH1M A/ByfX1SWvYPvdqN7Zrzn4tndDU3i3wpnKIXIMBbs7Dlts1TANPQm5vfSy1+OOAc ywSYg7/Q2jm6OWqPfdgokfs9mQcUs8CJ5GnZS0M60Du7cqjw4cQ= =zBN/ -----END PGP SIGNATURE----- --cQe8am69YhIDeLD5--