Re: Adding helper function for ARM "dsb st"

2024-02-06 Thread Honnappa Nagarahalli
Hi Andrew, On Feb 5, 2024, at 8:11 AM, Boyer, Andrew wrote: > > I see that cnxk has added inline assembly for the ARM "dsb st" barrier. We, > too, would like to add a use of this instruction. Can a helper function be > added to the atomics headers? > >> drivers/ml/cnxk/cn10k_ml_dev.h:#define

Adding helper function for ARM "dsb st"

2024-02-05 Thread Boyer, Andrew
I see that cnxk has added inline assembly for the ARM "dsb st" barrier. We, too, would like to add a use of this instruction. Can a helper function be added to the atomics headers? > drivers/ml/cnxk/cn10k_ml_dev.h:#define dsb_st ({ asm volatile("dsb st" : : : > "memory"); }) What would the hel