On Tue, Nov 17, 2026 at 09:50:33AM -0800, Saurabh Singh Sengar wrote: > Thanks for the patch. Below are my thoughts: > > Since flip_done is normally signalled through the same vblank timer, > this change does not remove the dependency on that timer. However, > drm_atomic_helper_wait_for_vblanks() has a 1-second timeout, whereas > drm_atomic_helper_wait_for_flip_done() waits up to 10 seconds. > Could you clarify whether the change resolves the reported case because > of the longer timeout, or because it avoids waiting for another vblank > after the commit's event has already completed ? >
It does come down to the longer timeout, I've done some stress testing and the timeout doesn't seem to exceed 2-3 seconds (on Azure and even on the lowest end SKUs). > This seems relevant to other timer-backed virtual DRM drivers as well. > The older wait_for_vblanks helper also predates flip_done tracking and > has previously been described as an interim solution [1]. > > We already have a vblank timeout increase [2], and Thomas's timer > reliability series [3] also discusses delayed vblank handling triggering > DRM checks, although it is not clear whether those changes address this > particular case. > >From my testing they don't address the issue. > Using flip_done is consistent with VKMS and seems reasonable. However, > rather than duplicating the default commit tail in each affected driver, > could we consider a common DRM solution for all ? > Most drivers implicitally rely on drm_atomic_helper_wait_for_vblanks() through drm_atomic_helper_commit_tail(), so I don't think we should touch that unless we can prove it doesn't regress anyone. Though it is worth nothing that fbdev has a similiar timeout that is fixed by [1]. > It would help to identify the precise condition causing the hyperv_drm > warning and explain why the existing generic timeout increase is > insufficient. If this is needed as a targeted stable fix, please document > this in the commit message and as a comment in code. > The vblank timer is an hrtimer, so it can't fire while its vCPU isn't running, whereas the committing task can keep running on another vCPU and time out. On Azure, a 10 ms timer sampling the vCPU run time that Hyper-V reports caught the host not running a vCPU for up to 128 ms, mostly inside storvsc's vmbus_set_event() hypercall. As the warnings coincide with boot-time disk I/O, the host appears to hold a vCPU like that for seconds at times. Also, it doesn't really need to go into stable if we don't enable panic_on_warn() (and assuming no one is complaining about the timeout in stable releases). [1] https://lore.kernel.org/dri-devel/[email protected]/ Hamza > [1] https://patchwork.freedesktop.org/patch/318967/ > [2] https://git.kernel.org/linus/79ae8510b5b81b9500370f89c619b50ca9c0990f > [3] > https://lore.kernel.org/dri-devel/[email protected]/ > > - Saurabh
