From 87fa1d07b57a8087da031e3db72695f0547db0c9 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Thu, 21 Mar 2024 22:24:26 +0100 Subject: vc/amd/opensil/genoa_poc/mpio: add debug output for unused chip Print that the MPIO chip of one of the MPIO-related PCI device functions is unused and is skipped, if the type is IFTYPE_UNUSED and the corresponding PCI device function isn't enabled. This allows to differentiate between this case and the case where the type isn't IFTYPE_UNUSED. Signed-off-by: Felix Held Change-Id: I4fc28d39a229494b487b300b28f92bf3adad66f5 Reviewed-on: https://review.coreboot.org/c/coreboot/+/81384 Tested-by: build bot (Jenkins) Reviewed-by: Varshit Pandya Reviewed-by: Arthur Heymans --- src/vendorcode/amd/opensil/genoa_poc/mpio/chip.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vendorcode/amd/opensil/genoa_poc/mpio/chip.c b/src/vendorcode/amd/opensil/genoa_poc/mpio/chip.c index d79e917bb6..089096f8c4 100644 --- a/src/vendorcode/amd/opensil/genoa_poc/mpio/chip.c +++ b/src/vendorcode/amd/opensil/genoa_poc/mpio/chip.c @@ -138,6 +138,8 @@ static void per_device_config(MPIOCLASS_INPUT_BLK *mpio_data, struct device *dev if (is_dev_enabled(dev)) { printk(BIOS_WARNING, "Unused MPIO chip, disabling PCI device.\n"); dev->enabled = false; + } else { + printk(BIOS_DEBUG, "Unused MPIO chip, skipping.\n"); } return; } -- cgit v1.2.3