summaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2012-01-27 10:55:15 -0800
committerJesse Barnes <jbarnes@virtuousgeek.org>2012-02-14 08:45:02 -0800
commit2debd9289997fc5d1c0043b41201a8b40d5e11d0 (patch)
treea05fc1c9a3af920eb3f5844bcca0bfa878396d62 /kernel/fork.c
parent7f822999e12a144e68c915194267108f8051cf9b (diff)
downloadblackbird-op-linux-2debd9289997fc5d1c0043b41201a8b40d5e11d0.tar.gz
blackbird-op-linux-2debd9289997fc5d1c0043b41201a8b40d5e11d0.zip
PCI: pciehp: Disable/enable link during slot power off/on
On a system with a repeater on the system board to support gen2 hotplug, we found that when an ExpressModule is removed from some slots, /var/log/messages will be full of "card present/not present" warnings. It turns out the root complex is continually trying to train the link to the repeater because the repeater has not been reset. This patch will disable the link at removal time to allow the repeater to be reset properly. This also prevents a potential AER message at removal time. Also, when testing hotplug on a system under development, we found if we boot the system without an EM installed, and later hot-add an EM, it does not work with Linux, but another OS is ok. The root cause is that BIOS left link disabled when slot was empty at boot time, and other OS is modifying the link disable bit in link ctrl during power on/off. So we should do the same thing to disable/enable link during power off/on. -v2: check link DLLA bit instead of 100ms waiting. Separate link disable/enable functions to another patch. Signed-off-by: Yinghai Lu <yinghai.lu@oracle.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'kernel/fork.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud