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