Skip to content

Commit 0645e67

Browse files
committed
nixos/nvidia: update busIDType to correctly handle PCI bus domain
There are real devices with 32-bit domain ID 0x10000, which needs 10 digits to represent at the worst case (0xffffffff): open-mpi/hwloc#354 Current test will deny those devices since the field was expecting a Bus ID, which is only 8-bit wide. Format: https://gitlab.freedesktop.org/xorg/xserver/-/blob/master/hw/xfree86/common/xf86pciBus.c#L263 Fixes: ce2e470
1 parent b0ceaa6 commit 0645e67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nixos/modules/hardware/video/nvidia.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ let
1717
offloadCfg = pCfg.offload;
1818
reverseSyncCfg = pCfg.reverseSync;
1919
primeEnabled = syncCfg.enable || reverseSyncCfg.enable || offloadCfg.enable;
20-
busIDType = lib.types.strMatching "([[:print:]]+[:@][0-9]{1,3}:[0-9]{1,2}:[0-9])?";
20+
busIDType = lib.types.strMatching "([[:print:]]+:[0-9]{1,3}(@[0-9]{1,10})?:[0-9]{1,2}:[0-9])?";
2121
ibtSupport = useOpenModules || (nvidia_x11.ibtSupport or false);
2222
settingsFormat = pkgs.formats.keyValue { };
2323
in

0 commit comments

Comments
 (0)