]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/nouveau/gpio: check the gpio function 16 in the power check as well
authorMark Menzynski <mmenzyns@redhat.com>
Thu, 18 Jul 2019 08:07:40 +0000 (10:07 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 23 Aug 2019 02:55:33 +0000 (12:55 +1000)
commit940794b3dd343ba86a4c50f7e6db285c0a9c8776
treef10e925b285b3810e61ad46085c0bfbda10b4aad
parent72251fac062c0b4fe98670ec9e3db3f0702c50ae
drm/nouveau/gpio: check the gpio function 16 in the power check as well

Added GPIO is "Thermal and External Power Detect". It's uncertain if this
GPIO is set on GPU initialization or only if a change is detected by the
GPU at runtime.

This GPIO can be found in Rankine and Curie and rarely on Tesla GPUs
VBIOS.

Untested, wrote according to documentation.

Signed-off-by: Mark Menzynski <mmenzyns@redhat.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/gpio.h
drivers/gpu/drm/nouveau/nvkm/subdev/gpio/base.c