• Martin Peres's avatar
    drm/nouveau/therm: implement support for temperature alarms · 0083b91d
    Martin Peres authored
    For now, we only boost the fan speed to the maximum and auto-mode
    when hitting the FAN_BOOST threshold and halt the computer when it
    reaches the shutdown temperature. The downclock and critical thresholds
    do nothing.
    
    On nv43:50 and nva3+, temperature is polled because of the limited hardware.
    I'll improve the nva3+ situation by implementing alarm management in PDAEMON
    whenever I can but polling once every second shouldn't be such a problem.
    
    v2 (Ben Skeggs):
    - rebased
    
    v3: fixed false-detections and threshold reprogrammation handling on nv50:nvc0
    Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
    Signed-off-by: default avatarMartin Peres <martin.peres@labri.fr>
    0083b91d
os.h 1.03 KB