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: 9857473 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 B86A6601C0 for ; Fri, 21 Jul 2017 18:25:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AFE1F28604 for ; Fri, 21 Jul 2017 18:25:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A43B828615; Fri, 21 Jul 2017 18:25:31 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3A79128604 for ; Fri, 21 Jul 2017 18:25:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=hWjUWkTHsyn5k9oiznBL/HWR7DF14Rf7jbf+s48N1/w=; b=EvNqdN53huhl8DlLreE+CmMlBy I0oz8Av/98EDRhme5/xs8benvlSdCeWdXCTQBxYHIMZhJnuKAS0LGukX33m6NsH25tQVBVwZHYm2f 289V5kSC6uK217CSB4zmJu9ZopDazJtH9k0JrLQ/YVCGt0sP//SYP83gQd3L7/Hu9pGaZfwqhiZjD 72FUVbec3JVYq2rHEhV63feKdNeMnUbLm9QotQ6Q2JH3GuZrt5VkmLZ2T8TBs+9MiNubC7zytxF+l cHqKKPy810Ctre/x/sLJnxJ7rWkI3rJVj5dblRwJzw2gvrlnV2lLxmg8r6HQ/qofod3xmHMQuY8ss Nzn6gGJQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dYccB-0004ZE-EP; Fri, 21 Jul 2017 18:25:27 +0000 Received: from mail-pg0-x234.google.com ([2607:f8b0:400e:c05::234]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dYcbq-00036l-0c for linux-arm-kernel@lists.infradead.org; Fri, 21 Jul 2017 18:25:07 +0000 Received: by mail-pg0-x234.google.com with SMTP id 125so31849997pgi.3 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=tT1rh0jDxwx8pohiA2fH9vlFNFd3xe9Y6oowF8eakelXCcxjBCEf4hBI5YXbTnErC/ fHKlvC6t7QG4XT5uoK4OO8dZ32jWMTJdYBrFm+m6oMqqixL8jPdCfMxCfz7y/BKSaTFV ftUBvhgjPNRtOYKZ6+LKdLwTN8MpwNpEq6GUZzL1ZsZIoLryRRFamaSJSLuGeBtRMqQd lDuSSduL/qkJqRzt6xymlJWZZVbN2cJeSCd0QxFJp4thzp3VMe/ZBAN0uLauw7GF8rgw dNGq9PkBPf+vbutOVAJHteTSc3MCTVVldd0OKYVGsu4JFaZsdFVzFwG9jp1dIHbMygG9 xuUg== X-Gm-Message-State: AIVw112JJRRI3UiWm9+R1Re/0QqkOrHoT6c/l6gQNJnf+3eSjKfbibUS zlcSLnMqGnn3es6A 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170721_112506_110163_D0071215 X-CRM114-Status: GOOD ( 10.38 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-acpi@vger.kernel.org, patches@apm.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Loc Ho MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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);