summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorRichard Cheng <icheng@nvidia.com>2026-11-02 12:15:59 -0800
committerDave Jiang <dave.jiang@intel.com>2026-11-02 13:43:25 -0700
commitdfa9daea3c005b317120227ddd7507e5ffeee27e (patch)
treea440f39691719744f43950a17cacab315d54e5ee /scripts/Makefile.thinlto
parent88262ac09371e0805751dda40812f1f721cace89 (diff)
downloadlinux-next-dfa9daea3c005b317120227ddd7507e5ffeee27e.tar.gz
linux-next-dfa9daea3c005b317120227ddd7507e5ffeee27e.zip
cxl/region: Calculate peer distance only for reused targets
cxl_switch_port_setup_targets() calculates peer distance before searching the existing targets. When the endpoint needs a new target, the calculated distance is never used. Move cxl_port_peer_distance() into the matching-target branch, immediately before check_last_peer(). This avoids unnecessary ancestor walks and per-port region lookups when adding distinct targets. With cxl_test, the x8 region in cxl-region-sysfs.sh reduces calls to cxl_port_peer_distance() from 10 to 4, and the x2 auto region from 2 to 1. A misordered-endpoint test confirms that peer validation still rejects mismatched peers. Signed-off-by: Richard Cheng <icheng@nvidia.com> Tested-by: Alison Schofield <alison.schofield@intel.com> Signed-off-by: Alison Schofield <alison.schofield@intel.com> Reviewed-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com> Reviewed-by: Li Ming <ming.li@zohomail.com> Link: https://patch.msgid.link/e05b15fed21af3fb7ec2f663ee254df61c06d0e3.1793649898.git.alison.schofield@intel.com Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions