Skip to content

Add support for enhanced atomic operations

Vladimir Sokolovsky linux-rdma 4 versions – New

Get series with b4
b4 am 20100414142223.GA16346@vlad-laptop

Versions newest first · linked by author and title

  1. v4 Latest0 of 2 patches 0 repliesNew
  2. v32 patches 9 repliesSuperseded
  3. v22 patches 5 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v10 of 2 patches9 repliesSuperseded

Changes in v4 from the cover letter

- patch #1:
Add a new capability masked_atomic_cap instead of using IB_DEVICE_MASKED_ATOMIC
- patch #2:
Set props->masked_atomic_cap to IB_ATOMIC_HCA for mlx4

Patches in v4 No applies recorded yet

None of the 2 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH V4 0/2] Add support for enhanced atomic operations

Hi Roland,

This patchset adds support for the following enhanced atomic operations:
- Masked atomic compare and swap
- Masked atomic fetch and add

These operations enable using a smaller amount of memory when using multiple locks by using portions of a 64 bit value in an atomic operation.
For some applications the memory savings are very significant. One example is fine grain lock implementations for huge data sets. In other cases, the benefit is the ability to update multiple fields with a single io operation.

Vladimir Sokolovsky(2):
IB/core: Add support for enhanced atomic operations mlx4/IB: Add support for enhanced atomic operations

changes from V3:
- patch #1:
Add a new capability masked_atomic_cap instead of using IB_DEVICE_MASKED_ATOMIC
- patch #2:
Set props->masked_atomic_cap to IB_ATOMIC_HCA for mlx4

Note that all drivers clear props with memset except amso1100. So, no need to define props->masked_atomic_cap to NONE for all drivers. I will send a patch that fixes amso1100 issue.

Regards,
Vladimir
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html