Skip to contentSkip to conversation

acpi: apei: Bug fix to enable APEI support for ARMv8

PATCH Applied Loc Ho 5 participants 14 messages Jul 21, 2017 – Aug 1, 2017

Subsystems (2)
lore
Share & tools
lore

Loc Ho

author
#0 lore raw

v6 cover acpi: apei: Bug fix to enable APEI support for ARMv8

v6:
* Update the patch description

v5:
* Remove the patch set 1/2 as it was accepted
* Fix the signed-off-by using Co-authored-by

v4:
* Update patch commit log for gsi.c patch
* Make change to be 80 column aligned

v3
* Change the title of the patch to reflect the patch
* Completely dropped the driver. Instead, move completely to the FW by accessing the GIC directly.
* Fix a bug with function acpi_gsi_to_irq
* Enable APEI multiple GHES source to share an single external IRQ

v2
* Make all code more generic naming
* Still waiting for comment from Linaro folks on APEI

---
Loc Ho (1):
acpi: apei: Enable APEI multiple GHES source to share an single
external IRQ

 drivers/acpi/apei/ghes.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Signature · 1 line
1.8.3.1
author
#1 lore raw

PATCH v6 1/1 acpi: apei: Enable APEI multiple GHES source to share a single external IRQ

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.

---
 drivers/acpi/apei/ghes.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/acpi/apei/ghes.c +2 -1
index d661d45..eed09fc 100644
@@ -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);
Signature · 1 line
1.8.3.1
Acked-by on v6 1/1
#2 lore raw

Re: [PATCH v6 1/1] acpi: apei: Enable APEI multiple GHES source to share a single external IRQ

Quoted 16 lines · Loc Ho

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.

---
 drivers/acpi/apei/ghes.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/acpi/apei/ghes.c +0 -0
index d661d45..eed09fc 100644

drivers/acpi/apei/ghes.c static int ghes_probe(struct platform_device *ghes_dev) · line 1164

Quoted 9 lines
drivers/acpi/apei/ghes.c +2 -1
@@ -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);
Signature · 5 lines
Regards/Gruss,
    Boris.

SUSE Linux GmbH, GF: Felix Imend?rffer, Jane Smithard, Graham Norton, HRB 21284 (AG N?rnberg)
-- 
#3 lore raw

Re: [PATCH v6 1/1] acpi: apei: Enable APEI multiple GHES source to share a single external IRQ

Quoted 11 lines · Borislav Petkov
Quoted 10 lines · Loc Ho

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.

---
 drivers/acpi/apei/ghes.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Quoted 16 lines
Quoted 5 lines
drivers/acpi/apei/ghes.c +0 -0
index d661d45..eed09fc 100644

drivers/acpi/apei/ghes.c static int ghes_probe(struct platform_device *ghes_dev) · line 1164

Quoted 9 lines
drivers/acpi/apei/ghes.c +2 -1
@@ -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);

OK

Should I apply this or will Tony do that?

#4 lore raw

Re: [PATCH v6 1/1] acpi: apei: Enable APEI multiple GHES source to share a single external IRQ

Quoted 29 lines · Rafael J. Wysocki
Quoted 11 lines · Borislav Petkov
Quoted 10 lines · Loc Ho

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.

---
 drivers/acpi/apei/ghes.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Quoted 16 lines
Quoted 5 lines
drivers/acpi/apei/ghes.c +0 -0
index d661d45..eed09fc 100644

drivers/acpi/apei/ghes.c static int ghes_probe(struct platform_device *ghes_dev) · line 1164

Quoted 9 lines
drivers/acpi/apei/ghes.c +2 -1
@@ -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);
Quoted 3 lines

OK

Should I apply this or will Tony do that?

So am I suppsed to drop this?

#5 lore raw

Re: [PATCH v6 1/1] acpi: apei: Enable APEI multiple GHES source to share a single external IRQ

Quoted 3 lines · Rafael J. Wysocki
Quoted 1 line

Should I apply this or will Tony do that?

So am I suppsed to drop this?

Well, as suggested in another mail, I think it'll be best if Tony and I put ourselves as reviewers for the APEI crap and you still collect it.

Unless you want to give it to us and we can arrange some pull order to send it to you.

What do you prefer?

Signature · 5 lines
Regards/Gruss,
    Boris.

SUSE Linux GmbH, GF: Felix Imend?rffer, Jane Smithard, Graham Norton, HRB 21284 (AG N?rnberg)
-- 
#6 lore raw

Re: [PATCH v6 1/1] acpi: apei: Enable APEI multiple GHES source to share a single external IRQ

Quoted 5 lines · Borislav Petkov
Quoted 3 lines · Rafael J. Wysocki
Quoted 1 line

Should I apply this or will Tony do that?

So am I suppsed to drop this?

Quoted 7 lines

Well, as suggested in another mail, I think it'll be best if Tony and I put ourselves as reviewers for the APEI crap and you still collect it.

Unless you want to give it to us and we can arrange some pull order to send it to you.

What do you prefer?

I can collect it, no problem.

So from now on I will pick up APEI things with ACKs from you or Tony.

Thanks,
Rafael

#7 lore raw

Re: [PATCH v6 1/1] acpi: apei: Enable APEI multiple GHES source to share a single external IRQ

Quoted 3 lines · Rafael J. Wysocki

I can collect it, no problem.

So from now on I will pick up APEI things with ACKs from you or Tony.

If you agree with that, that is. But we kinda do that already, more or less. :-)

Then I guess we should add something like this so that get_maintainer finds us:

MAINTAINERS +8 -0
index f66488dfdbc9..985413fb5d83 100644
@@ -310,6 +310,14 @@ F:	drivers/pci/*/*acpi*
 F:	drivers/pci/*/*/*acpi*
 F:	tools/power/acpi/
 
+ACPI APEI
+M:	"Rafael J. Wysocki" <[email protected]>
+M:	Len Brown <[email protected]>
+L:	[email protected]
+R:	Tony Luck <[email protected]>
+R:	Borislav Petkov <[email protected]>
+F:	drivers/acpi/apei/
+
 ACPI COMPONENT ARCHITECTURE (ACPICA)
 M:	Robert Moore <[email protected]>
 M:	Lv Zheng <[email protected]>

---

Provided Tony agrees though... I'd venture a guess and say that he doesn't have a choice, woahahhahaha...

:-)))

Signature · 5 lines
Regards/Gruss,
    Boris.

SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
-- 
#8 lore raw

Re: [PATCH v6 1/1] acpi: apei: Enable APEI multiple GHES source to share a single external IRQ

Quoted 33 lines · Borislav Petkov
Quoted 3 lines · Rafael J. Wysocki

I can collect it, no problem.

So from now on I will pick up APEI things with ACKs from you or Tony.

If you agree with that, that is. But we kinda do that already, more or less. :-)

Then I guess we should add something like this so that get_maintainer finds us:

MAINTAINERS +8 -1
index f66488dfdbc9..985413fb5d83 100644
@@ -310,6 +310,14 @@ F: drivers/pci/*/*acpi*
 F:     drivers/pci/*/*/*acpi*
 F:     tools/power/acpi/
 
+ACPI APEI
+M:     "Rafael J. Wysocki" <[email protected]>
+M:     Len Brown <[email protected]>
+L:     [email protected]
+R:     Tony Luck <[email protected]>
+R:     Borislav Petkov <[email protected]>
+F:     drivers/acpi/apei/
+
 ACPI COMPONENT ARCHITECTURE (ACPICA)
 M:     Robert Moore <[email protected]>
 M:     Lv Zheng <[email protected]>
 
---
Quoted 4 lines

Provided Tony agrees though... I'd venture a guess and say that he doesn't have a choice, woahahhahaha...

:-)))

Well, I guess send this officially with a CC:Tony and see what he says. :-)

reviewer
#9 lore raw

RE: [PATCH v6 1/1] acpi: apei: Enable APEI multiple GHES source to share a single external IRQ

Quoted 6 lines
Quoted 4 lines

Provided Tony agrees though... I'd venture a guess and say that he doesn't have a choice, woahahhahaha...

:-)))

Well, I guess send this officially with a CC:Tony and see what he says. :-)

That's definitely part of my day job ... so yes, please add me as a reviewer.

-Tony

#10 lore raw

PATCH 1/1 MAINTAINERS: Add Tony and Boris as ACPI/APEI reviewers

Since this piece of the ACPI pile is doing RAS, it is perhaps prudent if we at least paid attention to it and the direction it takes. So add Tony and me as reviewers.

---
 MAINTAINERS | 8 ++++++++
 1 file changed, 8 insertions(+)
MAINTAINERS +8 -0
index f66488dfdbc9..985413fb5d83 100644
@@ -310,6 +310,14 @@ F:	drivers/pci/*/*acpi*
 F:	drivers/pci/*/*/*acpi*
 F:	tools/power/acpi/
 
+ACPI APEI
+M:	"Rafael J. Wysocki" <[email protected]>
+M:	Len Brown <[email protected]>
+L:	linux-acpi at vger.kernel.org
+R:	Tony Luck <[email protected]>
+R:	Borislav Petkov <[email protected]>
+F:	drivers/acpi/apei/
+
 ACPI COMPONENT ARCHITECTURE (ACPICA)
 M:	Robert Moore <[email protected]>
 M:	Lv Zheng <[email protected]>
Signature · 4 lines
2.14.0.rc0

SUSE Linux GmbH, GF: Felix Imend?rffer, Jane Smithard, Graham Norton, HRB 21284 (AG N?rnberg)
-- 
reviewer Acked-by on v1 1/1
#11 lore raw

RE: [PATCH] MAINTAINERS: Add Tony and Boris as ACPI/APEI reviewers

Quoted 3 lines

Since this piece of the ACPI pile is doing RAS, it is perhaps prudent if we at least paid attention to it and the direction it takes. So add Tony and me as reviewers.

#13 lore raw

Re: [PATCH v6 1/1] acpi: apei: Enable APEI multiple GHES source to share a single external IRQ

In reply to Borislav Petkov
Quoted 11 lines · Borislav Petkov
Quoted 10 lines · Loc Ho

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.

---
 drivers/acpi/apei/ghes.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Quoted 16 lines
Quoted 5 lines
drivers/acpi/apei/ghes.c +0 -0
index d661d45..eed09fc 100644

drivers/acpi/apei/ghes.c static int ghes_probe(struct platform_device *ghes_dev) · line 1164

Quoted 9 lines
drivers/acpi/apei/ghes.c +2 -1
@@ -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);

Applied, thanks!

#12 lore raw

Re: [PATCH] MAINTAINERS: Add Tony and Boris as ACPI/APEI reviewers

In reply to Luck, Tony
Quoted 5 lines · Tony
Quoted 3 lines

Since this piece of the ACPI pile is doing RAS, it is perhaps prudent if we at least paid attention to it and the direction it takes. So add Tony and me as reviewers.

Applied, thanks!