本文将结合spec与kernel代码来介绍:利用Power Management capability to reset PCI device function。

Background

PCIe设备的PM状态:

Details

核心思想: Put device into D3 state and back into D0 state.


参考资料:

  1. PCIe扫盲——Power Management概述
  2. PCI Bus Power Management Interface Specification Revision 1.2
  3. pci_pm_reset
  4. RFC: PCI Power Management Documentation