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

iommu/vt-d: Always enable PASID/PRI PCI capabilities before ATS



The behaviour if you enable PASID support after ATS is undefined. So we
have to enable it first, even if we don't know whether we'll need it.

This is safe enough; unless we set up a context that permits it, the device
can't actually *do* anything with it.

Also shift the feature detction to dmar_insert_one_dev_info() as it only
needs to happen once.

Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 8a94ade4
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