How to disable the UEFI runtime services?

Hi, I want to disable the UEFI runtime services when using the PREEMT_RT kernel on Jetson Orin.
Regarding the document of PREEMT_RT kernel for Jetson Linux r36.4.3, the UEFI runtime service needs to be disabled to achieve better latency performance.
I wonder if there is any good documentation or instructions for disabling this?

Best regards,
Kazuki.

Hi,
Please apply the patch to

kernel/kernel-jammy-src/drivers/firmware/efi/efi.c

And rebuild kernel image.

And you may also apply the patches to rebuild UEFI binary:
Jetson AGX Orin FAQ
Jetson AGX Orin FAQ

UEFI is public:

GitHub - NVIDIA/edk2-nvidia: NVIDIA EDK2 platform support

1 Like

Hi DaneLLL,
Thank you very much for your quick response! I understood that we needed to apply a patch to the kernel code.

And you may also apply the patches to rebuild UEFI binary:

Do we apply another patch to the UEFI code?

Thanks,
Kazuki.

Hi,
It is a single kernel patch and takes effect by only rebuilding kernel. No need to o rebuild UEFI.

1 Like

Got it. Thank you!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.