aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/setup-bus.c
AgeCommit message (Expand)AuthorFilesLines
2025-10-31PCI: Do not size non-existing prefetchable windowIlpo Järvinen1-1/+1
2025-10-08PCI: Fix regression in pci_bus_distribute_available_resources()Yangyu Chen1-2/+3
2025-09-24PCI: Don't print stale information about resourceIlpo Järvinen1-5/+10
2025-09-16PCI: Alter misleading recursion to pci_bus_release_bridge_resources()Ilpo Järvinen1-1/+1
2025-09-16PCI: Pass bridge window to pci_bus_release_bridge_resources()Ilpo Järvinen1-42/+27
2025-09-16PCI: Add pci_setup_one_bridge_window()Ilpo Järvinen1-18/+19
2025-09-16PCI: Refactor remove_dev_resources() to use pbus_select_window()Ilpo Järvinen1-25/+9
2025-09-16PCI: Refactor distributing available memory to use loopsIlpo Järvinen1-90/+72
2025-09-16PCI: Use pbus_select_window_for_type() during mem window sizingIlpo Järvinen1-87/+24
2025-09-16PCI: Use pbus_select_window() in space available checkerIlpo Järvinen1-33/+32
2025-09-16PCI: Rename resource variable from r to resIlpo Järvinen1-7/+7
2025-09-16PCI: Use pbus_select_window_for_type() during IO window sizingIlpo Järvinen1-2/+1
2025-09-16PCI: Warn if bridge window cannot be released when resizing BARIlpo Järvinen1-0/+6
2025-09-16PCI: Fix finding bridge window in pci_reassign_bridge_resources()Ilpo Järvinen1-20/+18
2025-09-16PCI: Add bridge window selection functionsIlpo Järvinen1-0/+101
2025-09-16PCI: Preserve bridge window resource type flagsIlpo Järvinen1-31/+58
2025-09-16PCI: Use pci_release_resource() instead of release_resource()Ilpo Järvinen1-32/+14
2025-09-16PCI: Disable non-claimed bridge windowIlpo Järvinen1-13/+12
2025-09-16PCI: Always claim bridge window before its setupIlpo Järvinen1-4/+8
2025-09-16PCI: Refactor find_bus_resource_of_type() logic checksIlpo Järvinen1-3/+7
2025-09-16PCI: Move find_bus_resource_of_type() earlierIlpo Järvinen1-28/+28
2025-09-16PCI: Fix failure detection during resource resizeIlpo Järvinen1-8/+18
2025-09-16PCI: Fix pdev_resources_assignable() disparityIlpo Järvinen1-0/+1
2025-09-16PCI: Ensure relaxed tail alignment does not increase min_alignIlpo Järvinen1-4/+7
2025-07-14PCI/IOV: Add pci_resource_num_to_vf_bar() to convert VF BAR number to/from IO...Michał Winiarski1-1/+2
2025-06-04Merge tag 'pci-v6.16-changes' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-7/+9
2025-06-02PCI: Remove unnecessary linesplit in __pci_setup_bridge()Ilpo Järvinen1-2/+1
2025-06-02PCI: WARN (not BUG()) when we fail to assign optional resourcesIlpo Järvinen1-5/+8
2025-04-18PCI: Restore assigned resources fully after releaseIlpo Järvinen1-0/+4
2025-03-27Merge branch 'pci/misc'Bjorn Helgaas1-1/+1
2025-03-20PCI: Make pci_setup_bridge() staticIlpo Järvinen1-1/+1
2025-03-08PCI: Fix typosBjorn Helgaas1-1/+1
2025-03-07PCI: Increase Resizable BAR support from 512 GB to 128 TBZhiyuan Dai1-1/+1
2025-02-18PCI: Rework optional resource handlingIlpo Järvinen1-31/+58
2025-02-18PCI: Perform reset_resource() and build fail list in syncIlpo Järvinen1-6/+29
2025-02-18PCI: Use res->parent to check if resource is assignedIlpo Järvinen1-1/+1
2025-02-18PCI: Add debug print when releasing resources before retryIlpo Järvinen1-2/+12
2025-02-18PCI: Indicate optional resource assignment failuresIlpo Järvinen1-2/+6
2025-02-18PCI: Always have realloc_head in __assign_resources_sorted()Ilpo Järvinen1-2/+6
2025-02-18PCI: Extend enable to check for any optional resourceIlpo Järvinen1-0/+12
2025-02-18PCI: Add restore_dev_resource()Ilpo Järvinen1-20/+15
2025-02-18PCI: Consolidate assignment loop next round preparationIlpo Järvinen1-62/+42
2025-02-18PCI: Rename retval to retIlpo Järvinen1-5/+4
2025-02-18PCI: Use while loop and break instead of gotosIlpo Järvinen1-106/+106
2025-02-18PCI: Refactor pdev_sort_resources() & __dev_sort_resources()Ilpo Järvinen1-21/+23
2025-02-18PCI: Converge return paths in __assign_resources_sorted()Ilpo Järvinen1-2/+3
2025-02-18PCI: Add dev & res local variables to resource assignment funcsIlpo Järvinen1-29/+37
2025-02-18PCI: Add pci_resource_num() helperIlpo Järvinen1-5/+5
2025-02-18PCI: Check resource_size() separatelyIlpo Järvinen1-2/+5
2025-02-18PCI: Add pci_resource_is_iov() to identify IOV resourcesMichał Winiarski1-4/+3
2025-02-18PCI: Use resource_set_{range,size}() helpersIlpo Järvinen1-9/+6
2025-02-18PCI: Use SZ_* instead of literals in setup-bus.cIlpo Järvinen1-4/+4
2025-02-18PCI: Fix old_size lower bound in calculate_iosize() tooIlpo Järvinen1-4/+2
2025-02-18PCI: Allow relaxed bridge window tail sizing for optional resourcesIlpo Järvinen1-1/+13
2025-02-18PCI: Simplify size1 assignment logicIlpo Järvinen1-7/+14
2025-02-18PCI: Use min_align, not unrelated add_align, for size0Ilpo Järvinen1-1/+1
2025-02-18PCI: Remove add_align overwrite unrelated to size0Ilpo Järvinen1-1/+0
2025-02-18PCI: Use downstream bridges for distributing resourcesKai-Heng Feng1-2/+1
2024-10-18PCI: Improve pdev_sort_resources() warning messageIlpo Järvinen1-2/+3
2024-10-10PCI: Add ALIGN_DOWN_IF_NONZERO() helperIlpo Järvinen1-6/+7
2024-10-10PCI: Use resource_set_{range,size}() helpersIlpo Järvinen1-20/+15
2024-06-12PCI: Relax bridge window tail sizing rulesIlpo Järvinen1-2/+77
2024-06-12PCI: Make minimum bridge window alignment reference more obviousIlpo Järvinen1-2/+4
2024-05-28PCI: Fix resource double counting on remove & rescanIlpo Järvinen1-4/+2
2023-12-15PCI: Use resource names in PCI log messagesPuranjay Mohan1-10/+20
2023-10-05PCI: Make pci_assign_unassigned_resources() non-initRandy Dunlap1-1/+1
2023-08-25PCI: Fix typos in docs and commentsBjorn Helgaas1-1/+1
2023-04-05PCI: Make pci_bus_for_each_resource() index optionalAndy Shevchenko1-6/+4
2023-04-04PCI: Introduce pci_dev_for_each_resource()Mika Westerberg1-17/+10
2023-02-07PCI: Distribute available resources for root buses, tooMika Westerberg1-1/+56
2023-02-07PCI: Take other bus devices into account when distributing resourcesMika Westerberg1-70/+106
2023-02-07PCI: Align extra resources for hotplug bridges properlyMika Westerberg1-6/+19
2022-10-14Revert "PCI: Distribute available resources for root buses, too"Bjorn Helgaas1-61/+1
2022-09-21PCI: Fix whitespace and indentationMika Westerberg1-1/+1
2022-09-21PCI: Distribute available resources for root buses, tooMika Westerberg1-1/+61
2022-09-21PCI: Move pci_assign_unassigned_root_bus_resources()Mika Westerberg1-113/+113
2022-03-22Merge branch 'pci/misc'Bjorn Helgaas1-1/+1
2022-03-22PCI: Remove unused assignmentsBjorn Helgaas1-1/+1
2022-03-03PCI: Support BAR sizes up to 8TBDongdong Liu1-1/+1
2021-10-27PCI: Prefer 'unsigned int' over bare 'unsigned'Krzysztof Wilczyński1-1/+1
2020-08-23treewide: Use fallthrough pseudo-keywordGustavo A. R. Silva1-1/+1
2020-08-05Merge branch 'pci/doc'Bjorn Helgaas1-0/+1
2020-08-05PCI: Fix kerneldoc warningsKrzysztof Kozlowski1-0/+1
2020-07-09PCI: Fix error in panic messageLiao Pingfang1-1/+1
2020-06-04Merge branch 'remotes/lorenzo/pci/host-generic'Bjorn Helgaas1-0/+1
2020-05-21PCI: Use bridge window names (PCI_BRIDGE_IO_WINDOW etc)Krzysztof Wilczynski1-53/+61
2020-05-01PCI: host-generic: Support building as modulesRob Herring1-0/+1
2020-03-30PCI: Add support for root bus sizingIvan Kokshaysky1-12/+22
2020-01-29PCI: Allow adjust_bridge_window() to shrink resource if necessaryNicholas Johnson1-4/+12
2020-01-29PCI: Set resource size directly in adjust_bridge_window()Nicholas Johnson1-16/+7
2020-01-29PCI: Rename extend_bridge_window() to adjust_bridge_window()Nicholas Johnson1-4/+4
2020-01-29PCI: Rename extend_bridge_window() parameterNicholas Johnson1-4/+4
2020-01-29PCI: Consider alignment of hot-added bridges when assigning resourcesNicholas Johnson1-32/+46
2020-01-29PCI: Remove local variable usage in pci_bus_distribute_available_resources()Nicholas Johnson1-10/+6
2020-01-29PCI: Pass size + alignment to pci_bus_distribute_available_resources()Nicholas Johnson1-16/+19
2020-01-29PCI: Rename variablesNicholas Johnson1-13/+17
2020-01-29PCI: Remove unnecessary bracesNicholas Johnson1-2/+1
2020-01-13PCI: Don't disable bridge BARs when assigning bus resourcesLogan Gunthorpe1-4/+16
2019-11-14PCI: Avoid double hpmemsize MMIO window assignmentNicholas Johnson1-11/+27
2019-10-23PCI: Add "pci=hpmmiosize" and "pci=hpmmioprefsize" parametersNicholas Johnson1-11/+13
2019-09-30PCI: Protect pci_reassign_bridge_resources() against concurrent addition/removalBenjamin Herrenschmidt1-1/+7
2019-08-08PCI: Use PCI_SRIOV_NUM_BARS in loops instead of PCI_IOV_RESOURCE_ENDDenis Efremov1-2/+2
2019-07-02PCI: Skip resource distribution when no hotplug bridgesNicholas Johnson1-2/+3
2019-07-02PCI: Simplify pci_bus_distribute_available_resources()Nicholas Johnson1-25/+25
2019-06-21PCI: Don't auto-realloc if we're preserving firmware configBenjamin Herrenschmidt1-0/+5
2019-05-13Merge branch 'pci/trivial'Bjorn Helgaas1-247/+249
2019-05-09PCI: Replace dev_printk(KERN_DEBUG) with dev_info(), etcMohan Kumar1-16/+14
2019-05-07PCI: Cleanup setup-bus.c comments and whitespaceNicholas Johnson1-247/+249
2019-01-30PCI: Rely on config space header type, not class codeHonghui Zhang1-9/+9
2019-01-22PCI: Probe bridge window attributes once at enumeration-timeBjorn Helgaas1-41/+4
2018-10-02PCI: Equalize hotplug memory and io for occupied and empty slotsJon Derrick1-13/+15
2018-06-04PCI: Move resource distribution for single bridge outside loopMika Westerberg1-41/+41
2018-03-19PCI: Tidy commentsBjorn Helgaas1-5/+1
2018-02-01Merge branch 'pci/spdx' into nextBjorn Helgaas1-0/+1
2018-01-26PCI: Add SPDX GPL-2.0 when no license was specifiedBjorn Helgaas1-0/+1
2018-01-18PCI: Add wrappers for dev_printk()Frederick Lawler1-22/+22
2018-01-17PCI: Remove unnecessary messages for memory allocation failuresMarkus Elfring1-3/+1
2017-11-14Merge branch 'pci/resource' into nextBjorn Helgaas1-9/+106
2017-11-06PCI: Distribute available resources to hotplug-capable bridgesMika Westerberg1-0/+177
2017-11-06PCI: Add for_each_pci_bridge() helperAndy Shevchenko1-4/+3
2017-10-25PCI: Add pci_resize_resource() for resizing BARsChristian König1-0/+98
2017-10-24PCI: Add PCI resource type mask #defineChristian König1-9/+8
2017-04-18PCI: Fix calculation of bridge window's size and alignmentYongji Xie1-2/+2
2016-12-29PCI: Remove res_to_dev_res() debug messageBjorn Helgaas1-10/+1
2016-09-10x86/ioapic: Ignore root bridges without a companion ACPI deviceRui Wang1-1/+4
2016-08-18x86/ioapic: Support hot-removal of IOAPICs present during bootRui Wang1-1/+4
2016-08-02Merge tag 'pci-v4.8-changes' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-0/+68
2016-06-23PCI: Add generic pci_bus_claim_resources()Lorenzo Pieralisi1-0/+68
2016-06-21PCI: Add pcibios_setup_bridge()Gavin Shan1-0/+5
2016-02-05PCI: Remove includes of empty asm-generic/pci-bridge.hBjorn Helgaas1-1/+0
2016-01-08PCI: Fix all whitespace issuesBogicevic Sasa1-1/+1
2015-10-29PCI: Handle IORESOURCE_PCI_FIXED when assigning resourcesDavid Daney1-0/+43
2015-10-29PCI: Handle IORESOURCE_PCI_FIXED when sizing resourcesDavid Daney1-3/+4
2015-06-01PCI: Preserve resource size during alignment reorderingYinghai Lu1-2/+3
2015-05-27PCI: Fix IOV resource sorting by alignment requirementWei Yang1-1/+3
2015-04-16Merge tag 'powerpc-4.1-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mp...Linus Torvalds1-16/+79
2015-04-08PCI: Export symbols required for loadable host driver modulesRay Jui1-0/+1
2015-03-31PCI: Consider additional PF's IOV BAR alignment in sizing and assigningWei Yang1-16/+79
2015-01-16PCI: Add pci_claim_bridge_resource() to clip window if necessaryYinghai Lu1-0/+35
2015-01-16PCI: Pass bridge device, not bus, when updating bridge windowsYinghai Lu1-12/+9
2014-09-30PCI: Add missing MEM_64 mask in pci_assign_unassigned_bridge_resources()Yinghai Lu1-1/+1
2014-07-08PCI: Support BAR sizes up to 128GBYinghai Lu1-1/+1
2014-06-10PCI: Merge multi-line quoted stringsRyan Desfosses1-22/+17
2014-06-10PCI: Whitespace cleanupRyan Desfosses1-6/+6
2014-05-28Merge branches 'pci/hotplug', 'pci/pci_is_bridge' and 'pci/virtualization' in...Bjorn Helgaas1-3/+1
2014-05-27PCI: Use pci_is_bridge() to simplify codeYijing Wang1-3/+1
2014-05-26Merge branches 'dma-api', 'pci/virtualization', 'pci/msi', 'pci/misc' and 'pc...Bjorn Helgaas1-67/+155
2014-05-23PCI: Add resource allocation commentsBjorn Helgaas1-15/+43
2014-05-23PCI: Change pbus_size_mem() return values to be more conventionalBjorn Helgaas1-14/+21
2014-05-23PCI: Restrict 64-bit prefetchable bridge windows to 64-bit resourcesYinghai Lu1-51/+99
2014-05-23PCI: Support BAR sizes up to 8GBAlan1-5/+10
2014-04-29PCI: Remove unnecessary __ref annotationsBjorn Helgaas1-13/+12
2014-01-10Merge branch 'pci/resource' into nextBjorn Helgaas1-8/+8
2013-12-21PCI: Convert pcibios_resource_to_bus() to take a pci_bus, not a pci_devYinghai Lu1-8/+8
2013-12-13PCI: Stop clearing bridge Secondary Status when setting up I/O apertureBjorn Helgaas1-5/+5
2013-12-13PCI: Prevent bus conflicts while checking for bridge aperturesBjorn Helgaas1-2/+4
2013-11-14PCI: Fix whitespace, capitalization, and spelling errorsBjorn Helgaas1-9/+9
2013-09-25PCI: Pass type, width, and prefetchability for window alignmentWei Yang1-1/+1
2013-09-25PCI: Use pci_is_root_bus() to check for root busWei Yang1-1/+1
2013-09-03Merge tag 'pci-v3.12-changes' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-88/+88
2013-08-26Merge branch 'pci/yinghai-assign-unassigned-v6' into nextBjorn Helgaas1-74/+77
2013-08-05PCI: Align bridge I/O windows as required by downstream devices & bridgesBjorn Helgaas1-5/+2
2013-08-02PCI: Fix types in pbus_size_io()Wei Yang1-3/+4
2013-08-02PCI: Add comments for pbus_size_mem() parametersWei Yang1-0/+2
2013-08-02PCI: Enumerate subordinate buses, not devices, in pci_bus_get_depth()Wei Yang1-6/+3
2013-07-26PCI: Retry allocation of only the resource type that failedYinghai Lu1-1/+68
2013-07-25PCI: Assign resources for hot-added host bridge more aggressivelyYinghai Lu1-1/+1
2013-07-25PCI: Move resource reallocation code to non-__initYinghai Lu1-8/+7
2013-07-25PCI: Delay enabling bridges until they're neededYinghai Lu1-7/+3
2013-07-25PCI: Assign resources on a per-bus basisYinghai Lu1-37/+25
2013-07-25PCI: Enable unassigned resource reallocation on per-bus basisYinghai Lu1-19/+23
2013-07-25PCI: Turn on reallocation for unassigned resources with host bridge offsetYinghai Lu1-1/+6
2013-07-25PCI: Look for unassigned resources on per-bus basisYinghai Lu1-15/+29
2013-07-25PCI: Drop temporary variable in pci_assign_unassigned_resources()Yinghai Lu1-10/+7
2013-06-23PCI / ACPI: Use boot-time resource allocation rules during hotplugJiang Liu1-4/+4
2013-04-17PCI: Warn about failures instead of "must_check" functionsBjorn Helgaas1-0/+2
2013-04-12PCI: Make local functions/structs staticBjorn Helgaas1-1/+1
2013-01-25PCI: Add root bus children dev's res to fail listYinghai Lu1-1/+1
2012-11-03PCI: Move out pci_enable_bridges out of assign_unsigned_bus_resYinghai Lu1-2/+0
2012-11-03PCI: Move pci_rescan_bus() back to probe.cYinghai Lu1-23/+0
2012-10-30PCI: Separate out pci_assign_unassigned_bus_resources()Yinghai Lu1-14/+19
2012-09-11PCI: Refactor pbus_size_mem()Gavin Shan1-13/+23
2012-09-11PCI: Align P2P windows using pcibios_window_alignment()Gavin Shan1-9/+6
2012-09-11PCI: Add weak pcibios_window_alignment() interfaceGavin Shan1-0/+32
2012-07-24Merge tag 'for-3.6' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pciLinus Torvalds1-21/+44
2012-07-24pci: hotplug: Fix typo in pciMasanari Iida1-1/+1
2012-07-10Merge branch 'pci/bjorn-p2p-bridge-windows' into nextBjorn Helgaas1-8/+31
2012-07-09PCI: support sizing P2P bridge I/O windows with 1K granularityYinghai Lu1-6/+22
2012-07-09PCI: reimplement P2P bridge 1K I/O windows (Intel P64H2)Bjorn Helgaas1-2/+9
2012-06-22Merge branch 'topic/bjorn-trivial' into nextBjorn Helgaas1-1/+1
2012-06-20PCI: cleanup assign_requested_resources_sorted() kernel-doc warningWanpeng Li1-1/+1
2012-06-13PCI: replace struct pci_bus secondary/subordinate with busn_resYinghai Lu1-12/+12
2012-02-24Merge branch 'pci-next+probe_only+bus2res-fb127cb' of git://github.com/bjorn-...Jesse Barnes1-0/+3
2012-02-24PCI: add a PCI resource reallocation config optionYinghai Lu1-0/+28
2012-02-24PCI: print out suggestion about using pci=reallocYinghai Lu1-0/+3
2012-02-24PCI: prepare pci=realloc for multiple optionsYinghai Lu1-7/+27
2012-02-24PCI: Retry on IORESOURCE_IO type allocationsYinghai Lu1-11/+1
2012-02-23PCI: make pci_flags non-weakBjorn Helgaas1-1/+1
2012-02-23PCI: make pci_flags always availableBjorn Helgaas1-0/+3
2012-02-23PCI: Skip cardbus assigned resource reset during pci bus rescanYinghai Lu1-0/+14