Created
July 24, 2023 16:51
-
-
Save uditkumarti/ab188e4b433058ae86734cd46eff7d94 to your computer and use it in GitHub Desktop.
J784s4_ufs_test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@j784s4-evm:/opt/ltp# ./runltp -f ddt/ufs_check_speed -s "UFS_S_FUNC_CHECK_TXDATA_LANES"root@j784s4-evm:/opt/ltp# find |grep ddt./runltp -f ddt/ufs_check_speed -s "UFS_S_FUNC_CHECK_TXDATA_LANES" | |
Checking for required user/group ids | |
'root' user id and group found. | |
'nobody' user id and group found. | |
'bin' user id and group found. | |
'daemon' user id and group found. | |
Users group found. | |
Sys group found. | |
Required users/groups exist. | |
If some fields are empty or look unusual you may have an old version. | |
Compare to the current minimal requirements in Documentation/Changes. | |
/etc/os-release | |
ID=arago | |
NAME="Arago" | |
VERSION="2023.04" | |
VERSION_ID=2023.04 | |
PRETTY_NAME="Arago 2023.04" | |
uname: | |
Linux j784s4-evm 6.1.33-dirty #1 SMP PREEMPT Mon Jul 24 18:01:31 IST 2023 aarch64 aarch64 aarch64 GNU/Linux | |
/proc/cmdline | |
console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02880000 root=PARTUUID=a6426803-02 rw rootfstype=ext4 rootwait | |
Gnu C gcc (GCC) 11.3.0 | |
Clang | |
Gnu make 4.3 | |
util-linux 2.37.4 | |
mount linux 2.37.4 (libmount 2.37.4: btrfs, namespaces, assert, debug) | |
modutils 29 | |
e2fsprogs 1.46.5 | |
Linux C Library x 1 root root 1630088 Mar 9 2018 /lib/libc.so.6 | |
Dynamic linker (ldd) 2.35 | |
Linux C++ Library 6.0.29 | |
Procps 3.3.17-dirty | |
Net-tools 2.10 | |
iproute2 iproute2-5.17.0 | |
iputils 'V' | |
ethtool 5.16 | |
Sh-utils 9.0 | |
Modules Loaded | |
free reports: | |
total used free shared buff/cache available | |
Mem: 32597292 188960 32246236 10412 162096 32091476 | |
Swap: 0 0 0 | |
cpuinfo: | |
Architecture: aarch64 | |
CPU op-mode(s): 32-bit, 64-bit | |
Byte Order: Little Endian | |
CPU(s): 8 | |
On-line CPU(s) list: 0-7 | |
Vendor ID: ARM | |
Model name: Cortex-A72 | |
Model: 0 | |
Thread(s) per core: 1 | |
Core(s) per cluster: 8 | |
Socket(s): - | |
Cluster(s): 1 | |
Stepping: r1p0 | |
BogoMIPS: 400.00 | |
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid | |
Caches (sum of all): | |
L1d: 256 KiB (8 instances) | |
L1i: 384 KiB (8 instances) | |
L2: 4 MiB (2 instances) | |
NUMA: | |
NUMA node(s): 1 | |
NUMA node0 CPU(s): 0-7 | |
Vulnerabilities: | |
Itlb multihit: Not affected | |
L1tf: Not affected | |
Mds: Not affected | |
Meltdown: Not affected | |
Mmio stale data: Not affected | |
Retbleed: Not affected | |
Spec store bypass: Not affected | |
Spectre v1: Mitigation; __user pointer sanitization | |
Spectre v2: Mitigation; CSV2, BHB | |
Srbds: Not affected | |
Tsx async abort: Not affected | |
available filesystems: | |
9p autofs bdev bpf cgroup cgroup2 configfs cpuset debugfs devpts devtmpfs ext2 ext3 ext4 hugetlbfs mqueue nfs nfs4 pipefs proc pstore ramfs rpc_pipefs securityfs sockfs squashfs sysfs tmpfs vfat | |
mounted filesystems (/proc/mounts): | |
/dev/root / ext4 rw,relatime 0 0 | |
devtmpfs /dev devtmpfs rw,relatime,size=15377332k,nr_inodes=3844333,mode=755 0 0 | |
proc /proc proc rw,relatime 0 0 | |
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0 | |
securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0 | |
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0 | |
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0 | |
tmpfs /run tmpfs rw,nosuid,nodev,size=6519460k,nr_inodes=819200,mode=755 0 0 | |
tmpfs /sys/fs/cgroup tmpfs ro,nosuid,nodev,noexec,size=4096k,nr_inodes=1024,mode=755 0 0 | |
cgroup2 /sys/fs/cgroup/unified cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate 0 0 | |
cgroup /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,xattr,name=systemd 0 0 | |
pstore /sys/fs/pstore pstore rw,nosuid,nodev,noexec,relatime 0 0 | |
bpf /sys/fs/bpf bpf rw,nosuid,nodev,noexec,relatime,mode=700 0 0 | |
cgroup /sys/fs/cgroup/memory cgroup rw,nosuid,nodev,noexec,relatime,memory 0 0 | |
cgroup /sys/fs/cgroup/devices cgroup rw,nosuid,nodev,noexec,relatime,devices 0 0 | |
cgroup /sys/fs/cgroup/pids cgroup rw,nosuid,nodev,noexec,relatime,pids 0 0 | |
cgroup /sys/fs/cgroup/net_cls,net_prio cgroup rw,nosuid,nodev,noexec,relatime,net_cls,net_prio 0 0 | |
cgroup /sys/fs/cgroup/perf_event cgroup rw,nosuid,nodev,noexec,relatime,perf_event 0 0 | |
cgroup /sys/fs/cgroup/freezer cgroup rw,nosuid,nodev,noexec,relatime,freezer 0 0 | |
cgroup /sys/fs/cgroup/hugetlb cgroup rw,nosuid,nodev,noexec,relatime,hugetlb 0 0 | |
cgroup /sys/fs/cgroup/cpu,cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpu,cpuacct 0 0 | |
cgroup /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,relatime,blkio 0 0 | |
cgroup /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset 0 0 | |
hugetlbfs /dev/hugepages hugetlbfs rw,relatime,pagesize=2M 0 0 | |
mqueue /dev/mqueue mqueue rw,nosuid,nodev,noexec,relatime 0 0 | |
debugfs /sys/kernel/debug debugfs rw,nosuid,nodev,noexec,relatime 0 0 | |
tmpfs /tmp tmpfs rw,nosuid,nodev,size=16298648k,nr_inodes=1048576 0 0 | |
configfs /sys/kernel/config configfs rw,nosuid,nodev,noexec,relatime 0 0 | |
tmpfs /media/ram tmpfs rw,relatime,size=16384k 0 0 | |
tmpfs /var/volatile tmpfs rw,relatime,size=51200k 0 0 | |
/dev/mmcblk1p1 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 0 | |
tmpfs /run/user/0 tmpfs rw,nosuid,nodev,relatime,size=3259728k,nr_inodes=814932,mode=700 0 0 | |
mounted filesystems (df): | |
Filesystem Type Size Used Avail Use% Mounted on | |
/[15261.470456] LTP: starting UFS_S_FUNC_CHECK_TXDATA_LANES (source "common.sh"; do_cmd check_ufs_attributes.sh -t 'lanes' -e '2' -a '0x1560') | |
dev/root ext4 7.2G 4.4G 2.5G 65% / | |
devtmpfs devtmpfs 15G 4.0K 15G 1% /dev | |
tmpfs tmpfs 16G 0 16G 0% /dev/shm | |
tmpfs tmpfs 6.3G 11M 6.3G 1% /run | |
tmpfs tmpfs 4.0M 0 4.0M 0% /sys/fs/cgroup | |
tmpfs tmpfs 16G 36K 16G 1% /tmp | |
tmpfs tmpfs 16M 0 16M 0% /media/ram | |
tmpfs tmpfs 50M 12K 50M 1% /var/volatile | |
/dev/mmcblk1p1 vfat 128M 24M 104M 19% /boot | |
tmpfs tmpfs 3.2G 0 3.2G 0% /run/user/0 | |
AppArmor disabled | |
SELinux mode: unknown | |
no big block device was specified on commandline. | |
Tests which require a big block device are disabled. | |
You can specify it with option -z | |
COMMAND: /opt/ltp/bin/ltp-pan -e -S -a 4470 -n 4470 -p -f /tmp/ltp-XrA4mdMxF2/alltests -l /tmp/tmp.OwCL6LMfu5 -C /opt/ltp/output/LTP_RUN_ON-tmp.OwCL6LMfu5.failed -T /opt/ltp/output/LTP_RUN_ON-tmp.OwCL6LMfu5.tconf | |
INFO: Restricted to UFS_S_FUNC_CHECK_TXDATA_LANES | |
LOG File: /tmp/tmp.OwCL6LMfu5 | |
FAILED COMMAND File: /opt/ltp/output/LTP_RUN_ON-tmp.OwCL6LMfu5.failed | |
TCONF COMMAND File: /opt/ltp/output/LTP_RUN_ON-tmp.OwCL6LMfu5.tconf | |
Running tests....... | |
<<<test_start>>> | |
tag=UFS_S_FUNC_CHECK_TXDATA_LANES stime=1690217393 | |
cmdline="source "common.sh"; do_cmd check_ufs_attributes.sh -t 'lanes' -e '2' -a '0x1560'" | |
contacts="" | |
analysis=exit | |
<<<test_output>>> | |
incrementing stop | |
|TRACE LOG|Inside do_cmd:CMD=check_ufs_attributes.sh -t lanes -e 2 -a 0x1560| | |
|TRACE LOG|Inside do_cmd:CMD=which ufs-utils| | |
/usr/bin/ufs-utils | |
|TRACE LOG|Inside do_cmd:CMD=ufs-utils uic -h| | |
Unipro command usage: | |
ufs-utils uic [-t idn] [-a|-r] [-i ID] [-w data <peer|local>] [-p bsg] | |
-t idn | |
Supported Unipro layers attributes idn as below: | |
0: MIPI M-PHY Attributes | |
1: PHY-Adapter Attributes | |
2: DME Attributes for QoS | |
-a Read all gettable attributes of peer & local, please | |
use -t to specify Unipro attributes idn | |
-r Read single attribute of peer & local, please use -i | |
to specify attribute ID, and -t for associated idn | |
-w data <peer|local> | |
Write settable attribute, followed by data writing, | |
Please use -i to specify which ID to write, --peer | |
and --local to specify accessed target | |
--peer : access to a peer device (UFS device) | |
--local : access to a local device (UFS host) | |
-i ID | |
Set attribute ID to read/write | |
-p bsg | |
Path to ufs-bsg device | |
Note : | |
As for the format of the data inputted, hex number should be | |
prefixed by 0x/0X | |
Eg : | |
1. Set local PA_TxTrailingClocks: | |
ufs-utils uic -t 1 -w 0x44 -i 0x1564 --local -p /dev/ufs-bsg | |
2. Read peer and local PA_TxTrailingClocks: | |
ufs-utils uic -t 1 -r -i 0x1564 -p /dev/ufs-bsg | |
|TRACE LOG|Inside do_cmd:CMD=ufs-utils uic -t 1 -i 0x1560 -p /dev/bsg/ufs-bsg0| | |
[0x1560]PA_ActiveTxDataLanes : local = 0x00000002, peer = 0x00000002 | |
UFS is working at the expected lanes | |
<<<execution_status>>> | |
initiation_status="ok" | |
duration=1 termination_type=exited termination_id=0 corefile=no | |
cutime=35 cstime=32 | |
<<<test_end>>> | |
INFO: ltp-pan reported all tests PASS | |
LTP Version: 20230127-2655-ge71a22ce4 | |
###############################################################" | |
Done executing testcases." | |
LTP Version: 20230127-2655-ge71a22ce4 | |
Result log is in the /tmp/tmp.OwCL6LMfu5 " | |
###############################################################" | |
Test Start Time: Mon Jul 24 16:49:53 2023 | |
----------------------------------------- | |
Testcase Result Exit Value | |
-------- ------ ---------- | |
UFS_S_FUNC_CHECK_TXDATA_LANES PASS 0 | |
----------------------------------------------- | |
Total Tests: 1 | |
Total Skipped Tests: 0 | |
Total Failures: 0 | |
Kernel Version: 6.1.33-dirty | |
Machine Architecture: aarch64 | |
Hostname: j784s4-evm | |
root@j784s4-evm:/opt/ltp# powero |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment