Skip to content
Commit 1f0ef2aa authored by David Woodhouse's avatar David Woodhouse
Browse files

intel-iommu: Clean up handling of "caching mode" vs. IOTLB flushing.



As we just did for context cache flushing, clean up the logic around
whether we need to flush the iotlb or just the write-buffer, depending
on caching mode.

Fix the same bug in qi_flush_iotlb() that qi_flush_context() had -- it
isn't supposed to be returning an error; it's supposed to be returning a
flag which triggers a write-buffer flush.

Remove some superfluous conditional write-buffer flushes which could
never have happened because they weren't for non-present-to-present
mapping changes anyway.

Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 4c25a2c1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment