Skip to content

Commit

Permalink
issue: 1557652 BF is supported for upstream on VMs
Browse files Browse the repository at this point in the history
This reverts commit cf04c89.
  • Loading branch information
igor-ivanov committed Nov 19, 2018
1 parent 7bfb43a commit 170f510
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
4 changes: 1 addition & 3 deletions src/utils/asm-x86.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,7 @@ VMA_ATTRIBUTE_OPTIMIZE_NONE
#define __vma_memory_copy64(_dst, _src) \
{ \
static int is_wc_simd = cpuid_flags() & \
(CPU_FLAG_SSE3 | CPU_FLAG_SSSE3 | \
CPU_FLAG_SSE41 | CPU_FLAG_SSE42 | \
CPU_FLAG_AVX | CPU_FLAG_AVX2); \
(CPU_FLAG_SSE41 | CPU_FLAG_SSE42); \
\
if (is_wc_simd) { \
__asm__ __volatile__ ( \
Expand Down
7 changes: 0 additions & 7 deletions src/vma/dev/qp_mgr_eth_mlx5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,6 @@ static bool is_bf(struct ibv_context *ib_ctx)
static off_t offset = VMA_MLX5_MMAP_GET_WC_PAGES_CMD << VMA_MLX5_IB_MMAP_CMD_SHIFT;
char *env;

#if defined(DEFINED_VERBS_VERSION) && (DEFINED_VERBS_VERSION == 3)
/* This limitation is done for RM: 1557652 */
if (safe_mce_sys().hypervisor != mce_sys_var::HYPER_NONE) {
return false;
}
#endif

env = getenv("MLX5_SHUT_UP_BF");
if (!env || !strcmp(env, "0")) {
/*
Expand Down

0 comments on commit 170f510

Please sign in to comment.