diff options
author | Matthew Brost <[email protected]> | 2021-06-02 22:16:25 -0700 |
---|---|---|
committer | Daniel Vetter <[email protected]> | 2021-06-04 10:39:04 +0200 |
commit | d35ca600873eebceb071af81bdc279fb6ec538db (patch) | |
tree | aef250b9cccb4afd6ac049ca5e8d9926dff6c3bc /scripts/gdb/linux/clk.py | |
parent | 7c567bbf6f267c7379ddbba7afba7608d6e8e39f (diff) |
drm/i915/guc: Ensure H2G buffer updates visible before tail update
Ensure H2G buffer updates are visible before descriptor tail updates by
inserting a barrier between the H2G buffer update and the tail. The
barrier is simple wmb() for SMEM and is register write for LMEM. This is
needed if more than 1 H2G can be inflight at once.
If this barrier is not inserted it is possible the descriptor tail
update is scene by the GuC before H2G buffer update which results in the
GuC reading a corrupt H2G value. This can bring down the H2G channel
among other bad things.
Signed-off-by: Matthew Brost <[email protected]>
Cc: Michal Wajdeczko <[email protected]>
Reviewed-by: John Harrison <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'scripts/gdb/linux/clk.py')
0 files changed, 0 insertions, 0 deletions