Bug 199473

Summary: pcieport does not scan devices behind PEX switch, while resources are allocated
Product: Drivers Reporter: Janpieter Sollie (janpieter.sollie)
Component: PCIAssignee: drivers_pci (drivers_pci)
Status: RESOLVED INVALID    
Severity: normal    
Priority: P1    
Hardware: x86-64   
OS: Linux   
Kernel Version: 4.17-rc1, 4.14.27 Subsystem:
Regression: No Bisected commit-id:
Attachments: dmesg stable kernel
dmesg mainline kernel
lspci stable kernel
lspci mainline kernel
adapted driver from Broadcom for the 8619 driver
lspci -vv output on the working kernel

Description Janpieter Sollie 2018-04-23 05:20:09 UTC
Created attachment 275511 [details]
dmesg stable kernel

pcieport assigns the PEX 8619 pcie expander switch ports, but does not scan them for additional objects behind the ports. only 1 device is added @ pci region 4f.  Workaround for getting all devices online: while pc is on, remove the card, reinsert it at a slot before the working device, and make a cold start.
It would be nice if the pcie switches are scanned properly.
Comment 1 Janpieter Sollie 2018-04-23 05:20:38 UTC
Created attachment 275513 [details]
dmesg mainline kernel
Comment 2 Janpieter Sollie 2018-04-23 05:21:05 UTC
Created attachment 275515 [details]
lspci stable kernel
Comment 3 Janpieter Sollie 2018-04-23 05:21:36 UTC
Created attachment 275517 [details]
lspci mainline kernel
Comment 4 Janpieter Sollie 2018-04-23 13:59:19 UTC
Created attachment 275531 [details]
adapted driver from Broadcom for the 8619 driver

As the driver from broadcom is licensed under the GPL, I adopted it to 4.17 (the old driver is severely outdated).  This driver may be the solution for this problem, but currently, ONLY the 8000_DMA driver has been adapted. I will perform further testing. Other parts of the driver will follow if you people would like to include it under eg Drivers->PCI->switches.
Comment 5 Janpieter Sollie 2018-04-26 04:29:47 UTC
Created attachment 275585 [details]
lspci -vv output on the working kernel