From patchwork Thu Jun 5 17:03:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonios Motakis X-Patchwork-Id: 4307451 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id AB920BEEAA for ; Thu, 5 Jun 2014 17:06:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EFA57201B9 for ; Thu, 5 Jun 2014 17:06:34 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 43C5D201E4 for ; Thu, 5 Jun 2014 17:06:30 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Wsb5w-0002Mm-QA; Thu, 05 Jun 2014 17:04:52 +0000 Received: from mail-wg0-f42.google.com ([74.125.82.42]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Wsb5n-0002C5-3N for linux-arm-kernel@lists.infradead.org; Thu, 05 Jun 2014 17:04:47 +0000 Received: by mail-wg0-f42.google.com with SMTP id y10so1443558wgg.25 for ; Thu, 05 Jun 2014 10:04:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=7WzrnKrTnloSJINPttnYz93s46+jZ4E4WPOZEeyEfMQ=; b=OiEND6/hO11IZmwfreZM55FpcHQ2u13OSErXaz2R9cTH2wEdQwVDpfmh2deAny8ChJ n8cIVft/RRe0m6+8zSlPK4k2pFXT9247iA8kpUKpOiXU8FTsSfNLEomOac8N2iKdyvQU hu3EtFcAqal0zfUNyIUbnc1jRMsuaLyQa/MYnsVLz8ZCqdC3OulAnvuAc3VyM0AlW92w HZDSMvyxgfSbI7y0fcjXh08JwhlSvoTVUgkwZVIZ+pmiVNnOFs9A6w/mXdFBnvuzIGQV fFyTGZk0w1Ihe754u1iqQAYFIyYxkk3HNoLfxKmAfHPIICzgyKmVjTm+34fA6Pgxkl6c 0xzQ== X-Gm-Message-State: ALoCoQlfnhwVQf1CigX+/+0nxn9+jbz/25i/9NkAz6ZDEnVV1qz+eoBDsNmGYLKXtFqs5xPWmli3 X-Received: by 10.194.77.39 with SMTP id p7mr7938359wjw.85.1401987859854; Thu, 05 Jun 2014 10:04:19 -0700 (PDT) Received: from localhost.localdomain (home.tvelocity.eu. [82.67.68.96]) by mx.google.com with ESMTPSA id ch16sm8777323wjb.25.2014.06.05.10.04.17 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 05 Jun 2014 10:04:18 -0700 (PDT) From: Antonios Motakis To: alex.williamson@redhat.com, kvmarm@lists.cs.columbia.edu, iommu@lists.linux-foundation.org Subject: [RFC PATCH v6 04/20] iommu/arm-smmu: add capability IOMMU_CAP_INTR_REMAP Date: Thu, 5 Jun 2014 19:03:12 +0200 Message-Id: <1401987808-23596-5-git-send-email-a.motakis@virtualopensystems.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1401987808-23596-1-git-send-email-a.motakis@virtualopensystems.com> References: <1401987808-23596-1-git-send-email-a.motakis@virtualopensystems.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140605_100443_289216_98A3F315 X-CRM114-Status: UNSURE ( 9.89 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: kim.phillips@freescale.com, kvm@vger.kernel.org, eric.auger@linaro.org, open list , Joerg Roedel , will.deacon@arm.com, a.rigo@virtualopensystems.com, stuart.yoder@freescale.com, "moderated list:ARM SMMU DRIVER" , Antonios Motakis , tech@virtualopensystems.com, christoffer.dall@linaro.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP With an ARM SMMU, interrupt remapping should always be safe from the SMMU's point of view, as it is properly handled by the GIC. Signed-off-by: Antonios Motakis --- drivers/iommu/arm-smmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c index 15ab2af..ff29402 100644 --- a/drivers/iommu/arm-smmu.c +++ b/drivers/iommu/arm-smmu.c @@ -1544,7 +1544,7 @@ static int arm_smmu_domain_has_cap(struct iommu_domain *domain, if (smmu_domain->root_cfg.smmu->features & ARM_SMMU_FEAT_COHERENT_WALK) caps |= IOMMU_CAP_CACHE_COHERENCY; - caps |= IOMMU_CAP_NOEXEC; + caps |= IOMMU_CAP_NOEXEC | IOMMU_CAP_INTR_REMAP; return !!(cap & caps); }