Skip to content

Instantly share code, notes, and snippets.

View DhruvaG2000's full-sized avatar
:atom:
Open Source all the way!

Dhruva Gole DhruvaG2000

:atom:
Open Source all the way!
View GitHub Profile
root@am62xx-evm:/opt/ltp# rtcwake -s 45 -m mem
rtcwake: assuming RTC uses UTC ...
rtcwake: wakeup from "mem" using /dev/rtc0 at Fri Jan 2 03:52:45 1970
[100295.954720] PM: suspend entry (deep)
[100295.958557] Filesystems sync: 0.000 seconds
[100295.965114] Freezing user space processes
[100295.971316] Freezing user space processes completed (elapsed 0.001 seconds)
[100295.978439] OOM killer disabled.
[100295.981763] Freezing remaining freezable tasks
[100295.987739] Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
@DhruvaG2000
DhruvaG2000 / am62xx_sk_fs_12.00.06_usb_lpm.txt
Last active March 25, 2026 13:08
wireless keyboard over USB - just key press to wakeup from low power mode
root@am62xx-evm:/opt/ltp# rtcwake -s 15 -m mem
rtcwake: assuming RTC uses UTC ...
rtcwake: wakeup from "mem" using /dev/rtc0 at Fri Jan 2 03:39:50 1970
[99555.481726] PM: suspend entry (deep)
[99555.485484] Filesystems sync: 0.000 seconds
[99555.493020] Freezing user space processes
[99555.499541] Freezing user space processes completed (elapsed 0.002 seconds)
[99555.506567] OOM killer disabled.
[99555.509804] Freezing remaining freezable tasks
[99555.515728] Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
root@am62xx-evm:~# echo 100000 > /sys/devices/system/cpu/cpu0/power/pm_qos_resume_latency_us
root@am62xx-evm:~#
root@am62xx-evm:~# rtcwake -s 5 -m mem
rtcwake: assuming RTC uses UTC ...
rtcwake: wakeup from "mem" using /dev/rtc0 at Fri Jan 2 03:07:51 1970
[97655.683494] PM: suspend entry (deep)
[97655.687285] Filesystems sync: 0.000 seconds
[97655.696307] Freezing user space processes
[97655.702650] Freezing user space processes completed (elapsed 0.002 seconds)
[97655.709666] OOM killer disabled.
root@am62xx-evm:/opt/ltp#
root@am62xx-evm:/opt/ltp# ./runltp -P am62pxx_sk-fs -f ddt/powermgr_cpufreq -s "POWERMGR_S_FUNC_CPUFREQ_BASIC"
INFO: creating /opt/ltp/output directory
INFO: creating /opt/ltp/results directory
INFO: Filtering testscenarios based on am62pxx_sk-fs capabilities
Checking for required user/group ids
'root' user id and group found.
'nobody' user id and group found.
'bin' user id and group found.
@DhruvaG2000
DhruvaG2000 / AM62L_cpufreq_test_logs
Created March 10, 2026 08:35
Kernel LTS 6.18 TI vendor tree
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 6.18.13-ti-00649-g1ae61a325571-dirty (oe-user@oe-host) (aarch64-oe-linux-gcc (GCC) 15.2.0, GNU ld (GNU Binutils) 2.46) #1 SMP PREEMPT Fri Mar 6 13:28:32 UTC 2026
[ 0.000000] KASLR enabled
[ 0.000000] Machine model: Texas Instruments AM62L3 Evaluation Module
[ 0.000000] earlycon: ns16550a0 at MMIO32 0x0000000002800000 (options '')
[ 0.000000] printk: legacy bootconsole [ns16550a0] enabled
[ 0.000000] efi: UEFI not found.
[ 0.000000] OF: reserved mem: 0x0000000080200000..0x00000000819fffff (24576 KiB) nomap non-reusable optee@80200000
@DhruvaG2000
DhruvaG2000 / am62l_s2idle-mode.txt
Created March 2, 2026 06:21
tiL6.18 with s2idle mode selection
INFO: K3 BL1 arch setup
NOTICE: Booting Trusted Firmware
NOTICE: BL1: v2.14.0(release):sandbox/v2.14-67-gf289b400bfff
NOTICE: BL1: Built : 19:31:30, Feb 26 2026
INFO: BL1: RAM 0x7080c000 - 0x70810000
NOTICE: BL1: dram_class: 11
INFO: memory node =0x2320
INFO: lpddr4: probe done
INFO: lpddr4/ddr4: init done
INFO: Doing normal DDR initINFO: lpddr4: Start DDR controller
// SPDX-License-Identifier: GPL-2.0-only or MIT
/*
* Low Power Mode Demo Device Tree file for the AM62L3 Starter Kit
* Copyright (C) 2024 Texas Instruments Incorporated - https://www.ti.com/
*/
/dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
NOTICE: Booting Trusted Firmware
NOTICE: BL1: v2.12.0(release):11.02.01-16-g0e3e6a5b40ac
NOTICE: BL1: Built : 15:04:00, Jan 8 2026
INFO: BL1: RAM 0x7080b000 - 0x7080f000
INFO: lpddr4_init <--
INFO: lpddr4 dtb: ctl-data ptr=0x7080718c, pi-data=0x70807834, phy-data=0x70807da4
NOTICE: BL1: dram_class: 11
INFO: memory node =0x28
INFO: lpddr4: probe done
INFO: lpddr4/ddr4: init done
[ OK ] Finished Print notice about GPLv3 packages.
[ OK ] Reached target Multi-User System.
[ OK ] Reached target Graphical Interface.
Starting Record Runlevel Change in UTMP...
[ OK ] Finished Record Runlevel Change in UTMP.
[ 13.996851] audit: type=1006 audit(1762803515.322:14): pid=795 uid=0 subj=kernel old-auid=4294967295 auid=1000 tty=(none) old-ses=4294967295 ses=1 res=1
[ 14.010683] audit: type=1300 audit(1762803515.322:14): arch=c00000b7 syscall=64 success=yes exit=4 a0=8 a1=fffffbaa3068 a2=4 a3=1 items=0 ppid=1 pid=795 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1 comm="(systemd)" exe="/usr/lib/systemd/systemd-executor" subj=kernel key=(null)
[ 14.039267] audit: type=1327 audit(1762803515.322:14): proctitle="(systemd)"
_____ _____ _ _
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <signal.h>
#define QOS_DEV "/dev/cpu_wakeup_latency"
#define LATENCY_VAL "0x7a110" /* <500000 ?unit? in hex */
static volatile int keep_running = 1;