18c2ecf20Sopenharmony_ciWhat:		/sys/class/mic/
28c2ecf20Sopenharmony_ciDate:		October 2013
38c2ecf20Sopenharmony_ciKernelVersion:	3.13
48c2ecf20Sopenharmony_ciContact:	Sudeep Dutt <sudeep.dutt@intel.com>
58c2ecf20Sopenharmony_ciDescription:
68c2ecf20Sopenharmony_ci		The mic class directory belongs to Intel MIC devices and
78c2ecf20Sopenharmony_ci		provides information per MIC device. An Intel MIC device is a
88c2ecf20Sopenharmony_ci		PCIe form factor add-in Coprocessor card based on the Intel Many
98c2ecf20Sopenharmony_ci		Integrated Core (MIC) architecture that runs a Linux OS.
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ciWhat:		/sys/class/mic/mic(x)
128c2ecf20Sopenharmony_ciDate:		October 2013
138c2ecf20Sopenharmony_ciKernelVersion:	3.13
148c2ecf20Sopenharmony_ciContact:	Sudeep Dutt <sudeep.dutt@intel.com>
158c2ecf20Sopenharmony_ciDescription:
168c2ecf20Sopenharmony_ci		The directories /sys/class/mic/mic0, /sys/class/mic/mic1 etc.,
178c2ecf20Sopenharmony_ci		represent MIC devices (0,1,..etc). Each directory has
188c2ecf20Sopenharmony_ci		information specific to that MIC device.
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ciWhat:		/sys/class/mic/mic(x)/family
218c2ecf20Sopenharmony_ciDate:		October 2013
228c2ecf20Sopenharmony_ciKernelVersion:	3.13
238c2ecf20Sopenharmony_ciContact:	Sudeep Dutt <sudeep.dutt@intel.com>
248c2ecf20Sopenharmony_ciDescription:
258c2ecf20Sopenharmony_ci		Provides information about the Coprocessor family for an Intel
268c2ecf20Sopenharmony_ci		MIC device. For example - "x100"
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ciWhat:		/sys/class/mic/mic(x)/stepping
298c2ecf20Sopenharmony_ciDate:		October 2013
308c2ecf20Sopenharmony_ciKernelVersion:	3.13
318c2ecf20Sopenharmony_ciContact:	Sudeep Dutt <sudeep.dutt@intel.com>
328c2ecf20Sopenharmony_ciDescription:
338c2ecf20Sopenharmony_ci		Provides information about the silicon stepping for an Intel
348c2ecf20Sopenharmony_ci		MIC device. For example - "A0" or "B0"
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ciWhat:		/sys/class/mic/mic(x)/state
378c2ecf20Sopenharmony_ciDate:		October 2013
388c2ecf20Sopenharmony_ciKernelVersion:	3.13
398c2ecf20Sopenharmony_ciContact:	Sudeep Dutt <sudeep.dutt@intel.com>
408c2ecf20Sopenharmony_ciDescription:
418c2ecf20Sopenharmony_ci		When read, this entry provides the current state of an Intel
428c2ecf20Sopenharmony_ci		MIC device in the context of the card OS. Possible values that
438c2ecf20Sopenharmony_ci		will be read are:
448c2ecf20Sopenharmony_ci
458c2ecf20Sopenharmony_ci
468c2ecf20Sopenharmony_ci		===============  ===============================================
478c2ecf20Sopenharmony_ci		"ready"		 The MIC device is ready to boot the card OS.
488c2ecf20Sopenharmony_ci				 On reading this entry after an OSPM resume,
498c2ecf20Sopenharmony_ci				 a "boot" has to be written to this entry if
508c2ecf20Sopenharmony_ci				 the card was previously shutdown during OSPM
518c2ecf20Sopenharmony_ci				 suspend.
528c2ecf20Sopenharmony_ci		"booting"	 The MIC device has initiated booting a card OS.
538c2ecf20Sopenharmony_ci		"online"	 The MIC device has completed boot and is online
548c2ecf20Sopenharmony_ci		"shutting_down"	 The card OS is shutting down.
558c2ecf20Sopenharmony_ci		"resetting"	 A reset has been initiated for the MIC device
568c2ecf20Sopenharmony_ci		"reset_failed"	 The MIC device has failed to reset.
578c2ecf20Sopenharmony_ci		===============  ===============================================
588c2ecf20Sopenharmony_ci
598c2ecf20Sopenharmony_ci		When written, this sysfs entry triggers different state change
608c2ecf20Sopenharmony_ci		operations depending upon the current state of the card OS.
618c2ecf20Sopenharmony_ci		Acceptable values are:
628c2ecf20Sopenharmony_ci
638c2ecf20Sopenharmony_ci
648c2ecf20Sopenharmony_ci		==========  ===================================================
658c2ecf20Sopenharmony_ci		"boot"      Boot the card OS image specified by the combination
668c2ecf20Sopenharmony_ci			    of firmware, ramdisk, cmdline and bootmode
678c2ecf20Sopenharmony_ci			    sysfs entries.
688c2ecf20Sopenharmony_ci		"reset"     Initiates device reset.
698c2ecf20Sopenharmony_ci		"shutdown"  Initiates card OS shutdown.
708c2ecf20Sopenharmony_ci		==========  ===================================================
718c2ecf20Sopenharmony_ci
728c2ecf20Sopenharmony_ciWhat:		/sys/class/mic/mic(x)/shutdown_status
738c2ecf20Sopenharmony_ciDate:		October 2013
748c2ecf20Sopenharmony_ciKernelVersion:	3.13
758c2ecf20Sopenharmony_ciContact:	Sudeep Dutt <sudeep.dutt@intel.com>
768c2ecf20Sopenharmony_ciDescription:
778c2ecf20Sopenharmony_ci		An Intel MIC device runs a Linux OS during its operation. This
788c2ecf20Sopenharmony_ci		OS can shutdown because of various reasons. When read, this
798c2ecf20Sopenharmony_ci		entry provides the status on why the card OS was shutdown.
808c2ecf20Sopenharmony_ci		Possible values are:
818c2ecf20Sopenharmony_ci
828c2ecf20Sopenharmony_ci		==========  ===================================================
838c2ecf20Sopenharmony_ci		"nop"       shutdown status is not applicable, when the card OS
848c2ecf20Sopenharmony_ci			    is "online"
858c2ecf20Sopenharmony_ci		"crashed"   Shutdown because of a HW or SW crash.
868c2ecf20Sopenharmony_ci		"halted"    Shutdown because of a halt command.
878c2ecf20Sopenharmony_ci		"poweroff"  Shutdown because of a poweroff command.
888c2ecf20Sopenharmony_ci		"restart"   Shutdown because of a restart command.
898c2ecf20Sopenharmony_ci		==========  ===================================================
908c2ecf20Sopenharmony_ci
918c2ecf20Sopenharmony_ciWhat:		/sys/class/mic/mic(x)/cmdline
928c2ecf20Sopenharmony_ciDate:		October 2013
938c2ecf20Sopenharmony_ciKernelVersion:	3.13
948c2ecf20Sopenharmony_ciContact:	Sudeep Dutt <sudeep.dutt@intel.com>
958c2ecf20Sopenharmony_ciDescription:
968c2ecf20Sopenharmony_ci		An Intel MIC device runs a Linux OS during its operation. Before
978c2ecf20Sopenharmony_ci		booting this card OS, it is possible to pass kernel command line
988c2ecf20Sopenharmony_ci		options to configure various features in it, similar to
998c2ecf20Sopenharmony_ci		self-bootable machines. When read, this entry provides
1008c2ecf20Sopenharmony_ci		information about the current kernel command line options set to
1018c2ecf20Sopenharmony_ci		boot the card OS. This entry can be written to change the
1028c2ecf20Sopenharmony_ci		existing kernel command line options. Typically, the user would
1038c2ecf20Sopenharmony_ci		want to read the current command line options, append new ones
1048c2ecf20Sopenharmony_ci		or modify existing ones and then write the whole kernel command
1058c2ecf20Sopenharmony_ci		line back to this entry.
1068c2ecf20Sopenharmony_ci
1078c2ecf20Sopenharmony_ciWhat:		/sys/class/mic/mic(x)/firmware
1088c2ecf20Sopenharmony_ciDate:		October 2013
1098c2ecf20Sopenharmony_ciKernelVersion:	3.13
1108c2ecf20Sopenharmony_ciContact:	Sudeep Dutt <sudeep.dutt@intel.com>
1118c2ecf20Sopenharmony_ciDescription:
1128c2ecf20Sopenharmony_ci		When read, this sysfs entry provides the path name under
1138c2ecf20Sopenharmony_ci		/lib/firmware/ where the firmware image to be booted on the
1148c2ecf20Sopenharmony_ci		card can be found. The entry can be written to change the
1158c2ecf20Sopenharmony_ci		firmware image location under /lib/firmware/.
1168c2ecf20Sopenharmony_ci
1178c2ecf20Sopenharmony_ciWhat:		/sys/class/mic/mic(x)/ramdisk
1188c2ecf20Sopenharmony_ciDate:		October 2013
1198c2ecf20Sopenharmony_ciKernelVersion:	3.13
1208c2ecf20Sopenharmony_ciContact:	Sudeep Dutt <sudeep.dutt@intel.com>
1218c2ecf20Sopenharmony_ciDescription:
1228c2ecf20Sopenharmony_ci		When read, this sysfs entry provides the path name under
1238c2ecf20Sopenharmony_ci		/lib/firmware/ where the ramdisk image to be used during card
1248c2ecf20Sopenharmony_ci		OS boot can be found. The entry can be written to change
1258c2ecf20Sopenharmony_ci		the ramdisk image location under /lib/firmware/.
1268c2ecf20Sopenharmony_ci
1278c2ecf20Sopenharmony_ciWhat:		/sys/class/mic/mic(x)/bootmode
1288c2ecf20Sopenharmony_ciDate:		October 2013
1298c2ecf20Sopenharmony_ciKernelVersion:	3.13
1308c2ecf20Sopenharmony_ciContact:	Sudeep Dutt <sudeep.dutt@intel.com>
1318c2ecf20Sopenharmony_ciDescription:
1328c2ecf20Sopenharmony_ci		When read, this sysfs entry provides the current bootmode for
1338c2ecf20Sopenharmony_ci		the card. This sysfs entry can be written with the following
1348c2ecf20Sopenharmony_ci		valid strings:
1358c2ecf20Sopenharmony_ci		a) linux - Boot a Linux image.
1368c2ecf20Sopenharmony_ci		b) flash - Boot an image for flash updates.
1378c2ecf20Sopenharmony_ci
1388c2ecf20Sopenharmony_ciWhat:		/sys/class/mic/mic(x)/log_buf_addr
1398c2ecf20Sopenharmony_ciDate:		October 2013
1408c2ecf20Sopenharmony_ciKernelVersion:	3.13
1418c2ecf20Sopenharmony_ciContact:	Sudeep Dutt <sudeep.dutt@intel.com>
1428c2ecf20Sopenharmony_ciDescription:
1438c2ecf20Sopenharmony_ci		An Intel MIC device runs a Linux OS during its operation. For
1448c2ecf20Sopenharmony_ci		debugging purpose and early kernel boot messages, the user can
1458c2ecf20Sopenharmony_ci		access the card OS log buffer via debugfs. When read, this entry
1468c2ecf20Sopenharmony_ci		provides the kernel virtual address of the buffer where the card
1478c2ecf20Sopenharmony_ci		OS log buffer can be read. This entry is written by the host
1488c2ecf20Sopenharmony_ci		configuration daemon to set the log buffer address. The correct
1498c2ecf20Sopenharmony_ci		log buffer address to be written can be found in the System.map
1508c2ecf20Sopenharmony_ci		file of the card OS.
1518c2ecf20Sopenharmony_ci
1528c2ecf20Sopenharmony_ciWhat:		/sys/class/mic/mic(x)/log_buf_len
1538c2ecf20Sopenharmony_ciDate:		October 2013
1548c2ecf20Sopenharmony_ciKernelVersion:	3.13
1558c2ecf20Sopenharmony_ciContact:	Sudeep Dutt <sudeep.dutt@intel.com>
1568c2ecf20Sopenharmony_ciDescription:
1578c2ecf20Sopenharmony_ci		An Intel MIC device runs a Linux OS during its operation. For
1588c2ecf20Sopenharmony_ci		debugging purpose and early kernel boot messages, the user can
1598c2ecf20Sopenharmony_ci		access the card OS log buffer via debugfs. When read, this entry
1608c2ecf20Sopenharmony_ci		provides the kernel virtual address where the card OS log buffer
1618c2ecf20Sopenharmony_ci		length can be read. This entry is written by host configuration
1628c2ecf20Sopenharmony_ci		daemon to set the log buffer length address. The correct log
1638c2ecf20Sopenharmony_ci		buffer length address to be written can be found in the
1648c2ecf20Sopenharmony_ci		System.map file of the card OS.
1658c2ecf20Sopenharmony_ci
1668c2ecf20Sopenharmony_ciWhat:		/sys/class/mic/mic(x)/heartbeat_enable
1678c2ecf20Sopenharmony_ciDate:		March 2015
1688c2ecf20Sopenharmony_ciKernelVersion:	4.4
1698c2ecf20Sopenharmony_ciContact:	Ashutosh Dixit <ashutosh.dixit@intel.com>
1708c2ecf20Sopenharmony_ciDescription:
1718c2ecf20Sopenharmony_ci		The MIC drivers detect and inform user space about card crashes
1728c2ecf20Sopenharmony_ci		via a heartbeat mechanism (see the description of
1738c2ecf20Sopenharmony_ci		shutdown_status above). User space can turn off this
1748c2ecf20Sopenharmony_ci		notification by setting heartbeat_enable to 0 and enable it by
1758c2ecf20Sopenharmony_ci		setting this entry to 1. If this notification is disabled it is
1768c2ecf20Sopenharmony_ci		the responsibility of user space to detect card crashes via
1778c2ecf20Sopenharmony_ci		alternative means such as a network ping. This setting is
1788c2ecf20Sopenharmony_ci		enabled by default.
179