From patchwork Wed Aug 1 14:52:31 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jim Foraker X-Patchwork-Id: 1264551 X-Patchwork-Delegate: alexne@voltaire.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 894663FC23 for ; Wed, 1 Aug 2012 14:52:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755224Ab2HAOw6 (ORCPT ); Wed, 1 Aug 2012 10:52:58 -0400 Received: from nspiron-1.llnl.gov ([128.115.41.81]:57070 "EHLO nspiron-1.llnl.gov" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755213Ab2HAOw5 (ORCPT ); Wed, 1 Aug 2012 10:52:57 -0400 X-Attachments: Received: from auk75.llnl.gov ([10.253.135.81]) by nspiron-1.llnl.gov with ESMTP; 01 Aug 2012 07:52:54 -0700 From: Jim Foraker To: linux-rdma@vger.kernel.org Cc: weiny2@llnl.gov, alexne@meallanox.com, Jim Foraker Subject: [PATCH 5/9 v2] opensm: Log errors on SubnGet timeouts Date: Wed, 1 Aug 2012 07:52:31 -0700 Message-Id: <1343832755-26753-5-git-send-email-foraker1@llnl.gov> X-Mailer: git-send-email 1.7.9.2 In-Reply-To: <1343832755-26753-1-git-send-email-foraker1@llnl.gov> References: <1343832537.26423.8.camel@auk75.llnl.gov> <1343832755-26753-1-git-send-email-foraker1@llnl.gov> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org At protection levels >=2, CAs will not respond to SubnGets that do not have a valid mkey. We log errors for the timed out requests. Signed-off-by: Jim Foraker --- opensm/osm_sm_mad_ctrl.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/opensm/osm_sm_mad_ctrl.c b/opensm/osm_sm_mad_ctrl.c index e4c8d94..c384eca 100644 --- a/opensm/osm_sm_mad_ctrl.c +++ b/opensm/osm_sm_mad_ctrl.c @@ -743,6 +743,13 @@ static void sm_mad_ctrl_send_err_cb(IN void *context, IN osm_madw_t * p_madw) cl_ntoh16(p_smp->attr_id), ib_get_sm_attr_str(p_smp->attr_id)); p_ctrl->p_subn->subnet_initialization_error = TRUE; + } else if (p_madw->status == IB_TIMEOUT && + p_smp->method == IB_MAD_METHOD_GET) { + OSM_LOG(p_ctrl->p_log, OSM_LOG_ERROR, "ERR 3120 " + "Timeout while getting attribute 0x%X (%s); " + "Possible mis-set mkey?\n", + cl_ntoh16(p_smp->attr_id), + ib_get_sm_attr_str(p_smp->attr_id)); } osm_dump_dr_smp_v2(p_ctrl->p_log, p_smp, FILE_ID, OSM_LOG_VERBOSE);