Include nvme_core.default_ps_max_latency_us=0 to barebox bootloader

I have a very needy NVME ssd from western digital and couldnt make it work anywhere but in windows, i managed to find the issue and now can boot ubuntu and use this ssd, but the only way to do it is including this in boot options: nvme_core.default_ps_max_latency_us=0

Since i cannot do the same for HAOS, would you please consider adding it to barebox bootloader for every future release ?

AI below:

Problem Statement

Many NVMe SSDs, especially OEM drives like the WDC SN520, have power state management (APST/PSM) issues in Linux. This causes HAOS to not detect the SSD at boot, preventing users from installing or running Home Assistant on certain hardware.

A well-known workaround in Linux is adding the kernel parameter:

nvme_core.default_ps_max_latency_us=0

This disables deep power-saving states and allows affected SSDs to function properly.

Proposed Solution

We request adding nvme_core.default_ps_max_latency_us=0 as:

  1. A default setting in HAOS (if there’s no negative impact).
  2. A configurable boot option in HAOS for users experiencing NVMe SSD issues.

Why This Is Important

  • Some OEM NVMe SSDs (like WDC SN520) do not function correctly in HAOS without this setting.
  • Users who install HAOS on mini PCs, NUCs, and custom hardware may face SSD detection failures.
  • Other Linux distributions allow modifying kernel parameters, but HAOS is a locked appliance OS, making this impossible for users to fix themselves.

Alternative Workarounds (Not Ideal)

  • Modifying the HAOS image manually before flashing (but updates reset this).
  • Changing BIOS power settings (not all systems support this).

Request Summary

  • :white_check_mark: Add nvme_core.default_ps_max_latency_us=0 as a boot parameter (if feasible).
  • :white_check_mark: Allow users to enable/disable NVMe power settings in HAOS config.

Thank you for considering this request! :rocket: