blob: 13f48afc534fbf19c643702e09e308d0bfa63625 [file] [log] [blame]
Sudeep Duttb170d8c2013-09-05 16:41:31 -07001What: /sys/class/mic/
Dasaratharaman Chandramouliaf190492013-10-03 18:06:23 -07002Date: October 2013
3KernelVersion: 3.13
Sudeep Duttb170d8c2013-09-05 16:41:31 -07004Contact: Sudeep Dutt <sudeep.dutt@intel.com>
5Description:
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
11What: /sys/class/mic/mic(x)
Dasaratharaman Chandramouliaf190492013-10-03 18:06:23 -070012Date: October 2013
13KernelVersion: 3.13
Sudeep Duttb170d8c2013-09-05 16:41:31 -070014Contact: Sudeep Dutt <sudeep.dutt@intel.com>
15Description:
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
20What: /sys/class/mic/mic(x)/family
Dasaratharaman Chandramouliaf190492013-10-03 18:06:23 -070021Date: October 2013
22KernelVersion: 3.13
Sudeep Duttb170d8c2013-09-05 16:41:31 -070023Contact: Sudeep Dutt <sudeep.dutt@intel.com>
24Description:
25 Provides information about the Coprocessor family for an Intel
26 MIC device. For example - "x100"
27
28What: /sys/class/mic/mic(x)/stepping
Dasaratharaman Chandramouliaf190492013-10-03 18:06:23 -070029Date: October 2013
30KernelVersion: 3.13
Sudeep Duttb170d8c2013-09-05 16:41:31 -070031Contact: Sudeep Dutt <sudeep.dutt@intel.com>
32Description:
33 Provides information about the silicon stepping for an Intel
34 MIC device. For example - "A0" or "B0"
Sudeep Dutt3a6a9202013-09-05 16:41:55 -070035
36What: /sys/class/mic/mic(x)/state
Dasaratharaman Chandramouliaf190492013-10-03 18:06:23 -070037Date: October 2013
38KernelVersion: 3.13
Sudeep Dutt3a6a9202013-09-05 16:41:55 -070039Contact: Sudeep Dutt <sudeep.dutt@intel.com>
40Description:
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 Chandramouliaf190492013-10-03 18:06:23 -070044 "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 Dutt3a6a9202013-09-05 16:41:55 -070048 "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 Chandramouliaf190492013-10-03 18:06:23 -070051 "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 Dutt3a6a9202013-09-05 16:41:55 -070056
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 Chandramouliaf190492013-10-03 18:06:23 -070065 "suspend" - Initiates card OS shutdown and also marks the card
66 as suspended.
Sudeep Dutt3a6a9202013-09-05 16:41:55 -070067
68What: /sys/class/mic/mic(x)/shutdown_status
Dasaratharaman Chandramouliaf190492013-10-03 18:06:23 -070069Date: October 2013
70KernelVersion: 3.13
Sudeep Dutt3a6a9202013-09-05 16:41:55 -070071Contact: Sudeep Dutt <sudeep.dutt@intel.com>
72Description:
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
84What: /sys/class/mic/mic(x)/cmdline
Dasaratharaman Chandramouliaf190492013-10-03 18:06:23 -070085Date: October 2013
86KernelVersion: 3.13
Sudeep Dutt3a6a9202013-09-05 16:41:55 -070087Contact: Sudeep Dutt <sudeep.dutt@intel.com>
88Description:
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
100What: /sys/class/mic/mic(x)/firmware
Dasaratharaman Chandramouliaf190492013-10-03 18:06:23 -0700101Date: October 2013
102KernelVersion: 3.13
Sudeep Dutt3a6a9202013-09-05 16:41:55 -0700103Contact: Sudeep Dutt <sudeep.dutt@intel.com>
104Description:
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
110What: /sys/class/mic/mic(x)/ramdisk
Dasaratharaman Chandramouliaf190492013-10-03 18:06:23 -0700111Date: October 2013
112KernelVersion: 3.13
Sudeep Dutt3a6a9202013-09-05 16:41:55 -0700113Contact: Sudeep Dutt <sudeep.dutt@intel.com>
114Description:
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
120What: /sys/class/mic/mic(x)/bootmode
Dasaratharaman Chandramouliaf190492013-10-03 18:06:23 -0700121Date: October 2013
122KernelVersion: 3.13
Sudeep Dutt3a6a9202013-09-05 16:41:55 -0700123Contact: Sudeep Dutt <sudeep.dutt@intel.com>
124Description:
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
131What: /sys/class/mic/mic(x)/log_buf_addr
Dasaratharaman Chandramouliaf190492013-10-03 18:06:23 -0700132Date: October 2013
133KernelVersion: 3.13
Sudeep Dutt3a6a9202013-09-05 16:41:55 -0700134Contact: Sudeep Dutt <sudeep.dutt@intel.com>
135Description:
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
145What: /sys/class/mic/mic(x)/log_buf_len
Dasaratharaman Chandramouliaf190492013-10-03 18:06:23 -0700146Date: October 2013
147KernelVersion: 3.13
Sudeep Dutt3a6a9202013-09-05 16:41:55 -0700148Contact: Sudeep Dutt <sudeep.dutt@intel.com>
149Description:
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.