summaryrefslogtreecommitdiff
path: root/mm/readahead.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-08-08 09:23:22 (GMT)
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-08-08 12:29:12 (GMT)
commit2fedbff948cf5bc1e9977b7bc885aae45bd32f74 (patch)
tree2fb434867abb4bff322fd8e34a7ce9039a9e820f /mm/readahead.c
parent6c6cf5aa9c583478b19e23149feaa92d01fb8c2d (diff)
downloadlinux-fsl-qoriq-2fedbff948cf5bc1e9977b7bc885aae45bd32f74.tar.xz
drm/i915: Add I915_GEM_PARAM_HAS_SEMAPHORES
Userspace tries to estimate the cost of ring switching based on whether the GPU and GEM supports semaphores. (If we have multiple rings and no semaphores, userspace assumes that the cost of switching rings between batches is exorbitant and will endeavour to keep the next batch on the active ring - as a coarse approximation to tracking both destination and source surfaces.) Currently userspace has to guess whether semaphores exist based on the chipset generation and the module parameter, i915.semaphores. This is a crude and inaccurate guess as the defaults internally depend upon other chipset features being enabled or disabled, nor does it extend well into the future. By exporting a HAS_SEMAPHORES parameter, we can easily query the driver and obtain an accurate answer. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'mm/readahead.c')
0 files changed, 0 insertions, 0 deletions