[Spice-devel] [PATCH 7/7] qxl-wddm-dod: Set VSync notification period to 200 ms

Yuri Benditovich yuri.benditovich at daynix.com
Sun Feb 12 13:09:54 UTC 2017


With default period of VSync interrupt notification
(1sec/refresh rate) the driver with device rev.4
has a problem when the system starts running after
restart. Until the issue is solved we set the notification
period to 200 ms, with this value both rev.3 and rev.4
function correctly. Final decision about notification
period postponed until the investigation is done.

Signed-off-by: Yuri Benditovich <yuri.benditovich at daynix.com>
---
 qxldod/QxlDod.cpp | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/qxldod/QxlDod.cpp b/qxldod/QxlDod.cpp
index fcca7d1..6a50265 100755
--- a/qxldod/QxlDod.cpp
+++ b/qxldod/QxlDod.cpp
@@ -4972,10 +4972,12 @@ VOID QxlDod::EnableVsync(BOOLEAN bEnable)
         }
         else
         {
+            // set notification period to 200 ms for now, see commit comment for details
+            LONG val = 200;
             LARGE_INTEGER li;
-            LONG period = 1000 / VSYNC_RATE;
+            LONG period = val;
             DbgPrint(TRACE_LEVEL_WARNING, ("Enabled VSync(fired %d)\n", m_VsyncFiredCounter));
-            li.QuadPart = -10000000 / VSYNC_RATE;
+            li.QuadPart = -10000 * val;
             KeSetTimerEx(&m_VsyncTimer, li, period, &m_VsyncTimerDpc);
         }
     }
-- 
2.7.0.windows.1



More information about the Spice-devel mailing list