aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2015-11-04 21:10:13 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2015-11-04 21:10:13 -0500
commit0d51ce9ca1116e8f4dc87cb51db8dd250327e9bb (patch)
treef845ff44f40f102c5143f94d3c9734e65544712d /arch/ia64
parent41ecf1404b34d9975eb97f5005d9e4274eaeb76a (diff)
parent1ab68460b1d0671968b35e04f21efcf1ce051916 (diff)
Merge tag 'pm+acpi-4.4-rc1-1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull power management and ACPI updates from Rafael Wysocki: "Quite a new features are included this time. First off, the Collaborative Processor Performance Control interface (version 2) defined by ACPI will now be supported on ARM64 along with a cpufreq frontend for CPU performance scaling. Second, ACPI gets a new infrastructure for the early probing of IRQ chips and clock sources (along the lines of the existing similar mechanism for DT). Next, the ACPI core and the generic device properties API will now support a recently introduced hierarchical properties extension of the _DSD (Device Specific Data) ACPI device configuration object. If the ACPI platform firmware uses that extension to organize device properties in a hierarchical way, the kernel will automatically handle it and make those properties available to device drivers via the generic device properties API. It also will be possible to build the ACPICA's AML interpreter debugger into the kernel now and use that to diagnose AML-related problems more efficiently. In the future, this should make it possible to single-step AML execution and do similar things. Interesting stuff, although somewhat experimental at this point. Finally, the PM core gets a new mechanism that can be used by device drivers to distinguish between suspend-to-RAM (based on platform firmware support) and suspend-to-idle (or other variants of system suspend the platform firmware is not involved in) and possibly optimize their device suspend/resume handling accordingly. In addition to that, some existing features are re-organized quite substantially. First, the ACPI-based handling of PCI host bridges on x86 and ia64 is unified and the common code goes into the ACPI core (so as to reduce code duplication and eliminate non-essential differences between the two architectures in that area). Second, the Operating Performance Points (OPP) framework is reorganized to make the code easier to find and follow. Next, the cpufreq core's sysfs interface is reorganized to get rid of the "primary CPU" concept for configurations in which the same performance scaling settings are shared between multiple CPUs. Finally, some interfaces that aren't necessary any more are dropped from the generic power domains framework. On top of the above we have some minor extensions, cleanups and bug fixes in multiple places, as usual. Specifics: - ACPICA update to upstream revision 20150930 (Bob Moore, Lv Zheng). The most significant change is to allow the AML debugger to be built into the kernel. On top of that there is an update related to the NFIT table (the ACPI persistent memory interface) and a few fixes and cleanups. - ACPI CPPC2 (Collaborative Processor Performance Control v2) support along with a cpufreq frontend (Ashwin Chaugule). This can only be enabled on ARM64 at this point. - New ACPI infrastructure for the early probing of IRQ chips and clock sources (Marc Zyngier). - Support for a new hierarchical properties extension of the ACPI _DSD (Device Specific Data) device configuration object allowing the kernel to handle hierarchical properties (provided by the platform firmware this way) automatically and make them available to device drivers via the generic device properties interface (Rafael Wysocki). - Generic device properties API extension to obtain an index of certain string value in an array of strings, along the lines of of_property_match_string(), but working for all of the supported firmware node types, and support for the "dma-names" device property based on it (Mika Westerberg). - ACPI core fix to parse the MADT (Multiple APIC Description Table) entries in the order expected by platform firmware (and mandated by the specification) to avoid confusion on systems with more than 255 logical CPUs (Lukasz Anaczkowski). - Consolidation of the ACPI-based handling of PCI host bridges on x86 and ia64 (Jiang Liu). - ACPI core fixes to ensure that the correct IRQ number is used to represent the SCI (System Control Interrupt) in the cases when it has been re-mapped (Chen Yu). - New ACPI backlight quirk for Lenovo IdeaPad S405 (Hans de Goede). - ACPI EC driver fixes (Lv Zheng). - Assorted ACPI fixes and cleanups (Dan Carpenter, Insu Yun, Jiri Kosina, Rami Rosen, Rasmus Villemoes). - New mechanism in the PM core allowing drivers to check if the platform firmware is going to be involved in the upcoming system suspend or if it has been involved in the suspend the system is resuming from at the moment (Rafael Wysocki). This should allow drivers to optimize their suspend/resume handling in some cases and the changes include a couple of users of it (the i8042 input driver, PCI PM). - PCI PM fix to prevent runtime-suspended devices with PME enabled from being resumed during system suspend even if they aren't configured to wake up the system from sleep (Rafael Wysocki). - New mechanism to report the number of a wakeup IRQ that woke up the system from sleep last time (Alexandra Yates). - Removal of unused interfaces from the generic power domains framework and fixes related to latency measurements in that code (Ulf Hansson, Daniel Lezcano). - cpufreq core sysfs interface rework to make it handle CPUs that share performance scaling settings (represented by a common cpufreq policy object) more symmetrically (Viresh Kumar). This should help to simplify the CPU offline/online handling among other things. - cpufreq core fixes and cleanups (Viresh Kumar). - intel_pstate fixes related to the Turbo Activation Ratio (TAR) mechanism on client platforms which causes the turbo P-states range to vary depending on platform firmware settings (Srinivas Pandruvada). - intel_pstate sysfs interface fix (Prarit Bhargava). - Assorted cpufreq driver (imx, tegra20, powernv, integrator) fixes and cleanups (Bai Ping, Bartlomiej Zolnierkiewicz, Shilpasri G Bhat, Luis de Bethencourt). - cpuidle mvebu driver cleanups (Russell King). - OPP (Operating Performance Points) framework code reorganization to make it more maintainable (Viresh Kumar). - Intel Broxton support for the RAPL (Running Average Power Limits) power capping driver (Amy Wiles). - Assorted power management code fixes and cleanups (Dan Carpenter, Geert Uytterhoeven, Geliang Tang, Luis de Bethencourt, Rasmus Villemoes)" * tag 'pm+acpi-4.4-rc1-1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: (108 commits) cpufreq: postfix policy directory with the first CPU in related_cpus cpufreq: create cpu/cpufreq/policyX directories cpufreq: remove cpufreq_sysfs_{create|remove}_file() cpufreq: create cpu/cpufreq at boot time cpufreq: Use cpumask_copy instead of cpumask_or to copy a mask cpufreq: ondemand: Drop unnecessary locks from update_sampling_rate() PM / Domains: Merge measurements for PM QoS device latencies PM / Domains: Don't measure ->start|stop() latency in system PM callbacks PM / clk: Fix broken build due to non-matching code and header #ifdefs ACPI / Documentation: add copy_dsdt to ACPI format options ACPI / sysfs: correctly check failing memory allocation ACPI / video: Add a quirk to force native backlight on Lenovo IdeaPad S405 ACPI / CPPC: Fix potential memory leak ACPI / CPPC: signedness bug in register_pcc_channel() ACPI / PAD: power_saving_thread() is not freezable ACPI / PM: Fix incorrect wakeup IRQ setting during suspend-to-idle ACPI: Using correct irq when waiting for events ACPI: Use correct IRQ when uninstalling ACPI interrupt handler cpuidle: mvebu: disable the bind/unbind attributes and use builtin_platform_driver cpuidle: mvebu: clean up multiple platform drivers ...
Diffstat (limited to 'arch/ia64')
-rw-r--r--arch/ia64/include/asm/pci.h5
-rw-r--r--arch/ia64/pci/pci.c368
2 files changed, 100 insertions, 273 deletions
diff --git a/arch/ia64/include/asm/pci.h b/arch/ia64/include/asm/pci.h
index 36d2c1e3928b..07039d168f37 100644
--- a/arch/ia64/include/asm/pci.h
+++ b/arch/ia64/include/asm/pci.h
@@ -64,11 +64,6 @@ extern int pci_mmap_legacy_page_range(struct pci_bus *bus,
64#define pci_legacy_read platform_pci_legacy_read 64#define pci_legacy_read platform_pci_legacy_read
65#define pci_legacy_write platform_pci_legacy_write 65#define pci_legacy_write platform_pci_legacy_write
66 66
67struct iospace_resource {
68 struct list_head list;
69 struct resource res;
70};
71
72struct pci_controller { 67struct pci_controller {
73 struct acpi_device *companion; 68 struct acpi_device *companion;
74 void *iommu; 69 void *iommu;
diff --git a/arch/ia64/pci/pci.c b/arch/ia64/pci/pci.c
index 7cc3be9fa7c6..8f6ac2f8ae4c 100644
--- a/arch/ia64/pci/pci.c
+++ b/arch/ia64/pci/pci.c
@@ -115,33 +115,13 @@ struct pci_ops pci_root_ops = {
115 .write = pci_write, 115 .write = pci_write,
116}; 116};
117 117
118/* Called by ACPI when it finds a new root bus. */
119
120static struct pci_controller *alloc_pci_controller(int seg)
121{
122 struct pci_controller *controller;
123
124 controller = kzalloc(sizeof(*controller), GFP_KERNEL);
125 if (!controller)
126 return NULL;
127
128 controller->segment = seg;
129 return controller;
130}
131
132struct pci_root_info { 118struct pci_root_info {
133 struct acpi_device *bridge; 119 struct acpi_pci_root_info common;
134 struct pci_controller *controller; 120 struct pci_controller controller;
135 struct list_head resources;
136 struct resource *res;
137 resource_size_t *res_offset;
138 unsigned int res_num;
139 struct list_head io_resources; 121 struct list_head io_resources;
140 char *name;
141}; 122};
142 123
143static unsigned int 124static unsigned int new_space(u64 phys_base, int sparse)
144new_space (u64 phys_base, int sparse)
145{ 125{
146 u64 mmio_base; 126 u64 mmio_base;
147 int i; 127 int i;
@@ -168,39 +148,36 @@ new_space (u64 phys_base, int sparse)
168 return i; 148 return i;
169} 149}
170 150
171static u64 add_io_space(struct pci_root_info *info, 151static int add_io_space(struct device *dev, struct pci_root_info *info,
172 struct acpi_resource_address64 *addr) 152 struct resource_entry *entry)
173{ 153{
174 struct iospace_resource *iospace; 154 struct resource_entry *iospace;
175 struct resource *resource; 155 struct resource *resource, *res = entry->res;
176 char *name; 156 char *name;
177 unsigned long base, min, max, base_port; 157 unsigned long base, min, max, base_port;
178 unsigned int sparse = 0, space_nr, len; 158 unsigned int sparse = 0, space_nr, len;
179 159
180 len = strlen(info->name) + 32; 160 len = strlen(info->common.name) + 32;
181 iospace = kzalloc(sizeof(*iospace) + len, GFP_KERNEL); 161 iospace = resource_list_create_entry(NULL, len);
182 if (!iospace) { 162 if (!iospace) {
183 dev_err(&info->bridge->dev, 163 dev_err(dev, "PCI: No memory for %s I/O port space\n",
184 "PCI: No memory for %s I/O port space\n", 164 info->common.name);
185 info->name); 165 return -ENOMEM;
186 goto out;
187 } 166 }
188 167
189 name = (char *)(iospace + 1); 168 if (res->flags & IORESOURCE_IO_SPARSE)
190
191 min = addr->address.minimum;
192 max = min + addr->address.address_length - 1;
193 if (addr->info.io.translation_type == ACPI_SPARSE_TRANSLATION)
194 sparse = 1; 169 sparse = 1;
195 170 space_nr = new_space(entry->offset, sparse);
196 space_nr = new_space(addr->address.translation_offset, sparse);
197 if (space_nr == ~0) 171 if (space_nr == ~0)
198 goto free_resource; 172 goto free_resource;
199 173
174 name = (char *)(iospace + 1);
175 min = res->start - entry->offset;
176 max = res->end - entry->offset;
200 base = __pa(io_space[space_nr].mmio_base); 177 base = __pa(io_space[space_nr].mmio_base);
201 base_port = IO_SPACE_BASE(space_nr); 178 base_port = IO_SPACE_BASE(space_nr);
202 snprintf(name, len, "%s I/O Ports %08lx-%08lx", info->name, 179 snprintf(name, len, "%s I/O Ports %08lx-%08lx", info->common.name,
203 base_port + min, base_port + max); 180 base_port + min, base_port + max);
204 181
205 /* 182 /*
206 * The SDM guarantees the legacy 0-64K space is sparse, but if the 183 * The SDM guarantees the legacy 0-64K space is sparse, but if the
@@ -210,270 +187,125 @@ static u64 add_io_space(struct pci_root_info *info,
210 if (space_nr == 0) 187 if (space_nr == 0)
211 sparse = 1; 188 sparse = 1;
212 189
213 resource = &iospace->res; 190 resource = iospace->res;
214 resource->name = name; 191 resource->name = name;
215 resource->flags = IORESOURCE_MEM; 192 resource->flags = IORESOURCE_MEM;
216 resource->start = base + (sparse ? IO_SPACE_SPARSE_ENCODING(min) : min); 193 resource->start = base + (sparse ? IO_SPACE_SPARSE_ENCODING(min) : min);
217 resource->end = base + (sparse ? IO_SPACE_SPARSE_ENCODING(max) : max); 194 resource->end = base + (sparse ? IO_SPACE_SPARSE_ENCODING(max) : max);
218 if (insert_resource(&iomem_resource, resource)) { 195 if (insert_resource(&iomem_resource, resource)) {
219 dev_err(&info->bridge->dev, 196 dev_err(dev,
220 "can't allocate host bridge io space resource %pR\n", 197 "can't allocate host bridge io space resource %pR\n",
221 resource); 198 resource);
222 goto free_resource; 199 goto free_resource;
223 } 200 }
224 201
225 list_add_tail(&iospace->list, &info->io_resources); 202 entry->offset = base_port;
226 return base_port; 203 res->start = min + base_port;
204 res->end = max + base_port;
205 resource_list_add_tail(iospace, &info->io_resources);
227 206
228free_resource: 207 return 0;
229 kfree(iospace);
230out:
231 return ~0;
232}
233
234static acpi_status resource_to_window(struct acpi_resource *resource,
235 struct acpi_resource_address64 *addr)
236{
237 acpi_status status;
238 208
239 /* 209free_resource:
240 * We're only interested in _CRS descriptors that are 210 resource_list_free_entry(iospace);
241 * - address space descriptors for memory or I/O space 211 return -ENOSPC;
242 * - non-zero size
243 */
244 status = acpi_resource_to_address64(resource, addr);
245 if (ACPI_SUCCESS(status) &&
246 (addr->resource_type == ACPI_MEMORY_RANGE ||
247 addr->resource_type == ACPI_IO_RANGE) &&
248 addr->address.address_length)
249 return AE_OK;
250
251 return AE_ERROR;
252} 212}
253 213
254static acpi_status count_window(struct acpi_resource *resource, void *data) 214/*
215 * An IO port or MMIO resource assigned to a PCI host bridge may be
216 * consumed by the host bridge itself or available to its child
217 * bus/devices. The ACPI specification defines a bit (Producer/Consumer)
218 * to tell whether the resource is consumed by the host bridge itself,
219 * but firmware hasn't used that bit consistently, so we can't rely on it.
220 *
221 * On x86 and IA64 platforms, all IO port and MMIO resources are assumed
222 * to be available to child bus/devices except one special case:
223 * IO port [0xCF8-0xCFF] is consumed by the host bridge itself
224 * to access PCI configuration space.
225 *
226 * So explicitly filter out PCI CFG IO ports[0xCF8-0xCFF].
227 */
228static bool resource_is_pcicfg_ioport(struct resource *res)
255{ 229{
256 unsigned int *windows = (unsigned int *) data; 230 return (res->flags & IORESOURCE_IO) &&
257 struct acpi_resource_address64 addr; 231 res->start == 0xCF8 && res->end == 0xCFF;
258 acpi_status status;
259
260 status = resource_to_window(resource, &addr);
261 if (ACPI_SUCCESS(status))
262 (*windows)++;
263
264 return AE_OK;
265} 232}
266 233
267static acpi_status add_window(struct acpi_resource *res, void *data) 234static int pci_acpi_root_prepare_resources(struct acpi_pci_root_info *ci)
268{ 235{
269 struct pci_root_info *info = data; 236 struct device *dev = &ci->bridge->dev;
270 struct resource *resource; 237 struct pci_root_info *info;
271 struct acpi_resource_address64 addr; 238 struct resource *res;
272 acpi_status status; 239 struct resource_entry *entry, *tmp;
273 unsigned long flags, offset = 0; 240 int status;
274 struct resource *root; 241
275 242 status = acpi_pci_probe_root_resources(ci);
276 /* Return AE_OK for non-window resources to keep scanning for more */ 243 if (status > 0) {
277 status = resource_to_window(res, &addr); 244 info = container_of(ci, struct pci_root_info, common);
278 if (!ACPI_SUCCESS(status)) 245 resource_list_for_each_entry_safe(entry, tmp, &ci->resources) {
279 return AE_OK; 246 res = entry->res;
280 247 if (res->flags & IORESOURCE_MEM) {
281 if (addr.resource_type == ACPI_MEMORY_RANGE) { 248 /*
282 flags = IORESOURCE_MEM; 249 * HP's firmware has a hack to work around a
283 root = &iomem_resource; 250 * Windows bug. Ignore these tiny memory ranges.
284 offset = addr.address.translation_offset; 251 */
285 } else if (addr.resource_type == ACPI_IO_RANGE) { 252 if (resource_size(res) <= 16) {
286 flags = IORESOURCE_IO; 253 resource_list_del(entry);
287 root = &ioport_resource; 254 insert_resource(&iomem_resource,
288 offset = add_io_space(info, &addr); 255 entry->res);
289 if (offset == ~0) 256 resource_list_add_tail(entry,
290 return AE_OK; 257 &info->io_resources);
291 } else 258 }
292 return AE_OK; 259 } else if (res->flags & IORESOURCE_IO) {
293 260 if (resource_is_pcicfg_ioport(entry->res))
294 resource = &info->res[info->res_num]; 261 resource_list_destroy_entry(entry);
295 resource->name = info->name; 262 else if (add_io_space(dev, info, entry))
296 resource->flags = flags; 263 resource_list_destroy_entry(entry);
297 resource->start = addr.address.minimum + offset; 264 }
298 resource->end = resource->start + addr.address.address_length - 1; 265 }
299 info->res_offset[info->res_num] = offset;
300
301 if (insert_resource(root, resource)) {
302 dev_err(&info->bridge->dev,
303 "can't allocate host bridge window %pR\n",
304 resource);
305 } else {
306 if (offset)
307 dev_info(&info->bridge->dev, "host bridge window %pR "
308 "(PCI address [%#llx-%#llx])\n",
309 resource,
310 resource->start - offset,
311 resource->end - offset);
312 else
313 dev_info(&info->bridge->dev,
314 "host bridge window %pR\n", resource);
315 } 266 }
316 /* HP's firmware has a hack to work around a Windows bug.
317 * Ignore these tiny memory ranges */
318 if (!((resource->flags & IORESOURCE_MEM) &&
319 (resource->end - resource->start < 16)))
320 pci_add_resource_offset(&info->resources, resource,
321 info->res_offset[info->res_num]);
322
323 info->res_num++;
324 return AE_OK;
325}
326 267
327static void free_pci_root_info_res(struct pci_root_info *info) 268 return status;
328{
329 struct iospace_resource *iospace, *tmp;
330
331 list_for_each_entry_safe(iospace, tmp, &info->io_resources, list)
332 kfree(iospace);
333
334 kfree(info->name);
335 kfree(info->res);
336 info->res = NULL;
337 kfree(info->res_offset);
338 info->res_offset = NULL;
339 info->res_num = 0;
340 kfree(info->controller);
341 info->controller = NULL;
342} 269}
343 270
344static void __release_pci_root_info(struct pci_root_info *info) 271static void pci_acpi_root_release_info(struct acpi_pci_root_info *ci)
345{ 272{
346 int i; 273 struct pci_root_info *info;
347 struct resource *res; 274 struct resource_entry *entry, *tmp;
348 struct iospace_resource *iospace;
349 275
350 list_for_each_entry(iospace, &info->io_resources, list) 276 info = container_of(ci, struct pci_root_info, common);
351 release_resource(&iospace->res); 277 resource_list_for_each_entry_safe(entry, tmp, &info->io_resources) {
352 278 release_resource(entry->res);
353 for (i = 0; i < info->res_num; i++) { 279 resource_list_destroy_entry(entry);
354 res = &info->res[i];
355
356 if (!res->parent)
357 continue;
358
359 if (!(res->flags & (IORESOURCE_MEM | IORESOURCE_IO)))
360 continue;
361
362 release_resource(res);
363 } 280 }
364
365 free_pci_root_info_res(info);
366 kfree(info); 281 kfree(info);
367} 282}
368 283
369static void release_pci_root_info(struct pci_host_bridge *bridge) 284static struct acpi_pci_root_ops pci_acpi_root_ops = {
370{ 285 .pci_ops = &pci_root_ops,
371 struct pci_root_info *info = bridge->release_data; 286 .release_info = pci_acpi_root_release_info,
372 287 .prepare_resources = pci_acpi_root_prepare_resources,
373 __release_pci_root_info(info); 288};
374}
375
376static int
377probe_pci_root_info(struct pci_root_info *info, struct acpi_device *device,
378 int busnum, int domain)
379{
380 char *name;
381
382 name = kmalloc(16, GFP_KERNEL);
383 if (!name)
384 return -ENOMEM;
385
386 sprintf(name, "PCI Bus %04x:%02x", domain, busnum);
387 info->bridge = device;
388 info->name = name;
389
390 acpi_walk_resources(device->handle, METHOD_NAME__CRS, count_window,
391 &info->res_num);
392 if (info->res_num) {
393 info->res =
394 kzalloc_node(sizeof(*info->res) * info->res_num,
395 GFP_KERNEL, info->controller->node);
396 if (!info->res) {
397 kfree(name);
398 return -ENOMEM;
399 }
400
401 info->res_offset =
402 kzalloc_node(sizeof(*info->res_offset) * info->res_num,
403 GFP_KERNEL, info->controller->node);
404 if (!info->res_offset) {
405 kfree(name);
406 kfree(info->res);
407 info->res = NULL;
408 return -ENOMEM;
409 }
410
411 info->res_num = 0;
412 acpi_walk_resources(device->handle, METHOD_NAME__CRS,
413 add_window, info);
414 } else
415 kfree(name);
416
417 return 0;
418}
419 289
420struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root) 290struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root)
421{ 291{
422 struct acpi_device *device = root->device; 292 struct acpi_device *device = root->device;
423 int domain = root->segment; 293 struct pci_root_info *info;
424 int bus = root->secondary.start;
425 struct pci_controller *controller;
426 struct pci_root_info *info = NULL;
427 int busnum = root->secondary.start;
428 struct pci_bus *pbus;
429 int ret;
430
431 controller = alloc_pci_controller(domain);
432 if (!controller)
433 return NULL;
434
435 controller->companion = device;
436 controller->node = acpi_get_node(device->handle);
437 294
438 info = kzalloc(sizeof(*info), GFP_KERNEL); 295 info = kzalloc(sizeof(*info), GFP_KERNEL);
439 if (!info) { 296 if (!info) {
440 dev_err(&device->dev, 297 dev_err(&device->dev,
441 "pci_bus %04x:%02x: ignored (out of memory)\n", 298 "pci_bus %04x:%02x: ignored (out of memory)\n",
442 domain, busnum); 299 root->segment, (int)root->secondary.start);
443 kfree(controller);
444 return NULL; 300 return NULL;
445 } 301 }
446 302
447 info->controller = controller; 303 info->controller.segment = root->segment;
304 info->controller.companion = device;
305 info->controller.node = acpi_get_node(device->handle);
448 INIT_LIST_HEAD(&info->io_resources); 306 INIT_LIST_HEAD(&info->io_resources);
449 INIT_LIST_HEAD(&info->resources); 307 return acpi_pci_root_create(root, &pci_acpi_root_ops,
450 308 &info->common, &info->controller);
451 ret = probe_pci_root_info(info, device, busnum, domain);
452 if (ret) {
453 kfree(info->controller);
454 kfree(info);
455 return NULL;
456 }
457 /* insert busn resource at first */
458 pci_add_resource(&info->resources, &root->secondary);
459 /*
460 * See arch/x86/pci/acpi.c.
461 * The desired pci bus might already be scanned in a quirk. We
462 * should handle the case here, but it appears that IA64 hasn't
463 * such quirk. So we just ignore the case now.
464 */
465 pbus = pci_create_root_bus(NULL, bus, &pci_root_ops, controller,
466 &info->resources);
467 if (!pbus) {
468 pci_free_resource_list(&info->resources);
469 __release_pci_root_info(info);
470 return NULL;
471 }
472
473 pci_set_host_bridge_release(to_pci_host_bridge(pbus->bridge),
474 release_pci_root_info, info);
475 pci_scan_child_bus(pbus);
476 return pbus;
477} 309}
478 310
479int pcibios_root_bridge_prepare(struct pci_host_bridge *bridge) 311int pcibios_root_bridge_prepare(struct pci_host_bridge *bridge)