cxl/hdm: Add emulation when HDM decoders are not committed
authorDave Jiang <dave.jiang@intel.com>
Tue, 14 Feb 2023 19:41:35 +0000 (11:41 -0800)
committerDan Williams <dan.j.williams@intel.com>
Tue, 14 Feb 2023 23:45:21 +0000 (15:45 -0800)
commitd7a2153762c7369534c432ac7e86996063e246df
tree7ebad533e83f5218ebadcc7b66259b44f3a83f3d
parent4474ce565ee4490fb4e6d8443b617a9d98ae10ff
cxl/hdm: Add emulation when HDM decoders are not committed

For the case where DVSEC range register(s) are active and HDM decoders are
not committed, use RR to provide emulation. A first pass is done to note
whether any decoders are committed. If there are no committed endpoint
decoders, then DVSEC ranges will be used for emulation.

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