Jakob Bornecrantz wrote: > From: Thomas Hellstrom <thellst...@vmware.com> > > Signed-off-by: Thomas Hellstrom <thellst...@vmware.com> > Signed-off-by: Jakob Bornecrantz <ja...@vmware.com> > --- > drivers/gpu/drm/drm_fops.c | 14 ++++++++++++++ > drivers/gpu/drm/drm_stub.c | 11 +++++++++++ > include/drm/drmP.h | 9 +++++++++ > 3 files changed, 34 insertions(+), 0 deletions(-) > It might be worthwhile to comment on what these hooks are used for:
The vmwgfx driver has a per master rw lock around TTM, to guarantee mutual exclusion when needed. This is typically when all evictable buffers are evicted due to 1) vt switch 2) master switch 3) suspend / resume. In the multi-master case, on master switch the new master takes the previously active master lock in write mode, and then evicts all buffers. Any clients to previous masters will then block on that lock when trying to validate a buffer. fbdev also acts as a virtual master w r t this. /Thomas ------------------------------------------------------------------------------ Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev -- _______________________________________________ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel