]> git.baikalelectronics.ru Git - kernel.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)
commit4a064015fbf281825ef0540d1b1562e4e428982f
treef10e925b285b3810e61ad46085c0bfbda10b4aad
parent9e70316ca765bcd91a74ba84134b5ee4e65b8062
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