acpi: apei: Bug fix to enable APEI support for ARMv8
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
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
@@ -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
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.
Co-authored-by Tuan Phan <[email protected]>Signed-off-by Loc Ho <[email protected]>--- drivers/acpi/apei/ghes.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/acpi/apei/ghes.c +0
-0
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)
-- 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.
Co-authored-by Tuan Phan <[email protected]>Signed-off-by Loc Ho <[email protected]>--- 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
-0drivers/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);Acked-by Borislav Petkov <[email protected]>
OK
Should I apply this or will Tony do that?
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.
Co-authored-by Tuan Phan <[email protected]>Signed-off-by Loc Ho <[email protected]>--- 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
-0drivers/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);Acked-by Borislav Petkov <[email protected]>
Quoted 3 lines
OK
Should I apply this or will Tony do that?
So am I suppsed to drop this?
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)
-- Rafael J. Wysocki
maintainerRe: [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
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
@@ -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)
-- Rafael J. Wysocki
maintainerRe: [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_maintainerfinds us:MAINTAINERS +8
-1@@ -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. :-)
Luck, Tony
reviewerRE: [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
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
@@ -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) --
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.
Rafael J. Wysocki
AppliedRe: [PATCH] MAINTAINERS: Add Tony and Boris as ACPI/APEI reviewers
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.
Acked-by Tony Luck <[email protected]>
Applied, thanks!
Rafael J. Wysocki
AppliedRe: [PATCH v6 1/1] acpi: apei: Enable APEI multiple GHES source to share a single external IRQ
In reply to Borislav PetkovQuoted 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.
Co-authored-by Tuan Phan <[email protected]>Signed-off-by Loc Ho <[email protected]>--- 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
-0drivers/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);Acked-by Borislav Petkov <[email protected]>
Applied, thanks!