[Intel-gfx] [RFC 0/2] Reduce the time for which 'struct_mutex' is held

akash.goel at intel.com akash.goel at intel.com
Sun May 4 13:18:23 CEST 2014


From: Akash Goel <akash.goel at intel.com>

We are trying to reduce the time for which the global 'struct_mutex'
is locked. Execbuffer ioctl is one place where it is generally held
for the longest time. And sometimes because of this occasional 
glitches/flickers are being observed in 60 fps playback (due to miss of
V-blank intervals) as page flip call is getting delayed because the
'struct_mutex' is already locked.

Akash Goel (2):
  drm/i915: Pre-allocation of shmem pages of a GEM object
  drm/i915: Moved the cache flush outside the 'struct_mutex' lock

 drivers/gpu/drm/i915/i915_debugfs.c        |  9 +++-
 drivers/gpu/drm/i915/i915_dma.c            |  1 +
 drivers/gpu/drm/i915/i915_drv.h            |  5 ++
 drivers/gpu/drm/i915/i915_gem.c            | 86 ++++++++++++++++++++++++++++++
 drivers/gpu/drm/i915/i915_gem_execbuffer.c | 84 +++++++++++++++++++++++++----
 drivers/gpu/drm/i915/i915_trace.h          | 35 ++++++++++++
 6 files changed, 208 insertions(+), 12 deletions(-)

-- 
1.9.2




More information about the Intel-gfx mailing list