linux/drivers/cxl/core
Robert Richter b3dc5c735a cxl/region: Add a dev_err() on missing target list entries
[ Upstream commit d90acdf49e ]

Broken target lists are hard to discover as the driver fails at a
later initialization stage. Add an error message for this.

Example log messages:

  cxl_mem mem1: failed to find endpoint6:0000:e0:01.3 in target list of decoder1.1
  cxl_port endpoint6: failed to register decoder6.0: -6
  cxl_port endpoint6: probe: 0

Signed-off-by: Robert Richter <rrichter@amd.com>
Reviewed-by: Gregory Price <gourry@gourry.net>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Reviewed-by: Alison Schofield <alison.schofield@intel.com>
Reviewed-by: "Fabio M. De Francesco" <fabio.m.de.francesco@linux.intel.com>
Tested-by: Gregory Price <gourry@gourry.net>
Acked-by: Dan Williams <dan.j.williams@intel.com>
Link: https://patch.msgid.link/20250509150700.2817697-14-rrichter@amd.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-07-06 11:01:32 +02:00
..
cdat.c cxl/core: Return error when cxl_endpoint_gather_bandwidth() handles a non-PCI device 2024-10-24 16:05:52 -05:00
core.h cxl: Calculate region bandwidth of targets with shared upstream link 2024-09-22 21:05:16 -07:00
hdm.c cxl/port: Fix use-after-free, permit out-of-order decoder shutdown 2024-10-25 16:07:03 -05:00
Makefile cxl: Add callback to parse the DSMAS subtables from CDAT 2023-12-22 14:33:10 -08:00
mbox.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
memdev.c cxl: Convert cxl_internal_send_cmd() to use 'struct cxl_mailbox' as input 2024-09-12 08:39:10 -07:00
pci.c cxl: Calculate region bandwidth of targets with shared upstream link 2024-09-22 21:05:16 -07:00
pmem.c cxl/mem: Fix no cxl_nvd during pmem region auto-assembling 2024-06-18 16:56:50 -07:00
pmu.c cxl/pmu: Ensure put_device on pmu devices 2023-12-14 21:54:45 -08:00
port.c cxl/port: Fix cxl_bus_rescan() vs bus_rescan_devices() 2024-10-25 16:07:03 -05:00
region.c cxl/region: Add a dev_err() on missing target list entries 2025-07-06 11:01:32 +02:00
regs.c cxl/core/regs.c: Skip Memory Space Enable check for RCD and RCH Ports 2025-05-02 07:59:08 +02:00
suspend.c PM: CXL: Disable suspend 2022-04-22 16:09:42 -07:00
trace.c cxl/region: Move cxl_trace_hpa() work to the region driver 2024-04-30 12:24:42 -07:00
trace.h cxl/events: Fix Trace DRAM Event Record 2024-10-25 11:23:26 -05:00