From: Kurt Kanzenbach <kurt@linutronix.de>
To: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Jan Kiszka <jan.kiszka@siemens.com>,
Thomas Gleixner <tglx@linutronix.de>,
"Bouska, Zdenek" <zdenek.bouska@siemens.com>,
Will Deacon <will@kernel.org>,
Catalin Marinas <catalin.marinas@arm.com>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-rt-users@vger.kernel.org" <linux-rt-users@vger.kernel.org>,
Nishanth Menon <nm@ti.com>, Puranjay Mohan <p-mohan@ti.com>
Subject: Re: Unfair qspinlocks on ARM64 without LSE atomics => 3ms delay in interrupt handling
Date: Fri, 28 Apr 2023 09:37:03 +0200 [thread overview]
Message-ID: <87wn1wv4o0.fsf@kurt> (raw)
In-Reply-To: <20230428073016.YfrIGGoN@linutronix.de>
[-- Attachment #1: Type: text/plain, Size: 909 bytes --]
On Fri Apr 28 2023, Sebastian Andrzej Siewior wrote:
> On 2023-04-27 15:45:09 [+0200], Kurt Kanzenbach wrote:
>> > Are we aware of other concrete case where it bites? Even with just
>> > "normal" contented spin_lock usage?
>>
>> Well, some years ago I've observed a similar problem with ARM64
>> spinlocks, cpu_relax() and retry loops (in the futex code). It also
>> generated latency spikes up to 2-3ms. Back then, it was easily
>> reproducible using stress-ng --ptrace 4.
>
> That was fixed by
> https://patchwork.kernel.org/project/linux-arm-kernel/patch/1399528508-2806-1-git-send-email-arjun.kv@samsung.com
>
> if my memory serves me well.
We've had a different processor, but yes, we configured CPUACTLR_EL1[31]
to 1 in U-Boot to avoid any kernel modifications. Maybe it helps here
too?
Thanks,
Kurt
[1] - https://developer.arm.com/documentation/100095/0003/way1382037666700
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: Kurt Kanzenbach <kurt@linutronix.de>
To: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Jan Kiszka <jan.kiszka@siemens.com>,
Thomas Gleixner <tglx@linutronix.de>,
"Bouska, Zdenek" <zdenek.bouska@siemens.com>,
Will Deacon <will@kernel.org>,
Catalin Marinas <catalin.marinas@arm.com>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-rt-users@vger.kernel.org" <linux-rt-users@vger.kernel.org>,
Nishanth Menon <nm@ti.com>, Puranjay Mohan <p-mohan@ti.com>
Subject: Re: Unfair qspinlocks on ARM64 without LSE atomics => 3ms delay in interrupt handling
Date: Fri, 28 Apr 2023 09:37:03 +0200 [thread overview]
Message-ID: <87wn1wv4o0.fsf@kurt> (raw)
In-Reply-To: <20230428073016.YfrIGGoN@linutronix.de>
[-- Attachment #1.1: Type: text/plain, Size: 909 bytes --]
On Fri Apr 28 2023, Sebastian Andrzej Siewior wrote:
> On 2023-04-27 15:45:09 [+0200], Kurt Kanzenbach wrote:
>> > Are we aware of other concrete case where it bites? Even with just
>> > "normal" contented spin_lock usage?
>>
>> Well, some years ago I've observed a similar problem with ARM64
>> spinlocks, cpu_relax() and retry loops (in the futex code). It also
>> generated latency spikes up to 2-3ms. Back then, it was easily
>> reproducible using stress-ng --ptrace 4.
>
> That was fixed by
> https://patchwork.kernel.org/project/linux-arm-kernel/patch/1399528508-2806-1-git-send-email-arjun.kv@samsung.com
>
> if my memory serves me well.
We've had a different processor, but yes, we configured CPUACTLR_EL1[31]
to 1 in U-Boot to avoid any kernel modifications. Maybe it helps here
too?
Thanks,
Kurt
[1] - https://developer.arm.com/documentation/100095/0003/way1382037666700
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]
[-- Attachment #2: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2023-04-28 7:37 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-26 12:03 Unfair qspinlocks on ARM64 without LSE atomics => 3ms delay in interrupt handling Bouska, Zdenek
2023-04-26 21:29 ` Thomas Gleixner
2023-04-26 21:29 ` Thomas Gleixner
2023-04-27 9:38 ` Bouska, Zdenek
2023-04-27 9:38 ` Bouska, Zdenek
2023-04-27 10:06 ` Will Deacon
2023-04-27 10:06 ` Will Deacon
2023-04-27 13:14 ` Jan Kiszka
2023-04-27 13:14 ` Jan Kiszka
2023-04-27 13:45 ` Kurt Kanzenbach
2023-04-27 13:45 ` Kurt Kanzenbach
2023-04-28 7:30 ` Sebastian Andrzej Siewior
2023-04-28 7:30 ` Sebastian Andrzej Siewior
2023-04-28 7:37 ` Kurt Kanzenbach [this message]
2023-04-28 7:37 ` Kurt Kanzenbach
-- strict thread matches above, loose matches on Subject: below --
2023-03-24 8:43 Bouska, Zdenek
2023-03-24 8:43 ` Bouska, Zdenek
2023-03-24 17:01 ` Catalin Marinas
2023-03-24 17:01 ` Catalin Marinas
2023-03-24 18:09 ` Will Deacon
2023-03-24 18:09 ` Will Deacon
2023-03-28 9:39 ` Bouska, Zdenek
2023-03-28 9:39 ` Bouska, Zdenek
2023-03-27 5:44 ` Bouska, Zdenek
2023-03-27 5:44 ` Bouska, Zdenek
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=87wn1wv4o0.fsf@kurt \
--to=kurt@linutronix.de \
--cc=bigeasy@linutronix.de \
--cc=catalin.marinas@arm.com \
--cc=jan.kiszka@siemens.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rt-users@vger.kernel.org \
--cc=nm@ti.com \
--cc=p-mohan@ti.com \
--cc=tglx@linutronix.de \
--cc=will@kernel.org \
--cc=zdenek.bouska@siemens.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.