Skip to main content
To identify the status or update the state, use the sysfs and debugfs nodes. Mount debugfs to ensure that the debugfs file system is accessible for the debug nodes.
mount -t debugfs none /sys/kernel/debug

UFS device state commands

Required UFS device state informationCommand
Check PA/DL error countcat /sys/kernel/debug/ufshcd/1d84000.ufshc/stats
Read UFS device gating delay, in mscat /sys/devices/platform/soc@0/1d84000.ufshc/clkgate_delay_ms
Read UFS device clocks current frequency at given pointcat /sys/devices/platform/soc@0/1d84000.ufshc/devfreq/1d84000.ufshc/cur_freq
Read UFS device I/O scheduler detailscat /sys/devices/platform/soc@0/1d84000.ufshc/devfreq/1d84000.ufshc/governor
Read UFS device min frequency during clock scale downcat /sys/devices/platform/soc@0/1d84000.ufshc/devfreq/1d84000.ufshc/min_freq
Read UFS device max frequency during clock scale upcat /sys/devices/platform/soc@0/1d84000.ufshc/devfreq/1d84000.ufshc/max_freq
Read UFS device state active or sleepcat /sys/devices/platform/soc@0/1d84000.ufshc/power_info/dev_pm
Read UFS device gear information such as HS_GEAR3, HS_GEAR4cat /sys/devices/platform/soc@0/1d84000.ufshc/power_info/gear
Read UFS device number of lanescat /sys/devices/platform/soc@0/1d84000.ufshc/power_info/lane
Read UFS device link state, ACTIVE or HIBERN8cat /sys/devices/platform/soc@0/1d84000.ufshc/power_info/link_state
Read UFS device rate information such as Rate A or Bcat /sys/devices/platform/soc@0/1d84000.ufshc/power_info/rate
Read UFS device descriptor informationls /sys/devices/platform/soc@0/1d84000.ufshc/device_descriptor
Read UFS device health descriptor informationls /sys/devices/platform/soc@0/1d84000.ufshc/health_descriptor
Read UFS device runtime status information active or suspendedcat /sys/devices/platform/soc@0/1d84000.ufshc/power/runtime_status
Find and/or modify the SPM/RPM levelcat /sys/devices/platform/soc@0/1d84000.ufshc/rpm_lvl cat /sys/devices/platform/soc@0/1d84000.ufshc/spm_lvl

SD card state commands

Required SD card state informationCommand
Read SD card error stats informationcat /sys/kernel/debug/mmc1/err_stats
Read SD card latest error state detailscat /sys/kernel/debug/mmc1/err_state
Check the current running clock detailscat /sys/kernel/debug/mmc1/clock
Read the SD card runtime status information (active or suspended)cat /sys/devices/platform/soc@0/87c4000.sdhci/power/runtime_status
Read SD card auto suspend delay timecat /sys/devices/platform/soc@0/87c4000.sdhci/power/autosuspend_delay_ms
Read SD card runtime active timecat /sys/devices/platform/soc@0/87c4000.sdhci/power/runtime_active_time
Read SD card runtime suspend timecat /sys/devices/platform/soc@0/87c4000.sdhci/power/runtime_suspended_time
Read SD card uevent detailscat /sys/devices/platform/soc@0/87c4000.sdhci/uevent

NVMe state commands

Required NVMe card state informationCommand
View device model namecat /sys/class/nvme/nvme0/model
View device serial numbercat /sys/class/nvme/nvme0/serial
View current firmware versioncat /sys/class/nvme/nvme0/firmware_rev
View namespace identifiercat /sys/class/nvme/nvme0/nvme0n1/nsid
View namespace sizecat /sys/class/nvme/nvme0/nvme0n1/size
View the offset in bytes to align the start of the NVMe namespace to the optimal I/O boundarycat /sys/class/nvme/nvme0/nvme0n1/alignment_offset
View queue depthcat /sys/class/nvme/nvme0/queue_count

eMMC node commands

DescriptionCommand
eMMC error stats informationcat /sys/kernel/debug/mmc0/err_stats
eMMC latest error state detailscat /sys/kernel/debug/mmc0/err_state
Current running clock details of an eMMCcat /sys/kernel/debug/mmc0/clock
eMMC runtime status informationcat /sys/devices/platform/soc@0/<sdhci_addr>.mmc/power/runtime_status
eMMC auto suspend delay timecat /sys/devices/platform/soc@0/<sdhci_addr>.mmc/power/autosuspend_delay_ms
eMMC runtime active timecat /sys/devices/platform/soc@0/<sdhci_addr>.mmc/power/runtime_active_time
eMMC runtime suspend timecat /sys/devices/platform/soc@0/<sdhci_addr>.mmc/power/runtime_suspended_time
eMMC uevent detailscat /sys/devices/platform/soc@0/<sdhci_addr>.mmc/uevent
Update the <sdhc1_address> values based on the SDHCI physical address of the chip products.Example:
  • Qualcomm Dragonwing™ IQ-615: 7c4000
  • Qualcomm Dragonwing™ IQ-8275: 87c4000
  • Qualcomm Dragonwing™ IQ-9075: 7c4000