mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Loc Ho <lho@apm.com>
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 <lho@apm.com>
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	[thread overview]
Message-ID: <1500661477-6536-2-git-send-email-lho@apm.com> (raw)
In-Reply-To: <1500661477-6536-1-git-send-email-lho@apm.com>

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 <tphan@apm.com>
Signed-off-by: Loc Ho <lho@apm.com>
---
 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);
-- 
1.8.3.1

  reply	other threads:[~2017-07-21 18:24 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-21 18:24 [PATCH v6 0/1] acpi: apei: Bug fix to enable APEI support for ARMv8 Loc Ho
2017-07-21 18:24 ` Loc Ho [this message]
2017-07-22  5:59   ` [PATCH v6 1/1] acpi: apei: Enable APEI multiple GHES source to share a single external IRQ Borislav Petkov
2017-07-22 22:01     ` Rafael J. Wysocki
2017-07-26 18:57       ` Rafael J. Wysocki
2017-07-27  5:58         ` Borislav Petkov
2017-07-27 14:34           ` Rafael J. Wysocki
2017-07-27 14:49             ` Borislav Petkov
2017-07-27 15:09               ` Rafael J. Wysocki
2017-07-27 16:49                 ` Luck, Tony
2017-07-28  7:35                   ` [PATCH] MAINTAINERS: Add Tony and Boris as ACPI/APEI reviewers Borislav Petkov
2017-07-28 17:02                     ` Luck, Tony
2017-08-01 23:14                       ` Rafael J. Wysocki
2017-08-01 23:13     ` [PATCH v6 1/1] acpi: apei: Enable APEI multiple GHES source to share a single external IRQ Rafael J. Wysocki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1500661477-6536-2-git-send-email-lho@apm.com \
    --to=lho@apm.com \
    --cc=bp@suse.de \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=msalter@redhat.com \
    --cc=patches@apm.com \
    --cc=rafael@kernel.org \
    --cc=tbaicar@codeaurora.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®