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

nvpower and nvpmodel startup fixes #1294

Merged
merged 2 commits into from
Jul 15, 2023
Merged

Conversation

madisongh
Copy link
Member

Fixes for the nvpower and nvpmodel systemd service units so they execute only once and in the correct sequence at boot time. Particularly on Orin Nano and NX modules, the GPU driver is very sensitive to when the power settings need to be applied via sysfs. Errors occur if the settings are applied too early, or if nvpower hasn't performed some of the scheduling-related setup that has to be in place, or if settings are applied multiple times.

The service unit file was not setting RemainAfterExit, leading
to multiple executions of the setup script during boot, with
subsequent executions generating errors.

Signed-off-by: Matt Madison <matt@madison.systems>
* Fix the service type to be oneshot, with RemainAfterExit
  set to true.  Trying to execute nvpmodel multiple times
  leads to spurious failures.

* Add a dependency on nvpower.service, following how Jetson
  Linux does. Evidently the nvpower script now performs some
  setup the nvpmodel needs, which wasn't true in older L4T
  versions.

Signed-off-by: Matt Madison <matt@madison.systems>
@madisongh madisongh merged commit 1e589d0 into master Jul 15, 2023
@madisongh madisongh deleted the wip-orin-nvpmodel-fixes branch July 15, 2023 14:08
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