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