Skip to contentSkip to conversation

Extending EDAC Framework for supporting Non-Memory Issues

DISCUSSION Borislav Petkov 2 participants 3 messages Jun 9, 2023 – Jun 12, 2023 1 message not in the archive EDAC-core

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Borislav Petkov

author maintainer
#1 lore raw

Hello,

Quoted 1 line · Nitesh Gupta (QUIC)

We intend to stimulate safety errors for PCIe using EDAC framework.

What are "safety errors" and what do you mean by "stimulate"?

Quoted 2 lines

Apart from memory errors safety errors also includes errors like transaction timeouts, AER's etc. wrt to PCIe.

So errors reported through AER?

Did you look at Documentation/PCI/pcieaer-howto.rst?

Quoted 3 lines

Modelling these errors on lines of memory error framework would not be a good design. Can we extend the current EDAC framework to stimulate errors other than memory too??

Why is EDAC a good place for those?

Have a look at Documentation/driver-api/edac.rst first.

Thx.

Signature · 4 lines
Regards/Gruss,
    Boris.

https://people.kernel.org/tglx/notes-about-netiquette
#2 lore raw

-----Original Message-----
From: Borislav Petkov <[email protected]>
Sent: Friday, June 9, 2023 7:02 PM
To: Nitesh Gupta (QUIC) <[email protected]>
Cc: Tony Luck <[email protected]>; James Morse <[email protected]>; Mauro Carvalho Chehab <[email protected]>; Robert Richter <[email protected]>; [email protected]; Rama Krishna (QUIC) <[email protected]>; Mrinmay Sarkar (QUIC) <[email protected]>; Shazad Hussain (QUIC) <[email protected]>
Subject: Re: Extending EDAC Framework for supporting Non-Memory Issues

WARNING: This email originated from outside of Qualcomm. Please be wary of any links or attachments, and do not enable macros.

Hello,

Quoted 1 line · Nitesh Gupta (QUIC)

We intend to stimulate safety errors for PCIe using EDAC framework.

>What are "safety errors" and what do you mean by "stimulate"?

Safety Errors are mechanism inbuilt in PCIe controller to detect any anomaly in the functioning of the controller, be it link related or data related or anything and pass this info to a processor which can take actions such as resetting the controller if it’s a fatal issue or handling gracefully if it’s a non-fatal issue.

Quoted 2 lines

Apart from memory errors safety errors also includes errors like transaction timeouts, AER's etc. wrt to PCIe.

>So errors reported through AER?
>Did you look at Documentation/PCI/pcieaer-howto.rst?

Errors are reported through specific interrupts and then interrupt handler can update the sysfs to intimate to userspace entity to act accordingly.

Quoted 3 lines

Modelling these errors on lines of memory error framework would not be a good design. Can we extend the current EDAC framework to stimulate errors other than memory too??

>Why is EDAC a good place for those?
>Have a look at Documentation/driver-api/edac.rst first.

Yeah I went through it and thinking if EDAC block functionality can be extended to design such error reporting features.

Regards,
Nitesh

author maintainer
#3 lore raw
Quoted 7 lines · Nitesh Gupta
Quoted 2 lines

Apart from memory errors safety errors also includes errors like transaction timeouts, AER's etc. wrt to PCIe.

>So errors reported through AER?
>Did you look at Documentation/PCI/pcieaer-howto.rst?

Errors are reported through specific interrupts and then interrupt handler can update the sysfs to intimate to userspace entity to act accordingly.

I don't think you read my mail. Lemme repeat:

"So errors reported through AER?

Did you look at Documentation/PCI/pcieaer-howto.rst?"

Are you saying, this is some homegrown, Qualcomm thing which doesn't use PCI AER?

Signature · 4 lines
Regards/Gruss,
    Boris.

https://people.kernel.org/tglx/notes-about-netiquette