Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp14403467ybl; Mon, 30 Dec 2019 09:28:30 -0800 (PST) X-Google-Smtp-Source: APXvYqxZ6Iw74QVEktUSWGouUNfiMhbLnlT9Xgnwmxo6jnjuUas+huwkfVhRvNYYJuW7iqVzQNu4 X-Received: by 2002:a05:6830:155a:: with SMTP id l26mr77334075otp.339.1577726910604; Mon, 30 Dec 2019 09:28:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577726910; cv=none; d=google.com; s=arc-20160816; b=rBwDCrowBTmGNa0OZd3UaXWBRJk/p2y5CLON+GrKlFd1aYoXsHDP85kQKYoZ5MvFQe kRx0A/KLR0aZWUv7L/+2FUsLy/RBahJq0TVDAAB9XoqaBKgxwJaPka+dcsGAg1JqSr6P BREFUNFvZBcvEpUurxWbieL4xlb1/+ffMLKsfwgrnF/fp4CbkeE7CKYY3J/VIVbngJpm kQPu9KxwbDW89LM24CrBn0Dm5GJD6xW8u+e8jJd0LnXAu1amNA/ybjg7AL/9bdYtYQyj VkWlvWos7XV6a1IhmKhEVVzauU+PqcXSkJsDqzrPzbrS9TeMzSyR3NhKYuTaHtDgClE6 zZ/A== 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:dkim-signature; bh=lFg6XK/83DD7JECIFEB1UsRZNvANqhBbwraEatstOhE=; b=NLEsyermymdj/XFkjeTSlhYs9nLgR1328E4Rh+28z61LP8D9LGp6ezR6rTjNBEf6qZ al4Z1AM1bTXmeu8HJgAJv0BLp2pW4jDJ+6tpDb1OcKYb9cKpeb2dN6jSl5sYdSvIyhkF 4xzcrO8WsVtWsoY8k9/Hexq83htfVGctpy34OyF3rJ2KvLUV5lY/0/nvCw+bpY26QK0/ Njy5ks8iPpFDdwQLH9jp+Q/OLlv3EPm3cnfXXG60iwaVFvF4FJynhA21fAzaNvwCQ7Bz 22Vl9VX8apmQni2LosPh7WDQQJxAAFY0MxX8rUonM/mWkbeiEV01m1d5IclObtRvfNAB QWdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Ztprat6+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e21si13413573oti.183.2019.12.30.09.28.20; Mon, 30 Dec 2019 09:28:30 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=Ztprat6+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727517AbfL3R0f (ORCPT + 99 others); Mon, 30 Dec 2019 12:26:35 -0500 Received: from mail.kernel.org ([198.145.29.99]:60558 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727296AbfL3R0e (ORCPT ); Mon, 30 Dec 2019 12:26:34 -0500 Received: from localhost.localdomain (unknown [194.230.155.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EFD5E20730; Mon, 30 Dec 2019 17:26:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1577726793; bh=WI3AUEHv2mSX/rTgYvCDyLE6KFEp215twOVaWTDYKaU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ztprat6+2eMdb9X7G5j1siqsB9e3xMO55Md9+qDr8sGe7WzbaMmbqDQLhJXQmFm1j S9dq9mJqNu0mQ6fDQaBpjtww0njsAut5iW1wSFnt11UcrZZfYA11/Fcv+D10iQ8EIa Uzu15c6R1mhrOCXeLD595LB06GqLdoyu73tj33RY= From: Krzysztof Kozlowski To: Joerg Roedel , Robin Murphy , Jean-Philippe Brucker , Eric Auger , Douglas Anderson , Suman Anna , Tero Kristo , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 3/3] iommu: Enable compile testing for some of drivers Date: Mon, 30 Dec 2019 18:26:19 +0100 Message-Id: <20191230172619.17814-3-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191230172619.17814-1-krzk@kernel.org> References: <20191230172619.17814-1-krzk@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some of the IOMMU drivers can be compile tested to increase build coverage. The OMAP, Rockchip and Exynos drivers use device.dev_archdata.iommu field which does not exist on all platforms. The sPAPR TCE and ARM SMMU have also restrictions where they can be built. Signed-off-by: Krzysztof Kozlowski --- drivers/iommu/Kconfig | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig index 0b9d78a0f3ac..fa27192ad166 100644 --- a/drivers/iommu/Kconfig +++ b/drivers/iommu/Kconfig @@ -260,7 +260,7 @@ config IRQ_REMAP # OMAP IOMMU support config OMAP_IOMMU bool "OMAP IOMMU Support" - depends on ARM && MMU + depends on ARM && MMU || (COMPILE_TEST && (ARM || ARM64 || IA64 || SPARC)) depends on ARCH_OMAP2PLUS || COMPILE_TEST select IOMMU_API ---help--- @@ -278,7 +278,7 @@ config OMAP_IOMMU_DEBUG config ROCKCHIP_IOMMU bool "Rockchip IOMMU Support" - depends on ARM || ARM64 + depends on ARM || ARM64 || (COMPILE_TEST && (ARM64 || IA64 || SPARC)) depends on ARCH_ROCKCHIP || COMPILE_TEST select IOMMU_API select ARM_DMA_USE_IOMMU @@ -312,7 +312,7 @@ config TEGRA_IOMMU_SMMU config EXYNOS_IOMMU bool "Exynos IOMMU Support" - depends on ARCH_EXYNOS && MMU + depends on ARCH_EXYNOS && MMU || (COMPILE_TEST && (ARM || ARM64 || IA64 || SPARC)) depends on !CPU_BIG_ENDIAN # revisit driver if we can enable big-endian ptes select IOMMU_API select ARM_DMA_USE_IOMMU @@ -348,7 +348,7 @@ config IPMMU_VMSA config SPAPR_TCE_IOMMU bool "sPAPR TCE IOMMU Support" - depends on PPC_POWERNV || PPC_PSERIES + depends on PPC_POWERNV || PPC_PSERIES || (PPC && COMPILE_TEST) select IOMMU_API help Enables bits of IOMMU API required by VFIO. The iommu_ops @@ -357,7 +357,7 @@ config SPAPR_TCE_IOMMU # ARM IOMMU support config ARM_SMMU bool "ARM Ltd. System MMU (SMMU) Support" - depends on (ARM64 || ARM) && MMU + depends on (ARM64 || ARM || (COMPILE_TEST && !GENERIC_ATOMIC64)) && MMU select IOMMU_API select IOMMU_IO_PGTABLE_LPAE select ARM_DMA_USE_IOMMU if ARM @@ -415,7 +415,7 @@ config S390_IOMMU config S390_CCW_IOMMU bool "S390 CCW IOMMU Support" - depends on S390 && CCW + depends on S390 && CCW || COMPILE_TEST select IOMMU_API help Enables bits of IOMMU API required by VFIO. The iommu_ops @@ -423,7 +423,7 @@ config S390_CCW_IOMMU config S390_AP_IOMMU bool "S390 AP IOMMU Support" - depends on S390 && ZCRYPT + depends on S390 && ZCRYPT || COMPILE_TEST select IOMMU_API help Enables bits of IOMMU API required by VFIO. The iommu_ops @@ -431,7 +431,7 @@ config S390_AP_IOMMU config MTK_IOMMU bool "MTK IOMMU Support" - depends on ARM || ARM64 + depends on ARM || ARM64 || COMPILE_TEST depends on ARCH_MEDIATEK || COMPILE_TEST select ARM_DMA_USE_IOMMU select IOMMU_API -- 2.17.1