Skip to content

Commit 08cb82d

Browse files
ozbenhjaywang-amazon
authored andcommitted
Revert "arm64: acpi/pci: invoke _DSM whether to preserve firmware PCI setup"
This reverts commit 0a74aec.
1 parent cfa1032 commit 08cb82d

File tree

2 files changed

+5
-22
lines changed

2 files changed

+5
-22
lines changed

arch/arm64/kernel/pci.c

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root)
169169
struct acpi_pci_generic_root_info *ri;
170170
struct pci_bus *bus, *child;
171171
struct acpi_pci_root_ops *root_ops;
172-
union acpi_object *obj;
173172

174173
ri = kzalloc_node(sizeof(*ri), GFP_KERNEL, node);
175174
if (!ri)
@@ -195,23 +194,8 @@ struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root)
195194
if (!bus)
196195
return NULL;
197196

198-
/*
199-
* Invoke the PCI device specific method (_DSM) #5 'Ignore PCI Boot
200-
* Configuration', which tells us whether the firmware wants us to
201-
* preserve the configuration of the PCI resource tree for this root
202-
* bridge.
203-
*/
204-
obj = acpi_evaluate_dsm(ACPI_HANDLE(bus->bridge), &pci_acpi_dsm_guid, 1,
205-
IGNORE_PCI_BOOT_CONFIG_DSM, NULL);
206-
if (obj && obj->type == ACPI_TYPE_INTEGER && obj->integer.value == 0) {
207-
/* preserve existing resource assignment */
208-
pci_bus_claim_resources(bus);
209-
} else {
210-
/* reconfigure the resource tree from scratch */
211-
pci_bus_size_bridges(bus);
212-
pci_bus_assign_resources(bus);
213-
}
214-
ACPI_FREE(obj);
197+
pci_bus_size_bridges(bus);
198+
pci_bus_assign_resources(bus);
215199

216200
list_for_each_entry(child, &bus->children, node)
217201
pcie_bus_configure_settings(child);

include/linux/pci-acpi.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,9 @@ static inline void acpiphp_check_host_bridge(struct acpi_device *adev) { }
107107
#endif
108108

109109
extern const guid_t pci_acpi_dsm_guid;
110-
#define IGNORE_PCI_BOOT_CONFIG_DSM 0x05
111-
#define DEVICE_LABEL_DSM 0x07
112-
#define RESET_DELAY_DSM 0x08
113-
#define FUNCTION_DELAY_DSM 0x09
110+
#define DEVICE_LABEL_DSM 0x07
111+
#define RESET_DELAY_DSM 0x08
112+
#define FUNCTION_DELAY_DSM 0x09
114113

115114
#else /* CONFIG_ACPI */
116115
static inline void acpi_pci_add_bus(struct pci_bus *bus) { }

0 commit comments

Comments
 (0)