[Problem] ReBAR Support of Intel H61MB

H61CR501 / ASBoard H61 ReBAR Investigation

Hardware

  • CPU: Intel i7-3770

  • Chipset: Intel H61

  • GPU: Sapphire RX 6650 XT 8GB

  • BIOS: AMI Aptio IV (SMBIOS Version 4.6.5)

BIOS Modifications

  • ReBarDxe inserted successfully

  • ReBarDxe GUID:
    A8EE1777-A4F5-4345-9DA4-13742084D31E

Relevant PCI Modules

PciBus

  • GUID: 3C1DE39F-D207-408A-AACC-731CFB7F1DD7

  • Size: 59265 bytes

PciHostBridge

  • GUID: 8D6756B9-E55E-4D6A-A3A5-5E4D72DDF772

  • Size: 11029 bytes

BIOS reports: PCI Bus Driver Version V2.05.02

Current BIOS Configuration

  • Above 4G Decoding = Enabled

  • CSM = Disabled

  • UEFI Boot = Enabled

  • Windows installed in UEFI mode

  • GPT Boot = Yes

Verification

Device Manager

Large Memory region is present.

GPU-Z

Requirements: GPU Hardware Support = Yes
Above 4G Decode enabled = Yes
CSM disabled = Yes
Boot from GPT = Yes
64-bit Operating System = Yes
Windows running in UEFI mode = Yes
Graphics Driver Support = Yes

But: Resizable BAR enabled in BIOS = No

BAR sizes: BAR0 = 256 MB
BAR1 = 2 MB

Smart Access Memory = Disabled

Observation

All common ReBAR requirements appear satisfied:

  • ReBarDxe present

  • Above 4G enabled

  • Large Memory present

  • UEFI boot

  • CSM disabled

However BAR0 remains fixed at 256 MB and GPU-Z reports ReBAR disabled.

Question

Could the very old Aptio IV implementation:

PCI Bus Driver Version V2.05.02

or the existing PciBus/PciHostBridge modules prevent BAR resizing despite ReBarDxe loading correctly?

Has anyone successfully enabled ReBAR on an H61CR501 / ASBoard H61 BIOS using these module versions?

Further investigation:

  • Above 4G Decoding enabled

  • Large Memory present in Device Manager

  • UEFI boot confirmed

  • CSM disabled

  • RX 6650 XT

  • AMD Smart Access Memory still reports Disabled

  • GPU-Z reports:
    Resizable BAR enabled in BIOS = No
    BAR0 = 256 MB

PCI modules:

PciBus GUID:
3C1DE39F-D207-408A-AACC-731CFB7F1DD7
PCI Bus Driver Version:
V2.05.02

PciHostBridge GUID:
8D6756B9-E55E-4D6A-A3A5-5E4D72DDF772

ReBarDxe GUID:
A8EE1777-A4F5-4345-9DA4-13742084D31E

Question:
Could the old PciBus/PciHostBridge implementation prevent BAR resizing even when ReBarDxe loads and Large Memory is present?


Edit by Fernando: Thread moved into the “BIOS Modding Problems” Category and title customized

Who is the manufacturer of the mainboard and which is its exact model name?

CPU-Z reports:

Manufacturer: Intel Corporation
Model: H61
Version: To be filled by O.E.M.

BIOS:
American Megatrends Inc.
Version: 4.6.5
Date: 08/17/2022

The BIOS ID is H61CR501.

Unfortunately the board does not provide a more specific model name and appears to be an OEM H61 motherboard.

@joetownley do you still have the original bios dump as-is, the unmodded and untouched one? If so, could you send it here?

Did you also flash with intel fpt?

Also, could you elaborate on the path in the bios where did you disable csm and enable above 4g decoding?

Yes, I still have the original untouched BIOS dump and I can upload it.

I flashed the BIOS using AFUWIN, not Intel FPT.

The Above 4G Decoding option became available after unlocking the hidden BIOS menus and is located here:

Advanced → PCI Bus Driver Configuration → Above 4G Decoding = Enabled

Windows is installed in UEFI mode on a GPT disk.
GPU-Z reports:

  • CSM Disabled = Yes

  • Boot from GPT = Yes

  • Windows running in UEFI mode = Yes

1.rar (3.4 MB)

1 Like

@joetownley could you try this: joetownley_mod.rar (1.7 MB)

Just enable above 4g decoding and disable csm (its on boot → csm parameters, if visible), then run rebarstate as admin and enter value 13, enter, and reboot, see if it works.

Good news! I did more testing and found something very interesting.

I flashed your modified BIOS successfully with Intel FPT.

After testing different ReBarState values, I found the following:

  • 0 (Disabled): Boots normally, ReBAR disabled.

  • 1 (2 MB): Boots normally, ReBAR disabled.

  • 2 (4 MB): Boots normally.

  • 4 (16 MB): Boots normally.

  • 8 (256 MB): Boots normally. BAR0 = 256 MB, BAR1 = 256 MB.

  • 9 (512 MB): Boots normally. BAR0 = 512 MB, BAR1 = 256 MB.

  • 10 (1024 MB): Boots after a longer startup. GPU-Z now reports Resizable BAR = Enabled, Resizable BAR enabled in BIOS = Yes, BAR0 = 1024 MB and BAR1 = 256 MB.

  • 13 (8192 MB): No POST.

  • 16 (65536 MB): No POST.

  • 32 (Unlimited): No POST.

However, AMD Adrenalin 26.6.2 still reports Smart Access Memory = Disabled, even though GPU-Z reports Resizable BAR as enabled.

Does AMD require a larger BAR size for SAM to become active, or is there still another BIOS patch needed?

Could you take a screenshot of Device Manager → View → Resource by Type → Large Memory → Dropdown the list?

The other way to do it is by using MMIOPrint when booting to efi shell, to see if there are memory range above 4 gigs for type 3 (MMIO). Since you’ve said that rebar at 1GiB is bootable but long time, i have a feeling that the above 4g decoding hasn’t been implemented correctly…

Any RDNA 1 and 2 board will get rebar automatically running in windows after rebar state value was set, so it’s not the gpu side.

Maybe, you can try to flash back your original bios using afuwin, and then dump the whole bios chip using intel fpt (fptw -d backup.rom), so that now you have a full backup of the whole bios chip, then send it here, and i’ll see if it was indeed the above 4g decoding implementation that are incomplete, since the patch only did patch pcibus and pcihostbridge.

If you dont mind, could you open up cpuz and go to mainboard tab, i just want to see if it’s a h61 chipset.

At a glance, the bios structure are similiar to that of gigabyte and asrock of the same chipset.