Bug 1251253

Summary: Cannot Claim PCI BAR after inserting Thunderbolt peripheral
Product: [Fedora] Fedora Reporter: Greg Oliver <oliver.greg>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: gansalmon, itamar, jonathan, kernel-maint, madhu.chinakonda, mchehab
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Full boot dmesg
none
Dmesg after insertion
none
lspci output none

Description Greg Oliver 2015-08-06 20:01:13 UTC
Created attachment 1060066 [details]
Full boot dmesg

Description of problem:

When inserting a thunderbolt ethernet / usb combo adapter, it cannot claim the PCI bar ::

[  125.159279] pci 0000:02:00.0: [8086:157e] type 01 class 0x060400
[  125.160815] pci 0000:02:00.0: supports D1 D2
[  125.160824] pci 0000:02:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[  125.167401] pci 0000:03:00.0: [8086:157e] type 01 class 0x060400
[  125.168047] pci 0000:03:00.0: supports D1 D2
[  125.168057] pci 0000:03:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[  125.169754] pci 0000:03:01.0: [8086:157e] type 01 class 0x060400
[  125.170408] pci 0000:03:01.0: supports D1 D2
[  125.170417] pci 0000:03:01.0: PME# supported from D0 D1 D2 D3hot D3cold
[  125.171791] pci 0000:02:00.0: PCI bridge to [bus 03-3a]
[  125.171836] pci 0000:02:00.0:   bridge window [mem 0xd4000000-0xebffffff]
[  125.171865] pci 0000:02:00.0:   bridge window [mem 0x90000000-0xbfffffff 64bit pref]
[  125.173024] pci 0000:04:00.0: [8086:157d] type 00 class 0x088000
[  125.173183] pci 0000:04:00.0: reg 0x10: [mem 0xebf00000-0xebf3ffff]
[  125.173228] pci 0000:04:00.0: reg 0x14: [mem 0xebf40000-0xebf40fff]
[  125.173694] pci 0000:04:00.0: supports D1 D2
[  125.173699] pci 0000:04:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[  125.175159] pci 0000:03:00.0: PCI bridge to [bus 04]
[  125.175197] pci 0000:03:00.0:   bridge window [mem 0xebf00000-0xebffffff]
[  125.175818] pci 0000:03:01.0: PCI bridge to [bus 05-3a]
[  125.175845] pci 0000:03:01.0:   bridge window [io  0x2000-0x2fff]
[  125.175860] pci 0000:03:01.0:   bridge window [mem 0xd4000000-0xebefffff]
[  125.175885] pci 0000:03:01.0:   bridge window [mem 0x90000000-0xbfffffff 64bit pref]
[  125.175987] pci_bus 0000:03: Allocating resources
[  125.175994] pci 0000:03:01.0: can't claim BAR 13 [io  0x2000-0x2fff]: no compatible bridge window
[  125.176070] pci 0000:03:00.0: bridge window [io  0x1000-0x0fff] to [bus 04] add_size 1000
[  125.176077] pci 0000:03:00.0: bridge window [mem 0x00100000-0x000fffff 64bit pref] to [bus 04] add_size 200000 add_align 100000
[  125.176115] pci 0000:03:01.0: bridge window [io  0x1000-0x0fff] to [bus 05-3a] add_size 1000
[  125.176152] pci 0000:03:00.0: res[13]=[io  0x1000-0x0fff] res_to_dev_res add_size 1000 min_align 1000
[  125.176156] pci 0000:03:01.0: res[13]=[io  0x1000-0x0fff] res_to_dev_res add_size 1000 min_align 1000
[  125.176160] pci 0000:02:00.0: bridge window [io  0x1000-0x0fff] to [bus 03-3a] add_size 2000
[  125.176166] pci 0000:02:00.0: res[13]=[io  0x1000-0x0fff] res_to_dev_res add_size 2000 min_align 1000
[  125.176170] pci 0000:02:00.0: res[13]=[io  0x1000-0x2fff] res_to_dev_res add_size 2000 min_align 1000
[  125.176176] pci 0000:02:00.0: BAR 13: no space for [io  size 0x2000]
[  125.176179] pci 0000:02:00.0: BAR 13: failed to assign [io  size 0x2000]
[  125.176186] pci 0000:02:00.0: BAR 13: no space for [io  size 0x2000]
[  125.176188] pci 0000:02:00.0: BAR 13: failed to assign [io  size 0x2000]
[  125.176196] pci 0000:03:00.0: res[15]=[mem 0x00100000-0x000fffff 64bit pref] res_to_dev_res add_size 200000 min_align 100000
[  125.176200] pci 0000:03:00.0: res[15]=[mem 0x00100000-0x002fffff 64bit pref] res_to_dev_res add_size 200000 min_align 100000
[  125.176203] pci 0000:03:00.0: res[13]=[io  0x1000-0x0fff] res_to_dev_res add_size 1000 min_align 1000
[  125.176206] pci 0000:03:00.0: res[13]=[io  0x1000-0x1fff] res_to_dev_res add_size 1000 min_align 1000
[  125.176210] pci 0000:03:01.0: res[13]=[io  0x1000-0x0fff] res_to_dev_res add_size 1000 min_align 1000
[  125.176213] pci 0000:03:01.0: res[13]=[io  0x1000-0x1fff] res_to_dev_res add_size 1000 min_align 1000
[  125.176223] pci 0000:03:00.0: BAR 15: no space for [mem size 0x00200000 64bit pref]
[  125.176226] pci 0000:03:00.0: BAR 15: failed to assign [mem size 0x00200000 64bit pref]
[  125.176230] pci 0000:03:00.0: BAR 13: no space for [io  size 0x1000]
[  125.176233] pci 0000:03:00.0: BAR 13: failed to assign [io  size 0x1000]
[  125.176237] pci 0000:03:01.0: BAR 13: no space for [io  size 0x1000]
[  125.176240] pci 0000:03:01.0: BAR 13: failed to assign [io  size 0x1000]
[  125.176250] pci 0000:03:01.0: BAR 13: no space for [io  size 0x1000]
[  125.176253] pci 0000:03:01.0: BAR 13: failed to assign [io  size 0x1000]
[  125.176263] pci 0000:03:00.0: BAR 15: no space for [mem size 0x00200000 64bit pref]


Version-Release number of selected component (if applicable):

4.2.0-0.rc4.git4.1.fc24.x86_64


How reproducible:

Always

Steps to Reproduce:
1.  Plug the device in (pre or post boot)
2.
3.

Actual results:


Expected results:


Additional info:

I am attaching dmesg prior to insertion, and after.

Comment 1 Greg Oliver 2015-08-06 20:01:50 UTC
Created attachment 1060067 [details]
Dmesg after insertion

Comment 2 Greg Oliver 2015-08-06 20:03:59 UTC
Sorry - forgot to mention, I have tried kernels all the way back to 3.17 with the same results.  From all of the research I have done trying to get this fixed, it looks like it may be a UEFI bug, but I cannot tell from the output if that is the case.

I just tried the rawhide kernel to make sure I tested the latest before I posted here.

Thanks

Comment 3 Greg Oliver 2015-08-06 20:04:32 UTC
Created attachment 1060068 [details]
lspci output