VRR: Allow VRR enable/disable without requiring a full modeset
VRR/Adaptive Sync does not appear to be working for me. Interestingly enough, if "Adaptive Sync" is enabled in the monitor settings, the monitor reports the refresh rate as 145Hz, instead of the 144Hz that it is set to according to the display configuration. If "Adaptive Sync" is disabled then the refresh rate is correctly reported as 144Hz. Relevant part of the log seems to be:
Nov 15 20:52:36 andrew-gentoo-pc kernel: i915 0000:03:00.0: [drm:pipe_config_mismatch] [CRTC:131:pipe B] fastset mismatch in vrr.enable (expected no, found yes)
Nov 15 20:52:36 andrew-gentoo-pc kernel: i915 0000:03:00.0: [drm:pipe_config_mismatch] [CRTC:131:pipe B] fastset mismatch in vrr.vmin (expected 0, found 1480)
Nov 15 20:52:36 andrew-gentoo-pc kernel: i915 0000:03:00.0: [drm:pipe_config_mismatch] [CRTC:131:pipe B] fastset mismatch in vrr.vmax (expected 0, found 4442)
Nov 15 20:52:36 andrew-gentoo-pc kernel: i915 0000:03:00.0: [drm:pipe_config_mismatch] [CRTC:131:pipe B] fastset mismatch in vrr.flipline (expected 0, found 1481)
Nov 15 20:52:36 andrew-gentoo-pc kernel: i915 0000:03:00.0: [drm:pipe_config_mismatch] [CRTC:131:pipe B] fastset mismatch in vrr.guardband (expected 0, found 40)
The full dmesg with debug info is attached here: dmesg
I have tried setting the refresh rate of the monitor to 100Hz instead, I have also tried different games, and I have tried toggling the "Adaptive Sync" setting in KDE Plasma Display Configuration settings from "Automatic" to "Always". This does not change anything.
System Information:
- Gentoo Linux x86_64
- Kernel Version 6.1.0-rc5+ (latest drm-tip, also occurs with the latest kernel in Gentoo: 6.0.8)
- Mesa Version 22.2.3
- Motherboard: MSI Z370-A PRO (upgraded to latest firmware, Resizeable BAR enabled)
- Display: MSI Optix MAG342CQR connected using a DisplayPort 1.4 cable
- GPU: Intel ARC A770
- CPU: Intel i9-9900KS with Intel UHD Graphics 630 (rev 02) (iGPU is the boot GPU, dGPU is primary in X/wayland)
- DE: KDE Plasma 5.26.3 with KDE Frameworks 5.100.0 on Qt 5.15.5 (wayland session)