public inbox for linux-pci@vger.kernel.org
 help / color / mirror / Atom feed
* [BUG] Apple Mac mini 2018 + Thunderbolt 3 eGPU: PCI bridge window / BAR allocation failure prevents NVIDIA and AMD GPUs from initializing
@ 2026-03-24  7:34 Michal Babička
  2026-03-27 17:54 ` [WARNING: UNSCANNABLE EXTRACTION FAILED][BUG] " Ilpo Järvinen
  0 siblings, 1 reply; 2+ messages in thread
From: Michal Babička @ 2026-03-24  7:34 UTC (permalink / raw)
  To: linux-pci

[-- Attachment #1: Type: text/plain, Size: 1890 bytes --]

Hello,

I am reporting a reproducible PCI resource allocation problem on an
Apple Mac mini 2018 with a Thunderbolt 3 eGPU enclosure.

Hardware:

Apple Mac mini 2018
Razer Core X Chroma
NVIDIA GPU tested
AMD Radeon Vega 64 tested
Zorin OS 18 Pro
kernels tested: 6.12.x and 6.17.x

Problem summary:
The eGPU enclosure and GPU are detected and enumerated on the PCI bus,
but GPU initialization fails because PCI bridge windows / BAR
resources are not assigned correctly.

This reproduces with multiple GPU vendors in the same enclosure on the
same host, which suggests a PCI / Thunderbolt bridge resource
allocation problem on this platform rather than a vendor-specific
driver issue.

Expected behavior:
The kernel should assign valid PCI bridge windows and BAR resources so
the GPU can initialize successfully and become usable.

Actual behavior:
The GPU is visible on the PCI bus, but bridge windows and BAR
resources are incomplete or invalid, leaving the device unusable.

Observed errors include:

bridge window [mem size ...]: can't assign; no space
NVRM: BAR1 is 0M @ 0x0
RmInitAdapter failed
NVIDIA initialization fails
AMD shows similar behavior in the same enclosure on the same host

Kernel command line used for the latest debug boot:
BOOT_IMAGE=/boot/vmlinuz-6.17.0-19-generic
root=UUID=f0048c61-b4fe-4edb-9af5-bc756f9e2e7d ro quiet splash
"dyndbg=file drivers/pci/* +p" vt.handoff=7

I also confirmed that dynamic debug for drivers/pci was enabled.

I collected and attached two archives:

egpu-logs.tar.gz
egpu-logs-dyndbg.tar.gz

These archives contain:

full dmesg
dmesg extract
lspci -nnvvv
lspci tree
per-device lspci dumps for the relevant bridges and GPU
/proc/iomem
journalctl -b
nvidia-smi output

Please let me know which specific logs or excerpts would be most useful.

Best regards,
Michal Babička

[-- Attachment #2: egpu-logs.tar.gz --]
[-- Type: application/x-gzip, Size: 188194 bytes --]

[-- Attachment #3: egpu-logs-dyndbg.tar.gz --]
[-- Type: application/x-gzip, Size: 170531 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-03-27 17:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-24  7:34 [BUG] Apple Mac mini 2018 + Thunderbolt 3 eGPU: PCI bridge window / BAR allocation failure prevents NVIDIA and AMD GPUs from initializing Michal Babička
2026-03-27 17:54 ` [WARNING: UNSCANNABLE EXTRACTION FAILED][BUG] " Ilpo Järvinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox