mic_overview.txt 5.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. An Intel MIC X100 device is a PCIe form factor add-in coprocessor
  2. card based on the Intel Many Integrated Core (MIC) architecture
  3. that runs a Linux OS. It is a PCIe endpoint in a platform and therefore
  4. implements the three required standard address spaces i.e. configuration,
  5. memory and I/O. The host OS loads a device driver as is typical for
  6. PCIe devices. The card itself runs a bootstrap after reset that
  7. transfers control to the card OS downloaded from the host driver. The
  8. host driver supports OSPM suspend and resume operations. It shuts down
  9. the card during suspend and reboots the card OS during resume.
  10. The card OS as shipped by Intel is a Linux kernel with modifications
  11. for the X100 devices.
  12. Since it is a PCIe card, it does not have the ability to host hardware
  13. devices for networking, storage and console. We provide these devices
  14. on X100 coprocessors thus enabling a self-bootable equivalent
  15. environment for applications. A key benefit of our solution is that it
  16. leverages the standard virtio framework for network, disk and console
  17. devices, though in our case the virtio framework is used across a PCIe
  18. bus. A Virtio Over PCIe (VOP) driver allows creating user space
  19. backends or devices on the host which are used to probe virtio drivers
  20. for these devices on the MIC card. The existing VRINGH infrastructure
  21. in the kernel is used to access virtio rings from the host. The card
  22. VOP driver allows card virtio drivers to communicate with their user
  23. space backends on the host via a device page. Ring 3 apps on the host
  24. can add, remove and configure virtio devices. A thin MIC specific
  25. virtio_config_ops is implemented which is borrowed heavily from
  26. previous similar implementations in lguest and s390.
  27. MIC PCIe card has a dma controller with 8 channels. These channels are
  28. shared between the host s/w and the card s/w. 0 to 3 are used by host
  29. and 4 to 7 by card. As the dma device doesn't show up as PCIe device,
  30. a virtual bus called mic bus is created and virtual dma devices are
  31. created on it by the host/card drivers. On host the channels are private
  32. and used only by the host driver to transfer data for the virtio devices.
  33. The Symmetric Communication Interface (SCIF (pronounced as skiff)) is a
  34. low level communications API across PCIe currently implemented for MIC.
  35. More details are available at scif_overview.txt.
  36. The Coprocessor State Management (COSM) driver on the host allows for
  37. boot, shutdown and reset of Intel MIC devices. It communicates with a COSM
  38. "client" driver on the MIC cards over SCIF to perform these functions.
  39. Here is a block diagram of the various components described above. The
  40. virtio backends are situated on the host rather than the card given better
  41. single threaded performance for the host compared to MIC, the ability of
  42. the host to initiate DMA's to/from the card using the MIC DMA engine and
  43. the fact that the virtio block storage backend can only be on the host.
  44. +----------+ | +----------+
  45. | Card OS | | | Host OS |
  46. +----------+ | +----------+
  47. |
  48. +-------+ +--------+ +------+ | +---------+ +--------+ +--------+
  49. | Virtio| |Virtio | |Virtio| | |Virtio | |Virtio | |Virtio |
  50. | Net | |Console | |Block | | |Net | |Console | |Block |
  51. | Driver| |Driver | |Driver| | |backend | |backend | |backend |
  52. +---+---+ +---+----+ +--+---+ | +---------+ +----+---+ +--------+
  53. | | | | | | |
  54. | | | |User | | |
  55. | | | |------|------------|--+------|-------
  56. +---------+---------+ |Kernel |
  57. | | |
  58. +---------+ +---+----+ +------+ | +------+ +------+ +--+---+ +-------+
  59. |MIC DMA | | VOP | | SCIF | | | SCIF | | COSM | | VOP | |MIC DMA|
  60. +---+-----+ +---+----+ +--+---+ | +--+---+ +--+---+ +------+ +----+--+
  61. | | | | | | |
  62. +---+-----+ +---+----+ +--+---+ | +--+---+ +--+---+ +------+ +----+--+
  63. |MIC | | VOP | |SCIF | | |SCIF | | COSM | | VOP | | MIC |
  64. |HW Bus | | HW Bus| |HW Bus| | |HW Bus| | Bus | |HW Bus| |HW Bus |
  65. +---------+ +--------+ +--+---+ | +--+---+ +------+ +------+ +-------+
  66. | | | | | | |
  67. | +-----------+--+ | | | +---------------+ |
  68. | |Intel MIC | | | | |Intel MIC | |
  69. | |Card Driver | | | | |Host Driver | |
  70. +---+--------------+------+ | +----+---------------+-----+
  71. | | |
  72. +-------------------------------------------------------------+
  73. | |
  74. | PCIe Bus |
  75. +-------------------------------------------------------------+