Sudeep Dutt | b170d8c | 2013-09-05 16:41:31 -0700 | [diff] [blame] | 1 | What: /sys/class/mic/ |
Dasaratharaman Chandramouli | af19049 | 2013-10-03 18:06:23 -0700 | [diff] [blame] | 2 | Date: October 2013 |
| 3 | KernelVersion: 3.13 |
Sudeep Dutt | b170d8c | 2013-09-05 16:41:31 -0700 | [diff] [blame] | 4 | Contact: Sudeep Dutt <sudeep.dutt@intel.com> |
| 5 | Description: |
| 6 | The mic class directory belongs to Intel MIC devices and |
| 7 | provides information per MIC device. An Intel MIC device is a |
| 8 | PCIe form factor add-in Coprocessor card based on the Intel Many |
| 9 | Integrated Core (MIC) architecture that runs a Linux OS. |
| 10 | |
| 11 | What: /sys/class/mic/mic(x) |
Dasaratharaman Chandramouli | af19049 | 2013-10-03 18:06:23 -0700 | [diff] [blame] | 12 | Date: October 2013 |
| 13 | KernelVersion: 3.13 |
Sudeep Dutt | b170d8c | 2013-09-05 16:41:31 -0700 | [diff] [blame] | 14 | Contact: Sudeep Dutt <sudeep.dutt@intel.com> |
| 15 | Description: |
| 16 | The directories /sys/class/mic/mic0, /sys/class/mic/mic1 etc., |
| 17 | represent MIC devices (0,1,..etc). Each directory has |
| 18 | information specific to that MIC device. |
| 19 | |
| 20 | What: /sys/class/mic/mic(x)/family |
Dasaratharaman Chandramouli | af19049 | 2013-10-03 18:06:23 -0700 | [diff] [blame] | 21 | Date: October 2013 |
| 22 | KernelVersion: 3.13 |
Sudeep Dutt | b170d8c | 2013-09-05 16:41:31 -0700 | [diff] [blame] | 23 | Contact: Sudeep Dutt <sudeep.dutt@intel.com> |
| 24 | Description: |
| 25 | Provides information about the Coprocessor family for an Intel |
| 26 | MIC device. For example - "x100" |
| 27 | |
| 28 | What: /sys/class/mic/mic(x)/stepping |
Dasaratharaman Chandramouli | af19049 | 2013-10-03 18:06:23 -0700 | [diff] [blame] | 29 | Date: October 2013 |
| 30 | KernelVersion: 3.13 |
Sudeep Dutt | b170d8c | 2013-09-05 16:41:31 -0700 | [diff] [blame] | 31 | Contact: Sudeep Dutt <sudeep.dutt@intel.com> |
| 32 | Description: |
| 33 | Provides information about the silicon stepping for an Intel |
| 34 | MIC device. For example - "A0" or "B0" |
Sudeep Dutt | 3a6a920 | 2013-09-05 16:41:55 -0700 | [diff] [blame] | 35 | |
| 36 | What: /sys/class/mic/mic(x)/state |
Dasaratharaman Chandramouli | af19049 | 2013-10-03 18:06:23 -0700 | [diff] [blame] | 37 | Date: October 2013 |
| 38 | KernelVersion: 3.13 |
Sudeep Dutt | 3a6a920 | 2013-09-05 16:41:55 -0700 | [diff] [blame] | 39 | Contact: Sudeep Dutt <sudeep.dutt@intel.com> |
| 40 | Description: |
| 41 | When read, this entry provides the current state of an Intel |
| 42 | MIC device in the context of the card OS. Possible values that |
| 43 | will be read are: |
Dasaratharaman Chandramouli | af19049 | 2013-10-03 18:06:23 -0700 | [diff] [blame] | 44 | "offline" - The MIC device is ready to boot the card OS. On |
| 45 | reading this entry after an OSPM resume, a "boot" has to be |
| 46 | written to this entry if the card was previously shutdown |
| 47 | during OSPM suspend. |
Sudeep Dutt | 3a6a920 | 2013-09-05 16:41:55 -0700 | [diff] [blame] | 48 | "online" - The MIC device has initiated booting a card OS. |
| 49 | "shutting_down" - The card OS is shutting down. |
| 50 | "reset_failed" - The MIC device has failed to reset. |
Dasaratharaman Chandramouli | af19049 | 2013-10-03 18:06:23 -0700 | [diff] [blame] | 51 | "suspending" - The MIC device is currently being prepared for |
| 52 | suspend. On reading this entry, a "suspend" has to be written |
| 53 | to the state sysfs entry to ensure the card is shutdown during |
| 54 | OSPM suspend. |
| 55 | "suspended" - The MIC device has been suspended. |
Sudeep Dutt | 3a6a920 | 2013-09-05 16:41:55 -0700 | [diff] [blame] | 56 | |
| 57 | When written, this sysfs entry triggers different state change |
| 58 | operations depending upon the current state of the card OS. |
| 59 | Acceptable values are: |
| 60 | "boot" - Boot the card OS image specified by the combination |
| 61 | of firmware, ramdisk, cmdline and bootmode |
| 62 | sysfs entries. |
| 63 | "reset" - Initiates device reset. |
| 64 | "shutdown" - Initiates card OS shutdown. |
Dasaratharaman Chandramouli | af19049 | 2013-10-03 18:06:23 -0700 | [diff] [blame] | 65 | "suspend" - Initiates card OS shutdown and also marks the card |
| 66 | as suspended. |
Sudeep Dutt | 3a6a920 | 2013-09-05 16:41:55 -0700 | [diff] [blame] | 67 | |
| 68 | What: /sys/class/mic/mic(x)/shutdown_status |
Dasaratharaman Chandramouli | af19049 | 2013-10-03 18:06:23 -0700 | [diff] [blame] | 69 | Date: October 2013 |
| 70 | KernelVersion: 3.13 |
Sudeep Dutt | 3a6a920 | 2013-09-05 16:41:55 -0700 | [diff] [blame] | 71 | Contact: Sudeep Dutt <sudeep.dutt@intel.com> |
| 72 | Description: |
| 73 | An Intel MIC device runs a Linux OS during its operation. This |
| 74 | OS can shutdown because of various reasons. When read, this |
| 75 | entry provides the status on why the card OS was shutdown. |
| 76 | Possible values are: |
| 77 | "nop" - shutdown status is not applicable, when the card OS is |
| 78 | "online" |
| 79 | "crashed" - Shutdown because of a HW or SW crash. |
| 80 | "halted" - Shutdown because of a halt command. |
| 81 | "poweroff" - Shutdown because of a poweroff command. |
| 82 | "restart" - Shutdown because of a restart command. |
| 83 | |
| 84 | What: /sys/class/mic/mic(x)/cmdline |
Dasaratharaman Chandramouli | af19049 | 2013-10-03 18:06:23 -0700 | [diff] [blame] | 85 | Date: October 2013 |
| 86 | KernelVersion: 3.13 |
Sudeep Dutt | 3a6a920 | 2013-09-05 16:41:55 -0700 | [diff] [blame] | 87 | Contact: Sudeep Dutt <sudeep.dutt@intel.com> |
| 88 | Description: |
| 89 | An Intel MIC device runs a Linux OS during its operation. Before |
| 90 | booting this card OS, it is possible to pass kernel command line |
| 91 | options to configure various features in it, similar to |
| 92 | self-bootable machines. When read, this entry provides |
| 93 | information about the current kernel command line options set to |
| 94 | boot the card OS. This entry can be written to change the |
| 95 | existing kernel command line options. Typically, the user would |
| 96 | want to read the current command line options, append new ones |
| 97 | or modify existing ones and then write the whole kernel command |
| 98 | line back to this entry. |
| 99 | |
| 100 | What: /sys/class/mic/mic(x)/firmware |
Dasaratharaman Chandramouli | af19049 | 2013-10-03 18:06:23 -0700 | [diff] [blame] | 101 | Date: October 2013 |
| 102 | KernelVersion: 3.13 |
Sudeep Dutt | 3a6a920 | 2013-09-05 16:41:55 -0700 | [diff] [blame] | 103 | Contact: Sudeep Dutt <sudeep.dutt@intel.com> |
| 104 | Description: |
| 105 | When read, this sysfs entry provides the path name under |
| 106 | /lib/firmware/ where the firmware image to be booted on the |
| 107 | card can be found. The entry can be written to change the |
| 108 | firmware image location under /lib/firmware/. |
| 109 | |
| 110 | What: /sys/class/mic/mic(x)/ramdisk |
Dasaratharaman Chandramouli | af19049 | 2013-10-03 18:06:23 -0700 | [diff] [blame] | 111 | Date: October 2013 |
| 112 | KernelVersion: 3.13 |
Sudeep Dutt | 3a6a920 | 2013-09-05 16:41:55 -0700 | [diff] [blame] | 113 | Contact: Sudeep Dutt <sudeep.dutt@intel.com> |
| 114 | Description: |
| 115 | When read, this sysfs entry provides the path name under |
| 116 | /lib/firmware/ where the ramdisk image to be used during card |
| 117 | OS boot can be found. The entry can be written to change |
| 118 | the ramdisk image location under /lib/firmware/. |
| 119 | |
| 120 | What: /sys/class/mic/mic(x)/bootmode |
Dasaratharaman Chandramouli | af19049 | 2013-10-03 18:06:23 -0700 | [diff] [blame] | 121 | Date: October 2013 |
| 122 | KernelVersion: 3.13 |
Sudeep Dutt | 3a6a920 | 2013-09-05 16:41:55 -0700 | [diff] [blame] | 123 | Contact: Sudeep Dutt <sudeep.dutt@intel.com> |
| 124 | Description: |
| 125 | When read, this sysfs entry provides the current bootmode for |
| 126 | the card. This sysfs entry can be written with the following |
| 127 | valid strings: |
| 128 | a) linux - Boot a Linux image. |
| 129 | b) elf - Boot an elf image for flash updates. |
| 130 | |
| 131 | What: /sys/class/mic/mic(x)/log_buf_addr |
Dasaratharaman Chandramouli | af19049 | 2013-10-03 18:06:23 -0700 | [diff] [blame] | 132 | Date: October 2013 |
| 133 | KernelVersion: 3.13 |
Sudeep Dutt | 3a6a920 | 2013-09-05 16:41:55 -0700 | [diff] [blame] | 134 | Contact: Sudeep Dutt <sudeep.dutt@intel.com> |
| 135 | Description: |
| 136 | An Intel MIC device runs a Linux OS during its operation. For |
| 137 | debugging purpose and early kernel boot messages, the user can |
| 138 | access the card OS log buffer via debugfs. When read, this entry |
| 139 | provides the kernel virtual address of the buffer where the card |
| 140 | OS log buffer can be read. This entry is written by the host |
| 141 | configuration daemon to set the log buffer address. The correct |
| 142 | log buffer address to be written can be found in the System.map |
| 143 | file of the card OS. |
| 144 | |
| 145 | What: /sys/class/mic/mic(x)/log_buf_len |
Dasaratharaman Chandramouli | af19049 | 2013-10-03 18:06:23 -0700 | [diff] [blame] | 146 | Date: October 2013 |
| 147 | KernelVersion: 3.13 |
Sudeep Dutt | 3a6a920 | 2013-09-05 16:41:55 -0700 | [diff] [blame] | 148 | Contact: Sudeep Dutt <sudeep.dutt@intel.com> |
| 149 | Description: |
| 150 | An Intel MIC device runs a Linux OS during its operation. For |
| 151 | debugging purpose and early kernel boot messages, the user can |
| 152 | access the card OS log buffer via debugfs. When read, this entry |
| 153 | provides the kernel virtual address where the card OS log buffer |
| 154 | length can be read. This entry is written by host configuration |
| 155 | daemon to set the log buffer length address. The correct log |
| 156 | buffer length address to be written can be found in the |
| 157 | System.map file of the card OS. |