The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: kernel test robot <oliver.sang@intel.com>
To: John <therealgraysky@proton.me>
Cc: <oe-lkp@lists.linux.dev>, <lkp@intel.com>,
	<linux-kernel@vger.kernel.org>,
	Thomas Gleixner <tglx@linutronix.de>,
	Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
	Dave Hansen <dave.hansen@linux.intel.com>,
	Unknown <x86@kernel.org>, "H. Peter Anvin" <hpa@zytor.com>,
	<oliver.sang@intel.com>
Subject: Re: [PATCH] x86: add more x86-64 micro-architecture levels
Date: Tue, 24 Sep 2024 15:00:29 +0800	[thread overview]
Message-ID: <202409241436.b37a069e-oliver.sang@intel.com> (raw)
In-Reply-To: <W22JX8eWQctCiWIDKGjx4IUU4ZgYmKa1zPOZSKHHVZ74zpUEmVV1VoPMMNcyc-zhraUayW0d4d7OIUYZHuiEqllnAc1tB8DthZahsHZuw0Y=@proton.me>


hi,

we don't have enough knowledge how this commit causing the random early crash
issue as report below.

we noticed the config has below diff comparing to parent.

--- /pkg/linux/x86_64-randconfig-016-20240921/clang-18/70ad4cfb4d4a9f97afd7ba12ae5c4a62e719aa44/.config 2024-09-23 14:10:14.423097567 +0800
+++ /pkg/linux/x86_64-randconfig-016-20240921/clang-18/178c2862ab0388f7de1ca23b7b4718e09d8acc24/.config 2024-09-23 13:13:36.831871815 +0800
@@ -350,14 +350,19 @@ CONFIG_PVH=y
 CONFIG_PARAVIRT_CLOCK=y
 # CONFIG_JAILHOUSE_GUEST is not set
 CONFIG_ACRN_GUEST=y
-CONFIG_MK8=y
+# CONFIG_MK8 is not set
 # CONFIG_MPSC is not set
 # CONFIG_MCORE2 is not set
 # CONFIG_MATOM is not set
 # CONFIG_GENERIC_CPU is not set
+# CONFIG_MAMD_CPU_V2 is not set
+# CONFIG_MAMD_CPU_V3 is not set
+CONFIG_MAMD_CPU_V4=y
+# CONFIG_MINTEL_CPU_V2 is not set
+# CONFIG_MINTEL_CPU_V3 is not set
+# CONFIG_MINTEL_CPU_V4 is not set
 CONFIG_X86_INTERNODE_CACHE_SHIFT=6
 CONFIG_X86_L1_CACHE_SHIFT=6
-CONFIG_X86_INTEL_USERCOPY=y
 CONFIG_X86_USE_PPRO_CHECKSUM=y
 CONFIG_X86_TSC=y
 CONFIG_X86_HAVE_PAE=y


early crash happens 70 times out of 500 runs.
for parent, keeps clean when we run same tests almost 1000 times.

70ad4cfb4d4a9f97 178c2862ab0388f7de1ca23b7b4
---------------- ---------------------------
       fail:runs  %reproduction    fail:runs
           |             |             |
           :991          7%          70:500   dmesg.BUG:kernel_failed_in_early-boot_stage,last_printk:early_console_in_setup_code

just FYI what we observed in our tests.



Hello,

kernel test robot noticed "BUG:kernel_failed_in_early-boot_stage,last_printk:early_console_in_setup_code" on:

commit: 178c2862ab0388f7de1ca23b7b4718e09d8acc24 ("[PATCH] x86: add more x86-64 micro-architecture levels")
url: https://github.com/intel-lab-lkp/linux/commits/John/x86-add-more-x86-64-micro-architecture-levels/20240915-190636
base: https://git.kernel.org/cgit/linux/kernel/git/tip/tip.git 70ad4cfb4d4a9f97afd7ba12ae5c4a62e719aa44
patch link: https://lore.kernel.org/all/W22JX8eWQctCiWIDKGjx4IUU4ZgYmKa1zPOZSKHHVZ74zpUEmVV1VoPMMNcyc-zhraUayW0d4d7OIUYZHuiEqllnAc1tB8DthZahsHZuw0Y=@proton.me/
patch subject: [PATCH] x86: add more x86-64 micro-architecture levels

in testcase: trinity
version: trinity-i386-abe9de86-1_20230429
with following parameters:

	runtime: 300s
	group: group-04
	nr_groups: 5



compiler: clang-18
test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 16G

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



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/202409241436.b37a069e-oliver.sang@intel.com


early console in setup code
convert early boot stage from hang to failed
BUG: kernel failed in early-boot stage, last printk: early console in setup code
Linux version 6.11.0-rc7-00546-g178c2862ab03 #1
Command line: ip=::::vm-meta-98::dhcp root=/dev/ram0 RESULT_ROOT=/result/trinity/group-04-5-300s/vm-snb/debian-11.1-i386-20220923.cgz/x86_64-randconfig-016-20240921/clang-18/178c2862ab0388f7de1ca23b7b4718e09d8acc24/454 BOOT_IMAGE=/pkg/linux/x86_64-randconfig-016-20240921/clang-18/178c2862ab0388f7de1ca23b7b4718e09d8acc24/vmlinuz-6.11.0-rc7-00546-g178c2862ab03 branch=linux-devel/devel-hourly-20240921-005829 job=/lkp/jobs/scheduled/vm-meta-98/trinity-group-04-5-300s-debian-11.1-i386-20220923.cgz-x86_64-randconfig-016-20240921-178c2862ab03-20240923-37395-1iv09pj-434.yaml user=lkp ARCH=x86_64 kconfig=x86_64-randconfig-016-20240921 commit=178c2862ab0388f7de1ca23b7b4718e09d8acc24 intremap=posted_msi vmalloc=256M initramfs_async=0 page_owner=on carrier_timeout=60 max_uptime=1200 LKP_SERVER=internal-lkp-server selinux=0 debug apic=debug sysrq_always_enabled rcupdate.rcu_cpu_stall_timeout=100 net.ifnames=0 printk.devkmsg=on panic=-1 softlockup_panic=1 nmi_watchdog=panic oops=panic load_ramdisk=2 prompt_ramdisk=0 drbd.minor_count=8 systemd.log_level=err ignore_loglevel console=tty0 earlyprintk=ttyS0,115200 console=ttyS0,115200 vga=normal rw rcuperf.shutdown=0 rcuscale.shutdown=0 refscale.shutdown=0 watchdog_thresh=240 audit=0 kunit.enable=0 ia32_emulation=on riscv_isa_fallback=1

Kboot worker: lkp-worker22
Elapsed time: 600


The kernel config and materials to reproduce are available at:
https://download.01.org/0day-ci/archive/20240924/202409241436.b37a069e-oliver.sang@intel.com



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


  parent reply	other threads:[~2024-09-24  7:01 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-15 11:05 [PATCH] x86: add more x86-64 micro-architecture levels John
2024-09-15 11:40 ` Dave Hansen
2024-09-15 12:25   ` John
2024-09-15 12:58     ` Dave Hansen
2024-09-15 18:42   ` John
2024-09-17 18:22     ` John
2024-09-17 18:45       ` H. Peter Anvin
2024-09-15 12:49 ` Borislav Petkov
2024-09-15 12:53   ` Dave Hansen
2024-09-17 21:33   ` Hanabishi
2024-09-18 19:02     ` John
2024-09-18 20:25       ` Hanabishi
2024-09-18 21:14         ` John
2024-09-18 21:48           ` Hanabishi
2024-09-18 23:07             ` John
2024-09-16  5:14 ` WangYuli
2024-09-24  7:00 ` kernel test robot [this message]
2024-09-24 13:38   ` Dave Hansen
2024-09-24 17:40   ` John
2024-09-26  1:43     ` Oliver Sang

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=202409241436.b37a069e-oliver.sang@intel.com \
    --to=oliver.sang@intel.com \
    --cc=bp@alien8.de \
    --cc=dave.hansen@linux.intel.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=mingo@redhat.com \
    --cc=oe-lkp@lists.linux.dev \
    --cc=tglx@linutronix.de \
    --cc=therealgraysky@proton.me \
    --cc=x86@kernel.org \
    /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