Linux IOMMU Development
 help / color / mirror / Atom feed
From: Hillf Danton <hdanton@sina.com>
To: Peng Zhang <zhangpeng.00@bytedance.com>
Cc: robin.murphy@arm.com, joro@8bytes.org, will@kernel.org,
	iommu@lists.linux.dev, linux-kernel@vger.kernel.org,
	Li Bin <huawei.libin@huawei.com>, Xie XiuQi <xiexiuqi@huawei.com>,
	Yang Yingliang <yangyingliang@huawei.com>
Subject: Re: [PATCH] iommu: Avoid softlockup and rcu stall in fq_flush_timeout().
Date: Thu, 16 Feb 2023 16:49:02 +0800	[thread overview]
Message-ID: <20230216084902.1486-1-hdanton@sina.com> (raw)
In-Reply-To: <20230216071148.2060-1-zhangpeng.00@bytedance.com>

On Thu, 16 Feb 2023 15:11:48 +0800 Peng Zhang <zhangpeng.00@bytedance.com>
> There is softlockup under fio pressure test with smmu enabled:
> watchdog: BUG: soft lockup - CPU#81 stuck for 22s!  [swapper/81:0]

What is your kernel version?

> This is because the timer callback fq_flush_timeout may run more than
> 10ms, and timer may be processed continuously in the softirq so trigger
> softlockup and rcu stall. We can use work to deal with fq_ring_free for
> each cpu which may take long time, that to avoid triggering softlockup
> and rcu stall.
> 
> This patch is modified from the patch[1] of openEuler.

Because of a timer hog observed on your system with 128 CPUs for instance
does it make any sense to ask Peter to apply the patch for his 2-CPU box?

  reply	other threads:[~2023-02-16  8:49 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-16  7:11 [PATCH] iommu: Avoid softlockup and rcu stall in fq_flush_timeout() Peng Zhang
2023-02-16  8:49 ` Hillf Danton [this message]
2023-02-16 11:02   ` Peng Zhang
2023-02-16 11:44     ` Hillf Danton
2023-04-10 22:22 ` Jerry Snitselaar
2023-04-18 10:41   ` Vasant Hegde
2023-04-28  5:44     ` Vasant Hegde
2023-05-22 14:58       ` Joerg Roedel
2023-05-22 15:18         ` Jerry Snitselaar
2023-05-22 15:35           ` John Garry

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=20230216084902.1486-1-hdanton@sina.com \
    --to=hdanton@sina.com \
    --cc=huawei.libin@huawei.com \
    --cc=iommu@lists.linux.dev \
    --cc=joro@8bytes.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robin.murphy@arm.com \
    --cc=will@kernel.org \
    --cc=xiexiuqi@huawei.com \
    --cc=yangyingliang@huawei.com \
    --cc=zhangpeng.00@bytedance.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