]> git.itanic.dy.fi Git - linux-stable/commit
cxl/port: Scan single-target ports for decoders
authorDan Williams <dan.j.williams@intel.com>
Fri, 14 Apr 2023 18:54:11 +0000 (11:54 -0700)
committerDan Williams <dan.j.williams@intel.com>
Tue, 18 Apr 2023 17:32:47 +0000 (10:32 -0700)
commit7bba261e0aa6e8e5f28a3a3def8338b6512534ee
tree9b5cabe22a5fc7975be438d593a57f8e183b2966
parent104087a8aaf0f46d89376917eca977fad972cc93
cxl/port: Scan single-target ports for decoders

Do not assume that a single-target port falls back to a passthrough
decoder configuration. Scan for decoders and only fallback after probing
that the HDM decoder capability is not present.

One user visible affect of this bug is the inability to enumerate
present CXL regions as the decoder settings for the present decoders are
skipped.

Fixes: d17d0540a0db ("cxl/core/hdm: Add CXL standard decoder enumeration to the core")
Reported-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: http://lore.kernel.org/r/20230227153128.8164-1-Jonathan.Cameron@huawei.com
Cc: <stable@vger.kernel.org>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Alison Schofield <alison.schofield@intel.com>
Link: https://lore.kernel.org/r/168149845130.792294.3210421233937427962.stgit@dwillia2-xfh.jf.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/core/hdm.c
drivers/cxl/port.c