Thread (89 messages) 89 messages, 6 authors, 2025-01-22

Re: [PATCH v9 04/27] cxl/pci: add check for validating capabilities

flat view

From: Jonathan Cameron <hidden>
Date: 2025-01-02 14:38:17
Also in: linux-cxl

On Mon, 30 Dec 2024 21:44:22 +0000
alejandro.lucero-palau@amd.com wrote:
From: Alejandro Lucero <redacted>

During CXL device initialization supported capabilities by the device
are discovered. Type3 and Type2 devices have different mandatory
capabilities and a Type2 expects a specific set including optional
capabilities.

Add a function for checking expected capabilities against those found
during initialization and allow those mandatory/expected capabilities to
be a subset of the capabilities found.

Rely on this function for validating capabilities instead of when CXL
regs are probed.

Signed-off-by: Alejandro Lucero <redacted>
Reviewed-by: Zhi Wang <zhiw@nvidia.com>
Reviewed-by: Jonathan Cameron <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help