Quoting Yaroslav Shabalin (2017-09-12 23:11:03) > Hi! > > I would like to report a problem which I believe is connected to changes > introduced in this patch (https://lists.freedesktop.org/archives/intel-gfx/ > 2017-February/120777.html). Specifically the problem is: screen freezes for 0.5 > - 5 seconds (mostly for 2-3 seconds) when PSR is enabled (i915.enable_psr=1 > kernel boot option). Freezes are more frequent with rich, dynamic screen > content. The most reliable way to reproduce it, I discovered so far, is to > start Gnome "Disk Usage Analyzer", analyze some catalog and move mouse pointer > over color rectangles for a while. Usually that way I get 3-5 freezes in a > minute. During normal PC usage freezes are happening less frequently, but still > annoyingly. For the first time this problem appeared after update to kernel > 4.12 and still there in recent 4.13 too. > I've looked into it a little and seems that mentioned patch is the one that > brought it in. Git bisect indicates it as the first bad commit. After realizing > that I tried to partly revert changes in the patch and found that following > change: > > /* Treat this as an end-of-frame, like intel_user_framebuffer_dirty() */ > - if (obj->cache_dirty || obj->base.write_domain == I915_GEM_DOMAIN_CPU) { > - i915_gem_clflush_object(obj, true); > - intel_fb_obj_flush(obj, false, ORIGIN_DIRTYFB); > - } > + __i915_gem_object_flush_to_display(obj); > + intel_fb_obj_flush(obj, false, ORIGIN_DIRTYFB); > > when reverted solves the problem completely. One of the main difference is that in old version intel_fb_obj_flush was called conditionally and now it is called every time. So I surrounded the call with "if" just to check and it worked: Honestly, that doesn't seem like causation for the PSR failure. -Chris _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx