Bug 212013

Summary: AMD GPU "can't claim BAR 0" on HP EliteDesk 805, graphics doesn't work
Product: Drivers Reporter: Kai-Heng Feng (kai.heng.feng)
Component: PCIAssignee: drivers_pci (drivers_pci)
Status: NEW ---    
Severity: normal    
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: mainline, linux-next Subsystem:
Regression: No Bisected commit-id:
Attachments: dmesg
lspci
dmesg with the series applied
lspci with the series applied

Description Kai-Heng Feng 2021-03-02 06:23:19 UTC
$ cat dmesg | grep BAR       
[    0.962086] pci 0000:00:08.1: can't claim BAR 15 [mem 0x10030000000-0x100401fffff 64bit pref]: no compatible bridge window
[    0.962086] pci 0000:07:00.0: can't claim BAR 0 [mem 0x10030000000-0x1003fffffff 64bit pref]: no compatible bridge window
[    0.962086] pci 0000:07:00.0: can't claim BAR 2 [mem 0x10040000000-0x100401fffff 64bit pref]: no compatible bridge window
[    1.286550] pci 0000:07:00.0: BAR 0: no space for [mem size 0x10000000 64bit pref]
[    1.286552] pci 0000:07:00.0: BAR 0: trying firmware assignment [mem 0x10030000000-0x1003fffffff 64bit pref]
[    1.286556] pci 0000:07:00.0: BAR 0: [mem 0x10030000000-0x1003fffffff 64bit pref] conflicts with PCI Bus 0000:00 [mem 0x10020200000-0x100303fffff window]
[    1.286558] pci 0000:07:00.0: BAR 0: failed to assign [mem size 0x10000000 64bit pref]
[    1.286560] pci 0000:07:00.0: BAR 2: assigned [mem 0x10030000000-0x100301fffff 64bit pref]
Comment 1 Kai-Heng Feng 2021-03-02 06:23:45 UTC
Created attachment 295561 [details]
dmesg
Comment 2 Kai-Heng Feng 2021-03-02 06:24:10 UTC
Created attachment 295563 [details]
lspci
Comment 3 Kai-Heng Feng 2021-03-02 06:26:15 UTC
Series "[PATCH v9 00/26] PCI: Allow BAR movement during boot and hotplug" [1] can partially solve the issue.

[1] https://lore.kernel.org/linux-pci/20201218174011.340514-1-s.miroshnichenko@yadro.com/
Comment 4 Kai-Heng Feng 2021-03-02 06:26:43 UTC
Created attachment 295565 [details]
dmesg with the series applied
Comment 5 Kai-Heng Feng 2021-03-02 06:27:06 UTC
Created attachment 295567 [details]
lspci with the series applied