drm/xe/guc: Prevent compiler read/write optimization breaks
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest2 patches 3 repliesIn review
- v24 patches 1 replySuperseded
- v16 patches 6 repliesSuperseded
Changes in v3 from the cover letter
- Split into multiple patches (Rodrigo Vivi)
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | drm/xe/guc: READ/WRITE_ONCE g2h_fence->donedrivers/ | +10 | 1 reply | |
| 2/2 | drm/xe/guc: READ/WRITE_ONCE ct->statedrivers/ drivers/ | +10 | 2 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Matthew Brost |
|---|---|
| 1/2 | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/2] drm/xe/guc: Prevent compiler read/write optimization breaks
Use READ_ONCE and WRITE_ONCE when operating on ct->state and the g2h_fence->done values to prevent the compiler from ignoring these necessary operations.
v2: (Matt Brost)
- Add Fixes tags
- Add comments
v3:
- Split into multiple patches (Rodrigo Vivi)
v4:
- s/xe_guc_ct/guc (Michal W)
- Add comments with READ_ONCE and WRITE_ONCE updates (Rodrigo, Stuart, Dixit)
- Squash patches with same Fixes target
(Rodrigo, Stuart, Dixit)
- Add partial comment justifying WRITE_ONCE in guc_ct_change_state before READ_ONCE in xe_guc_ct_enabled is added (Rodrigo Vivi)
- Update above comment when adding READ_ONCE to xe_guc_ct_enabled (jcavitt)
v4: (Matt Brost)
- Squash patches operating on the same value together
- Remove unnecessary Fixes tags
- Add READ_ONCEs to pair with WRITE_ONCEs on g2h_fence->done
Jonathan Cavitt (2):
drm/xe/guc: READ/WRITE_ONCE g2h_fence->done
drm/xe/guc: READ/WRITE_ONCE ct->state
drivers/gpu/drm/xe/xe_guc_ct.c | 21 ++++++++++++++++----- drivers/gpu/drm/xe/xe_guc_ct.h | 6 ++++-- 2 files changed, 20 insertions(+), 7 deletions(-)
Signature · 1 line
2.43.0