Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp612923imm; Wed, 6 Jun 2018 03:11:35 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIDuTBE+ytlFXnC/GDbEK82Z+rmjgWOVSfQwtWsB60+ZXedyBthr5WCzK36yiF3GZSCutxY X-Received: by 2002:a65:4249:: with SMTP id d9-v6mr2085988pgq.362.1528279895656; Wed, 06 Jun 2018 03:11:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528279895; cv=none; d=google.com; s=arc-20160816; b=O4+ulhunRX0W7YoeT/TVBnLZwmRtAo1cxS5ZkF73dIWKn0UjZerzKFcLj4TRGgui+G jfDqEiXx5oxENOG96/fDITpv22QGMoQBqVo3ztygSjewKaW0n30Yp2XjqrHFkfS0/luq eq/rP75ZBrzIG6gAIzQ1p1/jI8isBGS1ScrGQAwUhhiabhu5iW/wnMMlWSk4FACcdFaE Rm5eh+xzk9iEZ/owlEeWm+v8gWG7XISy3qom6/IXnxY+vvQ6AlnWXfbS7r+i1uPDMJPR oITfj/HFHvPRxHzUhXOSsykzZ5Eqn3Ivp2qQ6mJoDkCmcLKsCCWcMEwNBe7ce2plfcxl axVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=08eRakfEKEEG9+VX5SmWcp8ALZoKKPRyiHMOCIKFROE=; b=QWSQaFcnyamN//G85iTDZKM7i9czbPMqbjNBFzt7k7rwqNOYs7oBKvC/3DJKuJjv0c ejAnfAyq75H16ZcziQRA9WRHUQlXFHC14+jtNNH7QlcyAx2JLuJKqupoGzHZapvi8tdF UkV0TyaRfLhG3c7NfOJeS+BEm26ywuh+/OJLC4XyZqcS38X8YvLoatKoypFCRL7AvWL5 2B6ywnM2pi4HwugEfDeKMRac9pX2qvhPTS7+Rlk2CzEn059qeNtrxbC3PSNi2ePZubSi 3KcXQYDTfDalzMZSlz7W73jgkNDu9AWU3abqmohJlFgDKVvX26IywYMrrLZO6FA/P0/j RuhA== 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 f186-v6si15049165pfg.194.2018.06.06.03.11.21; Wed, 06 Jun 2018 03:11:35 -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 S932341AbeFFKKt (ORCPT + 99 others); Wed, 6 Jun 2018 06:10:49 -0400 Received: from terminus.zytor.com ([198.137.202.136]:54413 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932265AbeFFKKr (ORCPT ); Wed, 6 Jun 2018 06:10:47 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id w56AAbDP1740097 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 6 Jun 2018 03:10:37 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w56AAbql1740094; Wed, 6 Jun 2018 03:10:37 -0700 Date: Wed, 6 Jun 2018 03:10:37 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Laurentiu Tudor Message-ID: Cc: tglx@linutronix.de, linux-kernel@vger.kernel.org, mingo@kernel.org, hpa@zytor.com, laurentiu.tudor@nxp.com Reply-To: mingo@kernel.org, tglx@linutronix.de, linux-kernel@vger.kernel.org, hpa@zytor.com, laurentiu.tudor@nxp.com In-Reply-To: <20180605122727.12831-1-laurentiu.tudor@nxp.com> References: <20180605122727.12831-1-laurentiu.tudor@nxp.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:irq/urgent] irqchip/ls-scfg-msi: Map MSIs in the iommu Git-Commit-ID: 0cdd431c337e99177e68597f3de34bedd3a20a74 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 X-Spam-Status: No, score=-0.3 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_96_Q autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 0cdd431c337e99177e68597f3de34bedd3a20a74 Gitweb: https://git.kernel.org/tip/0cdd431c337e99177e68597f3de34bedd3a20a74 Author: Laurentiu Tudor AuthorDate: Tue, 5 Jun 2018 15:27:27 +0300 Committer: Thomas Gleixner CommitDate: Wed, 6 Jun 2018 12:05:19 +0200 irqchip/ls-scfg-msi: Map MSIs in the iommu Add the required iommu_dma_map_msi_msg() when composing the MSI message, otherwise the interrupts will not work. Signed-off-by: Laurentiu Tudor Signed-off-by: Thomas Gleixner Cc: jason@lakedaemon.net Cc: marc.zyngier@arm.com Cc: zhiqiang.hou@nxp.com Cc: minghuan.lian@nxp.com Link: https://lkml.kernel.org/r/20180605122727.12831-1-laurentiu.tudor@nxp.com --- drivers/irqchip/irq-ls-scfg-msi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/irqchip/irq-ls-scfg-msi.c b/drivers/irqchip/irq-ls-scfg-msi.c index 57e3d900f19e..1ec3bfe56693 100644 --- a/drivers/irqchip/irq-ls-scfg-msi.c +++ b/drivers/irqchip/irq-ls-scfg-msi.c @@ -21,6 +21,7 @@ #include #include #include +#include #define MSI_IRQS_PER_MSIR 32 #define MSI_MSIR_OFFSET 4 @@ -94,6 +95,8 @@ static void ls_scfg_msi_compose_msg(struct irq_data *data, struct msi_msg *msg) if (msi_affinity_flag) msg->data |= cpumask_first(data->common->affinity); + + iommu_dma_map_msi_msg(data->irq, msg); } static int ls_scfg_msi_set_affinity(struct irq_data *irq_data,