xref: /linux/Documentation/ABI/testing/sysfs-class-mic (revision 03ab8e6297acd1bc0eedaa050e2a1635c576fd11)
10854d589SMauro Carvalho ChehabWhat:		/sys/class/mic/
20854d589SMauro Carvalho ChehabDate:		October 2013
30854d589SMauro Carvalho ChehabKernelVersion:	3.13
40854d589SMauro Carvalho ChehabContact:	Sudeep Dutt <sudeep.dutt@intel.com>
50854d589SMauro Carvalho ChehabDescription:
60854d589SMauro Carvalho Chehab		The mic class directory belongs to Intel MIC devices and
70854d589SMauro Carvalho Chehab		provides information per MIC device. An Intel MIC device is a
80854d589SMauro Carvalho Chehab		PCIe form factor add-in Coprocessor card based on the Intel Many
90854d589SMauro Carvalho Chehab		Integrated Core (MIC) architecture that runs a Linux OS.
100854d589SMauro Carvalho Chehab
11*743e4636SMauro Carvalho ChehabWhat:		/sys/class/mic/mic<X>
120854d589SMauro Carvalho ChehabDate:		October 2013
130854d589SMauro Carvalho ChehabKernelVersion:	3.13
140854d589SMauro Carvalho ChehabContact:	Sudeep Dutt <sudeep.dutt@intel.com>
150854d589SMauro Carvalho ChehabDescription:
160854d589SMauro Carvalho Chehab		The directories /sys/class/mic/mic0, /sys/class/mic/mic1 etc.,
170854d589SMauro Carvalho Chehab		represent MIC devices (0,1,..etc). Each directory has
180854d589SMauro Carvalho Chehab		information specific to that MIC device.
190854d589SMauro Carvalho Chehab
20*743e4636SMauro Carvalho ChehabWhat:		/sys/class/mic/mic<X>/family
210854d589SMauro Carvalho ChehabDate:		October 2013
220854d589SMauro Carvalho ChehabKernelVersion:	3.13
230854d589SMauro Carvalho ChehabContact:	Sudeep Dutt <sudeep.dutt@intel.com>
240854d589SMauro Carvalho ChehabDescription:
250854d589SMauro Carvalho Chehab		Provides information about the Coprocessor family for an Intel
260854d589SMauro Carvalho Chehab		MIC device. For example - "x100"
270854d589SMauro Carvalho Chehab
28*743e4636SMauro Carvalho ChehabWhat:		/sys/class/mic/mic<X>/stepping
290854d589SMauro Carvalho ChehabDate:		October 2013
300854d589SMauro Carvalho ChehabKernelVersion:	3.13
310854d589SMauro Carvalho ChehabContact:	Sudeep Dutt <sudeep.dutt@intel.com>
320854d589SMauro Carvalho ChehabDescription:
330854d589SMauro Carvalho Chehab		Provides information about the silicon stepping for an Intel
340854d589SMauro Carvalho Chehab		MIC device. For example - "A0" or "B0"
350854d589SMauro Carvalho Chehab
36*743e4636SMauro Carvalho ChehabWhat:		/sys/class/mic/mic<X>/state
370854d589SMauro Carvalho ChehabDate:		October 2013
380854d589SMauro Carvalho ChehabKernelVersion:	3.13
390854d589SMauro Carvalho ChehabContact:	Sudeep Dutt <sudeep.dutt@intel.com>
400854d589SMauro Carvalho ChehabDescription:
410854d589SMauro Carvalho Chehab		When read, this entry provides the current state of an Intel
420854d589SMauro Carvalho Chehab		MIC device in the context of the card OS. Possible values that
430854d589SMauro Carvalho Chehab		will be read are:
4434433332SMauro Carvalho Chehab
4534433332SMauro Carvalho Chehab
4634433332SMauro Carvalho Chehab		===============  ===============================================
4734433332SMauro Carvalho Chehab		"ready"		 The MIC device is ready to boot the card OS.
4834433332SMauro Carvalho Chehab				 On reading this entry after an OSPM resume,
4934433332SMauro Carvalho Chehab				 a "boot" has to be written to this entry if
5034433332SMauro Carvalho Chehab				 the card was previously shutdown during OSPM
5134433332SMauro Carvalho Chehab				 suspend.
5234433332SMauro Carvalho Chehab		"booting"	 The MIC device has initiated booting a card OS.
5334433332SMauro Carvalho Chehab		"online"	 The MIC device has completed boot and is online
5434433332SMauro Carvalho Chehab		"shutting_down"	 The card OS is shutting down.
5534433332SMauro Carvalho Chehab		"resetting"	 A reset has been initiated for the MIC device
5634433332SMauro Carvalho Chehab		"reset_failed"	 The MIC device has failed to reset.
5734433332SMauro Carvalho Chehab		===============  ===============================================
580854d589SMauro Carvalho Chehab
590854d589SMauro Carvalho Chehab		When written, this sysfs entry triggers different state change
600854d589SMauro Carvalho Chehab		operations depending upon the current state of the card OS.
610854d589SMauro Carvalho Chehab		Acceptable values are:
6234433332SMauro Carvalho Chehab
6334433332SMauro Carvalho Chehab
6434433332SMauro Carvalho Chehab		==========  ===================================================
6534433332SMauro Carvalho Chehab		"boot"      Boot the card OS image specified by the combination
660854d589SMauro Carvalho Chehab			    of firmware, ramdisk, cmdline and bootmode
670854d589SMauro Carvalho Chehab			    sysfs entries.
6834433332SMauro Carvalho Chehab		"reset"     Initiates device reset.
6934433332SMauro Carvalho Chehab		"shutdown"  Initiates card OS shutdown.
7034433332SMauro Carvalho Chehab		==========  ===================================================
710854d589SMauro Carvalho Chehab
72*743e4636SMauro Carvalho ChehabWhat:		/sys/class/mic/mic<X>/shutdown_status
730854d589SMauro Carvalho ChehabDate:		October 2013
740854d589SMauro Carvalho ChehabKernelVersion:	3.13
750854d589SMauro Carvalho ChehabContact:	Sudeep Dutt <sudeep.dutt@intel.com>
760854d589SMauro Carvalho ChehabDescription:
770854d589SMauro Carvalho Chehab		An Intel MIC device runs a Linux OS during its operation. This
780854d589SMauro Carvalho Chehab		OS can shutdown because of various reasons. When read, this
790854d589SMauro Carvalho Chehab		entry provides the status on why the card OS was shutdown.
800854d589SMauro Carvalho Chehab		Possible values are:
8134433332SMauro Carvalho Chehab
8234433332SMauro Carvalho Chehab		==========  ===================================================
8334433332SMauro Carvalho Chehab		"nop"       shutdown status is not applicable, when the card OS
8434433332SMauro Carvalho Chehab			    is "online"
8534433332SMauro Carvalho Chehab		"crashed"   Shutdown because of a HW or SW crash.
8634433332SMauro Carvalho Chehab		"halted"    Shutdown because of a halt command.
8734433332SMauro Carvalho Chehab		"poweroff"  Shutdown because of a poweroff command.
8834433332SMauro Carvalho Chehab		"restart"   Shutdown because of a restart command.
8934433332SMauro Carvalho Chehab		==========  ===================================================
900854d589SMauro Carvalho Chehab
91*743e4636SMauro Carvalho ChehabWhat:		/sys/class/mic/mic<X>/cmdline
920854d589SMauro Carvalho ChehabDate:		October 2013
930854d589SMauro Carvalho ChehabKernelVersion:	3.13
940854d589SMauro Carvalho ChehabContact:	Sudeep Dutt <sudeep.dutt@intel.com>
950854d589SMauro Carvalho ChehabDescription:
960854d589SMauro Carvalho Chehab		An Intel MIC device runs a Linux OS during its operation. Before
970854d589SMauro Carvalho Chehab		booting this card OS, it is possible to pass kernel command line
980854d589SMauro Carvalho Chehab		options to configure various features in it, similar to
990854d589SMauro Carvalho Chehab		self-bootable machines. When read, this entry provides
1000854d589SMauro Carvalho Chehab		information about the current kernel command line options set to
1010854d589SMauro Carvalho Chehab		boot the card OS. This entry can be written to change the
1020854d589SMauro Carvalho Chehab		existing kernel command line options. Typically, the user would
1030854d589SMauro Carvalho Chehab		want to read the current command line options, append new ones
1040854d589SMauro Carvalho Chehab		or modify existing ones and then write the whole kernel command
1050854d589SMauro Carvalho Chehab		line back to this entry.
1060854d589SMauro Carvalho Chehab
107*743e4636SMauro Carvalho ChehabWhat:		/sys/class/mic/mic<X>/firmware
1080854d589SMauro Carvalho ChehabDate:		October 2013
1090854d589SMauro Carvalho ChehabKernelVersion:	3.13
1100854d589SMauro Carvalho ChehabContact:	Sudeep Dutt <sudeep.dutt@intel.com>
1110854d589SMauro Carvalho ChehabDescription:
1120854d589SMauro Carvalho Chehab		When read, this sysfs entry provides the path name under
1130854d589SMauro Carvalho Chehab		/lib/firmware/ where the firmware image to be booted on the
1140854d589SMauro Carvalho Chehab		card can be found. The entry can be written to change the
1150854d589SMauro Carvalho Chehab		firmware image location under /lib/firmware/.
1160854d589SMauro Carvalho Chehab
117*743e4636SMauro Carvalho ChehabWhat:		/sys/class/mic/mic<X>/ramdisk
1180854d589SMauro Carvalho ChehabDate:		October 2013
1190854d589SMauro Carvalho ChehabKernelVersion:	3.13
1200854d589SMauro Carvalho ChehabContact:	Sudeep Dutt <sudeep.dutt@intel.com>
1210854d589SMauro Carvalho ChehabDescription:
1220854d589SMauro Carvalho Chehab		When read, this sysfs entry provides the path name under
1230854d589SMauro Carvalho Chehab		/lib/firmware/ where the ramdisk image to be used during card
1240854d589SMauro Carvalho Chehab		OS boot can be found. The entry can be written to change
1250854d589SMauro Carvalho Chehab		the ramdisk image location under /lib/firmware/.
1260854d589SMauro Carvalho Chehab
127*743e4636SMauro Carvalho ChehabWhat:		/sys/class/mic/mic<X>/bootmode
1280854d589SMauro Carvalho ChehabDate:		October 2013
1290854d589SMauro Carvalho ChehabKernelVersion:	3.13
1300854d589SMauro Carvalho ChehabContact:	Sudeep Dutt <sudeep.dutt@intel.com>
1310854d589SMauro Carvalho ChehabDescription:
1320854d589SMauro Carvalho Chehab		When read, this sysfs entry provides the current bootmode for
1330854d589SMauro Carvalho Chehab		the card. This sysfs entry can be written with the following
1340854d589SMauro Carvalho Chehab		valid strings:
1350854d589SMauro Carvalho Chehab		a) linux - Boot a Linux image.
1360854d589SMauro Carvalho Chehab		b) flash - Boot an image for flash updates.
1370854d589SMauro Carvalho Chehab
138*743e4636SMauro Carvalho ChehabWhat:		/sys/class/mic/mic<X>/log_buf_addr
1390854d589SMauro Carvalho ChehabDate:		October 2013
1400854d589SMauro Carvalho ChehabKernelVersion:	3.13
1410854d589SMauro Carvalho ChehabContact:	Sudeep Dutt <sudeep.dutt@intel.com>
1420854d589SMauro Carvalho ChehabDescription:
1430854d589SMauro Carvalho Chehab		An Intel MIC device runs a Linux OS during its operation. For
1440854d589SMauro Carvalho Chehab		debugging purpose and early kernel boot messages, the user can
1450854d589SMauro Carvalho Chehab		access the card OS log buffer via debugfs. When read, this entry
1460854d589SMauro Carvalho Chehab		provides the kernel virtual address of the buffer where the card
1470854d589SMauro Carvalho Chehab		OS log buffer can be read. This entry is written by the host
1480854d589SMauro Carvalho Chehab		configuration daemon to set the log buffer address. The correct
1490854d589SMauro Carvalho Chehab		log buffer address to be written can be found in the System.map
1500854d589SMauro Carvalho Chehab		file of the card OS.
1510854d589SMauro Carvalho Chehab
152*743e4636SMauro Carvalho ChehabWhat:		/sys/class/mic/mic<X>/log_buf_len
1530854d589SMauro Carvalho ChehabDate:		October 2013
1540854d589SMauro Carvalho ChehabKernelVersion:	3.13
1550854d589SMauro Carvalho ChehabContact:	Sudeep Dutt <sudeep.dutt@intel.com>
1560854d589SMauro Carvalho ChehabDescription:
1570854d589SMauro Carvalho Chehab		An Intel MIC device runs a Linux OS during its operation. For
1580854d589SMauro Carvalho Chehab		debugging purpose and early kernel boot messages, the user can
1590854d589SMauro Carvalho Chehab		access the card OS log buffer via debugfs. When read, this entry
1600854d589SMauro Carvalho Chehab		provides the kernel virtual address where the card OS log buffer
1610854d589SMauro Carvalho Chehab		length can be read. This entry is written by host configuration
1620854d589SMauro Carvalho Chehab		daemon to set the log buffer length address. The correct log
1630854d589SMauro Carvalho Chehab		buffer length address to be written can be found in the
1640854d589SMauro Carvalho Chehab		System.map file of the card OS.
1650854d589SMauro Carvalho Chehab
166*743e4636SMauro Carvalho ChehabWhat:		/sys/class/mic/mic<X>/heartbeat_enable
1670854d589SMauro Carvalho ChehabDate:		March 2015
1680854d589SMauro Carvalho ChehabKernelVersion:	4.4
1690854d589SMauro Carvalho ChehabContact:	Ashutosh Dixit <ashutosh.dixit@intel.com>
1700854d589SMauro Carvalho ChehabDescription:
1710854d589SMauro Carvalho Chehab		The MIC drivers detect and inform user space about card crashes
1720854d589SMauro Carvalho Chehab		via a heartbeat mechanism (see the description of
1730854d589SMauro Carvalho Chehab		shutdown_status above). User space can turn off this
1740854d589SMauro Carvalho Chehab		notification by setting heartbeat_enable to 0 and enable it by
1750854d589SMauro Carvalho Chehab		setting this entry to 1. If this notification is disabled it is
1760854d589SMauro Carvalho Chehab		the responsibility of user space to detect card crashes via
1770854d589SMauro Carvalho Chehab		alternative means such as a network ping. This setting is
1780854d589SMauro Carvalho Chehab		enabled by default.
179