| .. | .. |
|---|
| 21 | 21 | * |
|---|
| 22 | 22 | * Authors: Martin Peres |
|---|
| 23 | 23 | */ |
|---|
| 24 | | -#include <nvkm/core/option.h> |
|---|
| 25 | 24 | #include "priv.h" |
|---|
| 25 | + |
|---|
| 26 | +#include <core/option.h> |
|---|
| 27 | +#include <subdev/pmu.h> |
|---|
| 26 | 28 | |
|---|
| 27 | 29 | int |
|---|
| 28 | 30 | nvkm_therm_temp_get(struct nvkm_therm *therm) |
|---|
| .. | .. |
|---|
| 192 | 194 | |
|---|
| 193 | 195 | /* The default PPWR ucode on fermi interferes with fan management */ |
|---|
| 194 | 196 | if ((mode >= ARRAY_SIZE(name)) || |
|---|
| 195 | | - (mode != NVKM_THERM_CTRL_NONE && device->card_type >= NV_C0 && |
|---|
| 196 | | - !device->pmu)) |
|---|
| 197 | + (mode != NVKM_THERM_CTRL_NONE && nvkm_pmu_fan_controlled(device))) |
|---|
| 197 | 198 | return -EINVAL; |
|---|
| 198 | 199 | |
|---|
| 199 | 200 | /* do not allow automatic fan management if the thermal sensor is |
|---|