diff options
author | Mark Menzynski <mmenzyns@redhat.com> | 2019-07-18 10:07:41 +0200 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2019-08-23 04:55:34 +0200 |
commit | 3c978f73959c295ac737b917795926534a7aea01 (patch) | |
tree | 48021cb0b45cbc8705176636b59e446d0227a8c2 /drivers/gpu/drm/nouveau/nvkm/subdev/gpio | |
parent | drm/nouveau/gpio: check the gpio function 16 in the power check as well (diff) | |
download | linux-3c978f73959c295ac737b917795926534a7aea01.tar.xz linux-3c978f73959c295ac737b917795926534a7aea01.zip |
drm/nouveau/gpio: check function 76 in the power check as well
Added GPIO is "Power Alert". 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 on Tesla and sometimes on Fermi GPUs.
Untested, wrote according to documentation.
Signed-off-by: Mark Menzynski <mmenzyns@redhat.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvkm/subdev/gpio')
-rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/subdev/gpio/base.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/gpio/base.c b/drivers/gpu/drm/nouveau/nvkm/subdev/gpio/base.c index 2aa809ce7ff3..914276410ef8 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/gpio/base.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/gpio/base.c @@ -185,6 +185,7 @@ static const struct dmi_system_id gpio_reset_ids[] = { static enum dcb_gpio_func_name power_checks[] = { DCB_GPIO_THERM_EXT_POWER_EVENT, + DCB_GPIO_POWER_ALERT, DCB_GPIO_EXT_POWER_LOW, }; |