@@ -230,6 +230,7 @@ static void validate_resources(struct device *dev, struct list_head *crs_res,
bool free = false;
resource_size_t end;
+ pr_warn("pci_root validate resource %pR\n", entry->res);
res1 = entry->res;
if (!(res1->flags & type))
goto next;
@@ -288,6 +289,7 @@ static void add_resources(struct pci_root_info *info,
validate_resources(&info->bridge->dev, crs_res, IORESOURCE_IO);
resource_list_for_each_entry_safe(entry, tmp, crs_res) {
+ pr_warn("pci_root add resource %pR\n", entry->res);
res = entry->res;
if (res->flags & IORESOURCE_MEM)
root = &iomem_resource;
@@ -346,6 +348,7 @@ static void probe_pci_root_info(struct pci_root_info *info,
"no IO and memory resources present in _CRS\n");
else
resource_list_for_each_entry_safe(entry, tmp, list) {
+ pr_warn("pci_root probe resource %pR\n", entry->res);
if (entry->res->flags & IORESOURCE_WINDOW)
entry->res->name = info->name;
else
@@ -470,6 +470,7 @@ static acpi_status acpi_dev_new_resource_entry(struct resource_win *win,
rentry->offset = win->offset;
resource_list_add_tail(rentry, c->list);
c->count++;
+ pr_warn("acpi new resource %pR\n", rentry->res);
return AE_OK;
}
@@ -615,6 +616,7 @@ int acpi_dev_filter_resource_type(struct acpi_resource *ares,
default:
break;
}
+ pr_warn("acpi filter resource type %lx, types %lx\n", type, types);
return (type & types) ? 0 : 1;
}
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com> --- arch/x86/pci/acpi.c | 3 +++ drivers/acpi/resource.c | 2 ++ 2 files changed, 5 insertions(+)