Skip to content
Commit c6f175cb authored by Kyle McMartin's avatar Kyle McMartin Committed by Eric Anholt
Browse files

i915: fix invalid opcode exception on cpus without clflush



i915_flush_ttm was unconditionally executing a clflush instruction
to (obviously) flush the cache. Instead, check if the cpu supports
clflush, and if not, fall back to calling wbinvd to flush the entire
cache.

Signed-off-by: default avatarKyle McMartin <kmcmartin@redhat.com>
parent 44a9fa8c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment