Message ID | 1455264797-2334-15-git-send-email-eric.auger@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id AA8229F3CD for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 12 Feb 2016 08:20:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 96585203AC for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 12 Feb 2016 08:20:07 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BFEE920212 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 12 Feb 2016 08:20:06 +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 1aU8w3-000190-3C; Fri, 12 Feb 2016 08:18:39 +0000 Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aU8sR-0004s7-LZ for linux-arm-kernel@lists.infradead.org; Fri, 12 Feb 2016 08:14:58 +0000 Received: by mail-wm0-x22b.google.com with SMTP id 128so51775687wmz.1 for <linux-arm-kernel@lists.infradead.org>; Fri, 12 Feb 2016 00:14:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=RWEO7BZjiO141e212eVuO6jwWruS6pnKguk05Kd81hs=; b=Aex3j2GG/0kKLwMom7zBqN5+L80ufiuAxy5ouVhIU1+lTY7JST+1BwoVlAV2mOO80k rGGRZYs38PMtubJKKzzuLfI9GZCilisT8gUpuCyEyxOB0m1Ezy+Ez+1Y4Cu+3iNhjGDk O6za+neU+7zRIx6FvX4rKT1xpEeU1l8HPzdbc= 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=RWEO7BZjiO141e212eVuO6jwWruS6pnKguk05Kd81hs=; b=aHhxaZEDRCLx31mC2M9QlB0Z6bwXDbpzj+SqbM6K9fUC0HAqPXup9zwjayQeXZvPR3 w3oF70YMo1CqSE4piPdBZwazcyqYZ9JrIBYtwavse2Wxgc1roS7/2L3L0M+1xhVrtiZN BTFjCVscXnyelYVCbvkU/nSwu4IJJOa+d+T2zV9JxU2KhpD9OYEwZk6Jz6mqBx3BGxD2 Jxr4F6wogbpUxZWS8xzrQQxsj++HaWq2yZW5pNMmsvpDaHLG9/me/JVBaX4Yzz93IIvc LddKM+6v9fEOxVY+lCfc29nSLfCbU4gndNbJx+SjZvT3w3CS4vo5pZoiQEd2rMxJIAAw dxfg== X-Gm-Message-State: AG10YOSjC0fMXRO4dGO77MC73Soq+K2igJ2oHZ9CMDdgBHN7nXsPPMthTXHPzIpbRHcoAup3 X-Received: by 10.195.13.68 with SMTP id ew4mr210029wjd.85.1455264877230; Fri, 12 Feb 2016 00:14:37 -0800 (PST) Received: from new-host-17.home (LMontsouris-657-1-37-90.w80-11.abo.wanadoo.fr. [80.11.198.90]) by smtp.gmail.com with ESMTPSA id x66sm1243977wmb.20.2016.02.12.00.14.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 12 Feb 2016 00:14:35 -0800 (PST) From: Eric Auger <eric.auger@linaro.org> To: eric.auger@st.com, eric.auger@linaro.org, alex.williamson@redhat.com, will.deacon@arm.com, joro@8bytes.org, tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, christoffer.dall@linaro.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org Subject: [RFC v3 14/15] iommu/arm-smmu: do not advertise IOMMU_CAP_INTR_REMAP Date: Fri, 12 Feb 2016 08:13:16 +0000 Message-Id: <1455264797-2334-15-git-send-email-eric.auger@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1455264797-2334-1-git-send-email-eric.auger@linaro.org> References: <1455264797-2334-1-git-send-email-eric.auger@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160212_001456_161372_C4F822C2 X-CRM114-Status: GOOD ( 10.29 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Thomas.Lendacky@amd.com, brijesh.singh@amd.com, patches@linaro.org, Manish.Jaggi@caviumnetworks.com, p.fedin@samsung.com, linux-kernel@vger.kernel.org, Bharat.Bhushan@freescale.com, iommu@lists.linux-foundation.org, pranav.sawargaonkar@gmail.com, leo.duran@amd.com, suravee.suthikulpanit@amd.com, sherry.hurwitz@amd.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham 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 |
diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c index ae8a97d..9a83285 100644 --- a/drivers/iommu/arm-smmu.c +++ b/drivers/iommu/arm-smmu.c @@ -1354,7 +1354,7 @@ static bool arm_smmu_capable(enum iommu_cap cap) */ return true; case IOMMU_CAP_INTR_REMAP: - return true; /* MSIs are just memory writes */ + return false; /* MSIs are just memory writes */ case IOMMU_CAP_NOEXEC: return true; default:
Do not advertise IOMMU_CAP_INTR_REMAP for arm-smmu. Indeed the irq_remapping capability is abstracted on irqchip side for ARM as opposed to Intel IOMMU featuring IRQ remapping HW. So to check IRQ remmapping capability, the msi domain needs to be checked instead. Signed-off-by: Eric Auger <eric.auger@linaro.org> --- drivers/iommu/arm-smmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)