14 comments

  • abrookewood9 hours ago
    FYI: Resizable BAR (Base Address Register) is a PCI Express feature that removes the traditional 256MB memory limit, allowing your CPU to access your graphics card's entire VRAM at once for a potential 5% to 15% boost in gaming performance
    • jttnr7 hours ago
      Thanks for the quick explanation. I'd been reading through the README to figure out what it was for, but wasn't able to.
    • prmoustache4 hours ago
      Thanks, that context was definitely missing. Is that a feature that exists on any GPU brand/model?
      • p_l1 hour ago
        Only on specific devices, but generally every GPU released in last few generations, and every dedicated GPU from intel[1], supports &quot;large BAR&quot; this way to map entire GPU memory into MMIO space. This has to be supported on both target device and AFAIK the PCI Root Port[2], and of course needs to be properly handled in firmware - which this tool fixes.<p>[1] Intel GPUs actually can&#x27;t work without it, because they do not have legacy &quot;windowing&quot; mode where portions of 256MB BAR window are mapped to different areas in GPU memory<p>[2] This tool implies that it&#x27;s possible to handle root port side entirely in firmware, but it&#x27;s new to me at least, so I can&#x27;t vouch for that :)
  • zir_blazer12 hours ago
    These kind of BIOS modding shenannigans is why I got interesed in Coreboot, so that enhancing a Firmware capabilities becomes possible without touching propietary tools&#x2F;code.<p>Other similar mods included adding NVMe Boot capabilities to older Firmwares that didn&#x27;t supported them so that you could boot from modern NVMe drives if you used some kind of adapter (As none of those Motherboards have M.2 Slots, but you can use them with a PCIe-to-M.2 adapter card). Also adding required stuff to get certain CPUs booting in Motherboard that were never officially supported (Depending on generation, could be as simple as adding new CPU Microcode).
    • userbinator9 hours ago
      These days you might be able to just point an AI at the original BIOS and tell it what you need done, instead of attempting to install a complete rewrite like Coreboot (which comes with its own limitations, the biggest one being that only a rather small subset of mobos are actually supported.)
      • zir_blazer9 hours ago
        Yes, I know that there are examples in the wild of that kind of AI modding:<p><a href="https:&#x2F;&#x2F;www.downtowndougbrown.com&#x2F;2026&#x2F;08&#x2F;fixing-an-emachines-el1200-bios-bug-with-claude&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.downtowndougbrown.com&#x2F;2026&#x2F;08&#x2F;fixing-an-emachine...</a><p><a href="https:&#x2F;&#x2F;www.tomshardware.com&#x2F;pc-components&#x2F;cpus&#x2F;modder-uses-claude-ai-to-rewrite-bios-so-they-can-boot-unsupported-12-p-core-bartlett-lake-cpu-in-windows-on-a-z790-motherboard" rel="nofollow">https:&#x2F;&#x2F;www.tomshardware.com&#x2F;pc-components&#x2F;cpus&#x2F;modder-uses-...</a><p>Coreboot in desktops is perhaps in the best shape it has been in more than a decade because you have the MSI Z690-A&#x2F;Z790-P series for LGA 1700 (Which were current gen when released, and still viable if you want Intel with DDR4, albeit the boards aren&#x27;t available in retail anymore) and the recently released port for the MSI B850-P for AM5 Phoenix. It was a major leap from previously, where it only supported ancient platforms or unobtanium reference boards. I bashed Coreboot a lot for that, but now you actually have usable options. Same with Servers, with the Gigabyte MZ33-AR1 for AMD Turin. When was the last time you saw Coreboot running on current gen boards available in retail, if ever?
        • userbinator8 hours ago
          The last time I looked at Coreboot it didn&#x27;t have any configuration UI at all (&quot;you have to set the options and recompile&#x2F;reflash&quot; was the answer I got), which basically makes it next to useless for a regular PC... and apparently it still doesn&#x27;t. They&#x27;ve already done the hard work of RE&#x27;ing and all the hardware-specific stuff; how hard can it be to at least have a simple setup menu? Hopefully someone vibecodes (vibeports?) one in the next little while.<p>(Incidentally this is also one of my gripes with the Intel Macs, wanting to put Linux on one but having zero configurability pre-OS is a huge pain. Meanwhile a standard PC BIOS with the equivalent hardware has plenty of options. Maybe I&#x27;ll get around to (vibe)porting a regular BIOS to mine...)
          • trashb1 hour ago
            The menu part is the task of the payload. If you compile Coreboot with a payload you can get a menu no problem. EDK II, Seabios or grub payloads all support this.<p>If you want to you may want to point your vibes for vibecoding towards making a libpayload universal menu for Coreboot , that way you at least conform with the architecture.
          • zir_blazer8 hours ago
            I was an early user of the Z690-A from 2022 and while it was dull in features, the basics (Boot Menu) were already present. The configuration UI was TianoCore&#x2F;EDK2:<p><a href="https:&#x2F;&#x2F;youtu.be&#x2F;eSz2VPH64SE?t=343" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;eSz2VPH64SE?t=343</a><p><a href="https:&#x2F;&#x2F;docs.dasharo.com&#x2F;dasharo-menu-docs&#x2F;dasharo-system-features&#x2F;#additional-information" rel="nofollow">https:&#x2F;&#x2F;docs.dasharo.com&#x2F;dasharo-menu-docs&#x2F;dasharo-system-fe...</a><p>I do recall hearing the same thing than you but for those that used SeaBIOS and needed to recompile and reflash just to change boot order...
      • snvzz8 hours ago
        Regarding Coreboot, it is far worse than that. They literally do not care anymore; focus is not on corebooting all the boards, but on serving some sort of commercial &quot;customer&quot;.<p>e.g. they do seldom if ever take patches for adding support or fixing issues in older boards. They just sit there ignored.<p>A fork or entire new project with different focus is sorely needed.
        • trashb1 hour ago
          There is also the Libreboot which may be of your interest. What I see is that there is a lot of development on Coreboot but it is indeed mostly driven by companies working on their latest platforms. There are not many contributors working on older platforms. Though in my experience the response to patches is relatively quick.
      • gjs2788 hours ago
        [dead]
  • nullify8858 minutes ago
    Since I don&#x27;t want to tinker with my HP Firmware, a brief investigation led me to OpenCore&#x27;s ability to enable Resizable BAR in the bootloader before Windows boots. Not sure how reliable it is. <a href="https:&#x2F;&#x2F;github.com&#x2F;xCuri0&#x2F;ReBarUEFI&#x2F;discussions&#x2F;118" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;xCuri0&#x2F;ReBarUEFI&#x2F;discussions&#x2F;118</a>
  • bigwheels14 hours ago
    What does this do? I perused the README but I&#x27;m still clueless on what the purpose and use-case is for ReBAR.<p>(Posting this under the assumption others will also appreciate a bit of quick context.)
    • zir_blazer12 hours ago
      Since about 5 or 6 years ago, PCIe Video Cards advertise a capability known as Resizeable BAR. PCI Devices like GPUs require some memory to use for PCI MMIO, which is directly visible on the CPU Address Space. As a side note, this Address Space is shared with RAM, and anyone that was around when having 4 GiB RAM with a 32 Bit OS was common (Earlier than 2010 or so) knows that you only saw about 3.25 GiB RAM or so because of sharing the Address Space with PCI MMIO, and those fortunate enough to have used SLI usually saw even less than that, like 2.87 GiB RAM.<p>GPUs has been using a 256 MiB PCI MMIO window regardless of how much VRAM they actually have since... nearly forever? At least since PCIe is a thing, since I recall than AGP Aperture Size was seteable in era accurate BIOSes. PCIe 3.0 specification introduced a feature known as Resizeable BAR, where the PCI Device can tell a compatible Firmware how much MMIO it actually wants. GPUs uses that to tell a ReBAR capable UEFI Firmware that it wants more MMIO (Usually as big as the GPU VRAM), or uses legacy 256 MiB otherwise.
      • userbinator6 hours ago
        GPUs have been using a 256MB window since they started coming with 256MB of VRAM, as it would otherwise be a pointless waste of address space to have a window larger than the actual amount of VRAM. Previously, they would have a window exactly equal to the size of VRAM (likely rounded up to the next power of 2.)
        • joha42704 hours ago
          There would also be a block of memory mapped hardware registers also needing address space that you have to poke to make the GPU actually do GPU things, instead of just being an expensive way to add extra memory to a system, no?<p>And if my experience from embedded development is in any way transferable, they&#x27;re probably fairly spread out and probably takes a fairly big chunk of address space too.
      • akiselev10 hours ago
        Just to make sure I understand: Is the resizable BAR&#x2F;MMIO a RAM buffer for PCie packets? Or does it have some deeper integration with DMA or something? I assume it&#x27;s not like memory mapped peripherals on an AXI bus which is why you need the buffer?
        • zir_blazer9 hours ago
          No idea on the AXI Bus you&#x27;re talking about, so can&#x27;t make comparisons.<p>MMIO (Memory Mapped I&#x2F;O) is essentially memory (Whenever RAM or ROM) from OTHER devices that is directly visible on the CPU Address Space. My understanding is that from the CPU side, MMIO is mostly transparent (Except for the massive increase in latency) because it gets used like if it was interacting with its own workspace with regular instructions like MOV.<p>What PCIe ReBAR changes is that before, you could only see a 256 MiB window onto the GPU VRAM, so there was an added overhead since the GPU may need to relocate things from inside that window somewhere else on its total VRAM (So yes, it may be interpreted as if what you see from the CPU side is just some kind of exchange buffer). I believe the best way to describe how it operates is comparing it to EMS (Expanded Memory) from the DOS days since it also worked with a similar, if not the same idea. You could only see a portion of the total memory from what was installed on the EMS card (A 128 KiB window located on the upper part of the 1 MiB address space from the 8086 CPU), so you had to switch which Page (Region) of the memory was visible, adding a lot of overhead and most likely requiring an additional buffer in main RAM to move data from one Page to another. However, since I have no knowledge if the GPUs really work like that I can&#x27;t confirm. I never knew whenever the 256 MiB is &quot;fixed&quot; (You always see the same Region) or if you can decide which section of the VRAM to make visible.
          • amstan6 hours ago
            Just to close the loop, AXI bus[1] refers to a very common implementation, in the gateware&#x2F;verilog, of a MIMO.<p>[1] <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Advanced_eXtensible_Interface" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Advanced_eXtensible_Interface</a>
          • sedatk6 hours ago
            It’s also similar to how mmap() on 32-bit systems maps files larger than 2GB.
        • mlyle10 hours ago
          It&#x27;s just memory mapping the peripheral.<p>For historic reasons (e.g. 32 bit address spaces, plus the need to reserve the space for multiple pci peripherals) it has been a narrow, movable aperture.<p>Resizable BAR lets the size of the aperture be chosen (which is usually chosen to allow all of VRAM to fit in and be directly accessible).
    • cesarb12 hours ago
      It&#x27;s hard to explain without going into a few low-level details of PCI Express, but let me try.<p>Most PCI devices expose some memory and&#x2F;or I&#x2F;O ports to the CPU. That memory (or I&#x2F;O ports) is mapped to somewhere in the address space visible to the CPU. Besides the memory and I&#x2F;O ports, all PCI devices also expose a separate set of configuration registers; among these registers, there are the Base Address Registers (BARs), which configure where the memory or I&#x2F;O ports is mapped.<p>Here&#x27;s an example output from &quot;lspci -vv&quot; for a GPU:<p><pre><code> Region 0: Memory at 7c00000000 (64-bit, prefetchable) [size=8G] Region 2: Memory at 7e00000000 (64-bit, prefetchable) [size=256M] Region 4: I&#x2F;O ports at f000 [size=256] Region 5: Memory at fca00000 (32-bit, non-prefetchable) [size=1M] Expansion ROM at fcb00000 [disabled] [size=128K] </code></pre> Note that regions 0 and 2 are above the 4GB addressable by old 32-bit CPUs. To be compatible with these old CPUs, this card and many others like it allow the firmware (and&#x2F;or the operating system) to choose not only where the memory is mapped, but also its size. We can see this in the same &quot;lspci -vv&quot; output for this GPU:<p><pre><code> Capabilities: [200 v1] Physical Resizable BAR BAR 0: current size: 8GB, supported: 256MB 512MB 1GB 2GB 4GB 8GB BAR 2: current size: 256MB, supported: 2MB 4MB 8MB 16MB 32MB 64MB 128MB 256MB </code></pre> Older systems which do not understand this extended capability will still treat these regions as fixed size, probably with the first size in this list (256MB for region 0, 2MB for region 2). Newer systems can tell the device to &quot;resize&quot; the BAR to a bigger size, which obviously needs the first region to be placed above the 4GB barrier since it&#x27;s too big.<p>Why is this useful? This particular GPU has 8GB of VRAM; it&#x27;s quite obvious that region 0 is a direct view into that VRAM. When using the maximum BAR size, the CPU can directly read and write anywhere into the VRAM; when using a smaller BAR, the CPU can only see a small window into the VRAM, and has to use less direct methods to access it.<p>(As an aside: go right now and do a &quot;sudo lspci -vv&quot; on your computer, if you see a Resizable BAR capability which isn&#x27;t using the maximum size, you can probably gain a bit more speed for free by going into the BIOS and enabling &quot;Resizable BAR&quot; and&#x2F;or &quot;Above 4G decoding&quot;. If you can&#x27;t find these options, well, AFAIU that&#x27;s what this project is all about..)
      • ChocolateGod1 hour ago
        &gt; (As an aside: go right now and do a &quot;sudo lspci -vv&quot; on your computer, if you see a Resizable BAR capability which isn&#x27;t using the maximum size, you can probably gain a bit more speed for free by going into the BIOS and enabling &quot;Resizable BAR&quot; and&#x2F;or &quot;Above 4G decoding&quot;. If you can&#x27;t find these options, well, AFAIU that&#x27;s what this project is all about..)<p>IIRC Linux doesn&#x27;t need resizable bar enabled in the BIOS since the kernel will resize the bar if supported by the GPU, Windows however relies on the UEFI doing it which is where it being enabled in the BIOS is needed.
    • Moto745113 hours ago
      Resizable Base Address Register. In short, rather than the 256MB of mapped memory available to the CPU for any PCI device, ReBAR capable devices can map larger memory to the CPU’s addressable memory space. Without ReBAR or sufficient tricks (that Intel GPUs lack) you have to shuffle 256MB chunks around between GPU and CPU.
      • bpye12 hours ago
        &gt; sufficient tricks (that Intel GPUs lack)<p>Isn&#x27;t it just being able to shift the window of GPU memory visible to the CPU?
        • p_l1 hour ago
          Yes, intel lacks a remapping mechanism to support BAR smaller than the total VRAM size.
    • segfaultbuserr13 hours ago
      ReBar&#x27;s commercial name is AMD Smart Access Memory, it allows a PCIe device such as a GPU to map more VRAM to the system at once, which improves performance by reducing access overhead. This generated much fanfare in the early 2020s after AMD officially supported it in the newly released AMD Zen 3 CPUs with RX6800 series GPUs. It was marketed as a new technology to boost GPU&#x2F;gaming performance. What AMD did was just rebranding an obscure feature in the PCIe specification [1]. As shown by this project, it was actually supported by the PCIe controller since Sandy Bridge, just disabled in the firmware. For a decade nobody bothered to use it. Presumably, AMD saw an opportunity and enabled it, presumably after validating the hardware and fixing any driver compatibility problems.<p>[1] This is nothing new in the tech industry. Intel rebrands DVFS as SpeedStep, IOMMU as VT-d, AMD rebrands the NX bit as Enhanced Virus Protection, etc.
      • account422 hours ago
        SAM wasn&#x27;t just about the resizable BAR capability but also about driver adjustments to make efficient use of the larger BAR.
      • kimixa12 hours ago
        I feel part of the &quot;Smart Access Memory&quot; name is actually the driver features and paths to actually make use of it.<p>It&#x27;s not like ReBar is a single toggle &quot;Make Things Faster&quot;, but a different option in how it can map gpu memory to the cpu. The driver still needs to use it - and decide where it&#x27;s use vs the &quot;staging buffer&quot; approach would actually be be benefitial.
      • bpye12 hours ago
        IOMMU branding at least makes a little bit of sense. AMDs and Intels virtualisation ISA are completely different, including their IOMMU.
    • wmf14 hours ago
      It allows the CPU to access all GPU VRAM. This improves gaming performance, especially for AMD GPUs.
      • willis93613 hours ago
        It should come with a warning label. If you&#x27;re in a scenario where VRAM is being maxed out and thrashing main memory then ReBAR will worsen the frequency and magnitude of the stutters. I ran into this with a 3070 (8 GB) recently.
        • jmalicki12 hours ago
          It&#x27;s entirely possible a game manages paging VRAM badly. But allowing the game more flexibility isn&#x27;t a problem with a larger BAR, it&#x27;s that the game is stupid and gets dumber the more VRAM you give it.<p>If a program runs slower when you give it more RAM, the problem isn&#x27;t giving more RAM.
        • Moto745113 hours ago
          I think you’re experiencing paging to main memory rather than anything ReBAR related. ReBAR itself reduces memory copy operations. It’s of course possible you’re experiencing some sort of BIOS bug.
    • mathisfun12314 hours ago
      &gt; what the purpose and use-case is for ReBAR<p>Literally the second sentence in the repo:<p>&gt; This provides performance benefits and is even required for Intel Arc GPUs to function optimally.
      • qudat14 hours ago
        Your quote doesn’t help me understand this project at all.<p>What is a BAR let alone a resizable one? Readme just jumps in, which is fine, but I’m not sure why this is on HN or why I should care.
        • toast013 hours ago
          BARs are part of the PCI spec, they&#x27;re the way for firmware and OS to determine the size of the memory or i&#x2F;o window the card controls as well as the way for the system firmware (usually) to pick what address range the card should use.<p>In the old days, they were a fixed size. If your GPU has 16 GB of ram and you want to access all of it via memory addresses, you&#x27;d need a 16 GB BAR ... but lots of (older) systems wouldn&#x27;t be able to map in a large BAR because of a lack of address lines (or wahtever), so GPUs had stayed with 256MB for VRAM access because it was compatible. With a smaller BAR than the VRAM, you have to use some sort of windowing &#x2F; paging setup. Resizable BAR lets the BAR start small so older systems will work, but grow larger with capable systems.<p>Much better than having a jumper to set the BAR to big or small, and you can skip VRAM window management.
        • pizza23413 hours ago
          ReBAR stands for &quot;Resizable BAR (Base Address Register)&quot; - it makes the CPU&#x27;s access window into GPU memory resizable; instead of accessing VRAM in small chunks, the CPU can access much more at once, which can improve performance on some modern GPUs.
          • docenttx13 minutes ago
            Its also neccessary in many cases using any PCIe device with BAR-addressable memory on-board above the threshold, not just vram.
        • mathisfun12313 hours ago
          i literally don&#x27;t understand how people move through life - do you expect every single link on this site (or any site) to be ELI5 for you specifically? do you not understand that some things require effort&#x2F;homework on your part?
          • yunnpp11 hours ago
            What is the purpose of your comments? You failed to answer his question, then attack him for asking the question. Consider the two possibilities: a) doing that homework is easy, b) it&#x27;s hard. If it&#x27;s easy, you could have just posted the relevant link and be done. If it&#x27;s hard, then his question is warranted. Either way, your comments add nothing. One can only conclude that you don&#x27;t actually know how to answer the question. The real question, though, is: why even bother replying?<p>Also, ReBAR can get complicated as you can see from other responses above. The articles on the web are also not really good as they tend to replicate marketing material and make vague statements about performance, but fail to explain how specifically performance is improved.
            • mathisfun12310 hours ago
              &gt; What is the purpose of your comments?<p>Same as his: to voice my frustration about something on the internet.
              • Dylan168078 hours ago
                Your original comment sure didn&#x27;t do that. It just gave an incorrect answer.
                • mathisfun1238 hours ago
                  What exactly was &quot;incorrect&quot; about it? He asked for a purpose and a use-case not an explanation.
                  • Dylan168075 hours ago
                    &gt; not an explanation<p>Wrong.
  • marcus999914 hours ago
    this fixes a real annoyance on older workstation boards where above 4g decoding is a requirement but the option isn&#x27;t even in the bios menu. saw a build recently on an x79 board where it had to be exposed with a hand patched bios before anything like this or a modern gpu would work at all.
    • Melatonic7 hours ago
      Does this help for more than just gaming ?
    • jedbrooke13 hours ago
      thanks for the throwback, I remember having to hand patch the bios on my x79 system to use a gpu with 12GB vram. Fun times. My motherboard also mysteriously stopped working shortly after…
      • bpye12 hours ago
        I patched my old Haswell system to add an NVMe DXE so I could boot from a modern SSD. I currently have a Lets Note laptop that definitely has UEFI, but pretty much pretends to be BIOS - apparently it&#x27;s possible to modify to expose UEFI features but I have yet to try...
  • b3lvedere4 hours ago
    &quot;Do I need to flash a new UEFI image on the motherboard, to enable ReBAR on the GPU ? Yes, this is how it works for Turing GPUs (GTX 1600 &#x2F; RTX 2000).&quot;<p>Sounds scary. Like there is a good chance to brick the motherboard permanently. I think i&#x27;m going to skip this for my ye olde pc with crappy GTX 1660 Ti card. Can&#x27;t afford a new system.
  • rf151 hour ago
    This made me finally try to migrate an old system of mine. Migrate what you ask? Well, ReBAR driver stuff requires GPT-based disks, and on that machine it&#x27;s still running on MBR...
  • chaz63 hours ago
    Can anyone verify if this works on a Lenovo Thinkpad? I checked the List of Working Motherboards [1]. They often have Thunderbolt but no way to enable ReBAR.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;xCuri0&#x2F;ReBarUEFI&#x2F;issues&#x2F;11" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;xCuri0&#x2F;ReBarUEFI&#x2F;issues&#x2F;11</a>
  • haul_up1 hour ago
    Finally, a way to squeeze more life out of my old gaming rig. My 3070 will appreciate this.
  • sage9812 hours ago
    Sweet! Been wishing for ReBAR on my X99 rig forever. This could finally make that old setup sing with a modern GPU.
  • gregoryl9 hours ago
    Tempted to see if this will work on the work dell laptop, which hardware supports rebar, but Dell just can&#x27;t be assed to enable it - use an external ARC GPU to properly support 3 screens (again, Dells awful drivers &#x2F; firmware - the same hardware supports 3 screens just fine).
  • Melatonic7 hours ago
    Should I be enabling this on a workstation setup doing ML ? Mostly GPU protein folding
    • Jhsto5 hours ago
      You most likely have this enabled and unless you run some ancient board. This UEFI mod is for motherboards from circa 2018. For workstation machines that would be 1st and 2nd generation Threadripper. So, if your CPU&#x27;s model name starts with 3 or higher (and you have an AMD workstation), you likely have this already enabled by default.
  • suprjami11 hours ago
    I am in need of this from the opposite direction - an RTX 3080 20G BIOS which adds ReBAR to the card.<p>Claude tells me the BAR is outside the encrypted part of the card firmware so theoretically should be possible?
    • gregoryl5 hours ago
      They link <a href="https:&#x2F;&#x2F;github.com&#x2F;terminatorul&#x2F;NvStrapsReBar" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;terminatorul&#x2F;NvStrapsReBar</a> in the repo which does what you want for 2000 series cards. Start there, burn some credits.