acpi: apei: call into AER handling regardless of severity
PATCH 1/1 acpi: apei: call into AER handling regardless of severity
Currently the GHES code only calls into the AER driver for recoverable type errors. This is incorrect because errors of other severities do not get logged by the AER driver and do not get exposed to user space via the AER trace event. So, call into the AER driver for PCIe errors regardless of the severity.
--- drivers/acpi/apei/ghes.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/acpi/apei/ghes.c +1 -3
@@ -489,9 +489,7 @@ static void ghes_do_proc(struct ghes *ghes,else if (guid_equal (sec_type, &CPER_SEC_PCIE )) {struct cper_sec_pcie *pcie_err =acpi_hest_get_payload (gdata); -if (sev ==GHES_SEV_RECOVERABLE && - sec_sev ==GHES_SEV_RECOVERABLE && - pcie_err->validation_bits &CPER_PCIE_VALID_DEVICE_ID && +if (pcie_err->validation_bits &CPER_PCIE_VALID_DEVICE_ID && pcie_err->validation_bits &CPER_PCIE_VALID_AER_INFO ) {unsigned int devfn;int aer_severity;
Signature · 3 lines
Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.
Quoted 7 lines · CEST Tyler Baicar
Currently the GHES code only calls into the AER driver for recoverable type errors. This is incorrect because errors of other severities do not get logged by the AER driver and do not get exposed to user space via the AER trace event. So, call into the AER driver for PCIe errors regardless of the severity.
Signed-off-by Tyler Baicar <[email protected]>
Boris?
Quoted 20 lines
--- drivers/acpi/apei/ghes.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)drivers/acpi/apei/ghes.c +1
-3@@ -489,9 +489,7 @@ static void ghes_do_proc(struct ghes *ghes,else if (guid_equal (sec_type, &CPER_SEC_PCIE )) {struct cper_sec_pcie *pcie_err =acpi_hest_get_payload (gdata); -if (sev ==GHES_SEV_RECOVERABLE && - sec_sev ==GHES_SEV_RECOVERABLE && - pcie_err->validation_bits &CPER_PCIE_VALID_DEVICE_ID && +if (pcie_err->validation_bits &CPER_PCIE_VALID_DEVICE_ID && pcie_err->validation_bits &CPER_PCIE_VALID_AER_INFO ) {unsigned int devfn;int aer_severity;
Quoted 16 lines · Tyler Baicar
Currently the GHES code only calls into the AER driver for recoverable type errors. This is incorrect because errors of other severities do not get logged by the AER driver and do not get exposed to user space via the AER trace event. So, call into the AER driver for PCIe errors regardless of the severity.
Signed-off-by Tyler Baicar <[email protected]>--- drivers/acpi/apei/ghes.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)drivers/acpi/apei/ghes.c +0
-0
drivers/acpi/apei/ghes.c static void ghes_do_proc(struct ghes *ghes, · line 493
Quoted 5 lines
drivers/acpi/apei/ghes.c +0
-2@@ -489,9 +489,7 @@ static void ghes_do_proc(struct ghes *ghes,else if (guid_equal (sec_type, &CPER_SEC_PCIE )) {struct cper_sec_pcie *pcie_err =acpi_hest_get_payload (gdata); - if (sev == GHES_SEV_RECOVERABLE && - sec_sev == GHES_SEV_RECOVERABLE &&
Did you make the effort to see which commit added those lines and read its commit message?
Doesn't look like it...
Signature · 5 lines
Regards/Gruss,
Boris.
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
-- Quoted 20 lines · Borislav Petkov
Quoted 19 lines · Tyler Baicar
Currently the GHES code only calls into the AER driver for recoverable type errors. This is incorrect because errors of other severities do not get logged by the AER driver and do not get exposed to user space via the AER trace event. So, call into the AER driver for PCIe errors regardless of the severity.
Signed-off-by Tyler Baicar <[email protected]>--- drivers/acpi/apei/ghes.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)drivers/acpi/apei/ghes.c +0
-0@@ -489,9 +489,7 @@ static void ghes_do_proc(struct ghes *ghes,else if (guid_equal (sec_type, &CPER_SEC_PCIE )) {struct cper_sec_pcie *pcie_err =acpi_hest_get_payload (gdata);
Quoted 6 lines
drivers/acpi/apei/ghes.c static void ghes_do_proc(struct ghes *ghes, · line 493
Quoted 2 lines
drivers/acpi/apei/ghes.c +0
-2- if (sev == GHES_SEV_RECOVERABLE && - sec_sev == GHES_SEV_RECOVERABLE &&Did you make the effort to see which commit added those lines and read its commit message?
Doesn't look like it...
Hello Boris,
Here is that commit text:
"ACPI, APEI, GHES: Add PCIe AER recovery support
aer_recover_queue() is called when recoverable PCIe AER errors are notified by firmware to do the recovery work."
The function with the real bulk of the code we need here is aer_recover_work_func() which calls into cper_print_aer() and do_recovery(). The do_recovery() function is the only function that should be specific to recoverable errors. We need cper_print_aer() to handle printing of AER specific information and to trigger the aer_event to notify user space. Otherwise tools such as RAS Daemon will not be notified of correctable type PCIe errors. You can clearly see by looking at cper_print_aer() that it expects to be called with correctable errors as well. To avoid calling the do_recovery() function for correctable errors I created https://patchwork.kernel.org/patch/9925877/
The AER core framework for non-FF systems prints all the AER error information for all errors and then only calls do_recovery() for non-correctable errors. See aer_process_err_devices() and handle_error_source().
Thanks,
Tyler
Signature · 3 lines
Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.
Quoted 3 lines · Tyler
To avoid calling the
do_recovery()function for correctable errors I created
https://patchwork.kernel.org/patch/9925877/
enum {
GHES_SEV_NO = 0x0,
GHES_SEV_CORRECTED = 0x1,
GHES_SEV_RECOVERABLE = 0x2,
GHES_SEV_PANIC = 0x3,
};Quoted 1 line
From all those severity types above, you want to do recovery for
GHES_SEV_RECOVERABLE but print *all* severities. Yes? I mean, this is what makes most sense: you want to dump all errors but try to recover from those from which you *actually* have the possibility to do so.
Looking at the severities conversion, GHES_SEV_RECOVERABLE is CPER_SEV_RECOVERABLE. cper_severity_to_aer() converts then CPER_SEV_RECOVERABLE to AER_NONFATAL.
[ Btw, this is the dumbest sh*t ever. Three different severities!!!
Looks like someone has won a contest of how to design something as needlessly complex as possible. ]
So it looks to me like you want to do rather:
if (entry.severity == AER_NONFATAL) do_recovery(pdev, entry.severity);
which should correspond to the GHES_SEV_RECOVERABLE. And this would be the straight-forward thing and that would be fine but...
... that is still not 100% equivalent because the check is:
if (sev == GHES_SEV_RECOVERABLE && sec_sev == GHES_SEV_RECOVERABLE...
so there's the severity of the estatus block and then the severity of each section successively.
And I have no idea why we're doing this.
Because if we have to keep this, then the above simplification won't work and you'll have to pass in a separate argument to aer_recover_queue():
aer_recover_queue( ..., sev == GHES_SEV_RECOVERABLE && sec_sev == GHES_SEV_RECOVERABLE, ...
which, if true, would mean, do recovery.
So let's find out first why do we have to look at both severities.
Tony, any ideas?
Signature · 5 lines
Regards/Gruss,
Boris.
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
-- +linux-pci
Quoted 2 lines · Borislav Petkov
if (entry.severity ==
AER_NONFATAL)do_recovery(pdev, entry.severity);
Providing input from PCI perspective only:
PCIe defines the the following error categories:
1. Correctable error
2. Uncorrectable non-fatal errors
3. Uncorrectable fatal errors
The do_recovery function needs to be called for both uncorrectable error categories. (#2 and #3 above)
How these map to GHES error categories is out of know-how.
Below are references to some of the PCIe error docs:
https://www.kernel.org/doc/Documentation/PCI/pcieaer-howto.txt
https://www.kernel.org/doc/Documentation/PCI/pci-error-recovery.txt
Signature · 3 lines
Sinan Kaya Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.
Quoted 2 lines · Sinan Kaya
The
do_recoveryfunction needs to be called for both uncorrectable error categories. (#2 and #3 above)
Care to share why exactly that needs to happen?
Because I'm reading this in pcieaer-howto.txt:
"If an error message indicates a non-fatal error, performing link reset at upstream is not required."
and
"If an error message indicates a fatal error, kernel will broadcast error_detected(dev, pci_channel_io_frozen) to all drivers within a hierarchy in question. Then, performing link reset at upstream is necessary."
Now, pci-error-recovery.txt has link reset as step 3 so I'm assuming recovery means link reset. And thus, non-fatal AER errors are not required to do recovery but fatal are.
Quoted 1 line
How these map to GHES error categories is out of know-how.
case CPER_SEV_INFORMATIONAL:
return GHES_SEV_NO;
case CPER_SEV_CORRECTED:
return GHES_SEV_CORRECTED;
case CPER_SEV_RECOVERABLE:
return GHES_SEV_RECOVERABLE;
case CPER_SEV_FATAL:
return GHES_SEV_PANIC;and
case CPER_SEV_RECOVERABLE:
return AER_NONFATAL;
case CPER_SEV_FATAL:
return AER_FATAL;
default:
return AER_CORRECTABLE;So I see GHES_SEV_RECOVERABLE -> CPER_SEV_RECOVERABLE -> AER_NONFATAL.
Which means, we've never done error recovery for AER_FATAL errors. Which we should've been doing in the first place! Unless...
... Error recovery for those fatal errors has been happening down the other, PCI path:
aer_isr->aer_isr_one_error->...->do_recovery()
Which then makes me look at this contraption in the ghes code:
config ACPI_APEI_PCIEAER
bool "APEI PCIe AER logging/recovering support" depends on ACPI_APEI && PCIEAER
help
PCIe AER errors may be reported via APEI firmware first mode. Turn on this option to enable the corresponding support.
So this says "may be" reported.
Now the question is, what kind of errors are being reported through here and what exactly are we expected to do about them? Print them? Or do more?
Hmmm.
Signature · 5 lines
Regards/Gruss,
Boris.
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
-- Quoted 5 lines · Borislav Petkov
Quoted 2 lines · Sinan Kaya
The
do_recoveryfunction needs to be called for both uncorrectable error categories. (#2 and #3 above)Care to share why exactly that needs to happen?
Let me try below:
Quoted 6 lines
Because I'm reading this in pcieaer-howto.txt:
"If an error message indicates a non-fatal error, performing link reset at upstream is not required."
Link reset is not the only recovery mechanism. In the case
of nonfatal errors, it is assumed that the endpoint CSR is still reachable. Error is propagated the PCIe endpoint driver. Endpoint driver does a re-initialization, we are back in business.
Quoted 10 lines
and
"If an error message indicates a fatal error, kernel will broadcast
error_detected(dev, pci_channel_io_frozen)to all drivers within a hierarchy in question. Then, performing link reset at upstream is necessary."Now, pci-error-recovery.txt has link reset as step 3 so I'm assuming recovery means link reset. And thus, non-fatal AER errors are not required to do recovery but fatal are.
Nope, link reset is the second approach. Endpoint recovery won't happen if the endpoint CSRs are unreachable. We have to recover the link by doing a link reset in this case.
Therefore, different behavior in do_recovery function based on the severity of the error.
Quoted 12 lines
Quoted 2 lines
How these map to GHES error categories is out of know-how.
case CPER_SEV_INFORMATIONAL: return GHES_SEV_NO; case CPER_SEV_CORRECTED: return GHES_SEV_CORRECTED; case CPER_SEV_RECOVERABLE: return GHES_SEV_RECOVERABLE; case CPER_SEV_FATAL: return GHES_SEV_PANIC;
Quoted 9 lines
and
case CPER_SEV_RECOVERABLE: return AER_NONFATAL; case CPER_SEV_FATAL: return AER_FATAL; default: return AER_CORRECTABLE;
Thanks for the mapping.
Quoted 4 lines
So I see
GHES_SEV_RECOVERABLE->CPER_SEV_RECOVERABLE->AER_NONFATAL.Which means, we've never done error recovery for
AER_FATALerrors. Which we should've been doing in the first place! Unless...
That's not true. The GHES code is changing the severity here before posting to the AER driver in ghes_do_proc().
if (gdata->flags & CPER_SEC_RESET) aer_severity = AER_FATAL;
A PCIe error could be AER_FATAL but it is recoverable. It does not need to crash the system.
Here is another mapping below based on my understanding.
GHES_SEV_RECOVERABLE -> CPER_SEV_RECOVERABLE -> CPER_SEC_RESET-> AER_FATAL
Quoted 5 lines
... Error recovery for those fatal errors has been happening down the other, PCI path:
aer_isr->aer_isr_one_error->...->do_recovery()
No, AER ISR is not set up if firmware first is enabled.
Quoted 10 lines
Which then makes me look at this contraption in the ghes code:
config
ACPI_APEI_PCIEAER
bool "APEI PCIe AER logging/recovering support" depends onACPI_APEI&& PCIEAER
help
PCIe AER errors may be reported via APEI firmware first mode. Turn on this option to enable the corresponding support.
Quoted 5 lines
So this says "may be" reported.
Now the question is, what kind of errors are being reported through here and what exactly are we expected to do about them? Print them? Or do more?
The behavior should match non firmware-first case ideally.
1. Print all correctable errors.
2. Go to do_recovery for all uncorrectable errors including fatal and non-fatal.
This is also what AER driver does in the absence of firmware first via handle_error_source().
Quoted 3 lines
Hmmm.
Signature · 3 lines
Sinan Kaya Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.
Quoted 4 lines · Sinan Kaya
Link reset is not the only recovery mechanism. In the case of nonfatal errors, it is assumed that the endpoint CSR is still reachable. Error is propagated the PCIe endpoint driver. Endpoint driver does a re-initialization, we are back in business.
I'm assuming that's broadcast_error_message()'s job.
Quoted 5 lines
That's not true. The GHES code is changing the severity here before posting to the AER driver in
ghes_do_proc().if (gdata->flags & CPER_SEC_RESET) aer_severity = AER_FATAL;
You're missing the point that we would walk into that if branch *only* for
if (sev == GHES_SEV_RECOVERABLE &&
sec_sev == GHES_SEV_RECOVERABLEseverities. So if you have an AER_FATAL error but ghes severities are not GHES_SEV_RECOVERABLE, nothing happens.
Quoted 1 line
No, AER ISR is not set up if firmware first is enabled.
So then this is a major suckage. We do AER recovery on FF systems only for GHES_SEV_RECOVERABLE severity.
Quoted 8 lines
The behavior should match non firmware-first case ideally.
1. Print all correctable errors.
2. Go todo_recoveryfor all uncorrectable errors including fatal and non-fatal.This is also what AER driver does in the absence of firmware first via
handle_error_source().
Yes, that makes sense.
Which would mean that we'd call aer_recover_queue() regardless of GHES severity but we'd do recovery only if GHES_SEV_RECOVERABLE is set or CPER_SEC_RESET. I.e., we can communicate all that by setting the correct AER severity before calling aer_recover_queue(). And then call do_recovery() based on AER severity.
Hmmm?
Signature · 5 lines
Regards/Gruss,
Boris.
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
-- Quoted 8 lines · Borislav Petkov
Quoted 4 lines · Sinan Kaya
Link reset is not the only recovery mechanism. In the case of nonfatal errors, it is assumed that the endpoint CSR is still reachable. Error is propagated the PCIe endpoint driver. Endpoint driver does a re-initialization, we are back in business.
I'm assuming that's broadcast_error_message()'s job.
That's right. Each driver provides an err_handler hook. broadcast function calls these.
static struct pci_driver e1000_driver = {
..
.err_handler = &e1000_err_handler
};struct pci_error_handlers {
...
pci_ers_result_t (*error_detected)(struct pci_dev *dev,
enum pci_channel_state error);
}Quoted 6 lines
Quoted 5 lines
That's not true. The GHES code is changing the severity here before posting to the AER driver in
ghes_do_proc().if (gdata->flags & CPER_SEC_RESET) aer_severity = AER_FATAL;
Quoted 7 lines
You're missing the point that we would walk into that if branch *only* for
if (sev == GHES_SEV_RECOVERABLE && sec_sev == GHES_SEV_RECOVERABLEseverities. So if you have an
AER_FATALerror but ghes severities are notGHES_SEV_RECOVERABLE, nothing happens.
I see. We should probably try to do something only if GHES_SEV_CORRECTED or GHES_SEV_RECOVERABLE.
If somebody wants to crash the system with GHES_SEV_PANIC, there is no point in doing additional work.
Quoted 17 lines
Quoted 2 lines
No, AER ISR is not set up if firmware first is enabled.
So then this is a major suckage. We do AER recovery on FF systems only for
GHES_SEV_RECOVERABLEseverity.Quoted 8 lines
The behavior should match non firmware-first case ideally.
1. Print all correctable errors.
2. Go todo_recoveryfor all uncorrectable errors including fatal and non-fatal.This is also what AER driver does in the absence of firmware first via
handle_error_source().Yes, that makes sense.
Quoted 8 lines
Which would mean that we'd call
aer_recover_queue()regardless of GHES severity but we'd do recovery only ifGHES_SEV_RECOVERABLEis set orCPER_SEC_RESET. I.e., we can communicate all that by setting the correct AER severity before callingaer_recover_queue(). And then calldo_recovery()based on AER severity.Hmmm?
Sounds good. Do you still want to do PCIe recovery in the case of GHES_SEV_PANIC or if some FW returns GHES_SEV_NO?
Signature · 3 lines
Sinan Kaya Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.
Quoted 33 lines · Sinan Kaya
Quoted 7 lines · Borislav Petkov
Quoted 4 lines · Sinan Kaya
Link reset is not the only recovery mechanism. In the case of nonfatal errors, it is assumed that the endpoint CSR is still reachable. Error is propagated the PCIe endpoint driver. Endpoint driver does a re-initialization, we are back in business.
I'm assuming that's broadcast_error_message()'s job.
That's right. Each driver provides an
err_handlerhook. broadcast function calls these.static struct pci_driver e1000_driver = { .. .err_handler = &e1000_err_handler };struct pci_error_handlers { ... pci_ers_result_t (*error_detected)(struct pci_dev *dev, enum pci_channel_state error); }Quoted 10 lines
Quoted 5 lines
That's not true. The GHES code is changing the severity here before posting to the AER driver in
ghes_do_proc().if (gdata->flags & CPER_SEC_RESET) aer_severity = AER_FATAL;You're missing the point that we would walk into that if branch *only* for
if (sev == GHES_SEV_RECOVERABLE && sec_sev == GHES_SEV_RECOVERABLE
Quoted 7 lines
Quoted 2 lines
severities. So if you have an
AER_FATALerror but ghes severities are notGHES_SEV_RECOVERABLE, nothing happens.I see. We should probably try to do something only if
GHES_SEV_CORRECTEDorGHES_SEV_RECOVERABLE.If somebody wants to crash the system with
GHES_SEV_PANIC, there is no point in doing additional work.
See below.
Quoted 20 lines
Quoted 20 lines
Quoted 1 line
No, AER ISR is not set up if firmware first is enabled.
So then this is a major suckage. We do AER recovery on FF systems only for
GHES_SEV_RECOVERABLEseverity.Quoted 8 lines
The behavior should match non firmware-first case ideally.
1. Print all correctable errors.
2. Go todo_recoveryfor all uncorrectable errors including fatal and non-fatal.This is also what AER driver does in the absence of firmware first via
handle_error_source().Yes, that makes sense.
Which would mean that we'd call
aer_recover_queue()regardless of GHES severity but we'd do recovery only ifGHES_SEV_RECOVERABLEis set orCPER_SEC_RESET. I.e., we can communicate all that by setting the correct AER severity before callingaer_recover_queue(). And then calldo_recovery()based on AER severity.
Quoted 5 lines
Quoted 2 lines
Hmmm?
Sounds good. Do you still want to do PCIe recovery in the case of
GHES_SEV_PANICor if some FW returnsGHES_SEV_NO?
We do not need to worry about the GHES_SEV_PANIC case. Those get sent to __ghes_panic() in ghes_proc() without even making it to ghes_do_proc(). Those errors are just printed and then the kernel panics.
I think with my two patches we will have the desired functionality:
GHES_SEV_CORRECTABLE -> AER_CORRECTABLE -> Print AER info, but do not call do_recovery
GHES_SEV_RECOVERABLE -> AER_NONFATAL -> Print AER info and do_recovery
GHES_RECOVERABLE and CPER_SEC_RESET -> AER_FATAL -> Print AER info and do_recover
Thanks,
Tyler
Signature · 3 lines
Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.
Quoted 9 lines · Tyler
I think with my two patches we will have the desired functionality:
GHES_SEV_CORRECTABLE->AER_CORRECTABLE-> Print AER info, but do not calldo_recovery
GHES_SEV_RECOVERABLE->AER_NONFATAL-> Print AER info anddo_recovery
GHES_RECOVERABLEandCPER_SEC_RESET->AER_FATAL-> Print AER info anddo_recover
Right, so I'd like to you create a separate function ghes_do_proc_aer() or ghes_handle_aer() or so and carve out all the code inside #ifdef CONFIG_ACPI_APEI_PCIEAER into it, add your two changes to the patch and slap a big fat comment above the new function explaining *why* we're doing what we're doing and how we're mapping all the severities to AER severity in order to do recovery and/or only to print the error.
So that it is known and people can see in the future why we're doing this and what the logic has been and what kind of policy we're chasing and so on and so on...
Ok?
Thanks.
Signature · 5 lines
Regards/Gruss,
Boris.
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
-- Quoted 17 lines · Borislav Petkov
Quoted 9 lines · Tyler
I think with my two patches we will have the desired functionality:
GHES_SEV_CORRECTABLE->AER_CORRECTABLE-> Print AER info, but do not calldo_recovery
GHES_SEV_RECOVERABLE->AER_NONFATAL-> Print AER info anddo_recovery
GHES_RECOVERABLEandCPER_SEC_RESET->AER_FATAL-> Print AER info anddo_recoverRight, so I'd like to you create a separate function
ghes_do_proc_aer()orghes_handle_aer()or so and carve out all the code inside #ifdefCONFIG_ACPI_APEI_PCIEAERinto it, add your two changes to the patch and slap a big fat comment above the new function explaining *why* we're doing what we're doing and how we're mapping all the severities to AER severity in order to do recovery and/or only to print the error.
Quoted 7 lines
So that it is known and people can see in the future why we're doing this and what the logic has been and what kind of policy we're chasing and so on and so on...
Ok?
Thanks.
Yes, I can do that.
Thanks,
Tyler
Signature · 3 lines
Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.
Quoted 5 lines · Sinan Kaya
I see. We should probably try to do something only if
GHES_SEV_CORRECTEDorGHES_SEV_RECOVERABLE.If somebody wants to crash the system with
GHES_SEV_PANIC, there is no point in doing additional work.
Makes sense.
Whatever we do, I'd like to have this all nicely documented *why* we're doing the recovery policy we're doing.
Quoted 2 lines
Sounds good. Do you still want to do PCIe recovery in the case of
GHES_SEV_PANICor if some FW returnsGHES_SEV_NO?
So I read GHES_SEV_PANIC as: we should panic and stop any processing whatsoever ASAP in order to avoid further error propagation. So doing recovery there might *actually* be a bad idea.
GHES_SEV_NO would map to AER_CORRECTABLE and I think that would mean, print the error to let the user know but no need to recover because no harm was done.
I *think*.
Signature · 5 lines
Regards/Gruss,
Boris.
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
-- Luck, Tony
reviewerQuoted 3 lines
So let's find out first why do we have to look at both severities.
Tony, any ideas?
Sorry, no ideas. I haven't tried to dig through this mess to take action ... just skimmed through the code a while back when we were just logging the errors.
-Tony