Files
tinygrad/tinygrad/runtime
fe2d8d1ecf filter by base_class in pci_scan_bus on macOS (#16282)
The Linux path of pci_scan_bus reads /sys/bus/pci/devices/.../class and
skips devices whose base class doesn't match. The macOS (IOKit) path
appended every IOPCIDevice unconditionally, so callers that supplied
base_class to narrow down to e.g. display devices would also get the
audio companion function of a multifunction GPU.

Concretely, an NVIDIA RTX Pro 6000 Blackwell exposes:
  10de:2bb1  class 0x030000 (display)
  10de:22e8  class 0x040300 (multimedia audio)

A PROBE for base_class=3 returned both. With the sorted() at the end of
pci_scan_bus, 22e8 (audio) came first, so the NV runtime picked the
audio function as device 0 and stalled on RESIZE_BAR.

This mirrors the Linux filter on line 70 using the existing read_prop
helper.

Co-authored-by: Christopher Bradford <[email protected]>
2026-05-20 20:09:35 +03:00
..
2026-05-15 21:22:48 -04:00
2024-06-18 19:48:18 -04:00
2026-05-11 17:17:30 +03:00
2026-05-19 12:42:54 -07:00
2026-04-21 16:46:38 -04:00
2026-04-21 16:46:38 -04:00
2026-04-21 16:46:38 -04:00
2026-05-15 13:41:42 +03:00
2026-05-11 16:36:14 +03:00