Merge branch 'for-7.4/cxl-misc' into cxl-for-next

cxl/region: Warn on user region position mismatch
This commit is contained in:
Dave Jiang 2026-09-29 15:31:46 -07:00
commit 71392a644e

View File

@ -2217,10 +2217,11 @@ static int cxl_region_attach(struct cxl_region *cxlr,
int test_pos;
test_pos = cxl_calc_interleave_pos(target, &cxlr->hpa_range);
dev_dbg(&target->cxld.dev,
"Test cxl_calc_interleave_pos(): %s test_pos:%d target->pos:%d\n",
(test_pos == target->pos) ? "success" : "fail",
test_pos, target->pos);
if (test_pos != target->pos)
dev_warn(&cxlr->dev,
"%s: position mismatch: calculated:%d assigned:%d\n",
dev_name(&target->cxld.dev), test_pos,
target->pos);
}
return 0;