Skip to content

Remove obsolete MB barrier for LKMM store#1007

Merged
hernanponcedeleon merged 2 commits intodevelopmentfrom
lkmm-mb-litmus
Mar 12, 2026
Merged

Remove obsolete MB barrier for LKMM store#1007
hernanponcedeleon merged 2 commits intodevelopmentfrom
lkmm-mb-litmus

Conversation

@hernanponcedeleon
Copy link
Owner

The removed code became obsolete after #893

Signed-off-by: Hernan Ponce de Leon <hernanl.leon@huawei.com>
ThomasHaas
ThomasHaas previously approved these changes Mar 11, 2026
Copy link
Collaborator

@ThomasHaas ThomasHaas left a comment

Choose a reason for hiding this comment

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

LGTM. Is this the only remaining instance of obsolete barriers?

@hernanponcedeleon
Copy link
Owner Author

I just noticed there is one more in the Instrinsics class.

Strictly speaking, if we want to follow to the dot what herd+lkmm do, we need to add the extra barrier.

However, I would go with deviating from them (I am pretty sure the patch from Jonas could have also simplified the .bell file) and simplify our code. I would just need to fix our LKMM compilation.

@ThomasHaas
Copy link
Collaborator

I have no problem deviating from herd :). The only disadvantage with getting rid of all the barriers is that we do not support the old LKMM, but I'm not too keen to maintain both old and new compilation schemes for Linux.

P.S. I still find it quite annoying that we respect herd's precedence ordering for a;b \ c which any sane human would parse as (a;b) \ c and not a;(b \ c) :).

Signed-off-by: Hernan Ponce de Leon <hernanl.leon@huawei.com>
@hernanponcedeleon
Copy link
Owner Author

I have no problem deviating from herd :). The only disadvantage with getting rid of all the barriers is that we do not support the old LKMM, but I'm not too keen to maintain both old and new compilation schemes for Linux.

We stopped supporting the old LKMM as soon as we merged #893. While this PR removes the barriers on mb_store, that ne already did it for mb_rmw.

@ThomasHaas
Copy link
Collaborator

I have no problem deviating from herd :). The only disadvantage with getting rid of all the barriers is that we do not support the old LKMM, but I'm not too keen to maintain both old and new compilation schemes for Linux.

We stopped supporting the old LKMM as soon as we merged #893. While this PR removes the barriers on mb_store, that ne already did it for mb_rmw.

I know, my statement was more general. If you added a "compile to old LKMM" option and added the barrier in mb_rmw back, we might have been able to support both versions. The changes in this PR just confirm that there is no intention in supporting the old LKMM, which is fine with me.

@hernanponcedeleon hernanponcedeleon merged commit 81cfee0 into development Mar 12, 2026
7 checks passed
@hernanponcedeleon hernanponcedeleon deleted the lkmm-mb-litmus branch March 12, 2026 07:49
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.

3 participants