From: Marco Crivellari <marco.crivellari@suse.com>
To: loongarch@lists.linux.dev, linux-kernel@vger.kernel.org
Cc: Huacai Chen <chenhuacai@kernel.org>,
WANG Xuerui <kernel@xen0n.name>,
Frederic Weisbecker <frederic@kernel.org>,
Jinyang He <hejinyang@loongson.cn>,
Marco Crivellari <marco.crivellari@suse.com>,
Tiezhu Yang <yangtiezhu@loongson.cn>,
Jiaxun Yang <jiaxun.yang@flygoat.com>,
Bibo Mao <maobibo@loongson.cn>
Subject: [PATCH v2 0/1] loongson: Fix idle VS timer enqueue
Date: Sat, 8 Feb 2025 11:19:23 +0100 [thread overview]
Message-ID: <20250208101924.20743-1-marco.crivellari@suse.com> (raw)
This patch aim to fix issues if timers are queued because __arch_cpu_idle()
only checks if TIF_NEED_RESCHED is set before going to sleep.
Changes are described in [1], and [2] improve the patch further.
The following patch is the result of [1] and [2] combined.
Code compiled successfully, but I couldn't test the changes because of some
trouble emulating a loongarch machine; I tried to boot with and without
this patch, but a panic occurred, due likely to a wrong VM configuration
(panic occurred right after the i8042 probing).
- [1] https://lore.kernel.org/all/20230811170049.308866-5-frederic@kernel.org/#t
- [2] https://lore.kernel.org/all/06cf8750-901d-2f65-fb9e-81980688e017@loongson.cn/
---
Changes in v2:
- arch/loongarch/kernel/genex.S: code improved as suggested by Huacai:
https://lore.kernel.org/loongarch/CAAhV-H6OKwmxhF_iWJEc8OEZ==h8dTdorTwkE8oMUMWAbU6xeg@mail.gmail.com/
- arch/loongarch/kernel/reset.c: asm inline inside the while loops
Marco Crivellari (1):
loongson: Fix idle VS timer enqueue
arch/loongarch/kernel/genex.S | 31 +++++++++++++++++--------------
arch/loongarch/kernel/idle.c | 3 +--
arch/loongarch/kernel/reset.c | 18 +++++++++---------
3 files changed, 27 insertions(+), 25 deletions(-)
--
2.48.1
next reply other threads:[~2025-02-08 10:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-08 10:19 Marco Crivellari [this message]
2025-02-08 10:19 ` [PATCH v2 1/1] [PATCH] " Marco Crivellari
2025-02-09 19:08 ` kernel test robot
2025-02-10 2:19 ` Huacai Chen
2025-02-10 8:27 ` Marco Crivellari
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=20250208101924.20743-1-marco.crivellari@suse.com \
--to=marco.crivellari@suse.com \
--cc=chenhuacai@kernel.org \
--cc=frederic@kernel.org \
--cc=hejinyang@loongson.cn \
--cc=jiaxun.yang@flygoat.com \
--cc=kernel@xen0n.name \
--cc=linux-kernel@vger.kernel.org \
--cc=loongarch@lists.linux.dev \
--cc=maobibo@loongson.cn \
--cc=yangtiezhu@loongson.cn \
/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
all inboxes | Powered by JetHome®