Method 1: Read/Write Access for Tuning Registers#
NVIDIA DriveOS aims to provide a consistent way to enable run-time tuning of the registers, but because it is not possible to enable this for all registers, some alternative ways are provided to support tuning.
This section describes all the different mechanisms supported to access the tuning registers.
Run-time Register Access#
To enable run-time access for registers, enable the ENABLE_SOC_IO_TUNING option during bind partitions while creating the flashing images. For more information, see Enabling SoC IO Tuning.
After being flashed with the ENABLE_SOC_IO_TUNING option enabled, access the registers by using the devmem2 command.
You can also disable this functionality for PCT profiles that have this enabled by default. For more information, see Disabling SoC IO Tuning.
Important
To prevent associated security risks, you must not enable ENABLE_SOC_IO_TUNING in production profiles.
Enabling SoC IO Tuning#
The ENABLE_SOC_IO_TUNING flag is enabled by default for the dev_nsr PCT variant. It is disabled by default for other PCT variants (prod_nsr, test_nsr, prod_sr, test_sr and debug_sr).
Important
The ENABLE_SOC_IO_TUNING=y option can only be used for the dev_nsr PCT variant. It cannot be enabled for production variants due to security restrictions.
Find the ENABLE_SOC_IO_TUNING flag in the following files:
Production PCT variants:
${NV_WORKSPACE}/drive-foundation/hardware/nvidia/platform/t264/automotive/pct/drive_av/linux/common_profile.mkStandard PCT variants:
${NV_WORKSPACE}/drive-foundation/hardware/nvidia/platform/t264/automotive/pct/drive_av/linux/profile_dev_nsr.mk
For dev_nsr builds, the feature is enabled by default. To explicitly enable it:
./make/bind_partitions [-b <board_name>] <pct> -p dev_nsr ENABLE_SOC_IO_TUNING=y
Disabling SoC IO Tuning#
For dev_nsr builds where the feature is enabled by default, you can disable it by passing the ENABLE_SOC_IO_TUNING=n option in the bind_partitions command:
./make/bind_partitions [-b <board_name>] <pct> -p dev_nsr ENABLE_SOC_IO_TUNING=n