Commit 29f0724
cxl/region: Factor out interleave ways setup
Region creation based on Type3 devices can be triggered from user space
allowing memory combination through interleaving.
In preparation for kernel driven region creation, that is Type2 drivers
triggering region creation backed with its advertised CXL memory, factor
out a common helper from the user-sysfs region setup for interleave ways.
Signed-off-by: Alejandro Lucero <alucerop@amd.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Gregory Price <gourry@gourry.net>
Tested-by: Gregory Price <gourry@gourry.net>
Reviewed-by: Alison Schofield <alison.schofield@intel.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Link: https://patch.msgid.link/20260228173603.1125109-3-alejandro.lucero-palau@amd.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>1 parent 09d065d commit 29f0724
1 file changed
Lines changed: 26 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
485 | 485 | | |
486 | 486 | | |
487 | 487 | | |
488 | | - | |
489 | | - | |
490 | | - | |
| 488 | + | |
491 | 489 | | |
492 | | - | |
493 | 490 | | |
494 | 491 | | |
495 | 492 | | |
496 | | - | |
497 | | - | |
| 493 | + | |
498 | 494 | | |
499 | 495 | | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | 496 | | |
505 | 497 | | |
506 | 498 | | |
| |||
515 | 507 | | |
516 | 508 | | |
517 | 509 | | |
518 | | - | |
519 | | - | |
520 | | - | |
| 510 | + | |
521 | 511 | | |
522 | 512 | | |
523 | 513 | | |
524 | 514 | | |
525 | 515 | | |
526 | 516 | | |
527 | 517 | | |
528 | | - | |
| 518 | + | |
529 | 519 | | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
530 | 542 | | |
531 | | - | |
532 | 543 | | |
533 | 544 | | |
534 | 545 | | |
| |||
0 commit comments