cxl/hdm: Track next decoder to allocate
authorDan Williams <dan.j.williams@intel.com>
Tue, 24 May 2022 19:04:58 +0000 (12:04 -0700)
committerDan Williams <dan.j.williams@intel.com>
Fri, 22 Jul 2022 00:19:23 +0000 (17:19 -0700)
commit0c33b3935265cd5aafa18904363bab0c545adeee
tree71c79965e07a1ccec583a3e52b4c66067ce2a539
parent2c8669033f16f5d791e10a5bdd42e39c7380da57
cxl/hdm: Track next decoder to allocate

The CXL specification enforces that endpoint decoders are committed in
hw instance id order. In preparation for adding dynamic DPA allocation,
record the hw instance id in endpoint decoders, and enforce allocations
to occur in hw instance id order.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/165784328827.1758207.9627538529944559954.stgit@dwillia2-xfh.jf.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/core/hdm.c
drivers/cxl/core/port.c
drivers/cxl/cxl.h