From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Keith Packard" Subject: vblank_count count jumps backwards and then forwards across system suspend Date: Mon, 11 Nov 2013 16:23:26 -0800 Message-ID: <86ppq6bh8h.fsf@miki.keithp.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1503079827==" Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org To: "drivers, Intel" , dri-devel@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org --===============1503079827== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable I'm getting some weird results when using vblank_count on my Ivybridge machine across suspend/resume. With glxgears running, I suspend the machine. At resume, I see vblank_count temporarily jump back by a fairly large amount (usually between 10000 and 20000 frames). After a short while, it recovers and jumps back to something that looks like it's back on track with values From=20before the suspend. I thought at first that the value was just getting set back and left there, but after working around that kind of bug, I discovered that it only stayed on the wrong sequence for a short while (looks like about 20ms) and then jumps back to the previous sequence. I hacked up the vblank code to show where the errors occurred, and here's what I got (the logged MSC values are bogus, but the sequence of events is correct): Vblank goes haywire here: [ 30348.438] expect msc near 4294871473 got msc 4294860521 [ 30348.441] (II) intel(0): EDID vendor "APP", prod id 40178 [ 30348.442] (II) intel(0): Printing DDC gathered Modelines: [ 30348.442] (II) intel(0): Modeline "1366x768"x0.0 72.00 1366 1380 1436= 1500 768 769 772 800 -hsync -vsync (48.0 kHz eP) Vblank recovers here: [ 30348.458] expect msc near 4294849570 got msc 4294860522 =2D-=20 keith.packard@intel.com --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (GNU/Linux) iQIVAwUBUoF0/tsiGmkAAAARAQhoLRAAhfYB5kwuvo5LOp4eOtJ7LHwH+iL5uCYq 6ChEbZQMJ8r4s2iEp1GxNDMwiGOd236kVv30An8AVhg3mbiO9ihp57RVat99hOnf aUslyd+faMOhYgJEM5LN4Z9fUGLHn9bbOdsQxO4uqzQfA3LsPgCR9+uLzVPwCfP4 61bOhSMzFSQNzzyvKqChgMYF+DrtCC7UGnYGy8uZLMzzVciY9sN/GeF7b9L8MKhA tMgDZ0UaAoAtUH+2ayRwyj+F0VCKNkZnliahBVuWwo1R+yt74ByUyX5d8AMWoO1K Fnmlu/vfP7vb/YFfsUF+22SGFcMQehM9qYJ4SS9rqsGYS6z3LhOBcTSb8WG+0Tuh 5Bc2DycB4UOnfU9vjN1xKPrBqClg5fE6xlXxMJ2P8hugUXWA/tVnW7ERsqpfaZb/ SlaN/kw4PrljUqydW5fcdabheCqk+K2u9CZ+0n+xKHrHctylQpbyIJojFMYrAxmm T2SpONLx/VDyzyoPIiJHGmZnZS/SwCSDezgOJQbXtyKgNTnhtrIzS6vR2cirys1l MzGKM87gsLSEfHE/cI635Cfo6DzrnPbcGAbSAxxaGd2Jj3a/HvRQuzvKyX8gDptp qxwYEcB7sIZBMDwEP9IzjtAei+TQPFlZsMrQ/dDe9NWeRg7Z7s5msJ/EpHxNAqqY +wKlN+RXciY= =BCor -----END PGP SIGNATURE----- --=-=-=-- --===============1503079827== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx --===============1503079827==--