Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: e27cfda33b429762975215cccba5837ee850d18e
      
https://github.com/tianocore/edk2/commit/e27cfda33b429762975215cccba5837ee850d18e
  Author: Oliver Steffen <[email protected]>
  Date:   2025-10-16 (Thu, 16 Oct 2025)

  Changed paths:
    M OvmfPkg/IoMmuDxe/IoMmuBuffer.c

  Log Message:
  -----------
  OvmfPkg/IoMmuDxe: Fix 1M and 2M buffer handling

The IoMmu keeps a pool of pre-allocated shared buffers in various sizes
to serve requests. Usage is tracked in a bitmap.

The bitmap masks for the 1M and 2M buffer pools are incorrect, causing
the same buffers getting handed out repeatedly, causing corrupted device
accesses.

The masks needs to be kept in sync with mReservedMemRanges below.
This sets the correct values for:

 - RESERVED_MEM_BITMAP_1M_MASK = (1 << 14) = 0x4000
 - RESERVED_MEM_BITMAP_2M_MASK = (1 << 15) | (1 << 16) = 0x18000

Signed-off-by: Oliver Steffen <[email protected]>



To unsubscribe from these emails, change your notification settings at 
https://github.com/tianocore/edk2/settings/notifications


_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to