All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Genoud <richard.genoud@gmail.com>
To: Stanislaw Gruszka <sgruszka@redhat.com>
Cc: Helmut Schaa <helmut.schaa@googlemail.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	linux-wireless@vger.kernel.org
Subject: Re: Soft lockup in rt2x00usb_work_rxdone()
Date: Tue, 07 Nov 2017 12:13:47 +0100	[thread overview]
Message-ID: <1510053227.24015.3.camel@gmail.com> (raw)
In-Reply-To: <20171107101320.GA12140@redhat.com>

Le mardi 07 novembre 2017 à 11:13 +0100, Stanislaw Gruszka a écrit :
> On Tue, Nov 07, 2017 at 11:06:39AM +0100, Richard Genoud wrote:
> > > 3 short articles how to configure and use ftrace are here:
> > > https://lwn.net/Articles/365835/
> > > https://lwn.net/Articles/366796/
> > > https://lwn.net/Articles/370423/
> > > 
> > 
> > I tried with ftrace, but I don't think there's a way to dump the
> > trace
> > when there's a soft lock-up
> > (I can't do anything after the unbind, even the heartbeat led
> > stopped blinking).
> > I saw the /proc/sys/kernel/ftrace_dump_on_oops file, but there's no
> > /proc/sys/kernel/ftrace_dump_on_soft_lock-up file :)
> 
> You should configure function trace with rt2x* functions. After that
> start tracing, unbind the device, then stop tracing and provide trace
> output.
Here is another trace, with rt2* as function filter.
(sorry for the noise)

Dumping ftrace buffer:
---------------------------------
CPU:0 [LOST 3606923 EVENTS]
 0)   0.000 us    |      } /* rt2x00usb_clear_entry */
 0)   0.000 us    |    } /* rt2x00lib_rxdone */
 0)   0.000 us    |    rt2x00queue_get_entry();
 0)               |    rt2x00lib_rxdone() {
 0)   0.000 us    |      rt2x00queue_index_inc();
 0)               |      rt2x00usb_clear_entry() {
 0)               |        rt2x00usb_kick_rx_entry() {
 0)               |          rt2x00lib_dmastart() {
 0)   0.000 us    |            rt2x00queue_index_inc();
 0)   0.000 us    |          }
 0)               |          rt2x00lib_dmadone() {
 0)   0.000 us    |            rt2x00queue_index_inc();
 0)   0.000 us    |          }
 0)   0.000 us    |        }
 0)   0.000 us    |      }
 0)   0.000 us    |    }
 0)   0.000 us    |    rt2x00queue_get_entry();
 0)               |    rt2x00lib_rxdone() {
 0)   0.000 us    |      rt2x00queue_index_inc();
 0)               |      rt2x00usb_clear_entry() {
 0)               |        rt2x00usb_kick_rx_entry() {
 0)               |          rt2x00lib_dmastart() {
 0)   0.000 us    |            rt2x00queue_index_inc();
 0)   0.000 us    |          }
 0)               |          rt2x00lib_dmadone() {
 0)   0.000 us    |            rt2x00queue_index_inc();
 0)   0.000 us    |          }
 0)   0.000 us    |        }
 0)   0.000 us    |      }
 0)   0.000 us    |    }
 0)   0.000 us    |    rt2x00queue_get_entry();
 0)               |    rt2x00lib_rxdone() {
 0)   0.000 us    |      rt2x00queue_index_inc();
 0)               |      rt2x00usb_clear_entry() {
 0)               |        rt2x00usb_kick_rx_entry() {
 0)               |          rt2x00lib_dmastart() {
 0)   0.000 us    |            rt2x00queue_index_inc();
 0)   0.000 us    |          }
 0)               |          rt2x00lib_dmadone() {
 0)   0.000 us    |            rt2x00queue_index_inc();
 0)   0.000 us    |          }
 0)   0.000 us    |        }
 0)   0.000 us    |      }
 0)   0.000 us    |    }

> 
> Thanks
> Stanislaw

  parent reply	other threads:[~2017-11-07 11:13 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-06 15:57 Soft lockup in rt2x00usb_work_rxdone() Richard Genoud
2017-11-07  8:53 ` Stanislaw Gruszka
2017-11-07 10:06   ` Richard Genoud
2017-11-07 10:13     ` Stanislaw Gruszka
2017-11-07 11:01       ` Richard Genoud
2017-11-08 10:37         ` Stanislaw Gruszka
2017-11-08 11:07           ` Richard Genoud
2017-11-08 11:35             ` Stanislaw Gruszka
2017-11-09 10:54             ` Stanislaw Gruszka
2017-11-07 11:13       ` Richard Genoud [this message]
2017-11-08 10:41         ` Stanislaw Gruszka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1510053227.24015.3.camel@gmail.com \
    --to=richard.genoud@gmail.com \
    --cc=helmut.schaa@googlemail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=sgruszka@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.