1feef87e9SRichard Gong Intel Stratix10 Remote System Update (RSU) device attributes 2feef87e9SRichard Gong 3feef87e9SRichard GongWhat: /sys/devices/platform/stratix10-rsu.0/current_image 4feef87e9SRichard GongDate: August 2019 5feef87e9SRichard GongKernelVersion: 5.4 6feef87e9SRichard GongContact: Richard Gong <richard.gong@linux.intel.com> 7feef87e9SRichard GongDescription: 8feef87e9SRichard Gong (RO) the address in flash of currently running image. 9feef87e9SRichard Gong 10feef87e9SRichard GongWhat: /sys/devices/platform/stratix10-rsu.0/fail_image 11feef87e9SRichard GongDate: August 2019 12feef87e9SRichard GongKernelVersion: 5.4 13feef87e9SRichard GongContact: Richard Gong <richard.gong@linux.intel.com> 14feef87e9SRichard GongDescription: 15feef87e9SRichard Gong (RO) the address in flash of failed image. 16feef87e9SRichard Gong 17feef87e9SRichard GongWhat: /sys/devices/platform/stratix10-rsu.0/state 18feef87e9SRichard GongDate: August 2019 19feef87e9SRichard GongKernelVersion: 5.4 20feef87e9SRichard GongContact: Richard Gong <richard.gong@linux.intel.com> 21feef87e9SRichard GongDescription: 22feef87e9SRichard Gong (RO) the state of RSU system. 23feef87e9SRichard Gong The state field has two parts: major error code in 24feef87e9SRichard Gong upper 16 bits and minor error code in lower 16 bits. 25feef87e9SRichard Gong 26feef87e9SRichard Gong b[15:0] 27feef87e9SRichard Gong Currently used only when major error is 0xF006 28feef87e9SRichard Gong (CPU watchdog timeout), in which case the minor 29feef87e9SRichard Gong error code is the value reported by CPU to 30feef87e9SRichard Gong firmware through the RSU notify command before 31feef87e9SRichard Gong the watchdog timeout occurs. 32feef87e9SRichard Gong 33feef87e9SRichard Gong b[31:16] 34feef87e9SRichard Gong 0xF001 bitstream error 35feef87e9SRichard Gong 0xF002 hardware access failure 36feef87e9SRichard Gong 0xF003 bitstream corruption 37feef87e9SRichard Gong 0xF004 internal error 38feef87e9SRichard Gong 0xF005 device error 39feef87e9SRichard Gong 0xF006 CPU watchdog timeout 40feef87e9SRichard Gong 0xF007 internal unknown error 41feef87e9SRichard Gong 42feef87e9SRichard GongWhat: /sys/devices/platform/stratix10-rsu.0/version 43feef87e9SRichard GongDate: August 2019 44feef87e9SRichard GongKernelVersion: 5.4 45feef87e9SRichard GongContact: Richard Gong <richard.gong@linux.intel.com> 46feef87e9SRichard GongDescription: 47feef87e9SRichard Gong (RO) the version number of RSU firmware. 19.3 or late 48feef87e9SRichard Gong version includes information about the firmware which 49feef87e9SRichard Gong reported the error. 50feef87e9SRichard Gong 51feef87e9SRichard Gong pre 19.3: 52feef87e9SRichard Gong b[31:0] 53feef87e9SRichard Gong 0x0 version number 54feef87e9SRichard Gong 55feef87e9SRichard Gong 19.3 or late: 56feef87e9SRichard Gong b[15:0] 57feef87e9SRichard Gong 0x1 version number 58feef87e9SRichard Gong b[31:16] 59feef87e9SRichard Gong 0x0 no error 60feef87e9SRichard Gong 0x0DCF Decision CMF error 61feef87e9SRichard Gong 0x0ACF Application CMF error 62feef87e9SRichard Gong 63feef87e9SRichard GongWhat: /sys/devices/platform/stratix10-rsu.0/error_location 64feef87e9SRichard GongDate: August 2019 65feef87e9SRichard GongKernelVersion: 5.4 66feef87e9SRichard GongContact: Richard Gong <richard.gong@linux.intel.com> 67feef87e9SRichard GongDescription: 68feef87e9SRichard Gong (RO) the error offset inside the image that failed. 69feef87e9SRichard Gong 70feef87e9SRichard GongWhat: /sys/devices/platform/stratix10-rsu.0/error_details 71feef87e9SRichard GongDate: August 2019 72feef87e9SRichard GongKernelVersion: 5.4 73feef87e9SRichard GongContact: Richard Gong <richard.gong@linux.intel.com> 74feef87e9SRichard GongDescription: 75feef87e9SRichard Gong (RO) error code. 76feef87e9SRichard Gong 77feef87e9SRichard GongWhat: /sys/devices/platform/stratix10-rsu.0/retry_counter 78feef87e9SRichard GongDate: August 2019 79feef87e9SRichard GongKernelVersion: 5.4 80feef87e9SRichard GongContact: Richard Gong <richard.gong@linux.intel.com> 81feef87e9SRichard GongDescription: 82feef87e9SRichard Gong (RO) the current image's retry counter, which is used by 83feef87e9SRichard Gong user to know how many times the images is still allowed 84feef87e9SRichard Gong to reload itself before giving up and starting RSU 85feef87e9SRichard Gong fail-over flow. 86feef87e9SRichard Gong 87feef87e9SRichard GongWhat: /sys/devices/platform/stratix10-rsu.0/reboot_image 88feef87e9SRichard GongDate: August 2019 89feef87e9SRichard GongKernelVersion: 5.4 90feef87e9SRichard GongContact: Richard Gong <richard.gong@linux.intel.com> 91feef87e9SRichard GongDescription: 92feef87e9SRichard Gong (WO) the address in flash of image to be loaded on next 93feef87e9SRichard Gong reboot command. 94feef87e9SRichard Gong 95feef87e9SRichard GongWhat: /sys/devices/platform/stratix10-rsu.0/notify 96feef87e9SRichard GongDate: August 2019 97feef87e9SRichard GongKernelVersion: 5.4 98feef87e9SRichard GongContact: Richard Gong <richard.gong@linux.intel.com> 99feef87e9SRichard GongDescription: 100feef87e9SRichard Gong (WO) client to notify firmware with different actions. 101feef87e9SRichard Gong 102feef87e9SRichard Gong b[15:0] 103feef87e9SRichard Gong inform firmware the current software execution 104feef87e9SRichard Gong stage. 105002a9c2fSMauro Carvalho Chehab 106002a9c2fSMauro Carvalho Chehab == =========================================== 107feef87e9SRichard Gong 0 the first stage bootloader didn't run or 108feef87e9SRichard Gong didn't reach the point of launching second 109feef87e9SRichard Gong stage bootloader. 110feef87e9SRichard Gong 1 failed in second bootloader or didn't get 111feef87e9SRichard Gong to the point of launching the operating 112feef87e9SRichard Gong system. 113feef87e9SRichard Gong 2 both first and second stage bootloader ran 114feef87e9SRichard Gong and the operating system launch was 115feef87e9SRichard Gong attempted. 116002a9c2fSMauro Carvalho Chehab == =========================================== 117feef87e9SRichard Gong 118feef87e9SRichard Gong b[16] 119002a9c2fSMauro Carvalho Chehab == =========================================== 120feef87e9SRichard Gong 1 firmware to reset current image retry 121feef87e9SRichard Gong counter. 122feef87e9SRichard Gong 0 no action. 123002a9c2fSMauro Carvalho Chehab == =========================================== 124feef87e9SRichard Gong 125feef87e9SRichard Gong b[17] 126002a9c2fSMauro Carvalho Chehab == =========================================== 127feef87e9SRichard Gong 1 firmware to clear RSU log 128feef87e9SRichard Gong 0 no action. 129002a9c2fSMauro Carvalho Chehab == =========================================== 130feef87e9SRichard Gong 131feef87e9SRichard Gong b[18] 132feef87e9SRichard Gong this is negative logic 133002a9c2fSMauro Carvalho Chehab 134002a9c2fSMauro Carvalho Chehab == =========================================== 135feef87e9SRichard Gong 1 no action 136feef87e9SRichard Gong 0 firmware record the notify code defined 137feef87e9SRichard Gong in b[15:0]. 138002a9c2fSMauro Carvalho Chehab == =========================================== 139f3801896SRichard Gong 140f3801896SRichard GongWhat: /sys/devices/platform/stratix10-rsu.0/dcmf0 141f3801896SRichard GongDate: June 2020 142f3801896SRichard GongKernelVersion: 5.8 143f3801896SRichard GongContact: Richard Gong <richard.gong@linux.intel.com> 144f3801896SRichard GongDescription: 145f3801896SRichard Gong (RO) Decision firmware copy 0 version information. 146f3801896SRichard Gong 147f3801896SRichard GongWhat: /sys/devices/platform/stratix10-rsu.0/dcmf1 148f3801896SRichard GongDate: June 2020 149f3801896SRichard GongKernelVersion: 5.8 150f3801896SRichard GongContact: Richard Gong <richard.gong@linux.intel.com> 151f3801896SRichard GongDescription: 152f3801896SRichard Gong (RO) Decision firmware copy 1 version information. 153f3801896SRichard Gong 154f3801896SRichard GongWhat: /sys/devices/platform/stratix10-rsu.0/dcmf2 155f3801896SRichard GongDate: June 2020 156f3801896SRichard GongKernelVersion: 5.8 157f3801896SRichard GongContact: Richard Gong <richard.gong@linux.intel.com> 158f3801896SRichard GongDescription: 159f3801896SRichard Gong (RO) Decision firmware copy 2 version information. 160f3801896SRichard Gong 161f3801896SRichard GongWhat: /sys/devices/platform/stratix10-rsu.0/dcmf3 162f3801896SRichard GongDate: June 2020 163f3801896SRichard GongKernelVersion: 5.8 164f3801896SRichard GongContact: Richard Gong <richard.gong@linux.intel.com> 165f3801896SRichard GongDescription: 166f3801896SRichard Gong (RO) Decision firmware copy 3 version information. 167f3801896SRichard Gong 168f3801896SRichard GongWhat: /sys/devices/platform/stratix10-rsu.0/max_retry 169f3801896SRichard GongDate: June 2020 170f3801896SRichard GongKernelVersion: 5.8 171f3801896SRichard GongContact: Richard Gong <richard.gong@linux.intel.com> 172f3801896SRichard GongDescription: 173f3801896SRichard Gong (RO) max retry parameter is stored in the firmware 174f3801896SRichard Gong decision IO section, as a byte located at offset 0x18c. 175