Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use P3767-0001 nvpmodel conf for Orin NX 8GB #168

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

johnrichardrinehart
Copy link

@johnrichardrinehart johnrichardrinehart commented Dec 6, 2023

nvpmodel.service is failing on 8GB variants of this board since it has 2 less cores than the 16GB variant (supported already) and since the nvpmodel configuration file was being recycled for all Orin NX variants. So, nvpmodel.service would try to change settings for 8 CPUs when only 6 exist.

cf. https://docs.nvidia.com/jetson/archives/r35.3.1/DeveloperGuide/index.html for the mapping between Orin NX variant and Nvidia "P-number".

Description of changes

Add a hardware.jetpack-nixos.sku module option that allows for specifying the SKU (in addition to the already-available SOM). If set to indicate that the board is the 8 GB variant of an Orin NX then we use a compatible nvpmodel configuration file.

Testing

We used systemctl edit --runtime to add a block like

[Service]
ExecStart=/nix/store/.../nvpmodel -f /nix/store/...-nvidia-l4t-nvpmodel-35.3.1-.../etc/nvpmodel/nvpmodel_p3767_0001.conf -m 0

and systemctl restart nvpmodel and saw the service was working. We also executed this same command from the command line. We haven't tested all power modes since we only want to fix the service, right now, and the service's default power mode (0) is exactly what we want. We lost access to the hardware before we could run tests on the other modes. If this change set is accepted then we can test other modes and submit an issue if we find they're not working.

@johnrichardrinehart johnrichardrinehart marked this pull request as draft December 6, 2023 22:12
@johnrichardrinehart johnrichardrinehart force-pushed the jrinehart/fix-nvpmodel-orin-nx-8G branch 2 times, most recently from 691126b to cc3e04d Compare December 6, 2023 23:17
@johnrichardrinehart johnrichardrinehart marked this pull request as ready for review December 6, 2023 23:20
note: nvpmodel.service is failing on 8GB variants of this board since it
has 2 less cores than the 16GB variant (supported already) and since the
nvpmodel configuration file was being recycled for all Orin NX variants.
So, `nvpmodel.service` would try to change settings for 8 CPUs when only
6 exist. cf.
  https://docs.nvidia.com/jetson/archives/r35.3.1/DeveloperGuide/index.html
for the mapping between Orin NX variant and Nvidia "P-number".
@johnrichardrinehart johnrichardrinehart force-pushed the jrinehart/fix-nvpmodel-orin-nx-8G branch from cc3e04d to 0a33c97 Compare December 7, 2023 00:48
sphw added a commit to elodin-sys/jetpack-nixos that referenced this pull request Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant