PCI: handle Virtual Function ATS enabling
authorYu Zhao <yu.zhao@intel.com>
Mon, 18 May 2009 05:51:33 +0000 (13:51 +0800)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 18 May 2009 10:25:58 +0000 (11:25 +0100)
commite277d2fc79d6abb86fafadb58dca0b9c498a9aa7
tree6f7a6c5bf2b300bec9fa76266eeb9089dc82e651
parent302b4215daa0a704c843da40fd2529e5757a72da
PCI: handle Virtual Function ATS enabling

The SR-IOV spec requires that the Smallest Translation Unit and
the Invalidate Queue Depth fields in the Virtual Function ATS
capability are hardwired to 0. If a function is a Virtual Function,
then and set its Physical Function's STU before enabling the ATS.

Signed-off-by: Yu Zhao <yu.zhao@intel.com>
Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/pci/iov.c
drivers/pci/pci.h