Thread (12 messages) 12 messages, 6 authors, 2023-04-18

Re: [PATCH v3 6/6] PCI/AER: Unmask RCEC internal errors to enable RCH downstream port error handling

From: Robert Richter <hidden>
Date: 2023-04-14 11:58:38
Also in: linux-cxl, linux-pci, lkml

On 13.04.23 18:05:08, Jonathan Cameron wrote:
On Thu, 13 Apr 2023 15:38:07 +0200
Robert Richter [off-list ref] wrote:
quoted
On 12.04.23 16:29:01, Bjorn Helgaas wrote:
quoted
On Tue, Apr 11, 2023 at 01:03:02PM -0500, Terry Bowman wrote:  
quoted
quoted
With the exception of this function, this patch looks like all CXL
code that maybe could be with other CXL code.  Would require making
pcie_walk_rcec() available outside drivers/pci, I guess.  
Even this is CXL code, it implements AER support and fits better here
around AER code. Export of pcie_walk_rcec() (and others?) is not the
main issue here. CXL drivers can come as modules and would need to
register a hook at the aer handler.  This would add even more
complexity here. In contrast, current solution just adds two functions
for enablement and handling which are empty stubs if code is disabled.

I could move that code to aer_cxl.c similar to aer_inject.c. Since the
CXL part is small compared to the remaining aer code I left it in
aer.c. Also, it is guarded by #ifdef which additionally encapsulates
it.
To throw another option in there (what Bjorn suggested IIRC for the more
general case..) 

Just enable internal errors always.  No need to know if they are CXL
or something else.

There will/might be fallout and it will be fun.
I left the fun part to others. :-)

If some PCI root port goes crazy it tears down the whole system, would
avoid that.

Since internal error are implementation specific, I would only enable
them once a handler exists. What's why enablement is limited to CXL
RCECs only.

-Robert
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help