diff options
| author | Alison Schofield <alison.schofield@intel.com> | 2026-07-13 19:04:35 -0700 |
|---|---|---|
| committer | Dave Jiang <dave.jiang@intel.com> | 2026-07-14 09:03:36 -0700 |
| commit | a623128bc2a1c257cbad97d0582f355fbe7be927 (patch) | |
| tree | b3f842b183c202da7a6f154da0593c071f6579d8 /tools/lib/python | |
| parent | 77b814c1832fde018c30357b4ec3fcdaa91a1c10 (diff) | |
| download | linux-a623128bc2a1c257cbad97d0582f355fbe7be927.tar.gz linux-a623128bc2a1c257cbad97d0582f355fbe7be927.zip | |
cxl/port: Restart port enumeration when a sibling adds the dport first
Endpoint probes can race while enumerating a shared switch. If a
sibling probe adds the dport first, the losing probe finds the dport
already present, gets -EBUSY, and fails to enumerate the endpoint.
Treat this race the same as the existing port-created case by
restarting the port walk, allowing it to find the existing dport
and continue enumeration.
This race was discovered while testing a cxl_test mixed-granularity
topology, where twelve endpoints behind shared switches are probed in
parallel during module load.
Fixes: 4f06d81e7c6a ("cxl: Defer dport allocation for switch ports")
Signed-off-by: Alison Schofield <alison.schofield@intel.com>
Tested-by: Li Ming <ming.li@zohomail.com>
Reviewed-by: Li Ming <ming.li@zohomail.com>
Link: https://patch.msgid.link/20260714020438.1822669-1-alison.schofield@intel.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
