Skip to content

Conversation

Pierre-vh
Copy link
Contributor

This case was undocumented until now.

…on GFX12

This case was undocumented until now.
Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@Pierre-vh Pierre-vh requested review from arsenm and jayfoad September 2, 2025 08:43
@Pierre-vh Pierre-vh marked this pull request as ready for review September 2, 2025 08:43
@Pierre-vh Pierre-vh requested a review from t-tye September 2, 2025 14:04
Comment on lines +14516 to +14520
* ``s_wait_loadcnt 0x0``
* ``s_wait_storecnt 0x0``
* ``s_wait_kmcnt 0x0``
* ``s_wait_samplecnt 0x0``
* ``s_wait_bvhcnt 0x0``
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So s_wait_dscnt 0x0 is not needed? I notice it is present for the store release.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No dscnt isn't needed, this only deals with system scope level stores as the reordering in this case occurs beyond L2.
LDS is always WG level so that causes no issues

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So what does dscnt track, LDS? Why is it not needed for system scope? Remember we have scope inclusion in the memory model.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DScnt is indeed LDS.
The reordering here can, AFAIK, only occur between two system scope operations. The reordering case happens somewhere after L2.
So we need to wait for any operations that could be at that level. LDS ops aren't one of them because they can't leave the workgroup under any scenario.

Comment on lines 15276 to 15279
| ``s_wait_storecnt 0x0``
| ``s_wait_loadcnt 0x0``
| ``s_wait_dscnt 0x0``
| ``s_wait_kmcnt 0x0``
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For consistency should these be listed in the same order as the changes above?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants