diff options
author | Mark Rutland <mark.rutland@arm.com> | 2016-05-06 18:19:06 +0100 |
---|---|---|
committer | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2016-05-10 14:48:25 +0200 |
commit | 28f52b9fae9feba369ff0d773e0b0e610c0aa6f8 (patch) | |
tree | a600271e569ba26795b88fc88cb92989b11cdc5c /BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py | |
parent | d1ec2b2f78b752b9dfc06843f994cbfad134ea63 (diff) | |
download | edk2-platforms-28f52b9fae9feba369ff0d773e0b0e610c0aa6f8.tar.xz |
Revert "EmbeddedPkg/Lan9118Dxe: use MemoryFence"
Commit a4626006bbf86113 ("EmbeddedPkg/Lan9118Dxe: use MemoryFence")
replaced some stalls with memory fences, on the presumption that these
were erroneously being used to order memory accesses. However, this was
not the case.
LAN9118 devices require a timing delay between state-changing
reads/writes and subsequent reads, as updates to the register file are
asynchronous and the effects of state-changes are not immediately
visible to subsequent reads.
This delay cannot be ensured through the use of memory barriers, which
only enforce observable ordering, and not timing. Thus, converting these
stalls to memory fences was erroneous, and may result in stale values
being read.
This reverts commit a4626006bbf86113453aeb7920895e66cdd04737.
Cc: Leif Lindholm <leif.lindholm@linaro.org>
Cc: Ryan Harkin <ryan.harkin@linaro.org>
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Diffstat (limited to 'BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py')
0 files changed, 0 insertions, 0 deletions