On Thu, Jul 20, 2023 at 03:45:57PM +0200, Ard Biesheuvel wrote:
> Instead of relying on raising the TPL to protect the critical sections
> that manipulate the global bitmask that keeps track of bounce buffer
> allocations, use compare-and-exchange to manage the global variable, and
> tweak the logic to line up with that.
> 
> Given that IoMmuDxe implements a singleton protocol that is shared
> between multiple drivers, and considering the elaborate and confusing
> requirements in the UEFP spec regarding TPL levels at which protocol
> methods may be invoked, not relying on TPL levels at all is a more
> robust approach in this case.
> 
> Cc: Gerd Hoffmann <kra...@redhat.com>
> Cc: Jiewen Yao <jiewen....@intel.com>
> Cc: Michael Brown <mc...@ipxe.org>
> Link: https://bugzilla.redhat.com/show_bug.cgi?id=2211060
> Signed-off-by: Ard Biesheuvel <a...@kernel.org>

Looks good to me.

What is the status?  Merged?  Or waiting for testing still?  If so I can
create a test build with the patch and ask our QE department to check
it.

take care,
  Gerd



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#107946): https://edk2.groups.io/g/devel/message/107946
Mute This Topic: https://groups.io/mt/100256049/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to