Project

General

Profile

Actions

Feature #14894

closed

pcieadm NPEM capability decoding

Added by Robert Mustacchi about 2 months ago. Updated about 2 months ago.

Status:
Closed
Priority:
Normal
Category:
cmd - userland programs
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

Description

Some devices are beginning to support the Native PCIe Enclsoure Management capabilty. We should decode this in pcieadm.

Here's an example of the output against actual devices:

$ ./pcieadm show-cfgspace -f ~/pci/80-01-01.pci npem
Native PCIe Enclosure Management Capability (0x29)
  Capability Header: 0x50010029
    |--> Capability ID: 0x29
    |--> Capability Version: 0x1
    |--> Next Capability Offset: 0x500
  NPEM Capability: 0x0
    |--> NPEM: unsupported (0x0)
    |--> NPEM Reset: unsupported (0x0)
    |--> NPEM OK: unsupported (0x0)
    |--> NPEM Locate: unsupported (0x0)
    |--> NPEM Fail: unsupported (0x0)
    |--> NPEM Rebuild: unsupported (0x0)
    |--> NPEM PFA: unsupported (0x0)
    |--> NPEM Hot Spare: unsupported (0x0)
    |--> NPEM In a Critical Array: unsupported (0x0)
    |--> NPEM In a Failed Array: unsupported (0x0)
    |--> NPEM Invalid Device type: unsupported (0x0)
    |--> NPEM Disabled: unsupported (0x0)
    |--> Enclosure-specific Capabilities: 0x0
  NPEM Control: 0x0
    |--> NPEM: disabled (0x0)
    |--> NPEM Initiate Reset: disabled (0x0)
    |--> NPEM OK: disabled (0x0)
    |--> NPEM Locate: disabled (0x0)
    |--> NPEM Fail: disabled (0x0)
    |--> NPEM Rebuild: disabled (0x0)
    |--> NPEM PFA: disabled (0x0)
    |--> NPEM Hot Spare: disabled (0x0)
    |--> NPEM In a Critical Array: disabled (0x0)
    |--> NPEM In a Failed Array: disabled (0x0)
    |--> NPEM Invalid Device type: disabled (0x0)
    |--> NPEM Disabled: disabled (0x0)
    |--> Enclosure-specific Control: 0x0
  NPEM Status: 0x0
    |--> NPEM Command Complete: no (0x0)
    |--> Enclosure-specific Status: 0x0
Actions #1

Updated by Electric Monk about 2 months ago

  • Gerrit CR set to 2295
Actions #2

Updated by Robert Mustacchi about 2 months ago

  • Description updated (diff)
Actions #3

Updated by Electric Monk about 2 months ago

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

git commit c3e0a1890221a18da85f545ad88e4933ca296566

commit  c3e0a1890221a18da85f545ad88e4933ca296566
Author: Robert Mustacchi <rm@fingolfin.org>
Date:   2022-08-16T18:20:40.000Z

    14893 pcieadm 32.0 GT/s physical layer capability decoding
    14894 pcieadm NPEM capability decoding
    Reviewed by: Benjamin Naecker <bnaecker@fastmail.com>
    Approved by: Patrick Mooney <pmooney@pfmooney.com>

Actions

Also available in: Atom PDF