linux/drivers/cxl
Robert Richter 98a863fee2 cxl: Add a dev_dbg() when a decoder was added to a port
Improve debugging by adding and unifying messages whenever a decoder
was added to a port. It is especially useful to get the decoder
mapping of the involved CXL host bridge or PCI device. This avoids a
complex lookup of the decoder/port/device mappings in sysfs.

Example log messages:

  cxl_acpi ACPI0017:00: decoder0.0 added to root0
  cxl_acpi ACPI0017:00: decoder0.1 added to root0
  ...
   pci0000:e0: decoder1.0 added to port1
   pci0000:e0: decoder1.1 added to port1
  ...
  cxl_mem mem0: decoder5.0 added to endpoint5
  cxl_mem mem0: decoder5.1 added to endpoint5

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: Alison Schofield <alison.schofield@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-15-rrichter@amd.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
2025-05-09 09:57:43 -07:00
..
core cxl: Add a dev_dbg() when a decoder was added to a port 2025-05-09 09:57:43 -07:00
acpi.c cxl: Add a dev_dbg() when a decoder was added to a port 2025-05-09 09:57:43 -07:00
cxl.h cxl/region: Factor out code to find a root decoder's region 2025-05-09 09:57:29 -07:00
cxlmem.h Merge branch 'for-6.15/features' into cxl-for-next 2025-03-17 09:22:59 -07:00
cxlpci.h cxl/pci: Support Global Persistent Flush (GPF) 2025-03-14 15:50:22 -07:00
Kconfig cxl for v6.15 2025-04-02 20:04:43 -07:00
Makefile cxl/port: Fix CXL port initialization order when the subsystem is built-in 2024-10-25 16:06:49 -05:00
mem.c cxl: Introduce to_{ram,pmem}_{res,perf}() helpers 2025-02-04 13:48:18 -07:00
pci.c cxl: Fix devm host device for CXL fwctl initialization 2025-04-18 09:33:04 -07:00
pmem.c cxl/pci: Drop the parameter is_port of cxl_gpf_get_dvsec() 2025-04-09 12:48:18 -07:00
pmu.h cxl/pci: Find and register CXL PMU devices 2023-05-30 11:20:35 -07:00
port.c cxl/region: Move find_cxl_root() to cxl_add_to_region() 2025-05-09 09:48:26 -07:00
security.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00