• Hristo Venev's avatar
    nvme-pci: add quirk for missing secondary temperature thresholds · bd375fee
    Hristo Venev authored
    On Kingston KC3000 and Kingston FURY Renegade (both have the same PCI
    IDs) accessing temp3_{min,max} fails with an invalid field error (note
    that there is no problem setting the thresholds for temp1).
    
    This contradicts the NVM Express Base Specification 2.0b, page 292:
    
      The over temperature threshold and under temperature threshold
      features shall be implemented for all implemented temperature sensors
      (i.e., all Temperature Sensor fields that report a non-zero value).
    
    Define NVME_QUIRK_NO_SECONDARY_TEMP_THRESH that disables the thresholds
    for all but the composite temperature and set it for this device.
    Signed-off-by: default avatarHristo Venev <hristo@venev.name>
    Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
    Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
    bd375fee
hwmon.c 6.3 KB