summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorDean Luick <dean.luick@intel.com>2016-02-03 14:35:49 -0800
committerDoug Ledford <dledford@redhat.com>2016-03-10 20:37:56 -0500
commit7b0b01aa8f48cd237322cbffa05662a9c6b156f8 (patch)
tree02482f328f5dc0b7f509af19628c8f88c48a3e52 /kernel
parent53f449e4bf04ac5dce6385a1546ab6108666def2 (diff)
staging/rdma/hfi1: Split last 8 bytes of copy to user buffer
Copy the last 8 bytes of user mode RC WRITE_ONLY and WRITE_LAST opcodes separately from the rest of the data. It is a de-facto standard for some MPI implementations to use a poll on the last few bytes of a verbs message to indicate that the message has been received rather than follow the required function method. The driver uses the kernel memcpy routine, which becomes "rep movsb" on modern machines. This copy, while very fast, does not guarantee in-order copy completion and the result is an occasional perceived corrupted packet. Avoid the issue by splitting the last 8 bytes to copy from the verbs opcodes where it matters and performing an in-order byte copy. Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: Dean Luick <dean.luick@intel.com> Signed-off-by: Jubin John <jubin.john@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions