forked from rockchip-linux/kernel
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nuumio: dts/c: rockpro64: add pcie scan sleep and enable it for rockp…
…ro64 (#45) * PCI: rockchip: Workaround bus scan crashes with some PCIe devices Some PCIe devices (like LSI SAS2008 based SAS controllers) caused bus scan to crash when reading vendor id from the device. It looks like these devices need a little sleep between link training and bus scan to work correctly. What causes this or why is currently a mystery for me so I'll be calling this a workaround, not a fix. The amount of sleep needed is suspiciously close to those needed in sdio defer to make PCIe work. So the root cause may even be common. To set the amount of sleep you can use device tree (will default to 850 ms) or kernel command-line (defaults to "ignored"). Command-line overrides device tree. In my current test rig (Rockpro64 4GB + WiFi enabled with Pine module + LSI 9201, BIOS erased) 800 ms is not enough. 850 ms seems stable. So at least with my system 4.4 needs a bit more sleep than mainline (without WiFi). Other connected devices may have effect on needed amout of sleep. * dts: rockpro64: set PCIe bus scan delay to 1000 ms 850 ms seemed stable for my current setup but let's add a bit of safety margin. * defconfig: Add MP3SAS driver for Rockchip linux
- Loading branch information
Showing
4 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3cde5c6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey@nuumio @ayufan! Have you tried upstreaming this patch?