Yes, sure. The patch is already somewhere on the forum and used inside the GA CD. I enclose it here. It applies up to 4.19.x.
The patch is very simple, it takes all VSYNC interrupts fired by ATI gpu into account. In the stock kernel, the interlaced mode only account the interrupt for a sequence of odd and even fields and has a mechanism to not count int multiple times. ATI sync register is very stable and no overrun occurs since I use it. Let me know if some people have issues.
--- linux-4.12_64/drivers/gpu/drm/drm_irq.c 2017-07-02 23:07:02.000000000 +0000
+++ linux-test-4.12/drivers/gpu/drm/drm_irq.c 2017-08-15 08:33:14.318147395 +0000
@@ -243,8 +243,9 @@
pipe, vblank->count, diff, cur_vblank, vblank->last);
if (diff == 0) {
- WARN_ON_ONCE(cur_vblank != vblank->last);
- return;
+// AWK WARN_ON_ONCE(cur_vblank != vblank->last);
+// AWK return;
+ diff = 1;
}
/*