Commit 940794b3 authored by Mark Menzynski's avatar Mark Menzynski Committed by Ben Skeggs

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: default avatarMark Menzynski <mmenzyns@redhat.com>
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 72251fac
...@@ -5,6 +5,7 @@ enum dcb_gpio_func_name { ...@@ -5,6 +5,7 @@ enum dcb_gpio_func_name {
DCB_GPIO_PANEL_POWER = 0x01, DCB_GPIO_PANEL_POWER = 0x01,
DCB_GPIO_FAN = 0x09, DCB_GPIO_FAN = 0x09,
DCB_GPIO_TVDAC0 = 0x0c, DCB_GPIO_TVDAC0 = 0x0c,
DCB_GPIO_THERM_EXT_POWER_EVENT = 0x10,
DCB_GPIO_TVDAC1 = 0x2d, DCB_GPIO_TVDAC1 = 0x2d,
DCB_GPIO_FAN_SENSE = 0x3d, DCB_GPIO_FAN_SENSE = 0x3d,
DCB_GPIO_EXT_POWER_LOW = 0x79, DCB_GPIO_EXT_POWER_LOW = 0x79,
......
...@@ -184,6 +184,7 @@ static const struct dmi_system_id gpio_reset_ids[] = { ...@@ -184,6 +184,7 @@ static const struct dmi_system_id gpio_reset_ids[] = {
}; };
static enum dcb_gpio_func_name power_checks[] = { static enum dcb_gpio_func_name power_checks[] = {
DCB_GPIO_THERM_EXT_POWER_EVENT,
DCB_GPIO_EXT_POWER_LOW, DCB_GPIO_EXT_POWER_LOW,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment