[Pkg-ofed-commits] [infinipath-psm] 04/11: Fix MPI error when PSM_SDMA is set to 1. Since the default value is 1, we will just ignore the user input if the user (or an MPI) tries to set PSM_SDMA to 1. This is a simple fix to prevent PSM from using invalid internal values after getting a value of 1 from PSM_SDMA.
Ana Beatriz Guerrero López
ana at moszumanska.debian.org
Sun Apr 3 20:04:10 UTC 2016
This is an automated email from the git hooks/post-receive script.
ana pushed a commit to branch master
in repository infinipath-psm.
commit 3551492ac4fa3b152ebfb9221978f697f2d7fc0f
Author: Henry Estela <henry.r.estela at intel.com>
Date: Tue Jan 5 11:19:31 2016 -0800
Fix MPI error when PSM_SDMA is set to 1.
Since the default value is 1, we will just ignore the user input if the
user (or an MPI) tries to set PSM_SDMA to 1. This is a simple fix to
prevent PSM from using invalid internal values after getting a value of
1 from PSM_SDMA.
---
ptl_ips/ips_proto.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ptl_ips/ips_proto.c b/ptl_ips/ips_proto.c
index 682bf15..cb991ec 100644
--- a/ptl_ips/ips_proto.c
+++ b/ptl_ips/ips_proto.c
@@ -633,7 +633,8 @@ proto_sdma_init(struct ips_proto *proto, const psmi_context_t *context)
(union psmi_envvar_val) defval,
&env_sdma);
- proto->flags |= env_sdma.e_uint & IPS_PROTO_FLAGS_ALL_SDMA;
+ if(env_sdma.e_uint != 1)
+ proto->flags |= env_sdma.e_uint & IPS_PROTO_FLAGS_ALL_SDMA;
/* If anything uses send dma, figure out our max packet threshold to call
* send dma with */
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ofed/infinipath-psm.git
More information about the Pkg-ofed-commits
mailing list