git: dimm: Implement pseudo device driver for DIMM related drivers

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Sun Apr 5 06:22:35 PDT 2015


commit 881f7bffbf5c93279c3f44045887e049cd4ae842
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Sun Mar 29 20:26:36 2015 +0800

    dimm: Implement pseudo device driver for DIMM related drivers
    
    - This pseudo device driver installs sensor device for DIMM related
      sensors (memtemp(4) and upcoming ecc(4) changes).
    - This pseudo device driver keeps DIMM location information.  And
      the location information is exposed through a new sysctl tree,
      hw.dimminfo.  The nodes in this sysctl tree have the same names
      as the sensor devices, so that programatic way could be used to
      report DIMM status.
    - This pseudo device implements common sensor update function for
      memtemp(4).  And it keeps configurable temperature thresholds for
      memtemp(4) sensor.
    - Utilize this pseudo device driver in memtemp(4).

Summary of changes:
 share/man/man4/memtemp.4                           |  34 ++-
 sys/conf/files                                     |   1 +
 sys/config/LINT64                                  |   2 +
 sys/config/X86_64_GENERIC                          |   3 +-
 sys/dev/misc/Makefile                              |   2 +-
 sys/dev/misc/dimm/Makefile                         |   4 +
 sys/dev/misc/dimm/dimm.c                           | 280 +++++++++++++++++++++
 .../ip_fw3_layer4.h => dev/misc/dimm/dimm.h}       |  30 +--
 sys/dev/powermng/memtemp/memtemp_core.c            |  29 ++-
 sys/dev/powermng/memtemp/memtemp_e5.c              | 122 ++++-----
 10 files changed, 397 insertions(+), 110 deletions(-)
 create mode 100644 sys/dev/misc/dimm/Makefile
 create mode 100644 sys/dev/misc/dimm/dimm.c
 copy sys/{net/ipfw3_layer4/ip_fw3_layer4.h => dev/misc/dimm/dimm.h} (73%)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/881f7bffbf5c93279c3f44045887e049cd4ae842


-- 
DragonFly BSD source repository



More information about the Commits mailing list