From f081430b87741b941f88dbeeac403ac6234302ba Mon Sep 17 00:00:00 2001 From: Tim Crawford Date: Tue, 28 Feb 2023 14:13:44 -0700 Subject: [PATCH] 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 --- src/drivers/gfx/nvidia/romstage.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/drivers/gfx/nvidia/romstage.c b/src/drivers/gfx/nvidia/romstage.c index f9364abbc8..78fe5ddf50 100644 --- a/src/drivers/gfx/nvidia/romstage.c +++ b/src/drivers/gfx/nvidia/romstage.c @@ -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); gpio_set(config->reset_gpio, 0); - mdelay(4); + mdelay(10); if (config->enable) { gpio_set(config->power_gpio, 1); - mdelay(4); + mdelay(25); gpio_set(config->reset_gpio, 1); } else { gpio_set(config->power_gpio, 0); } - mdelay(4); + mdelay(10); }