175 lines · plain
1 Intel Stratix10 Remote System Update (RSU) device attributes2 3What: /sys/devices/platform/stratix10-rsu.0/current_image4Date: August 20195KernelVersion: 5.46Contact: Richard Gong <richard.gong@linux.intel.com>7Description:8 (RO) the address in flash of currently running image.9 10What: /sys/devices/platform/stratix10-rsu.0/fail_image11Date: August 201912KernelVersion: 5.413Contact: Richard Gong <richard.gong@linux.intel.com>14Description:15 (RO) the address in flash of failed image.16 17What: /sys/devices/platform/stratix10-rsu.0/state18Date: August 201919KernelVersion: 5.420Contact: Richard Gong <richard.gong@linux.intel.com>21Description:22 (RO) the state of RSU system.23 The state field has two parts: major error code in24 upper 16 bits and minor error code in lower 16 bits.25 26 b[15:0]27 Currently used only when major error is 0xF00628 (CPU watchdog timeout), in which case the minor29 error code is the value reported by CPU to30 firmware through the RSU notify command before31 the watchdog timeout occurs.32 33 b[31:16]34 0xF001 bitstream error35 0xF002 hardware access failure36 0xF003 bitstream corruption37 0xF004 internal error38 0xF005 device error39 0xF006 CPU watchdog timeout40 0xF007 internal unknown error41 42What: /sys/devices/platform/stratix10-rsu.0/version43Date: August 201944KernelVersion: 5.445Contact: Richard Gong <richard.gong@linux.intel.com>46Description:47 (RO) the version number of RSU firmware. 19.3 or late48 version includes information about the firmware which49 reported the error.50 51 pre 19.3:52 b[31:0]53 0x0 version number54 55 19.3 or late:56 b[15:0]57 0x1 version number58 b[31:16]59 0x0 no error60 0x0DCF Decision CMF error61 0x0ACF Application CMF error62 63What: /sys/devices/platform/stratix10-rsu.0/error_location64Date: August 201965KernelVersion: 5.466Contact: Richard Gong <richard.gong@linux.intel.com>67Description:68 (RO) the error offset inside the image that failed.69 70What: /sys/devices/platform/stratix10-rsu.0/error_details71Date: August 201972KernelVersion: 5.473Contact: Richard Gong <richard.gong@linux.intel.com>74Description:75 (RO) error code.76 77What: /sys/devices/platform/stratix10-rsu.0/retry_counter78Date: August 201979KernelVersion: 5.480Contact: Richard Gong <richard.gong@linux.intel.com>81Description:82 (RO) the current image's retry counter, which is used by83 user to know how many times the images is still allowed84 to reload itself before giving up and starting RSU85 fail-over flow.86 87What: /sys/devices/platform/stratix10-rsu.0/reboot_image88Date: August 201989KernelVersion: 5.490Contact: Richard Gong <richard.gong@linux.intel.com>91Description:92 (WO) the address in flash of image to be loaded on next93 reboot command.94 95What: /sys/devices/platform/stratix10-rsu.0/notify96Date: August 201997KernelVersion: 5.498Contact: Richard Gong <richard.gong@linux.intel.com>99Description:100 (WO) client to notify firmware with different actions.101 102 b[15:0]103 inform firmware the current software execution104 stage.105 106 == ===========================================107 0 the first stage bootloader didn't run or108 didn't reach the point of launching second109 stage bootloader.110 1 failed in second bootloader or didn't get111 to the point of launching the operating112 system.113 2 both first and second stage bootloader ran114 and the operating system launch was115 attempted.116 == ===========================================117 118 b[16]119 == ===========================================120 1 firmware to reset current image retry121 counter.122 0 no action.123 == ===========================================124 125 b[17]126 == ===========================================127 1 firmware to clear RSU log128 0 no action.129 == ===========================================130 131 b[18]132 this is negative logic133 134 == ===========================================135 1 no action136 0 firmware record the notify code defined137 in b[15:0].138 == ===========================================139 140What: /sys/devices/platform/stratix10-rsu.0/dcmf0141Date: June 2020142KernelVersion: 5.8143Contact: Richard Gong <richard.gong@linux.intel.com>144Description:145 (RO) Decision firmware copy 0 version information.146 147What: /sys/devices/platform/stratix10-rsu.0/dcmf1148Date: June 2020149KernelVersion: 5.8150Contact: Richard Gong <richard.gong@linux.intel.com>151Description:152 (RO) Decision firmware copy 1 version information.153 154What: /sys/devices/platform/stratix10-rsu.0/dcmf2155Date: June 2020156KernelVersion: 5.8157Contact: Richard Gong <richard.gong@linux.intel.com>158Description:159 (RO) Decision firmware copy 2 version information.160 161What: /sys/devices/platform/stratix10-rsu.0/dcmf3162Date: June 2020163KernelVersion: 5.8164Contact: Richard Gong <richard.gong@linux.intel.com>165Description:166 (RO) Decision firmware copy 3 version information.167 168What: /sys/devices/platform/stratix10-rsu.0/max_retry169Date: June 2020170KernelVersion: 5.8171Contact: Richard Gong <richard.gong@linux.intel.com>172Description:173 (RO) max retry parameter is stored in the firmware174 decision IO section, as a byte located at offset 0x18c.175