Project

General

Profile

Actions

Feature #13200

closed

fmtopo could display CPU socket

Added by Robert Mustacchi 7 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Category:
lib - userland libraries
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

It would be nice if fmtopo could display the CPU socket that a given proccesor supports in information about the "chip" node in fmtopo. In terms of getting this information, we can't reliably use smbios, because we don't have a guaranteed way of mapping the smbios entry to the CPU itself. We also have this information in the kernel based on the CPU family and model and therefore will use that when available. As an example, here's what we see on a system with an AMD Rome cpu:

$ pfexec /usr/lib/fm/fmd/fmtopo -V
...
hc://:server-id=beowulf:serial=iv0-AMD-830f10-1f0ef44db000088/motherboard=0/chip=0
  group: protocol                       version: 1   stability: Private/Private
    resource          fmri      hc://:server-id=beowulf:serial=iv0-AMD-830f10-1f0ef44db000088/motherboard=0/chip=0
    FRU               fmri      hc://:server-id=beowulf:serial=iv0-AMD-830f10-1f0ef44db000088/motherboard=0/chip=0
  group: authority                      version: 1   stability: Private/Private
    server-id         string    beowulf
  group: chip-properties                version: 1   stability: Private/Private
    vendor_id         string    AuthenticAMD
    family            int32     23
    model             int32     49
    stepping          int32     0
    brand             string    AMD EPYC 7282 16-Core Processor
    socket            string    SP3
...
Actions #1

Updated by Electric Monk 7 months ago

  • Gerrit CR set to 958
Actions #2

Updated by Robert Mustacchi 7 months ago

  • Subject changed from fmtopo could dipslay CPU socket to fmtopo could display CPU socket
Actions #3

Updated by Electric Monk 7 months ago

  • Status changed from New to Closed
  • % Done changed from 80 to 100

git commit d0caeb890c33e30d7a9addcbccdda2343401d3e7

commit  d0caeb890c33e30d7a9addcbccdda2343401d3e7
Author: Robert Mustacchi <rm@fingolfin.org>
Date:   2020-10-09T21:18:40.000Z

    13200 fmtopo could display CPU socket
    Reviewed by: C Fraire <cfraire@me.com>
    Reviewed by: Ryan Zezeski <ryan@zinascii.com>
    Reviewed by: Toomas Soome <tsoome@me.com>
    Approved by: Richard Lowe <richlowe@richlowe.net>

Actions

Also available in: Atom PDF