linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: srinivas pandruvada <srinivas.pandruvada@linux.intel.com>
To: Jiri Kosina <jikos@kernel.org>, Zhang Lixu <lixu.zhang@intel.com>
Cc: linux-input@vger.kernel.org, benjamin.tissoires@redhat.com,
	 selina.wang@intel.com
Subject: Re: [PATCH] HID: intel-ish-hid: Use dedicated unbound workqueues to prevent resume blocking
Date: Tue, 14 Oct 2025 09:26:31 -0700	[thread overview]
Message-ID: <3396dd7eecd24a95d63f3ae6655c3efa553028cf.camel@linux.intel.com> (raw)
In-Reply-To: <0r41p984-7qq4-4qp9-s175-1o8q6o7999o8@xreary.bet>

On Tue, 2025-10-14 at 15:19 +0200, Jiri Kosina wrote:
> On Fri, 10 Oct 2025, Zhang Lixu wrote:
> 
> > During suspend/resume tests with S2IDLE, some ISH functional
> > failures were
> > observed because of delay in executing ISH resume handler. Here
> > schedule_work() is used from resume handler to do actual work.
> > schedule_work() uses system_wq, which is a per CPU work queue.
> > Although
> > the queuing is not bound to a CPU, but it prefers local CPU of the
> > caller,
> > unless prohibited.
> > 
> > Users of this work queue are not supposed to queue long running
> > work.
> > But in practice, there are scenarios where long running work items
> > are
> > queued on other unbound workqueues, occupying the CPU. As a result,
> > the
> > ISH resume handler may not get a chance to execute in a timely
> > manner.
> > 
> > In one scenario, one of the ish_resume_handler() executions was
> > delayed
> > nearly 1 second because another work item on an unbound workqueue
> > occupied
> > the same CPU. This delay causes ISH functionality failures.
> > 
> > A similar issue was previously observed where the ISH HID driver
> > timed out
> > while getting the HID descriptor during S4 resume in the recovery
> > kernel,
> > likely caused by the same workqueue contention problem.
> > 
> > Create dedicated unbound workqueues for all ISH operations to allow
> > work
> > items to execute on any available CPU, eliminating CPU-specific
> > bottlenecks
> > and improving resume reliability under varying system loads. Also
> > ISH has
> > three different components, a bus driver which implements ISH
> > protocols, a
> > PCI interface layer and HID interface. Use one dedicated work queue
> > for all
> > of them.
> > 
> > Signed-off-by: Zhang Lixu <lixu.zhang@intel.com>
> 
> How serious / widespread / easy to trigger is the issue? My reading
> of 
> this is that it should be merged still in this cycle (i.e. for 6.18),
> but 
> I'd like to have that confirmed.

I don't think we notice this issue in our regular cyclic tests of 100s
of cycles. So I think this can wait. Lixu, what do you think?

Thanks,
Srinivas


> 
> Thanks,

  reply	other threads:[~2025-10-14 16:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-10  5:52 [PATCH] HID: intel-ish-hid: Use dedicated unbound workqueues to prevent resume blocking Zhang Lixu
2025-10-14 13:19 ` Jiri Kosina
2025-10-14 16:26   ` srinivas pandruvada [this message]
2025-10-15  1:15     ` Zhang, Lixu
2025-10-15 14:08       ` Jiri Kosina
2025-10-16  0:42         ` Zhang, Lixu
2025-10-16  8:27           ` Jiri Kosina
2025-10-17  0:52             ` Zhang, Lixu
2025-10-17 15:47 ` Jiri Kosina

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=3396dd7eecd24a95d63f3ae6655c3efa553028cf.camel@linux.intel.com \
    --to=srinivas.pandruvada@linux.intel.com \
    --cc=benjamin.tissoires@redhat.com \
    --cc=jikos@kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=lixu.zhang@intel.com \
    --cc=selina.wang@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;
as well as URLs for NNTP newsgroup(s).