From: "lihuisong (C)" <lihuisong@huawei.com>
To: <AmandeepKaur.Longia@amd.com>
Cc: <linux-acpi@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<linuxarm@huawei.com>, <jonathan.cameron@huawei.com>,
<zhanjie9@hisilicon.com>, <zhenglifeng1@huawei.com>,
<yubowen8@huawei.com>, <zhangpengjie2@huawei.com>,
<wangzhi12@huawei.com>, <prime.zeng@hisilicon.com>,
<lenb@kernel.org>, <bp@alien8.de>, <rafael@kernel.org>
Subject: Re: [PATCH v1 0/6] ACPI: processor: Recovery some reverted patches
Date: Wed, 7 Jan 2026 18:21:35 +0800 [thread overview]
Message-ID: <026561ca-8aca-4585-92f9-d1b65fd32b5c@huawei.com> (raw)
In-Reply-To: <20251223100914.2407069-1-lihuisong@huawei.com>
Hi Amandeep,
Could you help test this series on your platform?
It would be perfect if has your Tested-by.
/Huisong
在 2025/12/23 18:09, Huisong Li 写道:
> This series of patches have been reverted due to the crash issue reported
> by Borislav [1] and a missing cpuidle sysfs directory reported by Amandeep.
>
> The root cause was commit 7a8c994cbb2d (ACPI: processor: idle: Optimize
> ACPI idle driver registration). Since the other patches in the series
> depended on this commit, they were also reverted.
>
> I have analyzed these issues and implemented the following fixes:
> Fix for the Crash:
> The crash occurred because 'max_cstate' (which defaults to 8) was not
> updated before the ACPI idle states were initialized. As a result, the idle
> driver believed multiple C-states were available, but only the state with
> index 1 was actually initialized in the per-CPU acpi_cstate array. When the
> cpuidle governor tried to access a C-state index greater than 1, it hit a
> NULL pointer.
> Patch 1/6 fixes this by adding acpi_processor_cstate_first_run_checks() to
> update 'max_cstate' before initialization.
>
> Fix for missing /sys/devices/system/cpu/cpu*/cpuidle directory:
> The previous optimization depended on an external patch [2]. In kernel versions
> without that patch, acpi_processor_start() was being called before the ACPI idle
> driver had finished registering. This caused the cpuidle device registration
> to fail, resulting in the missing directory.
> Patch 1/6 fixes this by moving acpi_processor_register_idle_driver() ahead of
> the acpi_processor_driver registration.
>
> Note:
> In this series, only patch 1/6 has been modified to address these bugs, more
> detail changes please see the commit. Patches 2-6/6 remain identical to the
> versions that were previously merged.
>
> [1] https://lore.kernel.org/lkml/20251124200019.GIaSS5U9HhsWBotrQZ@fat_crate.local/
> [2] https://lore.kernel.org/all/20240529133446.28446-2-Jonathan.Cameron@huawei.com/
>
> Huisong Li (4):
> ACPI: processor: idle: Optimize ACPI idle driver registration
> ACPI: processor: Remove unused empty stubs of some functions
> ACPI: processor: idle: Rearrange declarations in header file
> ACPI: processor: Do not expose global variable acpi_idle_driver
>
> Rafael J. Wysocki (2):
> ACPI: processor: Update cpuidle driver check in
> __acpi_processor_start()
> ACPI: processor: idle: Redefine two functions as void
>
> drivers/acpi/processor_driver.c | 13 +++-
> drivers/acpi/processor_idle.c | 116 +++++++++++++++++++-------------
> include/acpi/processor.h | 34 ++--------
> 3 files changed, 86 insertions(+), 77 deletions(-)
>
prev parent reply other threads:[~2026-01-07 10:21 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-23 10:09 Huisong Li
2025-12-23 10:09 ` [PATCH v1 1/6] ACPI: processor: idle: Optimize ACPI idle driver registration Huisong Li
2025-12-23 10:09 ` [PATCH v1 2/6] ACPI: processor: Remove unused empty stubs of some functions Huisong Li
2025-12-23 10:09 ` [PATCH v1 3/6] ACPI: processor: Update cpuidle driver check in __acpi_processor_start() Huisong Li
2025-12-23 10:09 ` [PATCH v1 4/6] ACPI: processor: idle: Redefine two functions as void Huisong Li
2025-12-23 10:09 ` [PATCH v1 5/6] ACPI: processor: idle: Rearrange declarations in header file Huisong Li
2025-12-23 10:09 ` [PATCH v1 6/6] ACPI: processor: Do not expose global variable acpi_idle_driver Huisong Li
2025-12-24 2:05 ` [PATCH v1 0/6] ACPI: processor: Recovery some reverted patches Borislav Petkov
2026-01-02 10:18 ` Borislav Petkov
2026-01-04 9:57 ` lihuisong (C)
2026-01-09 21:40 ` Rafael J. Wysocki
2026-01-07 10:21 ` lihuisong (C) [this message]
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=026561ca-8aca-4585-92f9-d1b65fd32b5c@huawei.com \
--to=lihuisong@huawei.com \
--cc=AmandeepKaur.Longia@amd.com \
--cc=bp@alien8.de \
--cc=jonathan.cameron@huawei.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxarm@huawei.com \
--cc=prime.zeng@hisilicon.com \
--cc=rafael@kernel.org \
--cc=wangzhi12@huawei.com \
--cc=yubowen8@huawei.com \
--cc=zhangpengjie2@huawei.com \
--cc=zhanjie9@hisilicon.com \
--cc=zhenglifeng1@huawei.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
all inboxes | Powered by JetHome®