Bug 199473 - pcieport does not scan devices behind PEX switch, while resources are allocated
Summary: pcieport does not scan devices behind PEX switch, while resources are allocated
Status: RESOLVED INVALID
Alias: None
Product: Drivers
Classification: Unclassified
Component: PCI (show other bugs)
Hardware: x86-64 Linux
: P1 normal
Assignee: drivers_pci@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-23 05:20 UTC by Janpieter Sollie
Modified: 2019-12-30 06:26 UTC (History)
0 users

See Also:
Kernel Version: 4.17-rc1, 4.14.27
Subsystem:
Regression: No
Bisected commit-id:


Attachments
dmesg stable kernel (99.05 KB, text/plain)
2018-04-23 05:20 UTC, Janpieter Sollie
Details
dmesg mainline kernel (102.92 KB, text/plain)
2018-04-23 05:20 UTC, Janpieter Sollie
Details
lspci stable kernel (5.22 KB, text/plain)
2018-04-23 05:21 UTC, Janpieter Sollie
Details
lspci mainline kernel (17.16 KB, text/plain)
2018-04-23 05:21 UTC, Janpieter Sollie
Details
adapted driver from Broadcom for the 8619 driver (3.31 MB, application/octet-stream)
2018-04-23 13:59 UTC, Janpieter Sollie
Details
lspci -vv output on the working kernel (151.30 KB, text/plain)
2018-04-26 04:29 UTC, Janpieter Sollie
Details

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

Note You need to log in before you can comment on or make changes to this bug.