joyent / conch-reporter-smartos

0 stars 2 forks source link

Need HBA objects #6

Closed bdha closed 6 years ago

bdha commented 6 years ago

We can get these from hwgrok.

  "hba": {
    "0": {
      "bios_ver": "8.31.03.00",
      "bus": "94",
      "device": "0",
      "firmware_ver": "14.00.00.00",
      "segment": "0",
      "slot": "6",
      "type": "SAS3008"
    },
    "1": {
      "bios_ver": "8.31.03.00",
      "bus": "134",
      "device": "0",
      "firmware_ver": "14.00.00.00",
      "segment": "0",
      "slot": "2",
      "type": "SAS3008"
    },
    "2": {
      "bios_ver": "8.31.03.00",
      "bus": "216",
      "device": "0",
      "firmware_ver": "14.00.00.00",
      "segment": "0",
      "slot": "4",
      "type": "SAS3008"
    }
  },
bdha commented 6 years ago

Definitely don't use sas3ircu or @psteinbachs will eat our faces.

bdha commented 6 years ago

We need to use prtconf -v to get the firmware info out of mpt_sas.

rob.johnston | for mpt_sas it's in a devinfo prop called "firmware-version"
bdha commented 6 years ago
# prtconf -v /devices/pci@0,0/pci8086,6f02@1/pci1028,1f53@0
pci1028,1f53, instance #0
    System software properties:
        name='ddi-vhci-class' type=string items=1
            value='scsi_vhci'
        name='mpxio-disable' type=string items=1
            value='no'
        name='scsi-watchdog-tick' type=int items=1
            value=00000001
    Driver properties:
        name='SerialNumber' type=string items=1 dev=none
            value='LSISAS3008ALLDell HBA330 Mini'
        name='ModelName' type=string items=1 dev=none
            value='Dell HBA330 Mini'
        name='Manufacturer' type=string items=1 dev=none
            value='LSISAS3008'
        name='supported-protocol' type=int items=1 dev=none
            value=0000000b
        name='num-phys-hba' type=int items=1 dev=none
            value=00000008
        name='hardware-version' type=string items=1 dev=none
            value='C'
        name='driver-version' type=string items=1 dev=none
            value='MPTSAS HBA Driver 00.00.00.24'
        name='sm-hba-supported' type=int items=1 dev=none
            value=00000001
        name='scsi-iports' type=string items=2 dev=none
            value='ff' + 'v0'
        name='num-phys' type=int items=1 dev=none
            value=00000008
        name='base-wwid' type=int64 items=1 dev=none
            value=51866da06e86bc00
        name='firmware-version' type=string items=1 dev=none
            value='13.0.0.0'
        name='pm-components' type=string items=3 dev=none
            value='NAME=mptsas0' + '0=Off (PCI D3 State)' + '3=On (PCI D0 State)'
        name='fm-accchk-capable' type=boolean dev=none
        name='fm-dmachk-capable' type=boolean dev=none
        name='fm-errcb-capable' type=boolean dev=none
        name='fm-ereport-capable' type=boolean dev=none
    Hardware properties:
        name='ddi-config-driver-node' type=boolean
        name='pci-msix-capid-pointer' type=int items=1
            value=000000c0
        name='pci-msi-capid-pointer' type=int items=1
            value=000000a8
        name='assigned-addresses' type=int items=15
            value=81020010.00000000.00003000.00000000.00000100.83020014.00000000.92000000.00000000.00010000.8302001c.00000000.91f00000.00000000.00100000
        name='reg' type=int items=20
            value=00020000.00000000.00000000.00000000.00000000.01020010.00000000.00000000.00000000.00000100.03020014.00000000.00000000.00000000.00010000.0302001c.00000000.00000000.00000000.00100000
        name='compatible' type=string items=13
            value='pciex1000,97.1028.1f53.2' + 'pciex1000,97.1028.1f53' + 'pciex1000,97.2' + 'pciex1000,97' + 'pciexclass,010700' + 'pciexclass,0107' + 'pci1000,97.1028.1f53.2' + 'pci1000,97.1028.1f53' + 'pci1028,1f53' + 'pci1000,97.2' + 'pci1000,97' + 'pciclass,010700' + 'pciclass,0107'
        name='model' type=string items=1
            value='Serial Attached SCSI Controller'
        name='power-consumption' type=int items=2
            value=00000001.00000001
        name='devsel-speed' type=int items=1
            value=00000000
        name='interrupts' type=int items=1
            value=00000001
        name='subsystem-vendor-id' type=int items=1
            value=00001028
        name='subsystem-id' type=int items=1
            value=00001f53
        name='unit-address' type=string items=1
            value='0'
        name='class-code' type=int items=1
            value=00010700
        name='revision-id' type=int items=1
            value=00000002
        name='vendor-id' type=int items=1
            value=00001000
        name='device-id' type=int items=1
            value=00000097
        name='vendor-name' type=string items=1
            value='LSI Logic / Symbios Logic'
        name='device-name' type=string items=1
            value='SAS3008 PCI-Express Fusion-MPT SAS-3'
        name='subsystem-name' type=string items=1
            value='HBA330 Mini'
    Device Minor Nodes:
        dev=(198,0)
            dev_path=/pci@0,0/pci8086,6f02@1/pci1028,1f53@0:devctl
                spectype=chr type=minor