public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Cc: Kai Vehmanen <kai.vehmanen@intel.com>,
	intel-gfx <intel-gfx@lists.freedesktop.org>,
	lucas.demarchi@intel.com,
	dri-devel <dri-devel@lists.freedesktop.org>,
	Takashi Iwai <tiwai@suse.de>
Subject: Re: [Intel-gfx] [PATCH 2/2] hda/i915: split the wait for the component binding
Date: Fri, 25 Feb 2022 12:42:51 +0100	[thread overview]
Message-ID: <s5hbkyvuq84.wl-tiwai@suse.de> (raw)
In-Reply-To: <alpine.DEB.2.22.394.2202241820490.3088432@eliteleevi.tm.intel.com>

On Thu, 24 Feb 2022 17:34:54 +0100,
Kai Vehmanen wrote:
> 
> Hi,
> 
> On Thu, 24 Feb 2022, Ramalingam C wrote:
> 
> > Split the wait for component binding from i915 in multiples of
> > sysctl_hung_task_timeout_secs. This helps to avoid the possible kworker
> > thread hung detection given below.
> 
> while I understand the problem, I'm not sure whether a simpler option
> should be chosen. Maybe just split the wait_for_completion_timeout()
> into small 5sec iterations, without consulting value of hung_task_timeout.
> This would seem unligned with more mainstream use of 
> wait_for_completion_timeout() in kernel and still do the job.
> 
> I'll loop in Takashi here as well. Basicly the 60 sec timeout in 
> hda/hdac_i915.c is getting caught by hung_task_detection logic in builds
> where the hung_task_timeout is below 60secs.
> 
> I have a patch that tries to avoid hitting the timeout in some of the more 
> common cases:
> "ALSA: hda/i915 - skip acomp init if no matching display"
> https://lists.freedesktop.org/archives/intel-gfx-trybot/2022-February/128278.html
> ... but we'll still be stuck with some configurations where the timeout 
> will be hit. And above needs careful testing.
> 
> One logic comment below as well, but I'll quote the whole patch to give
> context to Takashi.

I agree with Kai, we can just make the wait_for_completion_timeout()
split in a loop independently from hung_task_timeout.  It's simpler,
less error-prone.


thanks,

Takashi

  reply	other threads:[~2022-02-25 11:42 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-23 19:52 [Intel-gfx] [PATCH 0/2] hda/i915: split wait for component binding Ramalingam C
2022-02-23 19:52 ` [Intel-gfx] [PATCH 1/2] kernel/hung_task: Exporting sysctl_hung_task_timeout_secs Ramalingam C
2022-02-24 16:33   ` Lucas De Marchi
2022-02-23 19:52 ` [Intel-gfx] [PATCH 2/2] hda/i915: split the wait for the component binding Ramalingam C
2022-02-24 16:34   ` Kai Vehmanen
2022-02-25 11:42     ` Takashi Iwai [this message]
2022-02-24 17:13   ` Lucas De Marchi
2022-02-24 14:52 ` [Intel-gfx] ✓ Fi.CI.BAT: success for hda/i915: split wait for " Patchwork
2022-02-25  4:21 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork

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=s5hbkyvuq84.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=kai.vehmanen@intel.com \
    --cc=kai.vehmanen@linux.intel.com \
    --cc=lucas.demarchi@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox