cxl/hdm: Require all decoders to be enumerated
authorBen Widawsky <bwidawsk@kernel.org>
Wed, 13 Apr 2022 05:18:09 +0000 (22:18 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sun, 10 Jul 2022 02:45:32 +0000 (19:45 -0700)
commit14e473e1a7a97d1188f7fabd87c452b44f9801af
tree723e791596a769a823209790e66f3fb52efe9b89
parentd3b75029f353c64e1e0e45ba5083cf8679d17f0a
cxl/hdm: Require all decoders to be enumerated

In preparation for region provisioning all device decoders need to be
enumerated since DPA allocations are calculated by summing the
capacities of all decoders in a set. I.e. the programming for decoder[N]
depends on the state of decoder[N-1], so skipping over decoders that
fail to initialize prevents accurate DPA accounting.

Signed-off-by: Ben Widawsky <bwidawsk@kernel.org>
[djbw: reword changelog]
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/165603879664.551046.6863805202478861026.stgit@dwillia2-xfh
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/core/hdm.c