From: Bjorn Helgaas Date: Mon, 20 Jul 2015 14:10:36 +0000 (-0500) Subject: iommu/vt-d: Cache PCI ATS state and Invalidate Queue Depth X-Git-Tag: omap-for-v4.3/fixes-merge-window~31^2~3^3~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb0cc3aa552642631c3a4e83deae2b5c1a1ef4fa;p=pandora-kernel.git iommu/vt-d: Cache PCI ATS state and Invalidate Queue Depth We check the ATS state (enabled/disabled) and fetch the PCI ATS Invalidate Queue Depth in performance-sensitive paths. It's easy to cache these, which removes dependencies on PCI. Remember the ATS enabled state. When enabling, read the queue depth once and cache it in the device_domain_info struct. This is similar to what amd_iommu.c does. Signed-off-by: Bjorn Helgaas Reviewed-by: Joerg Roedel Acked-by: Joerg Roedel --- Reading git-diff-tree failed