Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1161510imm; Wed, 1 Aug 2018 11:11:53 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeOzjPBheEl62FMtiJ9a3ISTmxpjZIpTHAumapgVInAIsnjTP87or0fuYu4bf3NnjWTtMeX X-Received: by 2002:a62:8559:: with SMTP id u86-v6mr28114999pfd.32.1533147113733; Wed, 01 Aug 2018 11:11:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533147113; cv=none; d=google.com; s=arc-20160816; b=UW6AxTTGtHwfGog8QlZfALffdExRuDTKUmxaQFlTZbk2k7fXrih5KXU0knxDBzSGao FF2NI2J2A3MXHbvNrqQIcvllWH5xXsW5VUhfJiawCm6HP7dFeLU7shXcPjusSs0I46JX gbdvZB6Tsgkp7jKjkZzhuFwzXJ0rq0prvrOkGqNXq+/lVhfG28YwSnDdCbgOXG5g1xm/ kSiIRGQ+eWzEf8Ut0yeEr0SsIlqbACzMgPVvdOzum7nwIRIjGcI/SfOFoHYdplo0phOS 09/UyQeN8XNNMGKR3/y8RU+mEy3MMkSuatSctCs+A6A5BWjZBUOyB/CK6kyYRyXgmDHh /AHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=/s1Dj1fXgLCuTJdhXv4r/aCkr6hzZgpM07BVv00PrFU=; b=wI6P655gUKmrA2yi/eYByoD72K3r+4X5ESd6k+xwcRFP4H30Yk1rJKY56ZE/JbF/BQ M+UHTwFERzdrFJFrEjFZ/YrPaw9OApg0TdcmjfmyvyQFaqGjTGobmGPZCAiGrtOzB1ag 8DvjrlaK0n7lqug7JD595/xuEtHaTvrFNh5ds7P9T25B3G116EnuMSvWReZ//xeMzj3M IErVjoqLnBpp+WLoBHyX//mDomR4m4tbsxsjZ1beeLwq9mdTQTeTkbMrz0qdIYLJkqgq J0SHIYYnpXM8n/zAwZS/AyRv59THpKYfNRfAZ4Qpp9EA0Yl1yUtDIKlkC8ohc8EhZFpn OdwA== 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 x32-v6si15259417pld.330.2018.08.01.11.11.39; Wed, 01 Aug 2018 11:11:53 -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 S1732009AbeHAT5s (ORCPT + 99 others); Wed, 1 Aug 2018 15:57:48 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:50120 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405273AbeHATIf (ORCPT ); Wed, 1 Aug 2018 15:08:35 -0400 Received: from localhost (D57E6652.static.ziggozakelijk.nl [213.126.102.82]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 636DA1365; Wed, 1 Aug 2018 17:13:29 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Laurentiu Tudor , Thomas Gleixner , jason@lakedaemon.net, marc.zyngier@arm.com, zhiqiang.hou@nxp.com, minghuan.lian@nxp.com, Sasha Levin Subject: [PATCH 4.14 039/246] irqchip/ls-scfg-msi: Map MSIs in the iommu Date: Wed, 1 Aug 2018 18:49:09 +0200 Message-Id: <20180801165013.560815162@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180801165011.700991984@linuxfoundation.org> References: <20180801165011.700991984@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Laurentiu Tudor [ Upstream commit 0cdd431c337e99177e68597f3de34bedd3a20a74 ] 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 Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/irqchip/irq-ls-scfg-msi.c | 3 +++ 1 file changed, 3 insertions(+) --- 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(stru 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,