mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
IB/qib: Fix comparison error with qperf compare/swap test
commit87b3524cb5upstream. This failure exists with qib: ver_rc_compare_swap: mismatch, sequence 2, expected 123456789abcdef, got 0 The request builder was using the incorrect inlines to build the request header resulting in incorrect data in the atomic header. Fix by using the appropriate inlines to create the request. Fixes:261a435184("IB/qib,IB/hfi: Use core common header file") Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com> Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e41b3b8972
commit
5c1c0b9267
@@ -443,13 +443,13 @@ no_flow_control:
|
||||
qp->s_state = OP(COMPARE_SWAP);
|
||||
put_ib_ateth_swap(wqe->atomic_wr.swap,
|
||||
&ohdr->u.atomic_eth);
|
||||
put_ib_ateth_swap(wqe->atomic_wr.compare_add,
|
||||
&ohdr->u.atomic_eth);
|
||||
put_ib_ateth_compare(wqe->atomic_wr.compare_add,
|
||||
&ohdr->u.atomic_eth);
|
||||
} else {
|
||||
qp->s_state = OP(FETCH_ADD);
|
||||
put_ib_ateth_swap(wqe->atomic_wr.compare_add,
|
||||
&ohdr->u.atomic_eth);
|
||||
put_ib_ateth_swap(0, &ohdr->u.atomic_eth);
|
||||
put_ib_ateth_compare(0, &ohdr->u.atomic_eth);
|
||||
}
|
||||
put_ib_ateth_vaddr(wqe->atomic_wr.remote_addr,
|
||||
&ohdr->u.atomic_eth);
|
||||
|
||||
Reference in New Issue
Block a user