gpu: nova: fix incorrect GSP barrier usage
Status from this message: Applied, thanks!
Get series with b4
b4 am [email protected] change-id 20260609-rust-barrier-63078ea76216Versions newest first
Changes in v4 from the cover letter
- Moved barriers to pointer accessor/updater. This does mean unnecessary barrier in failed polling path but the code path is not critical.
I mentioned about providing full acq/rel semantics, but ended up not doing it because LOAD->LOAD barrier is sufficient for the GSP->CPU messaging path, so it's best to still mention about the actually needed ordering only.
- Link to v3: https://patch.msgid.link/[email protected]
Patches in v4 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | gpu: nova-core: fix barrier usage in CPU->GSP messaging pathdrivers/ | +14 | 1 reply | |
| 2/2 | gpu: nova-core: fix barrier usage in GSP->CPU messaging pathdrivers/ | +11 | 1 reply |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Eliot Courtney |
|---|---|
| 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 v4 0/2] gpu: nova: fix incorrect GSP barrier usage
Currently Nova GSP code uses Rust barriers, which equivalent to LKMM SMP barriers. This does not provide sufficient ordering for DMA operations on AArch64. Fix this to be using the newly introduced dma_mb(Ordering) API.
Also, there is an incorrect placement of barrier, which is also fixed.
---
Changes in v4:
- Moved barriers to pointer accessor/updater. This does mean unnecessary barrier in failed polling path but the code path is not critical.
I mentioned about providing full acq/rel semantics, but ended up not doing it because LOAD->LOAD barrier is sufficient for the GSP->CPU messaging path, so it's best to still mention about the actually needed ordering only.
- Link to v3: https://patch.msgid.link/[email protected]
Changes in v3:
- Drop abstraction changes which are already picked.
- Improve ordering comment messages.
- Replace control dependency reliance with explicit barrier.
- Link to v2: https://patch.msgid.link/[email protected]
Changes in v2:
- Dropped Acquire and Release aliases of Full (Joel)
- Use macros to implement most MemoryBarrier
- Split Nova change to GSP->CPU commit and CPU->GSP commit (Joel)
- Link to v1: https://patch.msgid.link/[email protected]
To: Danilo Krummrich <[email protected]>
To: Alice Ryhl <[email protected]>
To: Alexandre Courbot <[email protected]>
To: David Airlie <[email protected]>
To: Simona Vetter <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
Gary Guo (2):
gpu: nova-core: fix barrier usage in CPU->GSP messaging path
gpu: nova-core: fix barrier usage in GSP->CPU messaging pathdrivers/gpu/nova-core/gsp/cmdq.rs | 41 ++++++++++++++++++++++++--------------- 1 file changed, 25 insertions(+), 16 deletions(-)
---
base-commit: 89c07d98716a13454ec3fd9f97689e812cc71bd4
change-id: 20260609-rust-barrier-63078ea76216
Best regards,
Signature · 1 line
Gary Guo <[email protected]>