cxl/acpi: Improve debug messages in cxl_acpi_probe()
authorRobert Richter <rrichter@amd.com>
Tue, 18 Oct 2022 13:23:33 +0000 (15:23 +0200)
committerDan Williams <dan.j.williams@intel.com>
Mon, 14 Nov 2022 20:11:27 +0000 (12:11 -0800)
commitb51d76752120a267397276121619fca80f767e62
treed657da228b2e32125c9d352faa439f03c86c83c2
parent76f191108419424fef1bb713d8d160c3b49bedc4
cxl/acpi: Improve debug messages in cxl_acpi_probe()

In cxl_acpi_probe() the iterator bus_for_each_dev() walks through all
CXL hosts. Since all dev_*() debug messages point to the ACPI0017
device which is the CXL root for all hosts, the device information is
pointless as it is always the same device. Change this to use the host
device for this instead.

Also, add additional host specific information such as CXL support,
UID and CHBCR.

This is an example log:

 acpi ACPI0016:00: UID found: 4
 acpi ACPI0016:00: CHBCR found: 0x28090000000
 acpi ACPI0016:00: dport added to root0
 acpi ACPI0016:00: host-bridge: ACPI0016:00
  pci0000:7f: host supports CXL

Signed-off-by: Robert Richter <rrichter@amd.com>
Link: https://lore.kernel.org/r/20221018132341.76259-6-rrichter@amd.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/acpi.c