Back to home page

OSCL-LXR

 
 

    


0001 What:           /sys/kernel/debug/<cros-ec-device>/console_log
0002 Date:           September 2017
0003 KernelVersion:  4.13
0004 Description:
0005                 If the EC supports the CONSOLE_READ command type, this file
0006                 can be used to grab the EC logs. The kernel polls for the log
0007                 and keeps its own buffer but userspace should grab this and
0008                 write it out to some logs.
0009 
0010 What:           /sys/kernel/debug/<cros-ec-device>/panicinfo
0011 Date:           September 2017
0012 KernelVersion:  4.13
0013 Description:
0014                 This file dumps the EC panic information from the previous
0015                 reboot. This file will only exist if the PANIC_INFO command
0016                 type is supported by the EC.
0017 
0018 What:           /sys/kernel/debug/<cros-ec-device>/pdinfo
0019 Date:           June 2018
0020 KernelVersion:  4.17
0021 Description:
0022                 This file provides the port role, muxes and power debug
0023                 information for all the USB PD/type-C ports available. If
0024                 the are no ports available, this file will be just an empty
0025                 file.
0026 
0027 What:           /sys/kernel/debug/<cros-ec-device>/uptime
0028 Date:           June 2019
0029 KernelVersion:  5.3
0030 Description:
0031                 A u32 providing the time since EC booted in ms. This is
0032                 is used for synchronizing the AP host time with the EC
0033                 log. An error is returned if the command is not supported
0034                 by the EC or there is a communication problem.
0035 
0036 What:           /sys/kernel/debug/<cros-ec-device>/last_resume_result
0037 Date:           June 2019
0038 KernelVersion:  5.3
0039 Description:
0040                 Some ECs have a feature where they will track transitions to
0041                 the (Intel) processor's SLP_S0 line, in order to detect cases
0042                 where a system failed to go into S0ix. When the system resumes,
0043                 an EC with this feature will return a summary of SLP_S0
0044                 transitions that occurred. The last_resume_result file returns
0045                 the most recent response from the AP's resume message to the EC.
0046 
0047                 The bottom 31 bits contain a count of the number of SLP_S0
0048                 transitions that occurred since the suspend message was
0049                 received. Bit 31 is set if the EC attempted to wake the
0050                 system due to a timeout when watching for SLP_S0 transitions.
0051                 Callers can use this to detect a wake from the EC due to
0052                 S0ix timeouts. The result will be zero if no suspend
0053                 transitions have been attempted, or the EC does not support
0054                 this feature.
0055 
0056                 Output will be in the format: "0x%08x\n".