diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2016-11-29 01:43:06 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2016-11-30 03:05:09 +0300 |
commit | 546ba9f8f22f71b0202b6ba8967be5cc6dae4e21 (patch) | |
tree | 34c3b82c568c81e50a723aed5d2ec05684422bcb /MAINTAINERS | |
parent | 6ffa2489c51da77564a0881a73765ea2169f955d (diff) | |
download | linux-546ba9f8f22f71b0202b6ba8967be5cc6dae4e21.tar.xz |
PCI: Don't update VF BARs while VF memory space is enabled
If we update a VF BAR while it's enabled, there are two potential problems:
1) Any driver that's using the VF has a cached BAR value that is stale
after the update, and
2) We can't update 64-bit BARs atomically, so the intermediate state
(new lower dword with old upper dword) may conflict with another
device, and an access by a driver unrelated to the VF may cause a bus
error.
Warn about attempts to update VF BARs while they are enabled. This is a
programming error, so use dev_WARN() to get a backtrace.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Diffstat (limited to 'MAINTAINERS')
0 files changed, 0 insertions, 0 deletions