From patchwork Fri Jul 21 18:24:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loc Ho X-Patchwork-Id: 9857471 X-Patchwork-Delegate: rjw@sisk.pl Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id EC298601C0 for ; Fri, 21 Jul 2017 18:25:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E388728604 for ; Fri, 21 Jul 2017 18:25:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D727A28615; Fri, 21 Jul 2017 18:25:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 60F6028604 for ; Fri, 21 Jul 2017 18:25:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754578AbdGUSZI (ORCPT ); Fri, 21 Jul 2017 14:25:08 -0400 Received: from mail-pg0-f51.google.com ([74.125.83.51]:33913 "EHLO mail-pg0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753473AbdGUSYo (ORCPT ); Fri, 21 Jul 2017 14:24:44 -0400 Received: by mail-pg0-f51.google.com with SMTP id 123so31875262pgj.1 for ; Fri, 21 Jul 2017 11:24:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apm.com; s=apm; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=lIucmFKGMrN3GfgMTnTTWT0XEg5+NFkFL8+jBMv2Mg8=; b=a+f8Fc9pLHuZjagGDVNuPaJ8d+q8/9Fb26LMqrTuTG+ZHCEPmRw7c4z4Jeva/o8MQh OjUe3OLYThKGyS+QmCT6jfOvhjeOK7Q9e99G3J75MIzF6YFotY2M8tdz8AqllZN6ey9+ AGpEr65wGlvwoLt0RXKLvKWCQdMIqtg+vY27Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=lIucmFKGMrN3GfgMTnTTWT0XEg5+NFkFL8+jBMv2Mg8=; b=RF58P13YPXjO9TOdKXI0et2uB/TUdMY3Bc1cG4+rpiR0rJzmTmdSnOmUkGtzw9Ya9a ppgU2Dv9IQPJg6qSle/xryvQdEwOLXg5nHSwni+Q1+hZI5fng6vb67PCxee7c1ayryf2 /peL5kZEP0eQGEV11dm8EP+X9ilLeds9WmrOdtwfUxbt8abZs9CvyPGxAx8jLaHDaTsp 7EPdUQD53se+a/XCduCRSQXKXL+Kfv5r6SVEBpHW7RDsZpJsLvgA4wqDy8SfLiEk0Mu1 XGOHce/XR/PgOrOSSPNrPv2zR+sTqI4bI/vTMDf6F3UECLcvy/5eyeSrPFfD8z68N5CR D+Ig== X-Gm-Message-State: AIVw111j0/7biJW+gBXd8vDrsNMwjluc81KbiRb/PtoVXs/GT7N2n1ER Mls5Jt9EPRqSMavI X-Received: by 10.99.54.205 with SMTP id d196mr8087426pga.79.1500661483733; Fri, 21 Jul 2017 11:24:43 -0700 (PDT) Received: from softwaredev21.amcc.com ([206.80.4.98]) by smtp.gmail.com with ESMTPSA id j29sm11635210pfj.68.2017.07.21.11.24.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Jul 2017 11:24:43 -0700 (PDT) From: Loc Ho To: bp@suse.de, msalter@redhat.com, rafael@kernel.org, tbaicar@codeaurora.org Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, patches@apm.com, Loc Ho Subject: [PATCH v6 1/1] acpi: apei: Enable APEI multiple GHES source to share a single external IRQ Date: Fri, 21 Jul 2017 11:24:37 -0700 Message-Id: <1500661477-6536-2-git-send-email-lho@apm.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1500661477-6536-1-git-send-email-lho@apm.com> References: <1500661477-6536-1-git-send-email-lho@apm.com> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP X-Gene platforms describe multiple GHES error sources with the same hardware error notification type (external interrupt) and interrupt number. Change the GHES interrupt request to support sharing the same IRQ. Co-authored-by: Tuan Phan Signed-off-by: Loc Ho Acked-by: Borislav Petkov --- drivers/acpi/apei/ghes.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c index d661d45..eed09fc 100644 --- a/drivers/acpi/apei/ghes.c +++ b/drivers/acpi/apei/ghes.c @@ -1157,7 +1157,8 @@ static int ghes_probe(struct platform_device *ghes_dev) generic->header.source_id); goto err_edac_unreg; } - rc = request_irq(ghes->irq, ghes_irq_func, 0, "GHES IRQ", ghes); + rc = request_irq(ghes->irq, ghes_irq_func, IRQF_SHARED, + "GHES IRQ", ghes); if (rc) { pr_err(GHES_PFX "Failed to register IRQ for generic hardware error source: %d\n", generic->header.source_id);