Skip to content

Instantly share code, notes, and snippets.

@DhruvaG2000
Created April 24, 2023 12:16
Show Gist options
  • Save DhruvaG2000/351a0dc44844cbf5e6a1263cdb23232d to your computer and use it in GitHub Desktop.
Save DhruvaG2000/351a0dc44844cbf5e6a1263cdb23232d to your computer and use it in GitHub Desktop.
AM62 OSPI performance before and after suspend resume on linux 6.1 lts
[2023-04-24 17:34:05] _____ _____ _ _
[2023-04-24 17:34:05] | _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_
[2023-04-24 17:34:05] | | _| .'| . | . | | __| _| . | | | -_| _| _|
[2023-04-24 17:34:05] |__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|
[2023-04-24 17:34:05] |___| |___|
[2023-04-24 17:34:05]
[2023-04-24 17:34:05] Arago Project am62xx-evm ttyS2
[2023-04-24 17:34:05]
[2023-04-24 17:34:05] Arago 2021.09 am62xx-evm ttyS2
[2023-04-24 17:34:05]
[2023-04-24 17:34:05] am62xx-evm login:
[2023-04-24 17:34:06] am62xx-evm login: root
[2023-04-24 17:34:07] [ 15.732018] audit: type=1006 audit(20.980:8): pid=881 uid=0 old-auid=4294967295 auid=0 tty=(none) old-ses=4294967295 ses=1 res=1
[2023-04-24 17:34:07] [ 15.752262] audit: type=1300 audit(20.980:8): arch=c00000b7 syscall=64 success=yes exit=1 a0=8 a1=ffffc3c70358 a2=1 a3=ffffa002c7e0 items=0 ppid=1 pid=881 auid=0 uid=)
[2023-04-24 17:34:07] [ 15.784244] audit: type=1327 audit(20.980:8): proctitle="(systemd)"
[2023-04-24 17:34:07] [ 15.790599] audit: type=1334 audit(21.012:9): prog-id=9 op=LOAD
[2023-04-24 17:34:07] [ 15.796651] audit: type=1300 audit(21.012:9): arch=c00000b7 syscall=280 success=yes exit=8 a0=5 a1=ffffd38c97f8 a2=70 a3=0 items=0 ppid=1 pid=881 auid=0 uid=0 gid=0 e)
[2023-04-24 17:34:07] [ 15.824265] audit: type=1327 audit(21.012:9): proctitle="(systemd)"
[2023-04-24 17:34:07] [ 15.830687] audit: type=1334 audit(21.036:10): prog-id=9 op=UNLOAD
[2023-04-24 17:34:07] [ 15.836971] audit: type=1334 audit(21.036:11): prog-id=10 op=LOAD
[2023-04-24 17:34:07] [ 15.843258] audit: type=1300 audit(21.036:11): arch=c00000b7 syscall=280 success=yes exit=8 a0=5 a1=ffffd38c9878 a2=70 a3=0 items=0 ppid=1 pid=881 auid=0 uid=0 gid=0 )
[2023-04-24 17:34:07] [ 15.875809] audit: type=1327 audit(21.036:11): proctitle="(systemd)"
[2023-04-24 17:34:08] root@am62xx-evm:~#
[2023-04-24 17:34:08] root@am62xx-evm:~#
[2023-04-24 17:34:08] root@am62xx-evm:~#
[2023-04-24 17:34:08] root@am62xx-evm:~# echo mem > /sys/power/state
[2023-04-24 17:34:17] [ 25.260547] PM: suspend entry (deep)
[2023-04-24 17:34:17] [ 25.275136] Filesystems sync: 0.010 seconds
[2023-04-24 17:34:17] [ 25.283590] Freezing user space processes ... (elapsed 0.001 seconds) done.
[2023-04-24 17:34:17] [ 25.292389] OOM killer disabled.
[2023-04-24 17:34:17] [ 25.295610] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[2023-04-24 17:34:17] [ 25.304333] printk: Suspending console(s) (use no_console_suspend to debug)
[2023-04-24 17:34:28] [ 25.331426] Disabling non-boot CPUs ...
[2023-04-24 17:34:28] [ 25.333400] psci: CPU1 killed (polled 0 ms)
[2023-04-24 17:34:28] [ 25.336240] psci: CPU2 killed (polled 4 ms)
[2023-04-24 17:34:28] [ 25.339476] psci: CPU3 killed (polled 0 ms)
[2023-04-24 17:34:28] [ 25.340996] Enabling non-boot CPUs ...
[2023-04-24 17:34:28] [ 25.341404] Detected VIPT I-cache on CPU1
[2023-04-24 17:34:28] [ 25.341497] GICv3: CPU1: found redistributor 1 region 0:0x00000000018a0000
[2023-04-24 17:34:28] [ 25.341560] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[2023-04-24 17:34:28] [ 25.342315] CPU1 is up
[2023-04-24 17:34:28] [ 25.342549] Detected VIPT I-cache on CPU2
[2023-04-24 17:34:28] [ 25.342592] GICv3: CPU2: found redistributor 2 region 0:0x00000000018c0000
[2023-04-24 17:34:28] [ 25.342629] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[2023-04-24 17:34:28] [ 25.343108] CPU2 is up
[2023-04-24 17:34:28] [ 25.343344] Detected VIPT I-cache on CPU3
[2023-04-24 17:34:28] [ 25.343388] GICv3: CPU3: found redistributor 3 region 0:0x00000000018e0000
[2023-04-24 17:34:28] [ 25.343427] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[2023-04-24 17:34:28] [ 25.343963] CPU3 is up
[2023-04-24 17:34:28] [ 25.353358] am65-cpsw-nuss 8000000.ethernet: set new flow-id-base 19
[2023-04-24 17:34:28] [ 25.361787] am65-cpsw-nuss 8000000.ethernet eth0: PHY [8000f00.mdio:00] driver [TI DP83867] (irq=POLL)
[2023-04-24 17:34:28] [ 25.361815] am65-cpsw-nuss 8000000.ethernet eth0: configuring for phy/rgmii-rxid link mode
[2023-04-24 17:34:28] [ 25.368025] am65-cpsw-nuss 8000000.ethernet eth1: PHY [8000f00.mdio:01] driver [TI DP83867] (irq=POLL)
[2023-04-24 17:34:28] [ 25.368038] am65-cpsw-nuss 8000000.ethernet eth1: configuring for phy/rgmii-rxid link mode
[2023-04-24 17:34:28] [ 25.492769] OOM killer enabled.
[2023-04-24 17:34:28] [ 25.495907] Restarting tasks ... done.
[2023-04-24 17:34:28] [ 25.508497] random: crng reseeded on system resumption
[2023-04-24 17:34:28] [ 25.520330] PM: suspend exit
[2023-04-24 17:34:28] root@am62xx-evm:~#
[2023-04-24 17:34:31] root@am62xx-evm:~#
[2023-04-24 17:37:09] root@am62xx-evm:~#
[2023-04-24 17:37:09] root@am62xx-evm:~# dd if=/dev/mtd5 of=/dev/null bs=1M count=10
[2023-04-24 17:38:17] 10+0 records in
[2023-04-24 17:38:17] 10+0 records out
[2023-04-24 17:38:17] 10485760 bytes (10 MB, 10 MiB) copied, 0.0474728 s, 221 MB/s
[2023-04-24 17:38:17] root@am62xx-evm:~#
[2023-04-24 17:38:18] root@am62xx-evm:~#
[2023-04-24 17:38:18] root@am62xx-evm:~# cd /opt/ltp/
[2023-04-24 17:38:22] root@am62xx-evm:/opt/ltp#
[2023-04-24 17:38:22] root@am62xx-evm:/opt/ltp# ./runltp -P am62xx-sk -f ddt/ospi_mtd_dd_rw_ubifs -s "OSPI_S_FUNC_DD_RW_ERASESIZE_UBIFS"
[2023-04-24 17:38:33] INFO: creating /opt/ltp/results directory
[2023-04-24 17:38:33] INFO: Filtering testscenarios based on am62xx-sk capabilities
[2023-04-24 17:38:34] awk: cmd. line:1: warning: regexp escape sequence `\&' is not a known regexp operator
[2023-04-24 17:38:34] Checking for required user/group ids
[2023-04-24 17:38:34]
[2023-04-24 17:38:34] 'nobody' user id and group found.
[2023-04-24 17:38:34] 'bin' user id and group found.
[2023-04-24 17:38:34] 'daemon' user id and group found.
[2023-04-24 17:38:34] Users group found.
[2023-04-24 17:38:34] Sys group found.
[2023-04-24 17:38:34] Required users/groups exist.
[2023-04-24 17:38:34] If some fields are empty or look unusual you may have an old version.
[2023-04-24 17:38:34] Compare to the current minimal requirements in Documentation/Changes.
[2023-04-24 17:38:34]
[2023-04-24 17:38:34] /etc/os-release
[2023-04-24 17:38:34] ID=arago
[2023-04-24 17:38:34] NAME="Arago"
[2023-04-24 17:38:34] VERSION="2021.09"
[2023-04-24 17:38:34] VERSION_ID=2021.09
[2023-04-24 17:38:34] PRETTY_NAME="Arago 2021.09"
[2023-04-24 17:38:34]
[2023-04-24 17:38:34] uname:
[2023-04-24 17:38:34] Linux am62xx-evm 6.1.12-00356-gf364a35f9ec2 #65 SMP PREEMPT Mon Apr 24 17:31:24 IST 2023 aarch64 aarch64 aarch64 GNU/Linux
[2023-04-24 17:38:34]
[2023-04-24 17:38:34] /proc/cmdline
[2023-04-24 17:38:34] console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 root=PARTUUID=c879998c-02 rw rootfstype=ext4 rootwait
[2023-04-24 17:38:34]
[2023-04-24 17:38:34] Gnu C gcc (GCC) 9.2.1 20191025
[2023-04-24 17:38:34] Clang
[2023-04-24 17:38:34] Gnu make 4.3
[2023-04-24 17:38:34] util-linux 2.35.1
[2023-04-24 17:38:34] mount linux 2.35.1 (libmount 2.35.1: btrfs, namespaces, assert, debug)
[2023-04-24 17:38:34] modutils 26
[2023-04-24 17:38:34] e2fsprogs 1.45.7
[2023-04-24 17:38:34] Linux C Library > libc.2.30
[2023-04-24 17:38:34] Dynamic linker (ldd) 2.30
[2023-04-24 17:38:34] Linux C++ Library 6..
[2023-04-24 17:38:34] Procps 3.3.16
[2023-04-24 17:38:34] Net-tools 1.60
[2023-04-24 17:38:35] iproute2 iproute2-5.10.0
[2023-04-24 17:38:35] iputils 'V'
[2023-04-24 17:38:35] ethtool 5.10
[2023-04-24 17:38:35] Kbd 2.2.0
[2023-04-24 17:38:35] Sh-utils 8.31
[2023-04-24 17:38:35] Modules Loaded iptable_nat xt_MASQUERADE nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c ip_tables x_tables wlcore_sdio wl18xx wlcore mac80211 libarc6
[2023-04-24 17:38:35]
[2023-04-24 17:38:35] free reports:
[2023-04-24 17:38:35] total used free shared buff/cache available
[2023-04-24 17:38:35] Mem: 2000580 123448 1555560 17164 321572 1788632
[2023-04-24 17:38:35] Swap: 0 0 0
[2023-04-24 17:38:35]
[2023-04-24 17:38:35] cpuinfo:
[2023-04-24 17:38:35] Architecture: aarch64
[2023-04-24 17:38:35] CPU op-mode(s): 32-bit, 64-bit
[2023-04-24 17:38:35] Byte Order: Little Endian
[2023-04-24 17:38:35] CPU(s)[ 128.929207] LTP: starting OSPI_S_FUNC_DD_RW_ERASESIZE_UBIFS (source "common.sh"; install_modules.sh "ospi"; part=`get_mtd_partition_number.sh "ospi"` || die "er)
[2023-04-24 17:38:35] : 4
[2023-04-24 17:38:35] On-line CPU(s) list: 0-3
[2023-04-24 17:38:35] Thread(s) per core: 1
[2023-04-24 17:38:35] Core(s) per socket: 4
[2023-04-24 17:38:35] Socket(s): 1
[2023-04-24 17:38:35] Vendor ID: ARM
[2023-04-24 17:38:35] Model: 4
[2023-04-24 17:38:35] Model name: Cortex-A53
[2023-04-24 17:38:35] Stepping: r0p4
[2023-04-24 17:38:35] BogoMIPS: 400.00
[2023-04-24 17:38:35] L1d cache: 128 KiB
[2023-04-24 17:38:35] L1i cache: 128 KiB
[2023-04-24 17:38:35] L2 cache: 512 KiB
[2023-04-24 17:38:35] Vulnerability Itlb multihit: Not affected
[2023-04-24 17:38:35] Vulnerability L1tf: Not affected
[2023-04-24 17:38:35] Vulnerability Mds: Not affected
[2023-04-24 17:38:35] Vulnerability Meltdown: Not affected
[2023-04-24 17:38:35] Vulnerability Mmio stale data: Not affected
[2023-04-24 17:38:35] Vulnerability Retbleed: Not affected
[2023-04-24 17:38:35] Vulnerability Spec store bypass: Not affected
[2023-04-24 17:38:35] Vulnerability Spectre v1: Mitigation; __user pointer sanitization
[2023-04-24 17:38:35] Vulnerability Spectre v2: Not affected
[2023-04-24 17:38:35] Vulnerability Srbds: Not affected
[2023-04-24 17:38:35] Vulnerability Tsx async abort: Not affected
[2023-04-24 17:38:35] Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
[2023-04-24 17:38:35]
[2023-04-24 17:38:35] AppArmor disabled
[2023-04-24 17:38:35]
[2023-04-24 17:38:35] SELinux mode: unknown
[2023-04-24 17:38:35] no big block device was specified on commandline.
[2023-04-24 17:38:35] Tests which require a big block device are disabled.
[2023-04-24 17:38:35] You can specify it with option -z
[2023-04-24 17:38:35] COMMAND: /opt/ltp/bin/ltp-pan -e -S -a 1088 -n 1088 -p -f /tmp/ltp-paqlDSLmte/alltests -l /tmp/tmp.wAbLiVqZWC -C /opt/ltp/output/LTP_RUN_ON-tmp.wAbLiVqZWC.faf
[2023-04-24 17:38:35] INFO: Restricted to OSPI_S_FUNC_DD_RW_ERASESIZE_UBIFS
[2023-04-24 17:38:35] LOG File: /tmp/tmp.wAbLiVqZWC
[2023-04-24 17:38:35] FAILED COMMAND File: /opt/ltp/output/LTP_RUN_ON-tmp.wAbLiVqZWC.failed
[2023-04-24 17:38:35] TCONF COMMAND File: /opt/ltp/output/LTP_RUN_ON-tmp.wAbLiVqZWC.tconf
[2023-04-24 17:38:35] Running tests.......
[2023-04-24 17:38:35] <<<test_start>>>
[2023-04-24 17:38:35] tag=OSPI_S_FUNC_DD_RW_ERASESIZE_UBIFS stime=134
[2023-04-24 17:38:35] cmdline="source "common.sh"; install_modules.sh "ospi"; part=`get_mtd_partition_number.sh "ospi"` || die "error getting mtd part number: $part"; size=`get_mtd_erase_size"
[2023-04-24 17:38:35] contacts=""
[2023-04-24 17:38:35] analysis=exit
[2023-04-24 17:38:35] <<<test_output>>>
[2023-04-24 17:38:35] incrementing stop
[2023-04-24 17:38:36] [ 129.770508] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[2023-04-24 17:38:36] [ 129.790247] Bridge firewalling registered
[2023-04-24 17:38:36] [ 129.824479] kauditd_printk_skb: 1 callbacks suppressed
[2023-04-24 17:38:36] [ 129.824501] audit: type=1325 audit(135.494:13): table=filter family=2 entries=0 op=xt_register pid=1758 comm="iptables"
[2023-04-24 17:38:36] [ 129.840730] audit: type=1300 audit(135.494:13): arch=c00000b7 syscall=209 success=yes exit=0 a0=4 a1=0 a2=40 a3=ffffd498c3d8 items=0 ppid=1251 pid=1758 auid=429496729)
[2023-04-24 17:38:36] [ 129.868442] audit: type=1327 audit(135.494:13): proctitle=2F7573722F7362696E2F69707461626C6573002D2D77616974002D4C002D6E
[2023-04-24 17:38:36] [ 129.952674] audit: type=1325 audit(135.630:14): table=nat family=2 entries=6 op=xt_replace pid=1801 comm="iptables"
[2023-04-24 17:38:36] [ 129.963470] audit: type=1300 audit(135.630:14): arch=c00000b7 syscall=208 success=yes exit=0 a0=4 a1=0 a2=40 a3=3eacfc00 items=0 ppid=1251 pid=1801 auid=4294967295 ui)
[2023-04-24 17:38:36] [ 129.991241] audit: type=1327 audit(135.630:14): proctitle=2F7573722F7362696E2F69707461626C6573002D2D77616974002D74006E6174002D4E00444F434B4552
[2023-04-24 17:38:36] [ 130.004171] audit: type=1325 audit(135.638:15): table=filter family=2 entries=4 op=xt_replace pid=1805 comm="iptables"
[2023-04-24 17:38:36] [ 130.015077] audit: type=1300 audit(135.638:15): arch=c00000b7 syscall=208 success=yes exit=0 a0=4 a1=0 a2=40 a3=2a904940 items=0 ppid=1251 pid=1805 auid=4294967295 ui)
[2023-04-24 17:38:36] [ 130.042499] audit: type=1327 audit(135.638:15): proctitle=2F7573722F7362696E2F69707461626C6573002D2D77616974002D740066696C746572002D4E00444F434B4552
[2023-04-24 17:38:36] [ 130.056008] audit: type=1325 audit(135.650:16): table=filter family=2 entries=6 op=xt_replace pid=1810 comm="iptables"
[2023-04-24 17:38:36] ls -al /dev/disk/by-path
[2023-04-24 17:38:36] total 0
[2023-04-24 17:38:36] drwxr-xr-x 2 root root 160 Jan 1 00:00 .
[2023-04-24 17:38:36] drwxr-xr-x 7 root root 140 Jan 1 00:00 ..
[2023-04-24 17:38:36] lrwxrwxrwx 1 root root 13 Jan 1 00:00 mmc-S0J56X_0x2cc22b7b -> ../../mmcblk0
[2023-04-24 17:38:36] lrwxrwxrwx 1 root root 15 Jan 1 00:00 mmc-S0J56X_0x2cc22b7b-part1 -> ../../mmcblk0p1
[2023-04-24 17:38:36] lrwxrwxrwx 1 root root 15 Jan 1 00:00 mmc-S0J56X_0x2cc22b7b-part2 -> ../../mmcblk0p2
[2023-04-24 17:38:36] lrwxrwxrwx 1 root root 13 Jan 1 00:00 mmc-SD32G_0xfce4f802 -> ../../mmcblk1
[2023-04-24 17:38:36] lrwxrwxrwx 1 root root 15 Jan 1 00:00 mmc-SD32G_0xfce4f802-part1 -> ../../mmcblk1p1
[2023-04-24 17:38:36] lrwxrwxrwx 1 root root 15 Jan 1 00:00 mmc-SD32G_0xfce4f802-part2 -> ../../mmcblk1p2
[2023-04-24 17:38:36] ls -al /dev/disk/by-path
[2023-04-24 17:38:36] total 0
[2023-04-24 17:38:36] drwxr-xr-x 2 root root 160 Jan 1 00:00 .
[2023-04-24 17:38:36] drwxr-xr-x 7 root root 140 Jan 1 00:00 ..
[2023-04-24 17:38:36] lrwxrwxrwx 1 root root 13 Jan 1 00:00 mmc-S0J56X_0x2cc22b7b -> ../../mmcblk0
[2023-04-24 17:38:36] lrwxrwxrwx 1 root root 15 Jan 1 00:00 mmc-S0J56X_0x2cc22b7b-part1 -> ../../mmcblk0p1
[2023-04-24 17:38:36] lrwxrwxrwx 1 root root 15 Jan 1 00:00 mmc-S0J56X_0x2cc22b7b-part2 -> ../../mmcblk0p2
[2023-04-24 17:38:36] lrwxrwxrwx 1 root root 13 Jan 1 00:00 mmc-SD32G_0xfce4f802 -> ../../mmcblk1
[2023-04-24 17:38:36] lrwxrwxrwx 1 root root 15 Jan 1 00:00 mmc-SD32G_0xfce4f802-part1 -> ../../mmcblk1p1
[2023-04-24 17:38:36] lrwxrwxrwx 1 root root 15 Jan 1 00:00 mmc-SD32G_0xfce4f802-part2 -> ../../mmcblk1p2
[2023-04-24 17:38:37] [ 130.812327] process 'docker/tmp/qemu-check014535950/check' started with executable stack
[2023-04-24 17:38:38] |TRACE LOG|DEV_NODE returned from get_blk_device_node is: /dev/mtdblock5|
[2023-04-24 17:38:38] |TRACE LOG|DEV_NODE: /dev/mtdblock5|
[2023-04-24 17:38:38] |TRACE LOG|MNT_POINT: /mnt/partition_ospi_1978|
[2023-04-24 17:38:38] |TRACE LOG|FS_TYPE: ubifs|
[2023-04-24 17:38:38] |TRACE LOG|Inside do_cmd:CMD=printout_model /dev/mtdblock5 ospi|
[2023-04-24 17:38:38] |TRACE LOG|model info is not available for non scsi devices.|
[2023-04-24 17:38:38] |TRACE LOG|Inside do_cmd:CMD=blk_device_prepare_format.sh -d ospi -n /dev/mtdblock5 -f ubifs -m /mnt/partition_ospi_1978|
[2023-04-24 17:38:38] |TRACE LOG|DEV_NODE: /dev/mtdblock5|
[2023-04-24 17:38:38] |TRACE LOG|MNT_POINT: /mnt/partition_ospi_1978|
[2023-04-24 17:38:38] |TRACE LOG|FS_TYPE: ubifs|
[2023-04-24 17:38:38] |TRACE LOG|MNT_MODE: async|
[2023-04-24 17:38:38] |TRACE LOG|Inside do_cmd:CMD=printout_mtdinfo /dev/mtdblock5|
[2023-04-24 17:38:38] |TRACE LOG|Inside do_cmd:CMD=mtdinfo /dev/mtd5|
[2023-04-24 17:38:38] mtd5
[2023-04-24 17:38:38] Name: ospi.rootfs
[2023-04-24 17:38:38] Type: nor
[2023-04-24 17:38:38] Eraseblock size: 262144 bytes, 256.0 KiB
[2023-04-24 17:38:38] Amount of eraseblocks: 223 (58458112 bytes, 55.7 MiB)
[2023-04-24 17:38:38] Minimum input/output unit size: 16 bytes
[2023-04-24 17:38:38] Sub-page size: 16 bytes
[2023-04-24 17:38:38] Character device major/minor: 90:10
[2023-04-24 17:38:38] Bad blocks are allowed: false
[2023-04-24 17:38:38] Device is writable: true
[2023-04-24 17:38:38]
[2023-04-24 17:38:38] |TRACE LOG|Inside do_cmd:CMD=modprobe mtdblock|
[2023-04-24 17:38:38] |TRACE LOG|Inside do_cmd:CMD=modprobe ubi|
[2023-04-24 17:38:38] |TRACE LOG|Inside do_cmd:CMD=modprobe ubifs|
[2023-04-24 17:38:38] |TRACE LOG|Erasing/Formatting this partition and then mount it|
[2023-04-24 17:38:38] |TRACE LOG|Inside do_cmd:CMD=blk_device_erase_format_part.sh -d ospi -n /dev/mtdblock5 -f ubifs -m /mnt/partition_ospi_1978|
[2023-04-24 17:38:38] |TRACE LOG|DEVICE TYPE: ospi|
[2023-04-24 17:38:38] |TRACE LOG|DEVICE NODE: /dev/mtdblock5|
[2023-04-24 17:38:38] |TRACE LOG|FS TYPE: ubifs|
[2023-04-24 17:38:38] |TRACE LOG|Umount /dev/mtdblock5 or /dev/mtdblock if it is mounted|
[2023-04-24 17:39:41] |TRACE LOG|device type is mtd|
[2023-04-24 17:39:41] |TRACE LOG|mtd eraseblocks: 223|
[2023-04-24 17:39:41] |TRACE LOG|mtd subpage size: 16|
[2023-04-24 17:39:41] |TRACE LOG|mtd pagesize: 16|
[2023-04-24 17:39:41] |TRACE LOG|Detach /dev/mtd5|
[2023-04-24 17:39:41] |TRACE LOG|umount /mnt/partition_ospi_1978|
[2023-04-24 17:39:41] umount: /mnt/partition_ospi_1978: no mount point specified.
[2023-04-24 17:39:41] |TRACE LOG|ubidetach -p /dev/mtd5|
[2023-04-24 17:39:41] ubidetach: error!: cannot detach "/dev/mtd5"
[2023-04-24 17:39:41] error 19 (No such device)
[2023-04-24 17:39:41] /dev/ubi_ctrl
[2023-04-24 17:39:41] |TRACE LOG|Inside do_cmd:CMD=ubiformat /dev/mtd5 -y -q|
[2023-04-24 17:43:19] |TRACE LOG|Inside do_cmd:CMD=ubiattach -p /dev/mtd5 |
[2023-04-24 17:43:19] [ 413.219819] ubi0: attaching mtd5
[2023-04-24 17:43:19] [ 413.235544] ubi0: scanning is finished
[2023-04-24 17:43:19] [ 413.240793] ubi0: attached mtd5 (name "ospi.rootfs", size 55 MiB)
[2023-04-24 17:43:19] [ 413.246967] ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 262016 bytes
[2023-04-24 17:43:19] [ 413.253875] ubi0: min./max. I/O unit sizes: 16/256, sub-page size 16
[2023-04-24 17:43:19] [ 413.260242] ubi0: VID header offset: 64 (aligned 64), data offset: 128
[2023-04-24 17:43:19] [ 413.266766] ubi0: good PEBs: 223, bad PEBs: 0, corrupted PEBs: 0
[2023-04-24 17:43:19] [ 413.272769] ubi0: user volume: 0, internal volumes: 1, max. volumes count: 128
[2023-04-24 17:43:19] [ 413.279984] ubi0: max/mean erase counter: 56/37, WL threshold: 4096, image sequence number: 1104848858
[2023-04-24 17:43:19] [ 413.289281] ubi0: available PEBs: 219, total reserved PEBs: 4, PEBs reserved for bad PEB handling: 0
[2023-04-24 17:43:19] [ 413.298465] ubi0: background thread "ubi_bgt0d" started, PID 2384
[2023-04-24 17:43:19] UBI device number 0, total 223 LEBs (58429568 bytes, 55.7 MiB), available 219 LEBs (57381504 bytes, 54.7 MiB), LEB size 262016 bytes (255.8 KiB)
[2023-04-24 17:43:19] |TRACE LOG|ubi device: ubi0 |
[2023-04-24 17:43:19] |TRACE LOG|Inside do_cmd:CMD=ls /dev/ub*|
[2023-04-24 17:43:19] /dev/ubi0 /dev/ubi_ctrl
[2023-04-24 17:43:19] |TRACE LOG|Inside do_cmd:CMD=ubimkvol /dev/ubi0 -N test -S 219|
[2023-04-24 17:43:20] Volume ID 0, size 219 LEBs (57381504 bytes, 54.7 MiB), LEB size 262016 bytes (255.8 KiB), dynamic, name "test", alignment 1
[2023-04-24 17:43:21] |TRACE LOG|Inside do_cmd:CMD=blk_device_do_mount.sh -n /dev/mtdblock5 -f ubifs -d ospi -m /mnt/partition_ospi_1978 -o async|
[2023-04-24 17:43:21] |TRACE LOG|Umount /mnt/partition_ospi_1978 if it is mounted|
[2023-04-24 17:43:23] |TRACE LOG|Inside do_cmd:CMD=mkdir -p /mnt/partition_ospi_1978|
[2023-04-24 17:43:23] |TRACE LOG|Mounting the partition|
[2023-04-24 17:43:23] |TRACE LOG|Inside do_cmd:CMD=mount -t ubifs -o async ubi0:test /mnt/partition_ospi_1978|
[2023-04-24 17:43:23] [ 417.578008] UBIFS (ubi0:0): default file-system created
[2023-04-24 17:43:23] [ 417.583380] UBIFS (ubi0:0): Mounting in unauthenticated mode
[2023-04-24 17:43:23] [ 417.589256] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 2426
[2023-04-24 17:43:23] [ 417.602943] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "test"
[2023-04-24 17:43:23] [ 417.610207] UBIFS (ubi0:0): LEB size: 262016 bytes (255 KiB), min./max. I/O unit sizes: 16 bytes/256 bytes
[2023-04-24 17:43:23] [ 417.619861] UBIFS (ubi0:0): FS size: 54761344 bytes (52 MiB, 209 LEBs), max 219 LEBs, journal size 2620160 bytes (2 MiB, 10 LEBs)
[2023-04-24 17:43:23] [ 417.631506] UBIFS (ubi0:0): reserved for root: 2586513 bytes (2525 KiB)
[2023-04-24 17:43:23] [ 417.638116] UBIFS (ubi0:0): media format: w5/r0 (latest is w5/r0), UUID 413C8381-D074-4D28-A3EB-3A4EDC7AD92A, small LPT model
[2023-04-24 17:43:23] |TRACE LOG|Inside do_cmd:CMD=mount | grep /mnt/partition_ospi_1978|
[2023-04-24 17:43:23] ubi0:test on /mnt/partition_ospi_1978 type ubifs (rw,relatime,assert=read-only,ubi=0,vol=0)
[2023-04-24 17:43:23] |TRACE LOG|Doing read/write test for 1 times|
[2023-04-24 17:43:23] |TRACE LOG|Inside do_cmd:CMD=time dd if=/dev/urandom of=/home/root/srctest_file_ospi_1978 bs=262144 count=10|
[2023-04-24 17:43:24] 10+0 records in
[2023-04-24 17:43:24] 10+0 records out
[2023-04-24 17:43:24] 2621440 bytes (2.6 MB, 2.5 MiB) copied, 0.0408046 s, 64.2 MB/s
[2023-04-24 17:43:24] real 0m 0.04s
[2023-04-24 17:43:24] user 0m 0.00s
[2023-04-24 17:43:24] sys 0m 0.04s
[2023-04-24 17:43:34] |TRACE LOG|Inside do_cmd:CMD=ls -lh /home/root/srctest_file_ospi_1978|
[2023-04-24 17:43:34] -rw-rw-rw- 1 root root 2.5M Jan 1 00:07 /home/root/srctest_file_ospi_1978
[2023-04-24 17:43:34] |TRACE LOG|Inside do_cmd:CMD=df -h|
[2023-04-24 17:43:34] Filesystem Size Used Avail Use% Mounted on
[2023-04-24 17:43:34] /dev/root 29G 1.9G 26G 7% /
[2023-04-24 17:43:34] devtmpfs 720M 4.0K 720M 1% /dev
[2023-04-24 17:43:34] tmpfs 977M 0 977M 0% /dev/shm
[2023-04-24 17:43:34] tmpfs 977M 17M 961M 2% /run
[2023-04-24 17:43:34] tmpfs 977M 0 977M 0% /sys/fs/cgroup
[2023-04-24 17:43:34] tmpfs 977M 12K 977M 1% /tmp
[2023-04-24 17:43:34] tmpfs 16M 0 16M 0% /media/ram
[2023-04-24 17:43:34] tmpfs 50M 12K 50M 1% /var/volatile
[2023-04-24 17:43:34] /dev/mmcblk0p1 16M 0 16M 0% /run/media/mmcblk0p1
[2023-04-24 17:43:34] /dev/mmcblk1p1 134M 3.5M 130M 3% /media/mmcblk1p1
[2023-04-24 17:43:34] tmpfs 196M 0 196M 0% /run/user/0
[2023-04-24 17:43:34] ubi0:test 48M 12K 46M 1% /mnt/partition_ospi_1978
[2023-04-24 17:43:34] ============R/W LOOP: 0============
[2023-04-24 17:43:34] |TRACE LOG|Inside do_cmd:CMD=date|
[2023-04-24 17:43:34] Thu Jan 1 00:07:13 UTC 1970
[2023-04-24 17:43:34] |TRACE LOG|Inside do_cmd:CMD=time dd if=/home/root/srctest_file_ospi_1978 of=/mnt/partition_ospi_1978/test_file_1978 bs=262144 count=10|
[2023-04-24 17:43:34] 10+0 records in
[2023-04-24 17:43:34] 10+0 records out
[2023-04-24 17:43:34] 2621440 bytes (2.6 MB, 2.5 MiB) copied, 0.0110513 s, 237 MB/s
[2023-04-24 17:43:34] real 0m 0.01s
[2023-04-24 17:43:34] user 0m 0.00s
[2023-04-24 17:43:34] sys 0m 0.01s
[2023-04-24 17:43:34] |TRACE LOG|Inside do_cmd:CMD=sync|
[2023-04-24 17:43:43] |TRACE LOG|Inside do_cmd:CMD=echo 3 > /proc/sys/vm/drop_caches|
[2023-04-24 17:43:43] [ 437.414848] blk_device_dd_r (1978): drop_caches: 3
[2023-04-24 17:43:43] |TRACE LOG|diff /home/root/srctest_file_ospi_1978 /mnt/partition_ospi_1978/test_file_1978 |
[2023-04-24 17:43:44] |TRACE LOG|Inside do_cmd:CMD=time dd if=/mnt/partition_ospi_1978/test_file_1978 of=/dev/null bs=262144 count=10|
[2023-04-24 17:43:44] 10+0 records in
[2023-04-24 17:43:44] 10+0 records out
[2023-04-24 17:43:44] 2621440 bytes (2.6 MB, 2.5 MiB) copied, 0.00456178 s, 575 MB/s
[2023-04-24 17:43:44] real 0m 0.01s
[2023-04-24 17:43:44] user 0m 0.00s
[2023-04-24 17:43:44] sys 0m 0.01s
[2023-04-24 17:43:44] |TRACE LOG|Inside do_cmd:CMD=sync|
[2023-04-24 17:43:44] |TRACE LOG|Inside do_cmd:CMD=echo 3 > /proc/sys/vm/drop_caches|
[2023-04-24 17:43:44] [ 438.285656] blk_device_dd_r (1978): drop_caches: 3
[2023-04-24 17:43:44] |TRACE LOG|Inside do_cmd:CMD=rm /mnt/partition_ospi_1978/test_file_1978|
[2023-04-24 17:43:45] |TRACE LOG|Inside do_cmd:CMD=date|
[2023-04-24 17:43:45] Thu Jan 1 00:07:24 UTC 1970
[2023-04-24 17:43:45] |TRACE LOG|Inside do_cmd:CMD=df -h|
[2023-04-24 17:43:45] Filesystem Size Used Avail Use% Mounted on
[2023-04-24 17:43:45] /dev/root 29G 1.9G 26G 7% /
[2023-04-24 17:43:45] devtmpfs 720M 4.0K 720M 1% /dev
[2023-04-24 17:43:45] tmpfs 977M 0 977M 0% /dev/shm
[2023-04-24 17:43:45] tmpfs 977M 17M 961M 2% /run
[2023-04-24 17:43:45] tmpfs 977M 0 977M 0% /sys/fs/cgroup
[2023-04-24 17:43:45] tmpfs 977M 12K 977M 1% /tmp
[2023-04-24 17:43:45] tmpfs 16M 0 16M 0% /media/ram
[2023-04-24 17:43:45] tmpfs 50M 12K 50M 1% /var/volatile
[2023-04-24 17:43:45] /dev/mmcblk0p1 16M 0 16M 0% /run/media/mmcblk0p1
[2023-04-24 17:43:45] /dev/mmcblk1p1 134M 3.5M 130M 3% /media/mmcblk1p1
[2023-04-24 17:43:45] tmpfs 196M 0 196M 0% /run/user/0
[2023-04-24 17:43:45] ubi0:test 48M 16K 46M 1% /mnt/partition_ospi_1978
[2023-04-24 17:43:45] clean up.......
[2023-04-24 17:43:45] Removing srcfile
[2023-04-24 17:43:45] |TRACE LOG|Inside do_cmd:CMD=rm /home/root/srctest_file_ospi_1978|
[2023-04-24 17:43:45] |TRACE LOG|Inside do_cmd:CMD=blk_device_unprepare.sh -n /dev/mtdblock5 -d ospi -f ubifs -m /mnt/partition_ospi_1978|
[2023-04-24 17:43:45] |TRACE LOG|Inside do_cmd:CMD=blk_device_umount.sh -m /mnt/partition_ospi_1978|
[2023-04-24 17:43:45] |TRACE LOG|Umounting device|
[2023-04-24 17:43:45] |TRACE LOG|MNT_POINT: /mnt/partition_ospi_1978|
[2023-04-24 17:43:45] |TRACE LOG|Inside do_cmd:CMD=umount /mnt/partition_ospi_1978|
[2023-04-24 17:43:49] [ 443.450530] UBIFS (ubi0:0): un-mount UBI device 0
[2023-04-24 17:43:49] [ 443.455312] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" stops
[2023-04-24 17:43:51] |TRACE LOG|Inside do_cmd:CMD=rm -rf /mnt/partition_ospi_1978|
[2023-04-24 17:43:51] |TRACE LOG|Inside do_cmd:CMD=ubirmvol /dev/ubi0 -N test|
[2023-04-24 17:43:53] |TRACE LOG|Inside do_cmd:CMD=ubidetach -d 0|
[2023-04-24 17:43:53] [ 446.897064] ubi0: detaching mtd5
[2023-04-24 17:43:54] [ 447.749698] ubi0: mtd5 is detached
[2023-04-24 17:43:54] done with clean up
[2023-04-24 17:43:54] <<<execution_status>>>
[2023-04-24 17:43:54] initiation_status="ok"
[2023-04-24 17:43:54] duration=319 termination_type=exited termination_id=0 corefile=no
[2023-04-24 17:43:54] cutime=154 cstime=8421
[2023-04-24 17:43:54] <<<test_end>>>
[2023-04-24 17:43:54] INFO: ltp-pan reported all tests PASS
[2023-04-24 17:43:54] LTP Version: 20210524-2561-g58c567cb0
[2023-04-24 17:43:54]
[2023-04-24 17:43:54] ###############################################################"
[2023-04-24 17:43:54]
[2023-04-24 17:43:54] Done executing testcases."
[2023-04-24 17:43:54] LTP Version: 20210524-2561-g58c567cb0
[2023-04-24 17:43:54] Result log is in the /tmp/tmp.wAbLiVqZWC "
[2023-04-24 17:43:54] ###############################################################"
[2023-04-24 17:43:54]
[2023-04-24 17:43:54] Test Start Time: Thu Jan 1 00:02:14 1970
[2023-04-24 17:43:54] -----------------------------------------
[2023-04-24 17:43:54] Testcase Result Exit Value
[2023-04-24 17:43:54] -------- ------ ----------
[2023-04-24 17:43:54] OSPI_S_FUNC_DD_RW_ERASESIZE_UBIFS PASS 0
[2023-04-24 17:43:54]
[2023-04-24 17:43:54] -----------------------------------------------
[2023-04-24 17:43:54] Total Tests: 1
[2023-04-24 17:43:54] Total Skipped Tests: 0
[2023-04-24 17:43:54] Total Failures: 0
[2023-04-24 17:43:54] Kernel Version: 6.1.12-00356-gf364a35f9ec2
[2023-04-24 17:43:54] Machine Architecture: aarch64
[2023-04-24 17:43:54] Hostname: am62xx-evm
[2023-04-24 17:43:54]
[2023-04-24 17:43:54] root@am62xx-evm:/opt/ltp# uname -a
[2023-04-24 17:44:18] Linux am62xx-evm 6.1.12-00356-gf364a35f9ec2 #65 SMP PREEMPT Mon Apr 24 17:31:24 IST 2023 aarch64 aarch64 aarch64 GNU/Linux
[2023-04-24 17:44:18] root@am62xx-evm:/opt/ltp#
[2023-04-24 17:44:18] root@am62xx-evm:/opt/ltp# lsmod
[2023-04-24 17:44:19] Module Size Used by
[2023-04-24 17:44:19] zstd 16384 1
[2023-04-24 17:44:19] zstd_compress 258048 1 zstd
[2023-04-24 17:44:19] lzo 16384 1
[2023-04-24 17:44:19] ubifs 282624 0
[2023-04-24 17:44:19] ubi 131072 1 ubifs
[2023-04-24 17:44:19] xt_conntrack 16384 1
[2023-04-24 17:44:19] xt_addrtype 16384 2
[2023-04-24 17:44:19] iptable_filter 16384 1
[2023-04-24 17:44:19] br_netfilter 28672 0
[2023-04-24 17:44:19] bridge 258048 1 br_netfilter
[2023-04-24 17:44:19] stp 16384 1 bridge
[2023-04-24 17:44:19] llc 16384 2 bridge,stp
[2023-04-24 17:44:19] overlay 118784 0
[2023-04-24 17:44:19] iptable_nat 16384 1
[2023-04-24 17:44:19] xt_MASQUERADE 16384 2
[2023-04-24 17:44:19] nf_nat 45056 2 iptable_nat,xt_MASQUERADE
[2023-04-24 17:44:19] nf_conntrack 122880 3 xt_conntrack,nf_nat,xt_MASQUERADE
[2023-04-24 17:44:19] nf_defrag_ipv6 20480 1 nf_conntrack
[2023-04-24 17:44:19] nf_defrag_ipv4 16384 1 nf_conntrack
[2023-04-24 17:44:19] libcrc32c 16384 2 nf_conntrack,nf_nat
[2023-04-24 17:44:19] ip_tables 32768 2 iptable_filter,iptable_nat
[2023-04-24 17:44:19] x_tables 40960 6 xt_conntrack,iptable_filter,xt_addrtype,ip_tables,iptable_nat,xt_MASQUERADE
[2023-04-24 17:44:20] wlcore_sdio 16384 0
[2023-04-24 17:44:20] wl18xx 118784 0
[2023-04-24 17:44:20] wlcore 221184 1 wl18xx
[2023-04-24 17:44:20] mac80211 544768 2 wl18xx,wlcore
[2023-04-24 17:44:20] libarc4 16384 1 mac80211
[2023-04-24 17:44:20] cfg80211 385024 3 wl18xx,wlcore,mac80211
[2023-04-24 17:44:20] rfkill 24576 2 cfg80211
[2023-04-24 17:44:20] cdns_csi2rx 20480 0
[2023-04-24 17:44:20] v4l2_fwnode 20480 1 cdns_csi2rx
[2023-04-24 17:44:20] crct10dif_ce 16384 1
[2023-04-24 17:44:20] snd_soc_simple_card 20480 0
[2023-04-24 17:44:20] snd_soc_simple_card_utils 24576 1 snd_soc_simple_card
[2023-04-24 17:44:20] tidss 53248 0
[2023-04-24 17:44:20] display_connector 16384 0
[2023-04-24 17:44:20] sii902x 20480 0
[2023-04-24 17:44:20] drm_dma_helper 20480 1 tidss
[2023-04-24 17:44:20] drm_kms_helper 184320 5 sii902x,drm_dma_helper,display_connector,tidss
[2023-04-24 17:44:20] cfbfillrect 16384 1 drm_kms_helper
[2023-04-24 17:44:20] syscopyarea 16384 1 drm_kms_helper
[2023-04-24 17:44:20] j721e_csi2rx 20480 0
[2023-04-24 17:44:20] cfbimgblt 16384 1 drm_kms_helper
[2023-04-24 17:44:20] videobuf2_dma_contig 20480 1 j721e_csi2rx
[2023-04-24 17:44:20] sysfillrect 16384 1 drm_kms_helper
[2023-04-24 17:44:20] videobuf2_memops 16384 1 videobuf2_dma_contig
[2023-04-24 17:44:20] sysimgblt 16384 1 drm_kms_helper
[2023-04-24 17:44:20] fb_sys_fops 16384 1 drm_kms_helper
[2023-04-24 17:44:20] videobuf2_v4l2 32768 1 j721e_csi2rx
[2023-04-24 17:44:20] cfbcopyarea 16384 1 drm_kms_helper
[2023-04-24 17:44:20] snd_soc_tlv320aic3x_i2c 16384 1
[2023-04-24 17:44:20] videobuf2_common 57344 4 j721e_csi2rx,videobuf2_dma_contig,videobuf2_v4l2,videobuf2_memops
[2023-04-24 17:44:20] rtc_ti_k3 16384 1
[2023-04-24 17:44:20] drm 557056 6 sii902x,drm_kms_helper,drm_dma_helper,display_connector,tidss
[2023-04-24 17:44:20] snd_soc_davinci_mcasp 32768 2
[2023-04-24 17:44:20] v4l2_async 24576 3 v4l2_fwnode,j721e_csi2rx,cdns_csi2rx
[2023-04-24 17:44:20] snd_soc_tlv320aic3x 77824 1 snd_soc_tlv320aic3x_i2c
[2023-04-24 17:44:20] snd_soc_ti_udma 16384 1 snd_soc_davinci_mcasp
[2023-04-24 17:44:20] snd_soc_ti_edma 16384 1 snd_soc_davinci_mcasp
[2023-04-24 17:44:20] videodev 233472 5 v4l2_async,j721e_csi2rx,videobuf2_v4l2,cdns_csi2rx,videobuf2_common
[2023-04-24 17:44:20] snd_soc_ti_sdma 16384 1 snd_soc_davinci_mcasp
[2023-04-24 17:44:20] omap_mailbox 20480 0
[2023-04-24 17:44:20] mc 53248 6 v4l2_async,videodev,j721e_csi2rx,videobuf2_v4l2,cdns_csi2rx,videobuf2_common
[2023-04-24 17:44:20] drm_panel_orientation_quirks 28672 1 drm
[2023-04-24 17:44:20] cdns_dphy_rx 16384 0
[2023-04-24 17:44:20] ipv6 450560 42 bridge,br_netfilter
[
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment