linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
To: David Runge <dave@sleepmap.de>,
	Kristian Hoegsberg <krh@bitplanet.net>,
	linux1394-devel@lists.sourceforge.net,
	linux-rt-users@vger.kernel.org,
	"Ahmed S. Darwish" <a.darwish@linutronix.de>
Subject: Re: firewire-ohci fails to initialize Texas Instruments XIO2213A/B/XIO2221 based controller on realtime kernels [5.4.91-rt50, 5.10.8-rt24]
Date: Fri, 10 Sep 2021 13:55:41 +0200	[thread overview]
Message-ID: <20210910115541.jjf3fovv4v3etvde@linutronix.de> (raw)
In-Reply-To: <YTgdLkTs7wEmj8fh@workstation>

On 2021-09-08 11:17:18 [+0900], Takashi Sakamoto wrote:
> Hi,
Hi,

> According to the log, the task of 'pipewire-media-:2554' is blocked during
> 122 seconds by call of 'wait_for_completion()' in code of
> 'fw_run_transaction()'. This is odd in two points of transaction service
> programmed in Linux FireWire subsystem:
> 
> 1. The process context should be awakened by softIRQ context, which should
>    be scheduled by hwIRQ context for hardware interrupt of OHCI 1394
>    controller.
> 2. Even if the softIRQ context is not invoked, the process context
>    should be awakened by wheel timer context, which is scheduled to finish
>    the transaction several jiffies later (originally prepared for the case
>    of split-transaction). In the case, the result of transaction is
>    'RCODE_CANCELLED'.


Side note: David is using PREEMPT_RT and his problem can be reduced to
plain vanilla with `threadirqs' boot option. Back in February I sent him
a patch [0] which inlines the tasklet job as I assumed it is not good
reset the IRQ-event in the tasklet/workqueue. It seemed to improve the
situtation as it recognized the device attached to the bus but ended
then in the same timeout behaviour as now.

[0] https://https://lkml.kernel.org/r/.kernel.org/all/20210218083849.iitcrhdgv2oajfhv@linutronix.de/

> Thanks
> 
> Takashi Sakamoto

Sebastian

  parent reply	other threads:[~2021-09-10 11:55 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-23 11:59 firewire-ohci fails to initialize Texas Instruments XIO2213A/B/XIO2221 based controller on realtime kernels [5.4.91-rt50, 5.10.8-rt24] David Runge
2021-01-28  6:28 ` Ahmed S. Darwish
2021-01-28 21:41   ` David Runge
2021-01-29 17:04     ` Sebastian Andrzej Siewior
2021-01-30 11:46       ` David Runge
2021-02-01  8:34         ` Sebastian Andrzej Siewior
2021-02-05 11:26           ` Sebastian Andrzej Siewior
2021-02-05 23:22             ` David Runge
2021-02-07  9:58               ` David Runge
2021-02-08  9:19                 ` Sebastian Andrzej Siewior
2021-02-14 19:16                   ` David Runge
2021-02-18  8:38                     ` Sebastian Andrzej Siewior
2021-02-18  9:27                       ` Sebastian Andrzej Siewior
2021-03-08 14:12                         ` Sebastian Andrzej Siewior
2021-03-10 18:15                           ` David Runge
2021-09-07 23:17                             ` David Runge
2021-09-08  2:17                               ` Takashi Sakamoto
2021-09-08 17:30                                 ` David Runge
2021-09-09  0:46                                   ` Takashi Sakamoto
2021-09-12 18:44                                     ` David Runge
2021-09-10 11:55                                 ` Sebastian Andrzej Siewior [this message]
2021-09-11  9:46                                   ` Takashi Sakamoto
2021-09-12 18:53                                     ` David Runge
2022-01-05 21:01                                       ` Holger Dehnhardt

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=20210910115541.jjf3fovv4v3etvde@linutronix.de \
    --to=bigeasy@linutronix.de \
    --cc=a.darwish@linutronix.de \
    --cc=dave@sleepmap.de \
    --cc=krh@bitplanet.net \
    --cc=linux-rt-users@vger.kernel.org \
    --cc=linux1394-devel@lists.sourceforge.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).