android_kernel_motorola_sm6375/include/drm
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Marek Olšák dfadbbdb57 drm/ttm: add a way to bo_wait for either the last read or last write
Sometimes we want to know whether a buffer is busy and wait for it (bo_wait).
However, sometimes it would be more useful to be able to query whether
a buffer is busy and being either read or written, and wait until it's stopped
being either read or written. The point of this is to be able to avoid
unnecessary waiting, e.g. if a GPU has written something to a buffer and is now
reading that buffer, and a CPU wants to map that buffer for read, it needs to
only wait for the last write. If there were no write, there wouldn't be any
waiting needed.

This, or course, requires user space drivers to send read/write flags
with each relocation (like we have read/write domains in radeon, so we can
actually use those for something useful now).

Now how this patch works:

The read/write flags should passed to ttm_validate_buffer. TTM maintains
separate sync objects of the last read and write for each buffer, in addition
to the sync object of the last use of a buffer. ttm_bo_wait then operates
with one the sync objects.

Signed-off-by: Marek Olšák <maraeo@gmail.com>
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-08-31 19:25:35 +01:00
..
i2c
ttm drm/ttm: add a way to bo_wait for either the last read or last write 2011-08-31 19:25:35 +01:00
drm.h drm/vblank: update recently added vbl interface to be more future proof. 2011-03-24 21:28:46 +10:00
drm_buffer.h
drm_cache.h
drm_core.h
drm_crtc.h drm: Separate EDID Header Check from EDID Block Check 2011-08-04 14:39:35 +01:00
drm_crtc_helper.h
drm_dp_helper.h drm/dp: add some new DP regs for DP 1.2 2011-05-20 20:02:29 +10:00
drm_edid.h drm: parse color format support for digital displays 2011-04-28 14:44:56 +10:00
drm_encoder_slave.h
drm_fb_helper.h drm: Take lock around probes for drm_fb_helper_hotplug_event 2011-05-16 12:01:43 +10:00
drm_fixed.h
drm_global.h
drm_hashtab.h drm: Remove unused members from struct drm_open_hash 2011-02-23 11:16:40 +10:00
drm_mem_util.h
drm_memory.h
drm_mm.h drm: mm: fix debug output 2011-05-09 09:14:45 +10:00
drm_mode.h Fix common misspellings 2011-03-31 11:26:23 -03:00
drm_os_linux.h
drm_pciids.h drm/radeon/kms: add new NI pci ids 2011-07-15 16:10:55 +01:00
drm_sarea.h
drm_sman.h
drm_sysfs.h
drm_usb.h drm: add usb framework 2011-02-07 13:09:42 +10:00
drmP.h drm/gem: add functions for mmap offset creation 2011-08-30 11:06:06 +01:00
i810_drm.h
i915_drm.h drm/i915: Fix typo in DRM_I915_OVERLAY_PUT_IMAGE ioctl define 2011-07-22 13:36:44 -07:00
intel-gtt.h
Kbuild drm: remove i830 driver 2011-02-07 12:14:18 +10:00
mga_drm.h Fix common misspellings 2011-03-31 11:26:23 -03:00
nouveau_drm.h drm/nv50: support for compression 2011-02-25 06:46:07 +10:00
r128_drm.h
radeon_drm.h drm/radeon/kms: add info query for backend map 2011-07-18 08:13:08 +01:00
savage_drm.h Fix common misspellings 2011-03-31 11:26:23 -03:00
sis_drm.h
via_drm.h
vmwgfx_drm.h Fix common misspellings 2011-03-31 11:26:23 -03:00