aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorVille Syrjälä <[email protected]>2016-11-28 19:37:12 +0200
committerVille Syrjälä <[email protected]>2016-12-05 16:23:27 +0200
commit11a85d6ab11440c87ff22bcdaa3b97dd5748ae14 (patch)
tree21c5aca2ec87d3adad4647f5098b04bb497c0e37 /tools/perf/scripts/python
parent3d90e649fa3da5c6e5cb72700584689eb6260082 (diff)
drm/i915: Skip vblank wait if cxsr was already off
Before we attempt to turn any planes on or off we must first exit csxr. That's due to cxsr effectively making the plane enable bits read-only. Currently we achieve that with a vblank wait right after toggling the cxsr enable bit. We do the vblank wait even if cxsr was already off, which seems wasteful, so let's try to only do it when absolutely necessary. We could start tracking the cxsr state fully somewhere, but for now it seems easiest to just have intel_set_memory_cxsr() return the previous cxsr state. Signed-off-by: Ville Syrjälä <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected] Reviewed-by: Maarten Lankhorst <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions