Skip to content

Commit 6dd53aa

Browse files
committed
Merge tag 'for-3.6' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci
Pull PCI changes from Bjorn Helgaas: "Host bridge hotplug: - Add MMCONFIG support for hot-added host bridges (Jiang Liu) Device hotplug: - Move fixups from __init to __devinit (Sebastian Andrzej Siewior) - Call FINAL fixups for hot-added devices, too (Myron Stowe) - Factor out generic code for P2P bridge hot-add (Yinghai Lu) - Remove all functions in a slot, not just those with _EJx (Amos Kong) Dynamic resource management: - Track bus number allocation (struct resource tree per domain) (Yinghai Lu) - Make P2P bridge 1K I/O windows work with resource reassignment (Bjorn Helgaas, Yinghai Lu) - Disable decoding while updating 64-bit BARs (Bjorn Helgaas) Power management: - Add PCIe runtime D3cold support (Huang Ying) Virtualization: - Add VFIO infrastructure (ACS, DMA source ID quirks) (Alex Williamson) - Add quirks for devices with broken INTx masking (Jan Kiszka) Miscellaneous: - Fix some PCI Express capability version issues (Myron Stowe) - Factor out some arch code with a weak, generic, pcibios_setup() (Myron Stowe)" * tag 'for-3.6' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci: (122 commits) PCI: hotplug: ensure a consistent return value in error case PCI: fix undefined reference to 'pci_fixup_final_inited' PCI: build resource code for M68K architecture PCI: pciehp: remove unused pciehp_get_max_lnk_width(), pciehp_get_cur_lnk_width() PCI: reorder __pci_assign_resource() (no change) PCI: fix truncation of resource size to 32 bits PCI: acpiphp: merge acpiphp_debug and debug PCI: acpiphp: remove unused res_lock sparc/PCI: replace pci_cfg_fake_ranges() with pci_read_bridge_bases() PCI: call final fixups hot-added devices PCI: move final fixups from __init to __devinit x86/PCI: move final fixups from __init to __devinit MIPS/PCI: move final fixups from __init to __devinit PCI: support sizing P2P bridge I/O windows with 1K granularity PCI: reimplement P2P bridge 1K I/O windows (Intel P64H2) PCI: disable MEM decoding while updating 64-bit MEM BARs PCI: leave MEM and IO decoding disabled during 64-bit BAR sizing, too PCI: never discard enable/suspend/resume_early/resume fixups PCI: release temporary reference in __nv_msi_ht_cap_quirk() PCI: restructure 'pci_do_fixups()' ...
2 parents f14121a + 63b96f7 commit 6dd53aa

98 files changed

Lines changed: 1846 additions & 1109 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎MAINTAINERS‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5210,7 +5210,7 @@ PCI SUBSYSTEM
52105210
M: Bjorn Helgaas <bhelgaas@google.com>
52115211
L: linux-pci@vger.kernel.org
52125212
Q: http://patchwork.ozlabs.org/project/linux-pci/list/
5213-
T: git git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/linux.git
5213+
T: git git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git
52145214
S: Supported
52155215
F: Documentation/PCI/
52165216
F: drivers/pci/

‎arch/alpha/kernel/pci.c‎

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,13 @@ struct pci_controller *pci_isa_hose;
5959
* Quirks.
6060
*/
6161

62-
static void __init
63-
quirk_isa_bridge(struct pci_dev *dev)
62+
static void __devinit quirk_isa_bridge(struct pci_dev *dev)
6463
{
6564
dev->class = PCI_CLASS_BRIDGE_ISA << 8;
6665
}
6766
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82378, quirk_isa_bridge);
6867

69-
static void __init
70-
quirk_cypress(struct pci_dev *dev)
68+
static void __devinit quirk_cypress(struct pci_dev *dev)
7169
{
7270
/* The Notorious Cy82C693 chip. */
7371

@@ -106,8 +104,7 @@ quirk_cypress(struct pci_dev *dev)
106104
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_CONTAQ, PCI_DEVICE_ID_CONTAQ_82C693, quirk_cypress);
107105

108106
/* Called for each device after PCI setup is done. */
109-
static void __init
110-
pcibios_fixup_final(struct pci_dev *dev)
107+
static void __devinit pcibios_fixup_final(struct pci_dev *dev)
111108
{
112109
unsigned int class = dev->class >> 8;
113110

@@ -198,12 +195,6 @@ pcibios_init(void)
198195

199196
subsys_initcall(pcibios_init);
200197

201-
char * __devinit
202-
pcibios_setup(char *str)
203-
{
204-
return str;
205-
}
206-
207198
#ifdef ALPHA_RESTORE_SRM_SETUP
208199
static struct pdev_srm_saved_conf *srm_saved_configs;
209200

@@ -359,7 +350,7 @@ common_init_pci(void)
359350
hose, &resources);
360351
hose->bus = bus;
361352
hose->need_domain_info = need_domain_info;
362-
next_busno = bus->subordinate + 1;
353+
next_busno = bus->busn_res.end + 1;
363354
/* Don't allow 8-bit bus number overflow inside the hose -
364355
reserve some space for bridges. */
365356
if (next_busno > 224) {

‎arch/arm/kernel/bios32.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ static void __devinit pci_fixup_cy82c693(struct pci_dev *dev)
253253
}
254254
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_CONTAQ, PCI_DEVICE_ID_CONTAQ_82C693, pci_fixup_cy82c693);
255255

256-
static void __init pci_fixup_it8152(struct pci_dev *dev)
256+
static void __devinit pci_fixup_it8152(struct pci_dev *dev)
257257
{
258258
int i;
259259
/* fixup for ITE 8152 devices */
@@ -461,7 +461,7 @@ static void __init pcibios_init_hw(struct hw_pci *hw, struct list_head *head)
461461
if (!sys->bus)
462462
panic("PCI: unable to scan bus!");
463463

464-
busnr = sys->bus->subordinate + 1;
464+
busnr = sys->bus->busn_res.end + 1;
465465

466466
list_add(&sys->node, head);
467467
} else {

‎arch/cris/arch-v32/drivers/pci/bios.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ void __devinit pcibios_fixup_bus(struct pci_bus *b)
66
{
77
}
88

9-
char * __devinit pcibios_setup(char *str)
10-
{
11-
return NULL;
12-
}
13-
149
void pcibios_set_master(struct pci_dev *dev)
1510
{
1611
u8 lat;

‎arch/frv/mb93090-mb00/pci-vdk.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ static void __init pci_fixup_umc_ide(struct pci_dev *d)
268268
d->resource[i].flags |= PCI_BASE_ADDRESS_SPACE_IO;
269269
}
270270

271-
static void __init pci_fixup_ide_bases(struct pci_dev *d)
271+
static void __devinit pci_fixup_ide_bases(struct pci_dev *d)
272272
{
273273
int i;
274274

@@ -287,7 +287,7 @@ static void __init pci_fixup_ide_bases(struct pci_dev *d)
287287
}
288288
}
289289

290-
static void __init pci_fixup_ide_trash(struct pci_dev *d)
290+
static void __devinit pci_fixup_ide_trash(struct pci_dev *d)
291291
{
292292
int i;
293293

‎arch/ia64/pci/pci.c‎

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,8 @@ pci_acpi_scan_root(struct acpi_pci_root *root)
351351
#endif
352352

353353
INIT_LIST_HEAD(&info.resources);
354+
/* insert busn resource at first */
355+
pci_add_resource(&info.resources, &root->secondary);
354356
acpi_walk_resources(device->handle, METHOD_NAME__CRS, count_window,
355357
&windows);
356358
if (windows) {
@@ -384,7 +386,7 @@ pci_acpi_scan_root(struct acpi_pci_root *root)
384386
return NULL;
385387
}
386388

387-
pbus->subordinate = pci_scan_child_bus(pbus);
389+
pci_scan_child_bus(pbus);
388390
return pbus;
389391

390392
out3:
@@ -496,15 +498,6 @@ pcibios_align_resource (void *data, const struct resource *res,
496498
return res->start;
497499
}
498500

499-
/*
500-
* PCI BIOS setup, always defaults to SAL interface
501-
*/
502-
char * __init
503-
pcibios_setup (char *str)
504-
{
505-
return str;
506-
}
507-
508501
int
509502
pci_mmap_page_range (struct pci_dev *dev, struct vm_area_struct *vma,
510503
enum pci_mmap_state mmap_state, int write_combine)

‎arch/microblaze/pci/pci-common.c‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,6 @@ void pcibios_set_master(struct pci_dev *dev)
192192
/* No special bus mastering setup handling */
193193
}
194194

195-
char __devinit *pcibios_setup(char *str)
196-
{
197-
return str;
198-
}
199-
200195
/*
201196
* Reads the interrupt pin to determine if interrupt is use by card.
202197
* If the interrupt is used, then gets the interrupt line from the
@@ -1504,10 +1499,10 @@ static void __devinit pcibios_scan_phb(struct pci_controller *hose)
15041499
pci_free_resource_list(&resources);
15051500
return;
15061501
}
1507-
bus->secondary = hose->first_busno;
1502+
bus->busn_res.start = hose->first_busno;
15081503
hose->bus = bus;
15091504

1510-
hose->last_busno = bus->subordinate;
1505+
hose->last_busno = bus->busn_res.end;
15111506
}
15121507

15131508
static int __init pcibios_init(void)

‎arch/mips/pci/pci.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ static void __devinit pcibios_scanbus(struct pci_controller *hose)
102102
need_domain_info = need_domain_info || hose->index;
103103
hose->need_domain_info = need_domain_info;
104104
if (bus) {
105-
next_busno = bus->subordinate + 1;
105+
next_busno = bus->busn_res.end + 1;
106106
/* Don't allow 8-bit bus number overflow inside the hose -
107107
reserve some space for bridges. */
108108
if (next_busno > 224) {
@@ -348,9 +348,9 @@ int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma,
348348
vma->vm_end - vma->vm_start, vma->vm_page_prot);
349349
}
350350

351-
char * (*pcibios_plat_setup)(char *str) __devinitdata;
351+
char * (*pcibios_plat_setup)(char *str) __initdata;
352352

353-
char *__devinit pcibios_setup(char *str)
353+
char *__init pcibios_setup(char *str)
354354
{
355355
if (pcibios_plat_setup)
356356
return pcibios_plat_setup(str);

‎arch/mips/pmc-sierra/yosemite/ht.c‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -395,17 +395,6 @@ void __init pcibios_init(void)
395395
pci_scan_bus(3, &titan_pci_ops, NULL);
396396
}
397397

398-
/*
399-
* for parsing "pci=" kernel boot arguments.
400-
*/
401-
char *pcibios_setup(char *str)
402-
{
403-
printk(KERN_INFO "rr: pcibios_setup\n");
404-
/* Nothing to do for now. */
405-
406-
return str;
407-
}
408-
409398
unsigned __init int pcibios_assign_all_busses(void)
410399
{
411400
/* We want to use the PCI bus detection done by PMON */

‎arch/mips/txx9/generic/pci.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ static irqreturn_t i8259_interrupt(int irq, void *dev_id)
256256
return IRQ_HANDLED;
257257
}
258258

259-
static int __init
259+
static int __devinit
260260
txx9_i8259_irq_setup(int irq)
261261
{
262262
int err;
@@ -398,9 +398,9 @@ int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
398398
return txx9_board_vec->pci_map_irq(dev, slot, pin);
399399
}
400400

401-
char * (*txx9_board_pcibios_setup)(char *str) __devinitdata;
401+
char * (*txx9_board_pcibios_setup)(char *str) __initdata;
402402

403-
char *__devinit txx9_pcibios_setup(char *str)
403+
char *__init txx9_pcibios_setup(char *str)
404404
{
405405
if (txx9_board_pcibios_setup && !txx9_board_pcibios_setup(str))
406406
return NULL;

0 commit comments

Comments
 (0)