#ifndef LOCKME_H #define LOCKME_H #include #include "die.h" static inline void xlockme(void) { if (mlockall(MCL_CURRENT | MCL_FUTURE) != 0) panic("Cannot lock pages!\n"); } static inline void xunlockme(void) { munlockall(); } #endif /* LOCKME_H */ feed' href='https://git.distanz.ch/cgit.cgi/linux/net-next.git/atom/Documentation/devicetree/bindings?h=master' type='application/atom+xml'/>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKelly Zytaruk <kelly.zytaruk@amd.com>2016-02-09 13:08:58 -0500
committerBjorn Helgaas <bhelgaas@google.com>2016-02-29 11:22:33 -0600
commit0a3d00b33b4ed873cbead8c241bd58b456d92d36 (patch)
treebc3035504273d1b426366da261bab585298e248a /Documentation/devicetree/bindings
parentb404bcfbf035413dcce539c8ba2c9986d220d8ed (diff)
PCI: Support SR-IOV on any function type
Previously, we only supported SR-IOV on PCI Express Endpoints and Root Complex Integrated Endpoints. This restriction has been present since d1b054da8f59 ("PCI: initialize and release SR-IOV capability") added SR-IOV support, but the spec does not require it. In fact, the SR-IOV spec r1.1, sec 3.3, says the SR-IOV extended capability may be present for any Type 0 function. Remove the function type test, so we can support SR-IOV on any function. Some AMD GPUs have display outputs, use the VGA class code, are Legacy Endpoints, and support SR-IOV. This change allows Linux to enable SR-IOV on these devices. [bhelgaas: changelog] Link: https://bugzilla.kernel.org/show_bug.cgi?id=112221 Signed-off-by: Kelly Zytaruk <kelly.zytaruk@amd.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'Documentation/devicetree/bindings')