Commit-ID: 948f4ea26d44a64e315225299155af82e213ebed Gitweb: http://git.kernel.org/tip/948f4ea26d44a64e315225299155af82e213ebed Author: Feng Wu <feng...@intel.com> AuthorDate: Fri, 5 Jun 2015 13:42:51 +0800 Committer: Thomas Gleixner <t...@linutronix.de> CommitDate: Mon, 8 Jun 2015 15:41:32 +0200
iommu, x86: Add cap_pi_support() to detect VT-d PI capability Add helper function to detect VT-d Posted-Interrupts capability. Signed-off-by: Feng Wu <feng...@intel.com> Reviewed-by: Jiang Liu <jiang....@linux.intel.com> Acked-by: David Woodhouse <david.woodho...@intel.com> Acked-by: Joerg Roedel <j...@8bytes.org> Cc: io...@lists.linux-foundation.org Cc: dw...@infradead.org Link: http://lkml.kernel.org/r/1433482974-14614-7-git-send-email-feng...@intel.com Signed-off-by: Thomas Gleixner <t...@linutronix.de> --- include/linux/intel-iommu.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/intel-iommu.h b/include/linux/intel-iommu.h index 0af9b03..0c251be 100644 --- a/include/linux/intel-iommu.h +++ b/include/linux/intel-iommu.h @@ -87,6 +87,7 @@ static inline void dmar_writeq(void __iomem *addr, u64 val) /* * Decoding Capability Register */ +#define cap_pi_support(c) (((c) >> 59) & 1) #define cap_read_drain(c) (((c) >> 55) & 1) #define cap_write_drain(c) (((c) >> 54) & 1) #define cap_max_amask_val(c) (((c) >> 48) & 0x3f) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/