Received: by 10.192.165.156 with SMTP id m28csp1134817imm; Mon, 16 Apr 2018 14:52:15 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/uZH5ILWDWbi2egGQc6fNkZ1XhtAv2iGP7QiRAFO05efJyCg/zmaJ+qkNK7JqdTJ22T9Kw X-Received: by 10.101.73.68 with SMTP id q4mr4122471pgs.424.1523915535115; Mon, 16 Apr 2018 14:52:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523915535; cv=none; d=google.com; s=arc-20160816; b=XYsT4CYo2WzD483SouEp4s11nEpZE7WCDrD+wGqA2PSwOZytCO2WwB3lv50inntUlT 8p7I6ESjSnn5J1YqJm0Uqdy6TMWbvL+qedFh5m2c/yh3xc3NwUlDRMozJHBT/eQGNysZ wnfaic2tpt8EYQNB1LfnKNicKrxTCTNr1a7f9mJVHUM94PhRKSkDbDQWFUa7109FLOZ1 p4pyY0x0TVS8EBUlgHpjWbar4nOiJtGNglYzhdbFwRzpPiZjJ3Hn5SEBVxg2axeCCvQy fC8y41hkOmiUNS2FOfXrmRQXINHi8fZxI518Eq267EkP4MEI7c8Zokwna5AfAsi0fsEz QkrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=rCXscOwUs4u8MHDFy5/JUA7aKs7nsZyLeXNS9+MAncw=; b=GoxsSqy7xi07z0kTMvp/GmvfBe/dr5iOWdk3wRR4FFlXqYZNJtlgArvozFF8a/YLzg AI9aDdAKA1nFBdhFCMzsZ6DaMFmhdR2oocn/KczgnH2+m2T/1sKZX7ZFgwYUgNn7SHv+ EbMyNFxpBD9S2z/ne6WxlAY5opK/qZSs646Qz8E62a4WmlfLhUuMws1kV2rrVnPb3iKj LeLldsgXbvgtCXpLWnlyMQFXd/SOHcHXlswKbAWiRmQRYwHH3IbnnZ4uH8F0+Kg68PsN LzK6Ik0ETmKrzJslDflxZ4HNrAfpJCNxwiUdY8sX0AOyjw/t3AXUcoHJ5BhV5bV4ELq0 cnrQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c87si8139264pfk.53.2018.04.16.14.52.00; Mon, 16 Apr 2018 14:52:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753176AbeDPVuH (ORCPT + 99 others); Mon, 16 Apr 2018 17:50:07 -0400 Received: from mga09.intel.com ([134.134.136.24]:12292 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752965AbeDPVqr (ORCPT ); Mon, 16 Apr 2018 17:46:47 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Apr 2018 14:46:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,460,1517904000"; d="scan'208";a="34740181" Received: from jacob-builder.jf.intel.com ([10.7.199.155]) by orsmga006.jf.intel.com with ESMTP; 16 Apr 2018 14:46:43 -0700 From: Jacob Pan To: iommu@lists.linux-foundation.org, LKML , Joerg Roedel , David Woodhouse , Greg Kroah-Hartman , Alex Williamson , Jean-Philippe Brucker Cc: Rafael Wysocki , "Liu, Yi L" , "Tian, Kevin" , Raj Ashok , Jean Delvare , "Christoph Hellwig" , "Lu Baolu" , Jacob Pan Subject: [PATCH v4 15/22] iommu/config: add build dependency for dmar Date: Mon, 16 Apr 2018 14:49:04 -0700 Message-Id: <1523915351-54415-16-git-send-email-jacob.jun.pan@linux.intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1523915351-54415-1-git-send-email-jacob.jun.pan@linux.intel.com> References: <1523915351-54415-1-git-send-email-jacob.jun.pan@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Intel VT-d interrupts come from both IRQ remapping and DMA remapping. In order to report non-recoverable faults back to device driver, we need to have access to IOMMU fault reporting APIs. This patch adds build depenency to DMAR code where fault IRQ handlers can selectively report faults. Signed-off-by: Jacob Pan --- drivers/iommu/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig index 73590ba..8d8b63f 100644 --- a/drivers/iommu/Kconfig +++ b/drivers/iommu/Kconfig @@ -139,6 +139,7 @@ config AMD_IOMMU_V2 # Intel IOMMU support config DMAR_TABLE bool + select IOMMU_API config INTEL_IOMMU bool "Support for Intel IOMMU using DMA Remapping Devices" -- 2.7.4