MX9 Operational Modes: Difference between revisions

From Variscite Wiki
(Created page with "<!-- Set release according to "release" parameter in URL and use RELEASE_SUMO_V1.0_DART-MX8M as default --> {{INIT_RELEASE_PARAM|mx93-yocto-mickledore-6.1.36_2.1.0-v1.0}}<!-- --> {{#lst:Yocto_Platform_Customization|{{#var:RELEASE_PARAM}}}} {{PageHeader|{{#var:HARDWARE_NAME}} Operational Modes}} .{{DocImage|category1=Yocto|category2=Android}}Category:DebianCategory:VAR-SOM-MX93 = Introduction = The {{#var:HARDWARE_NAME}} supports several operating modes: {| cla...")
 
Line 81: Line 81:
== Simple Memory Bandwidth Test ==
== Simple Memory Bandwidth Test ==


The iperf3 utility can be used to run a simple memory bandwidth test in each mode.
The iperf3 utility can be used to run a simple test that will report bitrates relative to the system speed.


Start an iperf3 server:
Start an iperf3 server:

Revision as of 22:20, 15 December 2023

Warning: This page is designed to be used with a 'release' URL parameter.

This page is using the default release mx93-yocto-mickledore-6.1.36_2.1.0-v1.0.
To view this page for a specific Variscite SoM and software release, please follow these steps:

  1. Visit variwiki.com
  2. Select your SoM
  3. Select the software release
Operational Modes

.

Introduction

The supports several operating modes:

Mode VDD_SOC A55 Max Frequency
DRAM Max Frequency
Low Drive (LDM) 0.8V 933 MHz 933 MHz (1866 MTS)
Nominal Drive (NDM) 0.85V 1.4 GHz 1400 MHz (2800 MTS)
Overdrive (ODM) 0.9V
1.7 GHz 1866 MHz (3733 MTS)

The Variscite release, based on NXP's Linux BSP GA release, configures the system to run in Overdrive mode (ODM) by default. This Overdrive mode and associated performance are not necessary for some user applications. Users can transition to Nominal or Low-drive mode as defined in the i.MX 93 data sheet instead.

For more information, please refer to the Datasheet and Reference Manual.

Changing Modes

Boot low drive device tree

The default device tree supports ODM. A special device tree ' must be booted to support NDM and LDM:

# fw_setenv fdt_file 

This device tree enables low drive mode and reduces the speed of the flexspi and usdhc peripherals so they can operate at the lower CPU and DRAM frequencies.

Change between modes

The driver/imx/soc/imx93_lpm.c driver uses imx-atf to manage the operating mode and can be controlled using a sysfs interface.

Read the current mode:

root@:~# cat /sys/devices/platform/imx93-lpm/mode
System is in OD mode with DDR 3733 MTS!

Change to NDM (1866 MTS):

root@:~# echo 1 > /sys/devices/platform/imx93-lpm/mode
System switching to ND mode...
root@:~# cat /sys/devices/platform/imx93-lpm/mode
System is in ND mode with DDR 1866 MTS!

Change to LDM (1866 MTS):

root@:~# echo 2 > /sys/devices/platform/imx93-lpm/mode
System switching to LD/SWFFC mode...
root@:~# cat /sys/devices/platform/imx93-lpm/mode
System is in LD mode with DDR 1866 MTS!

Change to LDM (625 MTS):

root@:~# echo 3 > /sys/devices/platform/imx93-lpm/mode
System switching to LD/SWFFC mode...
root@:~# cat /sys/devices/platform/imx93-lpm/mode
System is in LD mode with DDR 625 MTS!

Change to ODM (3733 MTS):

root@:~# echo 0 > /sys/devices/platform/imx93-lpm/mode
System switching to OD mode...
root@:~# cat /sys/devices/platform/imx93-lpm/mode
System is in LD mode with DDR 3733 MTS!

Simple Memory Bandwidth Test

The iperf3 utility can be used to run a simple test that will report bitrates relative to the system speed.

Start an iperf3 server:

root@:~# iperf3 -s > /dev/null &

Switch to the preferred mode, and run an iperf3 client:

root@:~# iperf3 -c localhost
Connecting to host localhost, port 5201
[  5] local ::1 port 57608 connected to ::1 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec   526 MBytes  4.41 Gbits/sec    0   1.44 MBytes       
[  5]   1.00-2.00   sec   528 MBytes  4.42 Gbits/sec    0   1.44 MBytes       
[  5]   2.00-3.00   sec   526 MBytes  4.42 Gbits/sec    0   1.44 MBytes       
[  5]   3.00-4.00   sec   529 MBytes  4.44 Gbits/sec    0   1.87 MBytes       
[  5]   4.00-5.00   sec   530 MBytes  4.44 Gbits/sec    0   1.87 MBytes       
[  5]   5.00-6.00   sec   530 MBytes  4.45 Gbits/sec    0   1.87 MBytes       
[  5]   6.00-7.00   sec   532 MBytes  4.47 Gbits/sec    0   1.87 MBytes       
[  5]   7.00-8.00   sec   528 MBytes  4.43 Gbits/sec    0   1.87 MBytes       
[  5]   8.00-9.00   sec   531 MBytes  4.45 Gbits/sec    0   1.87 MBytes       
[  5]   9.00-10.00  sec   529 MBytes  4.44 Gbits/sec    0   1.87 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec  5.16 GBytes  4.44 Gbits/sec    0             sender
[  5]   0.00-10.00  sec  5.16 GBytes  4.44 Gbits/sec                  receiver

Below are the results performed using Yocto Mickledore with the 6.1.36 kernel:

Mode VDD_SOC MTS iperf3 Speed (Mbps)
Low Drive 0.8V 625 974
Low Drive 0.8V 1866 2100
Nominal Drive 0.85V 1866 2100
Overdrive 0.9V 3733
4400