libibverbs memory barrier fixes
v2 cover libibverbs memory barrier fixes
This is v2 of the ARM64 mb* support, plus an additional patch to fail compiles if there is no platform implementation of the memory barriers. I've included the 2nd patch because I think it is important to not assume any default barrier implementation. Getting it wrong can result in data corruption.
Changes since V1:
Put the RFC tag back on because I want to retest this series.
Implemented the ARM64 memory barrier macros from scratch using the AMD reference docs.
Added 2nd patch to fail compiles if no mb* macros exist for the platform.
Steve Wise (2):
libibverbs: add ARM64 memory barrier macros
Fail compiles if no platform specific memory barriers exist
include/infiniband/arch.h | 15 +++++++++------ 1 files changed, 9 insertions(+), 6 deletions(-)
--
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
A message that is not in the archive (sent off-list or not yet received): 20160520200053.6983AE0B9D-/[email protected]
Quoted 13 lines · Steve Wise
This is v2 of the ARM64 mb* support, plus an additional patch to fail compiles if there is no platform implementation of the memory barriers. I've included the 2nd patch because I think it is important to not assume any default barrier implementation. Getting it wrong can result in data corruption.
Changes since V1:
Put the RFC tag back on because I want to retest this series.
Implemented the ARM64 memory barrier macros from scratch using the AMD reference docs.
Quoted 9 lines
Added 2nd patch to fail compiles if no mb* macros exist for the platform.
Steve Wise (2):
libibverbs: add ARM64 memory barrier macros
Fail compiles if no platform specific memory barriers existinclude/infiniband/arch.h | 15 +++++++++------ 1 files changed, 9 insertions(+), 6 deletions(-)
Please remember to use --thread=shallow when sending patch emails using git send-email (which is what I assume you did).
Let me know how the testing comes out. The patches look fine to me (thanks for adding the second one, it's the right thing to do).
Signature · 2 lines
Doug Ledford <[email protected]> GPG KeyID: 0E572FDD
A message that is not in the archive (sent off-list or not yet received): 3ffd3089-ede9-aebf-4781-2e012bc65252-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
Quoted 19 lines
Quoted 19 lines
This is v2 of the ARM64 mb* support, plus an additional patch to fail compiles if there is no platform implementation of the memory barriers. I've included the 2nd patch because I think it is important to not assume any default barrier implementation. Getting it wrong can result in data corruption.
Changes since V1:
Put the RFC tag back on because I want to retest this series.
Implemented the ARM64 memory barrier macros from scratch using the AMD reference docs.
Added 2nd patch to fail compiles if no mb* macros exist for the platform.
Steve Wise (2):
libibverbs: add ARM64 memory barrier macros
Fail compiles if no platform specific memory barriers exist
Quoted 7 lines
Quoted 3 lines
include/infiniband/arch.h | 15 +++++++++------ 1 files changed, 9 insertions(+), 6 deletions(-)Please remember to use --thread=shallow when sending patch emails using git send-email (which is what I assume you did).
Will do. I use git format-patch. I added -t, but that apparently does nothing. :) I'll use --thread=shallow next time.
Quoted 3 lines
Let me know how the testing comes out. The patches look fine to me (thanks for adding the second one, it's the right thing to do).
It will be next week, and I'll send out a final version of the series then.
Thanks!
Steve
--
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
Hi,
We'll be testing those patches as well.
-
Thanks,
Noa Osherovich | SW Engineer | Tel: 074-7236018
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Steve Wise
Sent: Friday, May 20, 2016 11:28 PM
To: 'Doug Ledford' <[email protected]>
Cc: [email protected]
Subject: RE: [PATCH RFC v2 0/2] libibverbs memory barrier fixes
Quoted 19 lines
Quoted 19 lines
This is v2 of the ARM64 mb* support, plus an additional patch to fail compiles if there is no platform implementation of the memory barriers. I've included the 2nd patch because I think it is important to not assume any default barrier implementation. Getting it wrong can result in data corruption.
Changes since V1:
Put the RFC tag back on because I want to retest this series.
Implemented the ARM64 memory barrier macros from scratch using the AMD reference docs.
Added 2nd patch to fail compiles if no mb* macros exist for the platform.
Steve Wise (2):
libibverbs: add ARM64 memory barrier macros
Fail compiles if no platform specific memory barriers exist
Quoted 7 lines
Quoted 3 lines
include/infiniband/arch.h | 15 +++++++++------ 1 files changed, 9 insertions(+), 6 deletions(-)Please remember to use --thread=shallow when sending patch emails using git send-email (which is what I assume you did).
Will do. I use git format-patch. I added -t, but that apparently does nothing. :) I'll use --thread=shallow next time.
Quoted 3 lines
Let me know how the testing comes out. The patches look fine to me (thanks for adding the second one, it's the right thing to do).
It will be next week, and I'll send out a final version of the series then.
Thanks!
Steve
--
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
--
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
Quoted 24 lines · Steve Wise
Quoted 13 lines
This is v2 of the ARM64 mb* support, plus an additional patch to fail compiles if there is no platform implementation of the memory barriers. I've included the 2nd patch because I think it is important to not assume any default barrier implementation. Getting it wrong can result in data corruption.
Changes since V1:
Put the RFC tag back on because I want to retest this series.
Implemented the ARM64 memory barrier macros from scratch using the AMD reference docs.
Quoted 9 lines
Added 2nd patch to fail compiles if no mb* macros exist for the platform.
Steve Wise (2):
libibverbs: add ARM64 memory barrier macros
Fail compiles if no platform specific memory barriers existinclude/infiniband/arch.h | 15 +++++++++------ 1 files changed, 9 insertions(+), 6 deletions(-)
Quoted 6 lines
Please remember to use --thread=shallow when sending patch emails using git send-email (which is what I assume you did).
Let me know how the testing comes out. The patches look fine to me (thanks for adding the second one, it's the right thing to do).
Hey Doug, the series tests good with cxgb4 on ARM64. Do I need to repost a final series, or can you merge v2?
Hey Noa, have you all had a chance to test this series?
Thanks,
Steve.
--
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
Quoted 31 lines · Steve Wise
Quoted 24 lines · Steve Wise
Quoted 13 lines
This is v2 of the ARM64 mb* support, plus an additional patch to fail compiles if there is no platform implementation of the memory barriers. I've included the 2nd patch because I think it is important to not assume any default barrier implementation. Getting it wrong can result in data corruption.
Changes since V1:
Put the RFC tag back on because I want to retest this series.
Implemented the ARM64 memory barrier macros from scratch using the AMD reference docs.
Quoted 9 lines
Added 2nd patch to fail compiles if no mb* macros exist for the platform.
Steve Wise (2):
libibverbs: add ARM64 memory barrier macros
Fail compiles if no platform specific memory barriers existinclude/infiniband/arch.h | 15 +++++++++------ 1 files changed, 9 insertions(+), 6 deletions(-)Quoted 6 lines
Please remember to use --thread=shallow when sending patch emails using git send-email (which is what I assume you did).
Let me know how the testing comes out. The patches look fine to me (thanks for adding the second one, it's the right thing to do).
Quoted 9 lines
Hey Doug, the series tests good with cxgb4 on ARM64. Do I need to repost a final series, or can you merge v2?
Hey Noa, have you all had a chance to test this series?
Thanks,
Steve.
Repost a final please.
Quoted 26 lines · Steve Wise
Quoted 26 lines · Steve Wise
Quoted 13 lines
This is v2 of the ARM64 mb* support, plus an additional patch to fail compiles if there is no platform implementation of the memory barriers. I've included the 2nd patch because I think it is important to not assume any default barrier implementation. Getting it wrong can result in data corruption.
Changes since V1:
Put the RFC tag back on because I want to retest this series.
Implemented the ARM64 memory barrier macros from scratch using the AMD reference docs.
Quoted 9 lines
Added 2nd patch to fail compiles if no mb* macros exist for the platform.
Steve Wise (2):
libibverbs: add ARM64 memory barrier macros
Fail compiles if no platform specific memory barriers existinclude/infiniband/arch.h | 15 +++++++++------ 1 files changed, 9 insertions(+), 6 deletions(-)Please remember to use --thread=shallow when sending patch emails using git send-email (which is what I assume you did).
Quoted 7 lines
Quoted 3 lines
Let me know how the testing comes out. The patches look fine to me (thanks for adding the second one, it's the right thing to do).
Hey Doug, the series tests good with cxgb4 on ARM64. Do I need to repost a final series, or can you merge v2?
Hey Noa, have you all had a chance to test this series?
We didn't encounter any issue so far that seems to be related to this patch. However, some extra functional / performance testing are needed to evaluate.
Quoted 1 line
From internal code review it seems that
wmb()is quite strict in your patch and
may have a performance penalty.
Any reason not to use dsb instead of dmb for wmb()? #define wmb()asm volatile("dsb st" ::: "memory") #define wmb()asm volatile("dmb st" ::: "memory")
Quoted 4 lines
Thanks,
Steve.
Thanks,
Noa
--
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
A message that is not in the archive (sent off-list or not yet received): a10b354c-f9f5-04c8-260d-841273e25b7c-VPRAkNaXOzVWk0Htik3J/[email protected]
Quoted 35 lines · Steve Wise
Quoted 26 lines
Quoted 26 lines · Steve Wise
Quoted 13 lines
This is v2 of the ARM64 mb* support, plus an additional patch to fail compiles if there is no platform implementation of the memory barriers. I've included the 2nd patch because I think it is important to not assume any default barrier implementation. Getting it wrong can result in data corruption.
Changes since V1:
Put the RFC tag back on because I want to retest this series.
Implemented the ARM64 memory barrier macros from scratch using the AMD reference docs.
Quoted 9 lines
Added 2nd patch to fail compiles if no mb* macros exist for the platform.
Steve Wise (2):
libibverbs: add ARM64 memory barrier macros
Fail compiles if no platform specific memory barriers existinclude/infiniband/arch.h | 15 +++++++++------ 1 files changed, 9 insertions(+), 6 deletions(-)Please remember to use --thread=shallow when sending patch emails using git send-email (which is what I assume you did).
Quoted 7 lines
Quoted 3 lines
Let me know how the testing comes out. The patches look fine to me (thanks for adding the second one, it's the right thing to do).
Hey Doug, the series tests good with cxgb4 on ARM64. Do I need to repost a final series, or can you merge v2?
Hey Noa, have you all had a chance to test this series?
Quoted 7 lines
We didn't encounter any issue so far that seems to be related to this patch. However, some extra functional / performance testing are needed to evaluate.
Quoted 1 line
From internal code review it seems that
wmb()is quite strict in your patch andmay have a performance penalty.
Any reason not to use dsb instead of dmb forwmb()? #define wmb()asmvolatile("dsb st" ::: "memory")#define wmb()asmvolatile("dmb st" ::: "memory")
I was being conservative. Unless you measure some drop in performance, I'd rather leave this as dsb for now. Then perhaps we can optimize them later more performance work.
Steve.
--
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