mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <oliver.sang@intel.com>
To: Yaxiong Tian <tianyaxiong@kylinos.cn>
Cc: <oe-lkp@lists.linux.dev>, <lkp@intel.com>,
	Shaobo Huang <huangshaobo2075@phytium.com.cn>,
	Yinfeng Wang <wangyinfeng@phytium.com.cn>,
	<linux-acpi@vger.kernel.org>, <acpica-devel@lists.linux.dev>,
	<rafael@kernel.org>, <daniel.lezcano@linaro.org>,
	<lenb@kernel.org>, <robert.moore@intel.com>,
	<linux-pm@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	Yaxiong Tian <tianyaxiong@kylinos.cn>,
	"Xu Wang" <wangxu@phytium.com.cn>, <oliver.sang@intel.com>
Subject: Re: [PATCH 2/2] ACPI: processor: idle: Replace single idle driver with per-CPU model for better hybrid CPU support
Date: Wed, 13 Aug 2025 22:25:12 +0800	[thread overview]
Message-ID: <202508131628.5bcb2ed6-lkp@intel.com> (raw)
In-Reply-To: <20250811072723.762608-1-tianyaxiong@kylinos.cn>



Hello,

kernel test robot noticed "BUG:using_smp_processor_id()in_preemptible" on:

commit: 91c8bbe586854e1485070da49806a93599f7636f ("[PATCH 2/2] ACPI: processor: idle: Replace single idle driver with per-CPU model for better hybrid CPU support")
url: https://github.com/intel-lab-lkp/linux/commits/Yaxiong-Tian/cpuidle-Add-interface-to-get-cpuidle_driver-by-CPU-ID/20250811-153002
base: https://git.kernel.org/cgit/linux/kernel/git/rafael/linux-pm.git linux-next
patch link: https://lore.kernel.org/all/20250811072723.762608-1-tianyaxiong@kylinos.cn/
patch subject: [PATCH 2/2] ACPI: processor: idle: Replace single idle driver with per-CPU model for better hybrid CPU support

in testcase: boot

config: i386-randconfig-004-20250812
compiler: gcc-12
test machine: qemu-system-i386 -enable-kvm -cpu SandyBridge -smp 2 -m 4G

(please refer to attached dmesg/kmsg for entire log/backtrace)


+--------------------------------------------+------------+------------+
|                                            | 664e805e14 | 91c8bbe586 |
+--------------------------------------------+------------+------------+
| BUG:using_smp_processor_id()in_preemptible | 0          | 12         |
+--------------------------------------------+------------+------------+


If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <oliver.sang@intel.com>
| Closes: https://lore.kernel.org/oe-lkp/202508131628.5bcb2ed6-lkp@intel.com


[    9.129755][    T1] BUG: using smp_processor_id() in preemptible [00000000] code: swapper/0/1
[ 9.131211][ T1] caller is debug_smp_processor_id (lib/smp_processor_id.c:61) 
[    9.132199][    T1] CPU: 1 UID: 0 PID: 1 Comm: swapper/0 Not tainted 6.16.0-rc7-00167-g91c8bbe58685 #1 PREEMPTLAZY  2350dfb9c96e1334949e3e2979039571c1c27191
[    9.132205][    T1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
[    9.132208][    T1] Call Trace:
[ 9.132212][ T1] dump_stack_lvl (lib/dump_stack.c:123) 
[ 9.132218][ T1] dump_stack (lib/dump_stack.c:130) 
[ 9.132224][ T1] check_preemption_disabled (arch/x86/include/asm/preempt.h:85 lib/smp_processor_id.c:53) 
[ 9.132233][ T1] debug_smp_processor_id (lib/smp_processor_id.c:61) 
[ 9.132237][ T1] acpi_idle_rescan_dead_smt_siblings (drivers/acpi/processor_idle.c:59) 
[ 9.132246][ T1] acpi_processor_driver_init (drivers/acpi/processor_driver.c:286) 
[ 9.132252][ T1] ? acpi_processor_stop (drivers/acpi/processor_driver.c:132) 
[ 9.132259][ T1] do_one_initcall (init/main.c:1274) 
[ 9.132263][ T1] ? acpi_fan_driver_init (drivers/acpi/processor_driver.c:251) 
[ 9.132287][ T1] do_initcalls (init/main.c:1335 init/main.c:1352) 
[ 9.132297][ T1] kernel_init_freeable (init/main.c:1588) 
[ 9.132299][ T1] ? rest_init (init/main.c:1466) 
[ 9.132302][ T1] kernel_init (init/main.c:1476) 
[ 9.132305][ T1] ret_from_fork (arch/x86/kernel/process.c:154) 
[ 9.132309][ T1] ? rest_init (init/main.c:1466) 
[ 9.132315][ T1] ret_from_fork_asm (arch/x86/entry/entry_32.S:737) 
[ 9.132319][ T1] entry_INT80_32 (arch/x86/entry/entry_32.S:945) 


The kernel config and materials to reproduce are available at:
https://download.01.org/0day-ci/archive/20250813/202508131628.5bcb2ed6-lkp@intel.com



-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


      reply	other threads:[~2025-08-13 14:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-11  7:23 [PATCH 0/2] ACPI: processor: idle: Per-CPU idle driver for hybrid CPUs Yaxiong Tian
2025-08-11  7:27 ` [PATCH 1/2] cpuidle: Add interface to get cpuidle_driver by CPU ID Yaxiong Tian
2025-08-11  7:27 ` [PATCH 2/2] ACPI: processor: idle: Replace single idle driver with per-CPU model for better hybrid CPU support Yaxiong Tian
2025-08-13 14:25   ` kernel test robot [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=202508131628.5bcb2ed6-lkp@intel.com \
    --to=oliver.sang@intel.com \
    --cc=acpica-devel@lists.linux.dev \
    --cc=daniel.lezcano@linaro.org \
    --cc=huangshaobo2075@phytium.com.cn \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=oe-lkp@lists.linux.dev \
    --cc=rafael@kernel.org \
    --cc=robert.moore@intel.com \
    --cc=tianyaxiong@kylinos.cn \
    --cc=wangxu@phytium.com.cn \
    --cc=wangyinfeng@phytium.com.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®