On Thu, Dec 06, 2018 at 08:49:43AM +0200, Leon Romanovsky wrote: > > "resp" point to "desc.data" which will be sent to hardware through > > function "hns_roce_cmq_send". > > resp->rocee_scc_ctx_clr_done will be set to 1 by hardware if > > scc context clear successful. If not, continue the query until the > > maximum number of queries is reached HNS_ROCE_CMQ_SCC_CLR_DONE_CNT. > > I'm not expert in this area, but it looks like you need some sort of > memory fence and ensure that memory in-sync between device and CPU. It looks like there is a readl on this path and readl is serializing Jason