brintos

brintos / linux-shallow public Read only

0
0
Text · 3.1 KiB · 9a040c6 Raw
79 lines · plain
1What:		/sys/kernel/debug/<cros-ec-device>/console_log2Date:		September 20173KernelVersion:	4.134Description:5		If the EC supports the CONSOLE_READ command type, this file6		can be used to grab the EC logs. The kernel polls for the log7		and keeps its own buffer but userspace should grab this and8		write it out to some logs.9 10What:		/sys/kernel/debug/<cros-ec-device>/panicinfo11Date:		September 201712KernelVersion:	4.1313Description:14		This file dumps the EC panic information from the previous15		reboot. This file will only exist if the PANIC_INFO command16		type is supported by the EC.17 18What:		/sys/kernel/debug/<cros-ec-device>/pdinfo19Date:		June 201820KernelVersion:	4.1721Description:22		This file provides the port role, muxes and power debug23		information for all the USB PD/type-C ports available. If24		the are no ports available, this file will be just an empty25		file.26 27What:		/sys/kernel/debug/<cros-ec-device>/uptime28Date:		June 201929KernelVersion:	5.330Description:31		A u32 providing the time since EC booted in ms. This is32		is used for synchronizing the AP host time with the EC33		log. An error is returned if the command is not supported34		by the EC or there is a communication problem.35 36What:		/sys/kernel/debug/<cros-ec-device>/last_resume_result37Date:		June 201938KernelVersion:	5.339Description:40		Some ECs have a feature where they will track transitions to41		the (Intel) processor's SLP_S0 line, in order to detect cases42		where a system failed to go into S0ix. When the system resumes,43		an EC with this feature will return a summary of SLP_S044		transitions that occurred. The last_resume_result file returns45		the most recent response from the AP's resume message to the EC.46 47		The bottom 31 bits contain a count of the number of SLP_S048		transitions that occurred since the suspend message was49		received. Bit 31 is set if the EC attempted to wake the50		system due to a timeout when watching for SLP_S0 transitions.51		Callers can use this to detect a wake from the EC due to52		S0ix timeouts. The result will be zero if no suspend53		transitions have been attempted, or the EC does not support54		this feature.55 56		Output will be in the format: "0x%08x\n".57 58What:		/sys/kernel/debug/<cros-ec-device>/suspend_timeout_ms59Date:		August 202260KernelVersion:	6.161Description:62		Some ECs have a feature where they will track transitions of63		a hardware-controlled sleep line, such as Intel's SLP_S0 line,64		in order to detect cases where a system failed to go into deep65		sleep states. The suspend_timeout_ms file controls the amount of66		time in milliseconds the EC will wait before declaring a sleep67		timeout event and attempting to wake the system.68 69		Supply 0 to use the default value coded into EC firmware. Supply70		65535 (EC_HOST_SLEEP_TIMEOUT_INFINITE) to disable the EC sleep71		failure detection mechanism. Values in between 0 and 6553572		indicate the number of milliseconds the EC should wait after a73		sleep transition before declaring a timeout. This includes both74		the duration after a sleep command was received but before the75		hardware line changed, as well as the duration between when the76		hardware line changed and the kernel sent an EC resume command.77 78		Output will be in the format: "%u\n".79