From dc90e12310982077796c5117ebfe92ee04b370a3 Mon Sep 17 00:00:00 2001 From: Robert Mustacchi Date: Wed, 24 Apr 2019 03:05:13 +0000 Subject: 11273 Want Intel PCH temperature sensor Reviewed by: Jerry Jelinek Reviewed by: Mike Zeller Reviewed by: Toomas Soome Reviewed by: Gergő Doma Reviewed by: Paul Winder Approved by: Richard Lowe MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- usr/src/lib/fm/topo/libtopo/common/hc.c | 3 +- usr/src/lib/fm/topo/libtopo/common/topo_hc.h | 3 +- .../topo/maps/i86pc/i86pc-legacy-hc-topology.xml | 5 +- usr/src/lib/fm/topo/modules/i86pc/Makefile | 2 +- usr/src/lib/fm/topo/modules/i86pc/chipset/Makefile | 29 ++ .../lib/fm/topo/modules/i86pc/chipset/chipset.c | 190 ++++++++ usr/src/man/man7d/Makefile | 3 +- usr/src/man/man7d/pchtemp.7d | 69 +++ usr/src/pkg/manifests/driver-cpu-sensor.mf | 12 + usr/src/pkg/manifests/service-fault-management.mf | 2 + usr/src/uts/common/sys/sunddi.h | 3 +- usr/src/uts/intel/Makefile.files | 7 +- usr/src/uts/intel/Makefile.intel | 3 +- usr/src/uts/intel/Makefile.rules | 4 + usr/src/uts/intel/io/pchtemp/pchtemp.c | 525 +++++++++++++++++++++ usr/src/uts/intel/pchtemp/Makefile | 46 ++ 16 files changed, 898 insertions(+), 8 deletions(-) create mode 100644 usr/src/lib/fm/topo/modules/i86pc/chipset/Makefile create mode 100644 usr/src/lib/fm/topo/modules/i86pc/chipset/chipset.c create mode 100644 usr/src/man/man7d/pchtemp.7d create mode 100644 usr/src/uts/intel/io/pchtemp/pchtemp.c create mode 100644 usr/src/uts/intel/pchtemp/Makefile diff --git a/usr/src/lib/fm/topo/libtopo/common/hc.c b/usr/src/lib/fm/topo/libtopo/common/hc.c index 9c64077549..15d7b769e9 100644 --- a/usr/src/lib/fm/topo/libtopo/common/hc.c +++ b/usr/src/lib/fm/topo/libtopo/common/hc.c @@ -22,7 +22,7 @@ /* * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved. - * Copyright (c) 2019, Joyent, Inc. + * Copyright 2019 Joyent, Inc. */ #include @@ -154,6 +154,7 @@ static const hcc_t hc_canon[] = { { CENTERPLANE, TOPO_STABILITY_PRIVATE }, { CHASSIS, TOPO_STABILITY_PRIVATE }, { CHIP, TOPO_STABILITY_PRIVATE }, + { CHIPSET, TOPO_STABILITY_PRIVATE }, { CHIP_SELECT, TOPO_STABILITY_PRIVATE }, { CORE, TOPO_STABILITY_PRIVATE }, { CONTROLLER, TOPO_STABILITY_PRIVATE }, diff --git a/usr/src/lib/fm/topo/libtopo/common/topo_hc.h b/usr/src/lib/fm/topo/libtopo/common/topo_hc.h index 26b307a20c..addc96803f 100644 --- a/usr/src/lib/fm/topo/libtopo/common/topo_hc.h +++ b/usr/src/lib/fm/topo/libtopo/common/topo_hc.h @@ -21,7 +21,7 @@ /* * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved. - * Copyright 2019, Joyent, Inc. + * Copyright 2019 Joyent, Inc. */ #ifndef _TOPO_HC_H @@ -42,6 +42,7 @@ extern "C" { #define CENTERPLANE "centerplane" #define CHASSIS "chassis" #define CHIP "chip" +#define CHIPSET "chipset" #define CORE "core" #define STRAND "strand" #define CHIP_SELECT "chip-select" diff --git a/usr/src/lib/fm/topo/maps/i86pc/i86pc-legacy-hc-topology.xml b/usr/src/lib/fm/topo/maps/i86pc/i86pc-legacy-hc-topology.xml index dc37ecfed4..0ddcd1e0d8 100644 --- a/usr/src/lib/fm/topo/maps/i86pc/i86pc-legacy-hc-topology.xml +++ b/usr/src/lib/fm/topo/maps/i86pc/i86pc-legacy-hc-topology.xml @@ -2,7 +2,7 @@