drivers/gfx/nvidia: Increase power sequence delays

The serw13 with the 4070 RTX sometimes fails to enumerate the dGPU.
Increasing the delays allows the dGPU to be enumerated consistently. The
values are arbitrary, but still less than the values from proprietary
firmware.

Change-Id: Ibbfda596a324df4b51d583af8d6a36b5cd53a561
Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
Tim Crawford
2023-02-28 14:13:44 -07:00
committed by Jeremy Soller
parent 075c7df95b
commit 2e38258030

View File

@@ -19,15 +19,15 @@ void nvidia_set_power(const struct nvidia_gpu_config *config)
printk(BIOS_DEBUG, "%s: GPU_RST# = %d\n", __func__, config->reset_gpio); printk(BIOS_DEBUG, "%s: GPU_RST# = %d\n", __func__, config->reset_gpio);
gpio_set(config->reset_gpio, 0); gpio_set(config->reset_gpio, 0);
mdelay(4); mdelay(10);
if (config->enable) { if (config->enable) {
gpio_set(config->power_gpio, 1); gpio_set(config->power_gpio, 1);
mdelay(4); mdelay(25);
gpio_set(config->reset_gpio, 1); gpio_set(config->reset_gpio, 1);
} else { } else {
gpio_set(config->power_gpio, 0); gpio_set(config->power_gpio, 0);
} }
mdelay(4); mdelay(10);
} }