620.85.02: DP monitor stays dark in UEFI/bootloader after Linux reboot (sink left in D3 by powerdownLink on shutdown), works after Windows restart — RTX 2070 SUPER
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start with ConnectorImpl::powerdownLink() in src/common/displayport/src/dp_connectorimpl.cpp and trace how it writes DPCD SET_POWER during driver teardown. Compare the Linux reboot path with the reported behavior after Windows restart, then check the proposed patch’s effects on external DP sinks and eDP. The issue reports compile testing only; done means reproducing the monitor behavior and validating a fix on hardware.
由索引模型根据 Issue 内容生成。
描述
NVIDIA Open GPU Kernel Modules Version
620.85.02 (CachyOS package linux-cachyos-nvidia-open 7.3.7-2)
Please confirm this issue does not happen with the proprietary driver (of the same version).
Not tested with the proprietary package. The code path I believe is involved (src/common/displayport, nvidia-modeset) is open source, so I'm filing here.
Operating System and Version
CachyOS (rolling)
Kernel Release
Linux 7.3.7-2-cachyos #1 SMP PREEMPT_DYNAMIC Thu, 03 Dec 2026 10:41:20 +0000 x86_64 GNU/Linux (distro kernel, stable)
Hardware: GPU
GPU 0: NVIDIA GeForce RTX 2070 SUPER (TU104, Gigabyte 1458:4001)
Describe the bug
After a reboot or shutdown from Linux, the DisplayPort monitor stays dark on the next boot and does not show the UEFI firmware or the bootloader (Limine). It wakes up only later, when nvidia-drm loads and the driver does its own link training.
After a reboot or shutdown from Windows on the same machine, the monitor shows the bootloader normally.
Setup:
- Monitor: HKC 24E3, 1920x1080, connected over DisplayPort (single display,
DP-1) - Board: MSI MAG B550M MORTAR (MS-7C94), BIOS 1.M0
- Driver options:
nvidia_drm.modeset=1 fbdev=1(defaults)
This is different from the closed #1315. In #1315 the Linux/Windows difference turned out to be Windows Fast Startup and only a long cold power-off was affected. Here a plain warm reboot from Linux is enough to reproduce it. A Windows restart never uses Fast Startup and does not reproduce it.
The journal shows the driver itself can't see the monitor early in the boot that follows a Linux reboot:
nvidia 0000:2b:00.0: [drm] Cannot find any crtc or sizes
...
[drm:nv_drm_atomic_commit [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00002b00] Flip event timeout on head 0
Cannot find any crtc or sizes appears only in boots that directly follow a Linux reboot (checked across the last 7 boots). It does not appear after a cold start or after Windows.
Suspected cause
ConnectorImpl::powerdownLink() (src/common/displayport/src/dp_connectorimpl.cpp) writes DPCD SET_POWER (0x600) = D3 to the sink. It is reached on head detach, which also happens during driver teardown in nv_pci_shutdown() → nv_pci_remove_helper() on reboot/poweroff.
Some monitors in D3 apparently ignore the next source until they get an explicit D0 over AUX. The VBIOS GOP does not seem to send D0 (or doesn't retry long enough), so the firmware and bootloader output goes nowhere. The Windows driver apparently leaves the sink in D0 on shutdown/restart.
Possible fix (untested on hardware)
I wrote a small patch, compile-tested only against 620.85.02 / kernel 7.3.7 with clang+LTO. It adds an nvidia_modeset parameter dp_sink_no_d3:
1: skip the D3 write inpowerdownLink()whilesystem_state > SYSTEM_RUNNING, i.e. during reboot, poweroff or halt2: always skip it
Normal DPMS behaviour is unchanged. eDP is excluded.
dp_sink_no_d3.patch
diff --git a/kernel-open/nvidia-modeset/nvidia-modeset-linux.c b/kernel-open/nvidia-modeset/nvidia-modeset-linux.c
index 69f853f..0f72f27 100644
--- a/kernel-open/nvidia-modeset/nvidia-modeset-linux.c
+++ b/kernel-open/nvidia-modeset/nvidia-modeset-linux.c
@@ -124,6 +124,17 @@ module_param_named(force_frl_rate, force_frl_rate, int, 0444);
MODULE_PARM_DESC(conceal_vrr_caps,
"Conceal all display VRR capabilities");
+/*
+ * dp_sink_no_d3: don't write DPCD SET_POWER=D3 to DisplayPort sinks when
+ * powering down the link.
+ * 0 = upstream behaviour
+ * 1 = skip D3 only while the system is going down (reboot/poweroff/halt),
+ * so monitors that ignore the UEFI GOP while in D3 stay wakeable
+ * 2 = never put sinks into D3 (debugging)
+ */
+static int dp_sink_no_d3 = 0;
+module_param_named(dp_sink_no_d3, dp_sink_no_d3, int, 0644);
+
static bool conceal_vrr_caps = false;
module_param_named(conceal_vrr_caps, conceal_vrr_caps, bool, 0444);
@@ -223,6 +234,17 @@ enum NvKmsFrlRateForce nvkms_force_frl_rate(void)
return NVKMS_FRL_RATE_FORCE_NONE;
}
+NvBool nvkms_dp_skip_sink_d3(void)
+{
+ if (dp_sink_no_d3 >= 2) {
+ return NV_TRUE;
+ }
+ if (dp_sink_no_d3 == 1 && system_state > SYSTEM_RUNNING) {
+ return NV_TRUE;
+ }
+ return NV_FALSE;
+}
+
NvBool nvkms_conceal_vrr_caps(void)
{
return conceal_vrr_caps;
diff --git a/kernel-open/nvidia-modeset/nvidia-modeset-os-interface.h b/kernel-open/nvidia-modeset/nvidia-modeset-os-interface.h
index 8097941..125bc55 100644
--- a/kernel-open/nvidia-modeset/nvidia-modeset-os-interface.h
+++ b/kernel-open/nvidia-modeset/nvidia-modeset-os-interface.h
@@ -119,6 +119,7 @@ enum NvKmsFrlRateForce {
NvBool nvkms_test_fail_alloc_core_channel(enum NvKmsFailAllocCoreChannelMethod method);
enum NvKmsFrlRateForce nvkms_force_frl_rate(void);
NvBool nvkms_conceal_vrr_caps(void);
+NvBool nvkms_dp_skip_sink_d3(void);
NvBool nvkms_enhanced_pcon_support(void);
NvBool nvkms_output_rounding_fix(void);
NvBool nvkms_disable_hdmi_frl(void);
diff --git a/src/common/displayport/inc/dp_hostimp.h b/src/common/displayport/inc/dp_hostimp.h
index f8ff1d6..7dd5360 100644
--- a/src/common/displayport/inc/dp_hostimp.h
+++ b/src/common/displayport/inc/dp_hostimp.h
@@ -44,6 +44,9 @@ extern "C" void dpPrintf(DP_LOG_LEVEL severity, const char * formatter, ...)
__attribute__ ((format (printf, 2, 3)))
#endif
;
+// Returns true when the sink must NOT be put into D3 (SET_POWER=0x600)
+// on link power-down. See nvidia_modeset.dp_sink_no_d3.
+extern "C" NvBool dpSkipSinkD3(void);
extern "C" void dpTraceEvent(NV_DP_TRACING_EVENT event,
NV_DP_TRACING_PRIORITY priority, NvU32 numArgs, ...);
diff --git a/src/common/displayport/src/dp_connectorimpl.cpp b/src/common/displayport/src/dp_connectorimpl.cpp
index 988c9c3..581ad20 100644
--- a/src/common/displayport/src/dp_connectorimpl.cpp
+++ b/src/common/displayport/src/dp_connectorimpl.cpp
@@ -5340,7 +5340,10 @@ void ConnectorImpl::powerdownLink(bool bPowerdownPanel)
if (!this->bFECEnable &&
((!main->isEDP()) || (main->getEdpPowerData(&bPanelPwrSts, NULL) && bPanelPwrSts)))
{
- hal->setPowerState(PowerStateD3);
+ if (main->isEDP() || !dpSkipSinkD3())
+ hal->setPowerState(PowerStateD3);
+ else
+ DP_PRINTF(DP_NOTICE, "DPCONN> Skipping sink D3 on link powerdown (dp_sink_no_d3)");
}
train(powerOff, !bPowerdownPanel); // Train to 0 laneCount, RBR linkRate (powerDown sequence)
@@ -5350,7 +5353,7 @@ void ConnectorImpl::powerdownLink(bool bPowerdownPanel)
// For eDP with FEC support, FEC state would be cleared as part of panel
// power down
//
- if (this->bFECEnable && (!main->isEDP()))
+ if (this->bFECEnable && (!main->isEDP()) && !dpSkipSinkD3())
{
hal->setPowerState(PowerStateD3);
}
diff --git a/src/nvidia-modeset/os-interface/include/nvidia-modeset-os-interface.h b/src/nvidia-modeset/os-interface/include/nvidia-modeset-os-interface.h
index 8097941..125bc55 100644
--- a/src/nvidia-modeset/os-interface/include/nvidia-modeset-os-interface.h
+++ b/src/nvidia-modeset/os-interface/include/nvidia-modeset-os-interface.h
@@ -119,6 +119,7 @@ enum NvKmsFrlRateForce {
NvBool nvkms_test_fail_alloc_core_channel(enum NvKmsFailAllocCoreChannelMethod method);
enum NvKmsFrlRateForce nvkms_force_frl_rate(void);
NvBool nvkms_conceal_vrr_caps(void);
+NvBool nvkms_dp_skip_sink_d3(void);
NvBool nvkms_enhanced_pcon_support(void);
NvBool nvkms_output_rounding_fix(void);
NvBool nvkms_disable_hdmi_frl(void);
diff --git a/src/nvidia-modeset/src/dp/nvdp-host.cpp b/src/nvidia-modeset/src/dp/nvdp-host.cpp
index eb1128b..9ce9a9f 100644
--- a/src/nvidia-modeset/src/dp/nvdp-host.cpp
+++ b/src/nvidia-modeset/src/dp/nvdp-host.cpp
@@ -71,6 +71,11 @@ void dpPrintf(DP_LOG_LEVEL severity, const char *format, ...)
va_end(ap);
}
+NvBool dpSkipSinkD3(void)
+{
+ return nvkms_dp_skip_sink_d3();
+}
+
void dpDebugBreakpoint(void)
{
nvAssert(!"DisplayPort library debug breakpoint");
A cleaner fix might be to never put external DP sinks into D3 during system shutdown, or to set D0 again after the final link power-down, matching what the Windows driver appears to do.
To Reproduce
- RTX 2070 SUPER, monitor over DisplayPort (HKC 24E3 here)
- Boot Linux with nvidia-open 620.85.02 and log in to the desktop
systemctl reboot(or poweroff, then power on)- Monitor stays dark during UEFI and bootloader, and only lights up once the nvidia driver loads
- Boot Windows, restart: the bootloader is shown normally
Bug Incidence
Always
nvidia-bug-report.log.gz
Will be attached in a comment.
More Info
Expected: the monitor stays wakeable by the UEFI GOP after a Linux reboot/shutdown, as it does after Windows.
- 主要语言
- C
- 星标
- 17.7k
- 派生
- 2k
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
NVIDIA/open-gpu-kernel-modules 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
NVIDIA/open-gpu-kernel-modules#1635 ·
维护者通常 1 天内回复
-
nvidia-drm: NULL dereference in nv_drm_create_sync_file() when sync_file_create() fails (kernel oops when fs.file-max is exhausted)可能重新可做 关联的 PR 已关闭且未合并。 未关闭bug
难度 2/5 1-3 小时 新手友好度 82/100
NVIDIA/open-gpu-kernel-modules#1601 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
NVIDIA/open-gpu-kernel-modules#1479 · 2 条评论 ·
维护者通常 1 天内回复
-
PlatformRequestHandler: missing !bInit guard on bSystemParamLimitUpdate causes NV_ERR_INVALID_DATA at boot可能已有人在做 @SammyTourani 于 69 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 88/100
NVIDIA/open-gpu-kernel-modules#1360 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
NVIDIA/open-gpu-kernel-modules#1343 · 3 条评论 ·
维护者通常 1 天内回复
查看 NVIDIA/open-gpu-kernel-modules 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 74/100
Jstar269/nakagawa-recomp#3753 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 72/100
ly05010419/MacNativeGames#2474 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
Life-Framework/Life-Framework#7017 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
gjrtimmer/jetson-nvmpi#170 ·