From patchwork Fri Jul 24 05:29:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hao X-Patchwork-Id: 6857371 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 70F7F9F358 for ; Fri, 24 Jul 2015 05:30:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A87B820574 for ; Fri, 24 Jul 2015 05:30:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C371520532 for ; Fri, 24 Jul 2015 05:30:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753261AbbGXFaG (ORCPT ); Fri, 24 Jul 2015 01:30:06 -0400 Received: from mail-yk0-f182.google.com ([209.85.160.182]:35821 "EHLO mail-yk0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751500AbbGXFaF (ORCPT ); Fri, 24 Jul 2015 01:30:05 -0400 Received: by ykdu72 with SMTP id u72so11760056ykd.2; Thu, 23 Jul 2015 22:30:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Zwkco+NxLUANnh8MHqZsKwZeVHrTp71RScnlYS5QJP0=; b=y0mEwQC2x9U3hkOg6NdBsGyZiDwhlYhAILKQfqkumYtFOJ5fDhgEBYv94PdSdvUG0+ 6NI9WU3Ntzyg+BJESydjJDuMTe160NOD0/JjHImYqv5QytRGz3wLy2p63bJOT3r3hHP+ Z9yNohb7l9X4c2upJLVwZEqBumJC4pjQZKu9YE+xf6VxQ1utYsvcE8TZy0PG3W79CcIH aiyxnVFxoEIl2ESC7OYMRHnHvID1i9QIVGE10cb7jNiOuuY+zqcOqXtJJ0Utn41V8yKA XT2Op5iHd3WsRTCDFNqzh3IUdDz3nXNhoqhn8PY1gHFm+CU6MLoh+KGbvV+83mhmtM/e DTfA== X-Received: by 10.170.119.85 with SMTP id l82mr13215429ykb.89.1437715804894; Thu, 23 Jul 2015 22:30:04 -0700 (PDT) Received: from pek-khao-d1.corp.ad.wrs.com (unknown-178-22.windriver.com. [147.11.178.22]) by smtp.gmail.com with ESMTPSA id d197sm7389188ywb.17.2015.07.23.22.30.01 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Jul 2015 22:30:04 -0700 (PDT) From: Kevin Hao To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Jingoo Han , Kukjin Kim , Krzysztof Kozlowski , linux-samsung-soc@vger.kernel.org Subject: [PATCH 3/4] PCI: exynos: Mark the msi cascade handler IRQF_NO_THREAD Date: Fri, 24 Jul 2015 13:29:35 +0800 Message-Id: <1437715776-2243-4-git-send-email-haokexin@gmail.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1437715776-2243-1-git-send-email-haokexin@gmail.com> References: <1437715776-2243-1-git-send-email-haokexin@gmail.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-8.0 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, 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 The cascade handler must run in hard interrupt context, otherwise it will cause dead lock if we force threading of all the interrupt handlers via kernel command parameter "threadirqs". Signed-off-by: Kevin Hao --- drivers/pci/host/pci-exynos.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/pci/host/pci-exynos.c b/drivers/pci/host/pci-exynos.c index f9f468d9a819..7b6be7791d33 100644 --- a/drivers/pci/host/pci-exynos.c +++ b/drivers/pci/host/pci-exynos.c @@ -523,7 +523,8 @@ static int __init exynos_add_pcie_port(struct pcie_port *pp, ret = devm_request_irq(&pdev->dev, pp->msi_irq, exynos_pcie_msi_irq_handler, - IRQF_SHARED, "exynos-pcie", pp); + IRQF_SHARED | IRQF_NO_THREAD, + "exynos-pcie", pp); if (ret) { dev_err(&pdev->dev, "failed to request msi irq\n"); return ret;