public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] opensm/osm_vl15intf.c Log change
@ 2009-11-27 13:45 Line Holen
       [not found] ` <4B0FD804.2020309-UdXhSnd/wVw@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Line Holen @ 2009-11-27 13:45 UTC (permalink / raw)
  To: sashak-smomgflXvOZWk0Htik3J/w; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA

Added transaction ID to a message

Signed-off-by: Line Holen <Line.Holen-xsfywfwIY+M@public.gmane.org>

---

diff --git a/opensm/opensm/osm_vl15intf.c b/opensm/opensm/osm_vl15intf.c
index c380a55..cc3ff33 100644
--- a/opensm/opensm/osm_vl15intf.c
+++ b/opensm/opensm/osm_vl15intf.c
@@ -1,4 +1,5 @@
 /*
+ * Copyright (c) 2009 Sun Microsystems, Inc. All rights reserved.
  * Copyright (c) 2004-2009 Voltaire, Inc. All rights reserved.
  * Copyright (c) 2002-2006 Mellanox Technologies LTD. All rights reserved.
  * Copyright (c) 1996-2003 Intel Corporation. All rights reserved.
@@ -91,7 +92,8 @@ static void vl15_send_mad(osm_vl15_t * p_vl, osm_madw_t * p_madw)
 	}
 
 	OSM_LOG(p_vl->p_log, OSM_LOG_ERROR, "ERR 3E03: "
-		"MAD send failed (%s)\n", ib_get_err_str(status));
+		"MAD send failed (%s), TID 0x%" PRIx64 "\n",
+		ib_get_err_str(status), cl_ntoh64(p_madw->p_mad->trans_id));
 
 	/*
 	   The MAD was never successfully sent, so
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] opensm/osm_vl15intf.c Log change
       [not found] ` <4B0FD804.2020309-UdXhSnd/wVw@public.gmane.org>
@ 2009-12-01 16:15   ` Sasha Khapyorsky
  2009-12-15 16:12   ` Hal Rosenstock
  1 sibling, 0 replies; 5+ messages in thread
From: Sasha Khapyorsky @ 2009-12-01 16:15 UTC (permalink / raw)
  To: Line Holen; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA

On 14:45 Fri 27 Nov     , Line Holen wrote:
> Added transaction ID to a message
> 
> Signed-off-by: Line Holen <Line.Holen-xsfywfwIY+M@public.gmane.org>

Applied. Thanks.

Sasha
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] opensm/osm_vl15intf.c Log change
       [not found] ` <4B0FD804.2020309-UdXhSnd/wVw@public.gmane.org>
  2009-12-01 16:15   ` Sasha Khapyorsky
@ 2009-12-15 16:12   ` Hal Rosenstock
       [not found]     ` <f0e08f230912150812r8fa3a89kf62aa2412e8b824-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  1 sibling, 1 reply; 5+ messages in thread
From: Hal Rosenstock @ 2009-12-15 16:12 UTC (permalink / raw)
  To: Line Holen
  Cc: sashak-smomgflXvOZWk0Htik3J/w, linux-rdma-u79uwXL29TY76Z2rM5mHXA

On Fri, Nov 27, 2009 at 8:45 AM, Line Holen <Line.Holen-xsfywfwIY+M@public.gmane.org> wrote:
> Added transaction ID to a message
>
> Signed-off-by: Line Holen <Line.Holen-xsfywfwIY+M@public.gmane.org>
>
> ---
>
> diff --git a/opensm/opensm/osm_vl15intf.c b/opensm/opensm/osm_vl15intf.c
> index c380a55..cc3ff33 100644
> --- a/opensm/opensm/osm_vl15intf.c
> +++ b/opensm/opensm/osm_vl15intf.c
> @@ -1,4 +1,5 @@
>  /*
> + * Copyright (c) 2009 Sun Microsystems, Inc. All rights reserved.
>  * Copyright (c) 2004-2009 Voltaire, Inc. All rights reserved.
>  * Copyright (c) 2002-2006 Mellanox Technologies LTD. All rights reserved.
>  * Copyright (c) 1996-2003 Intel Corporation. All rights reserved.
> @@ -91,7 +92,8 @@ static void vl15_send_mad(osm_vl15_t * p_vl, osm_madw_t * p_madw)
>        }
>
>        OSM_LOG(p_vl->p_log, OSM_LOG_ERROR, "ERR 3E03: "
> -               "MAD send failed (%s)\n", ib_get_err_str(status));
> +               "MAD send failed (%s), TID 0x%" PRIx64 "\n",
> +               ib_get_err_str(status), cl_ntoh64(p_madw->p_mad->trans_id));

I don't think it's safe to touch the MAD once it's been returned to
the pool. So either this change needs to be reverted or the
transaction ID (and any other info to be printed on error) saved and
logged on error.

-- Hal

>
>        /*
>           The MAD was never successfully sent, so
> --
> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> 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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] opensm/osm_vl15intf.c Log change
       [not found]     ` <f0e08f230912150812r8fa3a89kf62aa2412e8b824-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2009-12-16  9:36       ` Yevgeny Kliteynik
       [not found]         ` <4B28AA3A.8090700-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Yevgeny Kliteynik @ 2009-12-16  9:36 UTC (permalink / raw)
  To: Hal Rosenstock
  Cc: Line Holen, sashak-smomgflXvOZWk0Htik3J/w,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA

On 15/Dec/09 18:12, Hal Rosenstock wrote:
> On Fri, Nov 27, 2009 at 8:45 AM, Line Holen<Line.Holen-xsfywfwIY+M@public.gmane.org>  wrote:
>> Added transaction ID to a message
>>
>> Signed-off-by: Line Holen<Line.Holen-xsfywfwIY+M@public.gmane.org>
>>
>> ---
>>
>> diff --git a/opensm/opensm/osm_vl15intf.c b/opensm/opensm/osm_vl15intf.c
>> index c380a55..cc3ff33 100644
>> --- a/opensm/opensm/osm_vl15intf.c
>> +++ b/opensm/opensm/osm_vl15intf.c
>> @@ -1,4 +1,5 @@
>>   /*
>> + * Copyright (c) 2009 Sun Microsystems, Inc. All rights reserved.
>>   * Copyright (c) 2004-2009 Voltaire, Inc. All rights reserved.
>>   * Copyright (c) 2002-2006 Mellanox Technologies LTD. All rights reserved.
>>   * Copyright (c) 1996-2003 Intel Corporation. All rights reserved.
>> @@ -91,7 +92,8 @@ static void vl15_send_mad(osm_vl15_t * p_vl, osm_madw_t * p_madw)
>>         }
>>
>>         OSM_LOG(p_vl->p_log, OSM_LOG_ERROR, "ERR 3E03: "
>> -               "MAD send failed (%s)\n", ib_get_err_str(status));
>> +               "MAD send failed (%s), TID 0x%" PRIx64 "\n",
>> +               ib_get_err_str(status), cl_ntoh64(p_madw->p_mad->trans_id));
>
> I don't think it's safe to touch the MAD once it's been returned to
> the pool. So either this change needs to be reverted or the
> transaction ID (and any other info to be printed on error) saved and
> logged on error.

I'm actually seeing OSM crashing on this line
pretty reliably. For now I've issued a revert
patch.

-- Yevgeny

> -- Hal
>
>>
>>         /*
>>            The MAD was never successfully sent, so
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>> 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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> 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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] opensm/osm_vl15intf.c Log change
       [not found]         ` <4B28AA3A.8090700-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
@ 2009-12-16 11:56           ` Hal Rosenstock
  0 siblings, 0 replies; 5+ messages in thread
From: Hal Rosenstock @ 2009-12-16 11:56 UTC (permalink / raw)
  To: kliteyn-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb
  Cc: Line Holen, sashak-smomgflXvOZWk0Htik3J/w,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA

On 12/16/09, Yevgeny Kliteynik <kliteyn-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org> wrote:
> On 15/Dec/09 18:12, Hal Rosenstock wrote:
>> On Fri, Nov 27, 2009 at 8:45 AM, Line Holen<Line.Holen-xsfywfwIY+M@public.gmane.org>  wrote:
>>> Added transaction ID to a message
>>>
>>> Signed-off-by: Line Holen<Line.Holen-xsfywfwIY+M@public.gmane.org>
>>>
>>> ---
>>>
>>> diff --git a/opensm/opensm/osm_vl15intf.c b/opensm/opensm/osm_vl15intf.c
>>> index c380a55..cc3ff33 100644
>>> --- a/opensm/opensm/osm_vl15intf.c
>>> +++ b/opensm/opensm/osm_vl15intf.c
>>> @@ -1,4 +1,5 @@
>>>   /*
>>> + * Copyright (c) 2009 Sun Microsystems, Inc. All rights reserved.
>>>   * Copyright (c) 2004-2009 Voltaire, Inc. All rights reserved.
>>>   * Copyright (c) 2002-2006 Mellanox Technologies LTD. All rights
>>> reserved.
>>>   * Copyright (c) 1996-2003 Intel Corporation. All rights reserved.
>>> @@ -91,7 +92,8 @@ static void vl15_send_mad(osm_vl15_t * p_vl, osm_madw_t
>>> * p_madw)
>>>         }
>>>
>>>         OSM_LOG(p_vl->p_log, OSM_LOG_ERROR, "ERR 3E03: "
>>> -               "MAD send failed (%s)\n", ib_get_err_str(status));
>>> +               "MAD send failed (%s), TID 0x%" PRIx64 "\n",
>>> +               ib_get_err_str(status),
>>> cl_ntoh64(p_madw->p_mad->trans_id));
>>
>> I don't think it's safe to touch the MAD once it's been returned to
>> the pool. So either this change needs to be reverted or the
>> transaction ID (and any other info to be printed on error) saved and
>> logged on error.
>
> I'm actually seeing OSM crashing on this line
> pretty reliably. For now I've issued a revert
> patch.

I'll shortly send an alternative patch which preserves Line's tid
printing in vl15_send_mad.

-- Hal

>
> -- Yevgeny
>
>> -- Hal
>>
>>>
>>>         /*
>>>            The MAD was never successfully sent, so
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
>>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>>> 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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>> 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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-12-16 11:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-27 13:45 [PATCH] opensm/osm_vl15intf.c Log change Line Holen
     [not found] ` <4B0FD804.2020309-UdXhSnd/wVw@public.gmane.org>
2009-12-01 16:15   ` Sasha Khapyorsky
2009-12-15 16:12   ` Hal Rosenstock
     [not found]     ` <f0e08f230912150812r8fa3a89kf62aa2412e8b824-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-12-16  9:36       ` Yevgeny Kliteynik
     [not found]         ` <4B28AA3A.8090700-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2009-12-16 11:56           ` Hal Rosenstock

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox