From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753408AbbFHNpY (ORCPT ); Mon, 8 Jun 2015 09:45:24 -0400 Received: from terminus.zytor.com ([198.137.202.10]:38775 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753360AbbFHNpI (ORCPT ); Mon, 8 Jun 2015 09:45:08 -0400 Date: Mon, 8 Jun 2015 06:44:54 -0700 From: tip-bot for Feng Wu Message-ID: Cc: mingo@kernel.org, hpa@zytor.com, David.Woodhouse@intel.com, tglx@linutronix.de, joro@8bytes.org, feng.wu@intel.com, jiang.liu@linux.intel.com, linux-kernel@vger.kernel.org Reply-To: jiang.liu@linux.intel.com, feng.wu@intel.com, linux-kernel@vger.kernel.org, mingo@kernel.org, hpa@zytor.com, David.Woodhouse@intel.com, tglx@linutronix.de, joro@8bytes.org In-Reply-To: <1433482974-14614-7-git-send-email-feng.wu@intel.com> References: <1433482974-14614-7-git-send-email-feng.wu@intel.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/apic] iommu, x86: Add cap_pi_support() to detect VT-d PI capability Git-Commit-ID: 948f4ea26d44a64e315225299155af82e213ebed X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 948f4ea26d44a64e315225299155af82e213ebed Gitweb: http://git.kernel.org/tip/948f4ea26d44a64e315225299155af82e213ebed Author: Feng Wu AuthorDate: Fri, 5 Jun 2015 13:42:51 +0800 Committer: Thomas Gleixner 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 Reviewed-by: Jiang Liu Acked-by: David Woodhouse Acked-by: Joerg Roedel Cc: iommu@lists.linux-foundation.org Cc: dwmw2@infradead.org Link: http://lkml.kernel.org/r/1433482974-14614-7-git-send-email-feng.wu@intel.com Signed-off-by: Thomas Gleixner --- 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)