Project

General

Profile

Actions

Feature #13080

closed

Add support for cxgbe temp/volt sensor

Added by Robert Mustacchi about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Category:
driver - device drivers
Start date:
Due date:
% Done:

100%

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

Description

The Chelsio 'cxgbe' series of parts has support for a temperature and voltage sensor on the part. It'd be great if these were both plumbed up and available in the ksensor framework.

Actions #1

Updated by Electric Monk about 3 years ago

  • Gerrit CR set to 875
Actions #2

Updated by Robert Mustacchi about 3 years ago

Ryan Zezeski helped me test this. He had two parts and we were able to see them show up with advertisements in topo:

hc://:product-id=PowerEdge-T630:server-id=thunderhead:chassis-id=HQ8CKH2/motherboard=0/hostbridge=8/pciexrc=8/pciexbus=11/pciexdev=0
  group: protocol                       version: 1   stability: Private/Private
    resource          fmri      hc://:product-id=PowerEdge-T630:server-id=thunderhead:chassis-id=HQ8CKH2/motherboard=0/hostbridge=8/pciexrc=8/pciexbus=11/pciexdev=0
    label             string    PCIe Slot 2
    FRU               fmri      hc://:product-id=PowerEdge-T630:server-id=thunderhead:chassis-id=HQ8CKH2/motherboard=0/hostbridge=8/pciexrc=8/pciexbus=11/pciexdev=0
    ASRU              fmri      dev:////pci@0,0/pci8086,8d18@1c,4
  group: authority                      version: 1   stability: Private/Private
    product-id        string    PowerEdge-T630
    chassis-id        string    HQ8CKH2
    server-id         string    thunderhead

hc://:product-id=PowerEdge-T630:server-id=thunderhead:chassis-id=HQ8CKH2/motherboard=0/hostbridge=8/pciexrc=8/pciexbus=11/pciexdev=0?sensor=vdd
  group: protocol                       version: 1   stability: Private/Private
    resource          fmri      hc://:product-id=PowerEdge-T630:server-id=thunderhead:chassis-id=HQ8CKH2/motherboard=0/hostbridge=8/pciexrc=8/pciexbus=11/pciexdev=0?sensor=vdd
  group: authority                      version: 1   stability: Private/Private
    product-id        string    PowerEdge-T630
    chassis-id        string    HQ8CKH2
    server-id         string    thunderhead
  group: facility                       version: 1   stability: Private/Private
    sensor-class      string    threshold
    type              uint32    0x2 (VOLTAGE)
    units             uint32    0x4 (VOLTS)
    reading           double    0.893000

hc://:product-id=PowerEdge-T630:server-id=thunderhead:chassis-id=HQ8CKH2/motherboard=0/hostbridge=8/pciexrc=8/pciexbus=11/pciexdev=0?sensor=temp
  group: protocol                       version: 1   stability: Private/Private
    resource          fmri      hc://:product-id=PowerEdge-T630:server-id=thunderhead:chassis-id=HQ8CKH2/motherboard=0/hostbridge=8/pciexrc=8/pciexbus=11/pciexdev=0?sensor=temp
  group: authority                      version: 1   stability: Private/Private
    product-id        string    PowerEdge-T630
    chassis-id        string    HQ8CKH2
    server-id         string    thunderhead
  group: facility                       version: 1   stability: Private/Private
    sensor-class      string    threshold
    type              uint32    0x1 (TEMP)
    units             uint32    0x1 (DEGREES_C)
    reading           double    53.000000

hc://:product-id=PowerEdge-T630:server-id=thunderhead:chassis-id=HQ8CKH2/motherboard=0/hostbridge=8/pciexrc=8/pciexbus=11/pciexdev=0/pciexfn=0
  group: protocol                       version: 1   stability: Private/Private
    resource          fmri      hc://:product-id=PowerEdge-T630:server-id=thunderhead:chassis-id=HQ8CKH2/motherboard=0/hostbridge=8/pciexrc=8/pciexbus=11/pciexdev=0/pciexfn=0
    label             string    PCIe Slot 2
    FRU               fmri      hc://:product-id=PowerEdge-T630:server-id=thunderhead:chassis-id=HQ8CKH2/motherboard=0/hostbridge=8/pciexrc=8/pciexbus=11/pciexdev=0
    ASRU              fmri      dev:////pci@0,0/pci8086,8d18@1c,4/pci1425,0@0
  group: authority                      version: 1   stability: Private/Private
    product-id        string    PowerEdge-T630
    chassis-id        string    HQ8CKH2
    server-id         string    thunderhead
  group: io                             version: 1   stability: Private/Private
    dev               string    /pci@0,0/pci8086,8d18@1c,4/pci1425,0@0
  group: pci                            version: 1   stability: Private/Private
    device-id         string    6001
    extended-capabilities string    pciexdev
    class-code        string    20000
    vendor-id         string    1425
    assigned-addresses uint32[]  [ 2198536208 0 2455240704 0 524288 2198536216 0 2455764992 0 524288 2198536224 0 2456338432 0 8192 ]
    vendor-name       string    Chelsio Communications Inc
    device-name       string    T6225-CR Unified Wire Ethernet Controller

hc://:product-id=PowerEdge-T630:server-id=thunderhead:chassis-id=HQ8CKH2/motherboard=0/hostbridge=8/pciexrc=8/pciexbus=11/pciexdev=0/pciexfn=1
  group: protocol                       version: 1   stability: Private/Private
    resource          fmri      hc://:product-id=PowerEdge-T630:server-id=thunderhead:chassis-id=HQ8CKH2/motherboard=0/hostbridge=8/pciexrc=8/pciexbus=11/pciexdev=0/pciexfn=1
    label             string    PCIe Slot 2
    FRU               fmri      hc://:product-id=PowerEdge-T630:server-id=thunderhead:chassis-id=HQ8CKH2/motherboard=0/hostbridge=8/pciexrc=8/pciexbus=11/pciexdev=0
    ASRU              fmri      dev:////pci@0,0/pci8086,8d18@1c,4/pci1425,0@0,1
  group: authority                      version: 1   stability: Private/Private
    product-id        string    PowerEdge-T630
    chassis-id        string    HQ8CKH2
    server-id         string    thunderhead
  group: io                             version: 1   stability: Private/Private
    dev               string    /pci@0,0/pci8086,8d18@1c,4/pci1425,0@0,1
  group: pci                            version: 1   stability: Private/Private
    device-id         string    6001
    extended-capabilities string    pciexdev
    class-code        string    20000
    vendor-id         string    1425
    assigned-addresses uint32[]  [ 2198536464 0 2454192128 0 524288 2198536472 0 2454716416 0 524288 2198536480 0 2456330240 0 8192 ]
    vendor-name       string    Chelsio Communications Inc
    device-name       string    T6225-CR Unified Wire Ethernet Controller

hc://:product-id=PowerEdge-T630:server-id=thunderhead:chassis-id=HQ8CKH2/motherboard=0/hostbridge=10/pciexrc=10/pciexbus=130/pciexdev=0
  group: protocol                       version: 1   stability: Private/Private
    resource          fmri      hc://:product-id=PowerEdge-T630:server-id=thunderhead:chassis-id=HQ8CKH2/motherboard=0/hostbridge=10/pciexrc=10/pciexbus=130/pciexdev=0
    label             string    PCIe Slot 4
    FRU               fmri      hc://:product-id=PowerEdge-T630:server-id=thunderhead:chassis-id=HQ8CKH2/motherboard=0/hostbridge=10/pciexrc=10/pciexbus=130/pciexdev=0
    ASRU              fmri      dev:////pci@76,0/pci8086,2f02@1
  group: authority                      version: 1   stability: Private/Private
    product-id        string    PowerEdge-T630
    chassis-id        string    HQ8CKH2
    server-id         string    thunderhead

hc://:product-id=PowerEdge-T630:server-id=thunderhead:chassis-id=HQ8CKH2/motherboard=0/hostbridge=10/pciexrc=10/pciexbus=130/pciexdev=0?sensor=vdd
  group: protocol                       version: 1   stability: Private/Private
    resource          fmri      hc://:product-id=PowerEdge-T630:server-id=thunderhead:chassis-id=HQ8CKH2/motherboard=0/hostbridge=10/pciexrc=10/pciexbus=130/pciexdev=0?sensor=vdd
  group: authority                      version: 1   stability: Private/Private
    product-id        string    PowerEdge-T630
    chassis-id        string    HQ8CKH2
    server-id         string    thunderhead
  group: facility                       version: 1   stability: Private/Private
    sensor-class      string    threshold
    type              uint32    0x2 (VOLTAGE)
    units             uint32    0x4 (VOLTS)
    reading           double    1.004000

hc://:product-id=PowerEdge-T630:server-id=thunderhead:chassis-id=HQ8CKH2/motherboard=0/hostbridge=10/pciexrc=10/pciexbus=130/pciexdev=0?sensor=temp
  group: protocol                       version: 1   stability: Private/Private
    resource          fmri      hc://:product-id=PowerEdge-T630:server-id=thunderhead:chassis-id=HQ8CKH2/motherboard=0/hostbridge=10/pciexrc=10/pciexbus=130/pciexdev=0?sensor=temp
  group: authority                      version: 1   stability: Private/Private
    product-id        string    PowerEdge-T630
    chassis-id        string    HQ8CKH2
    server-id         string    thunderhead
  group: facility                       version: 1   stability: Private/Private
    sensor-class      string    threshold
    type              uint32    0x1 (TEMP)
    units             uint32    0x1 (DEGREES_C)
    reading           double    63.000000

hc://:product-id=PowerEdge-T630:server-id=thunderhead:chassis-id=HQ8CKH2/motherboard=0/hostbridge=10/pciexrc=10/pciexbus=130/pciexdev=0/pciexfn=0
  group: protocol                       version: 1   stability: Private/Private
    resource          fmri      hc://:product-id=PowerEdge-T630:server-id=thunderhead:chassis-id=HQ8CKH2/motherboard=0/hostbridge=10/pciexrc=10/pciexbus=130/pciexdev=0/pciexfn=0
    label             string    PCIe Slot 4
    FRU               fmri      hc://:product-id=PowerEdge-T630:server-id=thunderhead:chassis-id=HQ8CKH2/motherboard=0/hostbridge=10/pciexrc=10/pciexbus=130/pciexdev=0
    ASRU              fmri      dev:////pci@76,0/pci8086,2f02@1/pci1425,0@0
  group: authority                      version: 1   stability: Private/Private
    product-id        string    PowerEdge-T630
    chassis-id        string    HQ8CKH2
    server-id         string    thunderhead
  group: io                             version: 1   stability: Private/Private
    dev               string    /pci@76,0/pci8086,2f02@1/pci1425,0@0
  group: pci                            version: 1   stability: Private/Private
    device-id         string    5007
    extended-capabilities string    pciexdev
    class-code        string    20000
    vendor-id         string    1425
    assigned-addresses uint32[]  [ 2206334992 0 3377987584 0 524288 2206335000 0 3378511872 0 524288 2206335008 0 3379085312 0 8192 ]
    vendor-name       string    Chelsio Communications Inc
    device-name       string    T520-SO Unified Wire Ethernet Controller
Actions #3

Updated by Electric Monk about 3 years ago

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

git commit 73439c833efecf3010718112f4fce6bb183a6803

commit  73439c833efecf3010718112f4fce6bb183a6803
Author: Robert Mustacchi <rm@fingolfin.org>
Date:   2020-09-17T18:21:02.000Z

    13080 Add support for cxgbe temp/volt sensor
    Reviewed by: Andy Fiddaman <andy@omniosce.org>
    Reviewed by: Paul Winder <paul@winder.uk.net>
    Reviewed by: Toomas Soome <tsoome@me.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF