diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2023-11-21 19:36:37 +0100 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2023-12-05 17:56:39 +0100 |
commit | 286ae88c9e40b261d7860b367c36346434ffeaa3 (patch) | |
tree | 00944c7044ca6616520ee702456c23c4f1e8f0c1 /arch/x86/pci/acpi.c | |
parent | x86/pci: Reword ECAM EfiMemoryMappedIO logging to avoid 'reserved' (diff) | |
download | linux-286ae88c9e40b261d7860b367c36346434ffeaa3.tar.xz linux-286ae88c9e40b261d7860b367c36346434ffeaa3.zip |
x86/pci: Add MCFG debug logging
MCFG handling is a frequent source of problems. Add more logging to aid in
debugging.
Enable the logging with CONFIG_DYNAMIC_DEBUG=y and the kernel boot
parameter 'dyndbg="file arch/x86/pci +p"'.
Link: https://lore.kernel.org/r/20231121183643.249006-4-helgaas@kernel.org
Tested-by: Tomasz Pala <gotar@polanet.pl>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'arch/x86/pci/acpi.c')
-rw-r--r-- | arch/x86/pci/acpi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/pci/acpi.c b/arch/x86/pci/acpi.c index ea2eb2ec90e2..55c4b07ec1f6 100644 --- a/arch/x86/pci/acpi.c +++ b/arch/x86/pci/acpi.c @@ -283,6 +283,9 @@ static int setup_mcfg_map(struct acpi_pci_root_info *ci) info->mcfg_added = false; seg = info->sd.domain; + dev_dbg(dev, "%s(%04x %pR ECAM %pa)\n", __func__, seg, + &root->secondary, &root->mcfg_addr); + /* return success if MMCFG is not in use */ if (raw_pci_ext_ops && raw_pci_ext_ops != &pci_mmcfg) return 0; |