Bug 189788

Summary: [patch] add kern.geom.disk.%s.activity_led to attach a LED to display disk activity
Product: Base System Reporter: Keith White <kwhite>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Open ---    
Severity: Affects Only Me CC: allanjude, ksw.childe
Priority: Normal Keywords: patch
Version: Unspecified   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Keith White 2014-05-14 01:00:00 UTC
In embedded platforms (Beaglebone Black in particular) there are uncommitted LEDs that might be useful to have display "disk" activity.  The attached patch adds a kern.geom.disk.%s.activity_led SYSCTL that could be used for this purpose.

Apply the attached patch.

Add the following to your KERNCONF:

  options         GEOM_DISK_ACTIVITY_LED  # blinky lights for GEOM disk access

Add the following to /boot/loader.conf on that platform to have blinky lights for SD/MMC access:

  kern.geom.disk.mmcsd0.activity_led="led2"
  kern.geom.disk.mmcsd1.activity_led="led1"

To have the LEDs default on, and go off for any activity, prefix the LED name with bang:

  kern.geom.disk.mmcsd0.activity_led="!led2"
  kern.geom.disk.mmcsd1.activity_led="!led1"

Fix: See above.

Patch attached with submission follows:
How-To-Repeat: NA
Comment 1 Keith White 2015-05-26 00:36:17 UTC
With release later than roughly r283307 the BBB example becomes:

kern.geom.disk.mmcsd0.activity_led="beaglebone:green:mmc0"

With the APU led patch (see Bug 189772) an APU example might be:

kern.geom.disk.ada0.activity_led="!led1"

...keith
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2018-05-21 00:00:18 UTC
For bugs matching the following conditions:
- Status == In Progress
- Assignee == "bugs@FreeBSD.org"
- Last Modified Year <= 2017

Do
- Set Status to "Open"
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2018-05-21 00:00:40 UTC
For bugs matching the following conditions:
- Status == In Progress
- Assignee == "bugs@FreeBSD.org"
- Last Modified Year <= 2017

Do
- Set Status to "Open"
Comment 4 Graham Perrin freebsd_committer freebsd_triage 2022-10-17 12:34:03 UTC
Keyword: 

    patch
or  patch-ready

– in lieu of summary line prefix: 

    [patch]

* bulk change for the keyword
* summary lines may be edited manually (not in bulk). 

Keyword descriptions and search interface: 

    <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>