NVIDIA driver ignoring custom EDID using drm.edid_firmware

Hi all,

I’m using the proprietary NVIDIA drivers with Wayland and DRM.

For this I’m using these boot parameters:

nvidia_drm.modeset=1 video=DP-1:e video=DP-2:e drm.edid_firmware=DP-1:edid/lenovoedidhack.bin,DP-2:edid/lenovoedidhack.bin

The EDID file is present in the initramfs.
Unfortunately it does not seem to use it:

[    4.369928] [drm] [nvidia-drm] [GPU ID 0x00004300] Loading driver
[    5.094989] [drm] forcing DP-1 connector on
[    5.095028] [drm] forcing DP-2 connector on
[    5.244333] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:43:00.0 on minor 0

Loading the EDID via debugfs works fine:

cat /usr/lib/firmware/edid/lenovoedidhack.bin > /sys/kernel/debug/dri/0/DP-1/edid_override
cat /usr/lib/firmware/edid/lenovoedidhack.bin > /sys/kernel/debug/dri/0/DP-2/edid_override