xCuri0 / ReBarUEFI

Resizable BAR for (almost) any UEFI system
MIT License
1.29k stars 57 forks source link

Dell Precision T3600 #206

Closed Pet0203 closed 3 weeks ago

Pet0203 commented 3 weeks ago

System

Description Hi! I'm trying to get ReBar working on my machine running Proxmox 8.1 (Linux-pve 6.5). I can't resize the BAR to even 512 MB and I've been at it for days. I have added the DXE driver and applied UEFIPatches (UEFIPatch only applied Remove 4GB limit for CpuIo2). Could you assist in troubleshooting? I've also tried removing a stick of RAM (64 GiB installed). Saw that someone got it working for the Dell Precision T3610 without UEFI patch, I have no idea how. They are basically the same.

lspci -vvvs ```text 06:00.0 VGA compatible controller: Intel Corporation DG2 [Arc A750] (rev 08) (prog-if 00 [VGA controller]) Subsystem: ASRock Incorporation DG2 [Arc A750] Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- Capabilities: [70] Express (v2) Endpoint, MSI 00 DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <64ns, L1 <1us ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset+ SlotPowerLimit 0W DevCtl: CorrErr- NonFatalErr- FatalErr- UnsupReq- RlxdOrd- ExtTag+ PhantFunc- AuxPwr- NoSnoop+ FLReset- MaxPayload 128 bytes, MaxReadReq 128 bytes DevSta: CorrErr- NonFatalErr- FatalErr- UnsupReq- AuxPwr- TransPend- LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM L0s L1, Exit Latency L0s <64ns, L1 <1us ClockPM- Surprise- LLActRep- BwNot- ASPMOptComp+ LnkCtl: ASPM Disabled; RCB 64 bytes, Disabled- CommClk- ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt- LnkSta: Speed 2.5GT/s, Width x1 TrErr- Train- SlotClk- DLActive- BWMgmt- ABWMgmt- DevCap2: Completion Timeout: Range B, TimeoutDis+ NROPrPrP- LTR+ 10BitTagComp+ 10BitTagReq+ OBFF Not Supported, ExtFmt+ EETLPPrefix- EmergencyPowerReduction Not Supported, EmergencyPowerReductionInit- FRS- TPHComp- ExtTPHComp- AtomicOpsCap: 32bit- 64bit- 128bitCAS- DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis- LTR- 10BitTagReq- OBFF Disabled, AtomicOpsCtl: ReqEn- LnkCap2: Supported Link Speeds: 2.5GT/s, Crosslink- Retimer- 2Retimers- DRS- LnkCtl2: Target Link Speed: 2.5GT/s, EnterCompliance- SpeedDis- Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS- Compliance Preset/De-emphasis: -6dB de-emphasis, 0dB preshoot LnkSta2: Current De-emphasis Level: -6dB, EqualizationComplete- EqualizationPhase1- EqualizationPhase2- EqualizationPhase3- LinkEqualizationRequest- Retimer- 2Retimers- CrosslinkRes: unsupported Capabilities: [ac] MSI: Enable- Count=1/1 Maskable+ 64bit+ Address: 0000000000000000 Data: 0000 Masking: 00000000 Pending: 00000000 Capabilities: [d0] Power Management version 3 Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold-) Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME- Capabilities: [100 v1] Alternative Routing-ID Interpretation (ARI) ARICap: MFVC- ACS-, Next Function: 0 ARICtl: MFVC- ACS-, Function Group: 0 Capabilities: [420 v1] Physical Resizable BAR BAR 2: current size: 256MB, supported: 256MB 512MB 1GB 2GB 4GB 8GB Capabilities: [400 v1] Latency Tolerance Reporting Max snoop latency: 0ns Max no snoop latency: 0ns Kernel modules: i915 ```
dmesg | grep BAR ```text [ 0.576014] pci 0000:06:00.0: BAR 2: assigned to efifb [ 0.577142] pci 0000:08:00.0: VF(n) BAR0 space: [mem 0x00000000-0x0007bfff 64bit pref] (contains BAR0 for 31 VFs) [ 0.663802] pci 0000:08:00.0: BAR 7: assigned [mem 0xf3804000-0xf387ffff 64bit pref] [ 6.483451] i915 0000:06:00.0: [drm] Can't resize LMEM BAR - platform support is missing [ 6.483469] i915 0000:06:00.0: [drm] Using a reduced BAR size of 256MiB. Consider enabling 'Resizable BAR' or similar, if available in the BIOS. ```
dmesg | grep "root bus resource" ```text [ 0.557241] pci_bus 0000:00: root bus resource [io 0x0000-0x03af window] [ 0.557247] pci_bus 0000:00: root bus resource [io 0x03e0-0x0cf7 window] [ 0.557250] pci_bus 0000:00: root bus resource [io 0x03b0-0x03df window] [ 0.557254] pci_bus 0000:00: root bus resource [io 0x0d00-0xffff window] [ 0.557258] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000dffff window] [ 0.557263] pci_bus 0000:00: root bus resource [mem 0x30000000-0xfbffffff window] [ 0.557267] pci_bus 0000:00: root bus resource [bus 00-7f] [ 0.582466] pci_bus 0000:80: root bus resource [io 0x03b0-0x03df window] [ 0.582471] pci_bus 0000:80: root bus resource [mem 0x000a0000-0x000bffff window] [ 0.582476] pci_bus 0000:80: root bus resource [bus 80-ff] [ 0.594882] pci_bus 0000:ff: root bus resource [io 0x0000-0xffff] [ 0.594888] pci_bus 0000:ff: root bus resource [mem 0x00000000-0x3fffffffffff] ```
cat /ptoc/iomem ```text 00000000-00000fff : Reserved 00001000-0009ffff : System RAM 000a0000-000dffff : PCI Bus 0000:00 000a0000-000bffff : PCI Bus 0000:80 000c0000-000cfbff : Video ROM 000d0000-000d03ff : Adapter ROM 000f0000-000fffff : System ROM 00100000-18eaafff : System RAM 18eab000-18fd6fff : ACPI Non-volatile Storage 18fd7000-18fd8fff : System RAM 18fd9000-18ffffff : ACPI Non-volatile Storage 19000000-1a63bfff : System RAM 1a63c000-1a63cfff : ACPI Tables 1a63d000-1dffcfff : System RAM 1dffd000-1dffffff : ACPI Tables 1e000000-28d15017 : System RAM 28d15018-28d2f657 : System RAM 28d2f658-28d30017 : System RAM 28d30018-28d50a57 : System RAM 28d50a58-28d51017 : System RAM 28d51018-28d6cc57 : System RAM 28d6cc58-28d6d017 : System RAM 28d6d018-28d88c57 : System RAM 28d88c58-2c777fff : System RAM 2c778000-2c80bfff : Reserved 2c80c000-2d7fffff : System RAM 2d800000-2fffffff : RAM buffer 30000000-fbffffff : PCI Bus 0000:00 30000000-3fffffff : PCI MMCONFIG 0000 [bus 00-ff] e0000000-f07fffff : PCI Bus 0000:04 e0000000-efffffff : PCI Bus 0000:05 e0000000-efffffff : PCI Bus 0000:06 e0000000-efffffff : 0000:06:00.0 f0000000-f07fffff : 0000:04:00.0 f1000000-f30fffff : PCI Bus 0000:03 f1000000-f17fffff : 0000:03:00.1 f1000000-f17fffff : vfio-pci f1800000-f1ffffff : 0000:03:00.1 f1800000-f1ffffff : vfio-pci f2000000-f27fffff : 0000:03:00.0 f2000000-f27fffff : vfio-pci f2800000-f2ffffff : 0000:03:00.0 f2800000-f2ffffff : vfio-pci f3000000-f300ffff : 0000:03:00.1 f3000000-f300ffff : vfio-pci f3010000-f301ffff : 0000:03:00.0 f3010000-f301ffff : vfio-pci f3400000-f38fffff : PCI Bus 0000:08 f3400000-f37fffff : 0000:08:00.0 f3400000-f37fffff : isci f3800000-f3803fff : 0000:08:00.0 f3800000-f3803fff : isci f3804000-f387ffff : 0000:08:00.0 fa000000-fb3fffff : PCI Bus 0000:04 fa000000-fb3fffff : PCI Bus 0000:05 fa000000-fb1fffff : PCI Bus 0000:06 fa000000-faffffff : 0000:06:00.0 fb300000-fb3fffff : PCI Bus 0000:07 fb300000-fb303fff : 0000:07:00.0 fb300000-fb303fff : ICH HD audio fb400000-fb4fffff : PCI Bus 0000:0a fb400000-fb401fff : 0000:0a:00.0 fb400000-fb401fff : xhci-hcd fb500000-fb5fffff : PCI Bus 0000:08 fb600000-fb6fffff : PCI Bus 0000:03 fb600000-fb67ffff : 0000:03:00.1 fb680000-fb6fffff : 0000:03:00.0 fb700000-fb71ffff : 0000:00:19.0 fb700000-fb71ffff : e1000e fb721000-fb7210ff : 0000:00:1f.3 fb722000-fb7227ff : 0000:00:1f.2 fb722000-fb7227ff : ahci fb723000-fb7233ff : 0000:00:1d.0 fb723000-fb7233ff : ehci_hcd fb724000-fb7243ff : 0000:00:1a.0 fb724000-fb7243ff : ehci_hcd fb725000-fb725fff : 0000:00:19.0 fb725000-fb725fff : e1000e fb728000-fb72800f : 0000:00:16.0 fb728000-fb72800f : mei_me fb729000-fb729fff : 0000:00:05.4 fbffe000-fbffefff : dmar0 fc000000-fcffffff : pnp 00:00 fd000000-fdffffff : pnp 00:00 fe000000-feafffff : pnp 00:00 feb00000-febfffff : pnp 00:00 fec00000-fec003ff : IOAPIC 0 fec3f000-fec3f3ff : IOAPIC 1 fed00000-fed003ff : HPET 0 fed00000-fed003ff : PNP0103:00 fed1f410-fed1f414 : iTCO_wdt.1.auto fed20000-fed3ffff : Reserved fed40000-fed44fff : 00:05 TPM fed45000-fedfffff : pnp 00:00 fee00000-fee00fff : Local APIC ff000000-ffffffff : INT0800:00 100000000-ccfffffff : System RAM 91fc00000-920ffffff : Kernel code 921000000-921c78fff : Kernel rodata 921e00000-92218113f : Kernel data 922636000-9237fffff : Kernel bss ```

echo 9 > /sys/bus/pci/devices/0000\:06\:00.0/resource2_resize -bash: echo: write error: No space left on device

xCuri0 commented 3 weeks ago

you either haven't enabled it with rebarstate