]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/nouveau/therm: don't attempt fan control where PMU is already managing it
authorBen Skeggs <bskeggs@redhat.com>
Tue, 2 Jul 2019 04:19:12 +0000 (14:19 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 23 Aug 2019 02:55:33 +0000 (12:55 +1000)
commit69cbbb7b04ff57c17018b27a86e9c2d758d4366e
treea1bf61a28a0422d0493d81bdfd45dbef13f917fd
parentf0790cda65a1f1a3818db16e95c04c06cb7f2421
drm/nouveau/therm: don't attempt fan control where PMU is already managing it

There's already a condition in place which attempts to detect this, but
since we've begun to require a PMU subdev even on boards where we don't
load a custom FW, it's become inaccurate.

This will prevent unnecessarily running a periodic fan update thread on
GP100 and newer, where we don't yet override the default PMU FW.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/include/nvkm/subdev/pmu.h
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c