diff options
| author | Oliver Steffen <osteffen@redhat.com> | 2025-10-15 20:17:36 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2025-10-16 09:21:35 +0300 |
| commit | e27cfda33b429762975215cccba5837ee850d18e (patch) | |
| tree | 4d2b20acb6f7c903846c8965f8a61e571216f239 /MdeModulePkg/Library/DisplayUpdateProgressLibText/DisplayUpdateProgressLibText.c | |
| parent | 2522020ee12b42fabd8b1353b4f89854455d6325 (diff) | |
| download | edk2-e27cfda33b429762975215cccba5837ee850d18e.tar.xz | |
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 <osteffen@redhat.com>
Diffstat (limited to 'MdeModulePkg/Library/DisplayUpdateProgressLibText/DisplayUpdateProgressLibText.c')
0 files changed, 0 insertions, 0 deletions
