Project

General

Profile

Feature #11957

Implement topo support for controlling the LEDs for NVMe/U.2 drive bays

Added by Rob Johnston 9 months ago. Updated 4 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

This issue is to cover the work to scope out and implement the changes needed to allow libtopo to enumerate and control the LEDs for NVME/U.2 drive bays. In particular we would like to be able to enable/disable the Fault and Identify indicator states from software.

The PCIe hotplug framework already implements the base level kernel support for controlling the LEDs on hotpluggable PCI/PCIe devices. Userland consumers can access these facilities via the hotplugd daemon. A C interface for interacting with hotplugd is provided by libhotplug. A CLI interface is provided via cfmadm(1m).

In order to tie this all into libtopo, I think what we'd want to do is implement a new facility provider module (fac_prov_nvme) that would implement a propmethod for the facility/mode property, which could be registered onto nvme topo nodes. This method would leverage the interfaces in libhotplug to control the ident and fault indicators on NVMe devices.

History

#1

Updated by Rob Johnston 7 months ago

  • Description updated (diff)
#2

Updated by Rob Johnston 4 months ago

  • Assignee deleted (Rob Johnston)

Also available in: Atom PDF