[SRU] [Jetson Orin Nano] [Jetson Agx Orin] [Jetson Orin Nx] [Jetson Agx Thor] Issues when selecting the persistent storage on Jetson devices.
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| nvidia-tegra-defaults (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
Bug Description
[ Impact ]
* This is a change for hardware enablement.
* On the NVIDIA Jetson Orin platforms (Nano, NX, and AGX) installed with candidate Ubuntu for Jetson images (Jammy: https:/
```
ubuntu@ubuntu:~$ sudo dmesg --decode | grep -i "unexpected backend.*efi"
kern :warn : [ 11.399594] pstore: ignoring unexpected backend 'efi'
```
This is printed by the persistent store kernel module indicating that the system is encountering an EFI-backed pstore, but it is choosing to ignore it, meaning that in our Ubuntu Kernel the `efi_pstore` module is loaded but is not being used.
Therefore, explicitly including the following Kernel arguments: `efi_pstore.
* On the NVIDIA Jetson AGX Thor platforms installed with candidate Ubuntu for Jetson images (Noble: https:/
```
ubuntu@ubuntu:~$ sudo dmesg --decode | grep -i "efi_pstore.
kern :warn : [ 3.399717] pstore: backend 'efi_pstore' already in use: ignoring 'ramoops'
```
Contrary to Jammy, on the Noble Thor platforms, `ramoops` is ignored, meanwhile the `efi_pstore` is used instead.
* Setting `efi_pstore.
[ Test Plan ]
1. Install the candidate Ubuntu for Jetson image on a Jetson Orin device (Jammy: https:/
2. Run the following commands to monitor the `dmesg` on the Jetson Orin device running a Jammy image, the corresponding Kernel warnings will be shown.
```
ubuntu@ubuntu:~$ sudo dmesg --decode | grep -i "unexpected backend.*efi"
kern :warn : [ 11.399594] pstore: ignoring unexpected backend 'efi'
```
3. Run the following commands to monitor the `dmesg` on the Jetson AGX Thor device running a Noble image, the corresponding Kernel warnings will be shown.
```
ubuntu@ubuntu:~$ sudo dmesg --decode | grep -i "efi_pstore.
kern :warn : [ 3.399717] pstore: backend 'efi_pstore' already in use: ignoring 'ramoops'
```
4. Proceed installing the updated "nvidia-
5. Monitor the `dmesg` on the Jetson AGX Orin, Jetson Orin Nano/NX (Jammy), the persistent storage will be standardized, no warnings will be shown, and `ramoops` will be registered as the persistent store back end.
```
ubuntu@ubuntu:~$ sudo dmesg --decode | grep -i efi
kern :info : [ 0.000000] efi: EFI v2.70 by EDK II
kern :info : [ 0.000000] efi: RTPROP=0x82858e698 TPMFinalLog=
kern :notice: [ 0.000000] Kernel command line: BOOT_IMAGE=
splash efi_pstore.
kern :info : [ 0.010758] Remapping and enabling EFI services.
kern :info : [ 0.170597] Registered efivars operations
kern :info : [ 2.924927] integrity: Loading X.509 certificate: UEFI:MokListRT (MOKvar table)
daemon:info : [ 5.248890] systemd[1]: Starting Load Kernel Module efi_pstore...
daemon:info : [ 5.260792] systemd[1]: modprobe@
daemon:info : [ 5.261188] systemd[1]: Finished Load Kernel Module efi_pstore.
ubuntu@ubuntu:~$ sudo dmesg --decode | grep -i ramoops
kern :notice: [ 0.000000] Kernel command line: BOOT_IMAGE=
splash efi_pstore.
kern :info : [ 0.136387] printk: console [ramoops-1] enabled
kern :info : [ 0.136391] pstore: Registered ramoops as persistent store backend
kern :info : [ 0.136396] ramoops: using 0x200000@
kern :info : [ 2.856872] printk: console [ramoops-1]: printing thread started
```
6. Monitor the `dmesg` on the Jetson AGX Thor (Noble), the persistent storage will be standardized, no warnings will be shown, and `ramoops` will be registered as the persistent store back end.
```
ubuntu@ubuntu:~$ sudo dmesg --decode | grep -i efi
kern :info : [ 0.000000] efi: EFI v2.7 by EDK II
kern :info : [ 0.000000] efi: RTPROP=0x1fbb57e218 TPMFinalLog=
kern :notice: [ 0.000000] Kernel command line: BOOT_IMAGE=
kern :info : [ 0.002464] Remapping and enabling EFI services.
kern :info : [ 0.043911] efivars: Registered efivars operations
daemon:info : [ 3.725682] systemd[1]: Starting modprobe@
daemon:info : [ 3.739012] systemd[1]: modprobe@
daemon:info : [ 3.739212] systemd[1]: Finished modprobe@
kern :info : [ 8.767494] nvidia-modeset: GPU:0: Found active displayID: 0x100 initialized by UEFI on head 0
ubuntu@ubuntu:~$ sudo dmesg --decode | grep -i ramoops
kern :info : [ 0.000000] OF: reserved mem: 0x0000001fbf880
kern :notice: [ 0.000000] Kernel command line: BOOT_IMAGE=
kern :info : [ 4.469340] printk: legacy console [ramoops-1] enabled
kern :info : [ 4.469781] pstore: Registered ramoops as persistent store backend
kern :info : [ 4.469784] ramoops: using 0x200000@
```
7. Confirm that the persisten storage backend is enabled and set by runnig the following command.
```
ubuntu@ubuntu:~$ mount | grep pstore
pstore on /sys/fs/pstore type pstore (rw,nosuid,
```
[ Where problems could occur ]
* Errors might occur if a user install the updated tegra-defaults package in a platform which does not have Kernel support for `PSTORE_RAM`.
```
ubuntu@ubuntu:~$ grep -i CONFIG_
CONFIG_
```
* No additional problems should happen since this fix only sets the same persistent storage for the Jetson AGX Thor and the Jetson AGX Orin, Jetson Orin Nano/NX devices.
[ Other Info ]
* The inclusion of these parameters in the Kernel command line was discussed in the following private bug: https:/

Here is the /proc/cpuinfo of the Device Under Test.