Discussion:
Bug#1076483: Call Trace on rt kernel, CPU Intel 13th Gen Intel(R) Core(TM) i5-1340P
Add Reply
xiao sheng wen
2024-07-17 03:00:01 UTC
Reply
Permalink
Package: src:linux
Version: 6.9.9-1
Severity: important
X-Debbugs-Cc: ***@sina.com

Hi,

rt kernel will has error infos in dmesg.

The normal kernel linux-image-6.9.9-amd64 has not these error infos in dmesg.

IMHO, it a bug of PREEMPT_RT realtime patch set in Debian rt kernel.


[ 1.592346] CPU: 3 PID: 0 Comm: swapper/3 Not tainted 6.9.9-rt-amd64 #1 Debian 6.9.9-1
[ 1.592347] Hardware name: LENOVO 21HD0078CD/21HD0078CD, BIOS N3QET46W (1.46 ) 06/04/2024
[ 1.592348] Call Trace:
[ 1.592350] <IRQ>
[ 1.592351] dump_stack_lvl+0x64/0x80
[ 1.592355] __schedule_bug+0x56/0x70
[ 1.592358] __schedule+0x928/0xb50
[ 1.592360] ? update_load_avg+0x7e/0x7e0
[ 1.592362] schedule_rtlock+0x1e/0x40
[ 1.592363] rtlock_slowlock_locked+0x21b/0xcf0
[ 1.592365] rt_spin_lock+0x42/0x60
[ 1.592366] notify_hwp_interrupt+0x81/0x110
[ 1.592369] intel_thermal_interrupt+0x17/0x2e0
[ 1.592371] __sysvec_thermal+0x20/0xd0
[ 1.592374] sysvec_thermal+0x6c/0x90
[ 1.592375] </IRQ>
[ 1.592376] <TASK>
[ 1.592376] asm_sysvec_thermal+0x1a/0x20
[ 1.592377] RIP: 0010:poll_idle+0x56/0xc0
[ 1.592379] Code: c0 55 5f 69 f0 80 4b 02 20 48 8b 03 a8 10 75 43 48 8b 03 a8 08 75 3c 4c 89 e7 4c 89 ee e8 32 ff ff ff 49 89 c4 b8 c9 00 00 00 <48> 8b 13 83 e2 10 75 21 48 8b 13 83 e2 08 75 19 f3 90 83 e8 01 75
[ 1.592380] RSP: 0000:ffff9d6f001b7e60 EFLAGS: 00000202
[ 1.592381] RAX: 0000000000000061 RBX: ffff8a3180ca0000 RCX: 00000000000020bf
[ 1.592382] RDX: 0000000000000000 RSI: 000000005ee92214 RDI: 000000005ee92214
[ 1.592383] RBP: 000000005ee8ff7d R08: ffffffffffc2f805 R09: 0000000000000001
[ 1.592383] R10: 0000000000000008 R11: ffff8a34515b4c64 R12: 000000000003d090
[ 1.592384] R13: ffffbd6effb9ebc0 R14: 0000000000000000 R15: 0000000000000000
[ 1.592385] cpuidle_enter_state+0x81/0x430
[ 1.592387] cpuidle_enter+0x2d/0x40
[ 1.592389] do_idle+0x1d9/0x260
[ 1.592390] cpu_startup_entry+0x29/0x30
[ 1.592391] start_secondary+0x11c/0x140
[ 1.592393] common_startup_64+0x13e/0x141
[ 1.592396] </TASK>


-- Package-specific info:
** Version:
Linux version 6.9.9-rt-amd64 (debian-***@lists.debian.org) (x86_64-linux-gnu-gcc-13 (Debian 13.3.0-3) 13.3.0, GNU ld (GNU Binutils for Debian) 2.42.50.20240710) #1 SMP PREEMPT_RT Debian 6.9.9-1 (2024-07-13)

** Command line:
BOOT_IMAGE=/boot/vmlinuz-6.9.9-rt-amd64 root=UUID=71bcdf24-126b-4ae5-8cbc-49d0be972ad7 ro quiet

** Tainted: W (512)
* kernel issued warning

** Kernel log:
Unable to read kernel log; any relevant messages should be attached

** Model information
sys_vendor: LENOVO
product_name: 21HD0078CD
product_version: ThinkPad T14 Gen 4
chassis_vendor: LENOVO
chassis_version: None
bios_vendor: LENOVO
bios_version: N3QET46W (1.46 )
board_vendor: LENOVO
board_name: 21HD0078CD
board_version: SDK0T76479 WIN

** Loaded modules:
uhid
nvme_fabrics
ctr
ccm
rfcomm
cmac
algif_hash
algif_skcipher
af_alg
snd_seq_dummy
snd_hrtimer
snd_seq
snd_seq_device
bnep
btusb
btrtl
btintel
btbcm
btmtk
bluetooth
uvcvideo
videobuf2_vmalloc
uvc
videobuf2_memops
videobuf2_v4l2
videodev
sha3_generic
jitterentropy_rng
drbg
videobuf2_common
ansi_cprng
mc
ecdh_generic
ecc
snd_ctl_led
snd_soc_skl_hda_dsp
snd_soc_hdac_hdmi
snd_sof_probes
snd_soc_intel_hda_dsp_common
binfmt_misc
nls_ascii
nls_cp437
vfat
fat
snd_hda_codec_hdmi
snd_soc_dmic
snd_hda_codec_realtek
snd_hda_codec_generic
snd_hda_scodec_component
snd_sof_pci_intel_tgl
snd_sof_intel_hda_common
soundwire_intel
snd_sof_intel_hda_mlink
soundwire_cadence
snd_sof_intel_hda
snd_sof_pci
snd_sof_xtensa_dsp
intel_uncore_frequency
intel_uncore_frequency_common
iwlmvm
x86_pkg_temp_thermal
intel_powerclamp
snd_sof
coretemp
snd_sof_utils
kvm_intel
snd_soc_hdac_hda
ledtrig_audio
mac80211
snd_soc_acpi_intel_match
soundwire_generic_allocation
snd_soc_acpi
soundwire_bus
kvm
snd_soc_avs
snd_soc_hda_codec
snd_hda_ext_core
snd_soc_core
libarc4
ghash_clmulni_intel
sha512_ssse3
snd_compress
sha512_generic
snd_pcm_dmaengine
sha256_ssse3
iwlwifi
sha1_ssse3
snd_hda_intel
snd_intel_dspcfg
snd_intel_sdw_acpi
snd_hda_codec
aesni_intel
joydev
crypto_simd
snd_hda_core
cryptd
cfg80211
rapl
snd_hwdep
mei_wdt
thinkpad_acpi
mei_hdcp
mei_pxp
snd_pcm
nvram
intel_cstate
intel_rapl_msr
think_lmi
platform_profile
intel_uncore
pcspkr
mei_me
firmware_attributes_class
snd_timer
wmi_bmof
processor_thermal_device_pci
iTCO_wdt
intel_pmc_bxt
ucsi_acpi
processor_thermal_device
iTCO_vendor_support
processor_thermal_wt_hint
mei
processor_thermal_rfim
snd
typec_ucsi
watchdog
processor_thermal_rapl
intel_rapl_common
processor_thermal_wt_req
processor_thermal_power_floor
typec
soundcore
processor_thermal_mbox
roles
igen6_edac
rfkill
ac
int3403_thermal
int340x_thermal_zone
intel_pmc_core
intel_vsec
pmt_telemetry
acpi_tad
intel_hid
int3400_thermal
pmt_class
sparse_keymap
acpi_pad
acpi_thermal_rel
hid_multitouch
evdev
serio_raw
dm_mod
loop
configfs
efi_pstore
efivarfs
ip_tables
x_tables
autofs4
ext4
crc16
mbcache
jbd2
crc32c_generic
i915
nvme
hid_generic
drm_buddy
i2c_algo_bit
nvme_core
drm_display_helper
xhci_pci
t10_pi
xhci_hcd
cec
rc_core
crc64_rocksoft
ttm
i2c_hid_acpi
crc64
i2c_hid
crc_t10dif
usbcore
drm_kms_helper
intel_lpss_pci
video
crct10dif_generic
hid
intel_lpss
i2c_i801
crct10dif_pclmul
crc32_pclmul
psmouse
e1000e
crc32c_intel
thunderbolt
i2c_smbus
drm
idma64
usb_common
crct10dif_common
button
fan
battery
wmi

** PCI devices:
00:00.0 Host bridge [0600]: Intel Corporation Raptor Lake-P/U 4p+8e cores Host Bridge/DRAM Controller [8086:a707]
Subsystem: Lenovo Raptor Lake-P/U 4p+8e cores Host Bridge/DRAM Controller [17aa:230e]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ >SERR- <PERR- INTx-
Latency: 0
IOMMU group: 1
Capabilities: <access denied>
Kernel driver in use: igen6_edac
Kernel modules: igen6_edac

00:02.0 VGA compatible controller [0300]: Intel Corporation Raptor Lake-P [UHD Graphics] [8086:a720] (rev 04) (prog-if 00 [VGA controller])
Subsystem: Lenovo Raptor Lake-P [UHD Graphics] [17aa:230e]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 184
IOMMU group: 0
Region 0: Memory at 603c000000 (64-bit, non-prefetchable) [size=16M]
Region 2: Memory at 4000000000 (64-bit, prefetchable) [size=256M]
Region 4: I/O ports at 2000 [size=64]
Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
Capabilities: <access denied>
Kernel driver in use: i915
Kernel modules: i915

00:04.0 Signal processing controller [1180]: Intel Corporation Raptor Lake Dynamic Platform and Thermal Framework Processor Participant [8086:a71d]
Subsystem: Lenovo Raptor Lake Dynamic Platform and Thermal Framework Processor Participant [17aa:230e]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 16
IOMMU group: 2
Region 0: Memory at 603d180000 (64-bit, non-prefetchable) [size=128K]
Capabilities: <access denied>
Kernel driver in use: proc_thermal_pci
Kernel modules: processor_thermal_device_pci

00:06.0 PCI bridge [0604]: Intel Corporation Raptor Lake PCIe 4.0 Graphics Port [8086:a74d] (prog-if 00 [Normal decode])
Subsystem: Lenovo Raptor Lake PCIe 4.0 Graphics Port [17aa:230e]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin D routed to IRQ 122
IOMMU group: 3
Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
I/O behind bridge: [disabled] [16-bit]
Memory behind bridge: bc200000-bc2fffff [size=1M] [32-bit]
Prefetchable memory behind bridge: [disabled] [64-bit]
Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
BridgeCtl: Parity- SERR+ NoISA- VGA- VGA16- MAbort- >Reset- FastB2B-
PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
Capabilities: <access denied>
Kernel driver in use: pcieport

00:07.0 PCI bridge [0604]: Intel Corporation Raptor Lake-P Thunderbolt 4 PCI Express Root Port #0 [8086:a76e] (prog-if 00 [Normal decode])
Subsystem: Lenovo Raptor Lake-P Thunderbolt 4 PCI Express Root Port [17aa:230e]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 123
IOMMU group: 4
Bus: primary=00, secondary=20, subordinate=49, sec-latency=0
I/O behind bridge: 3000-3fff [size=4K] [16-bit]
Memory behind bridge: b0000000-bc1fffff [size=194M] [32-bit]
Prefetchable memory behind bridge: 6000000000-601bffffff [size=448M] [32-bit]
Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
BridgeCtl: Parity- SERR+ NoISA- VGA- VGA16- MAbort- >Reset- FastB2B-
PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
Capabilities: <access denied>
Kernel driver in use: pcieport

00:07.2 PCI bridge [0604]: Intel Corporation Raptor Lake-P Thunderbolt 4 PCI Express Root Port #2 [8086:a72f] (prog-if 00 [Normal decode])
Subsystem: Lenovo Raptor Lake-P Thunderbolt 4 PCI Express Root Port [17aa:230e]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin C routed to IRQ 124
IOMMU group: 5
Bus: primary=00, secondary=50, subordinate=79, sec-latency=0
I/O behind bridge: 4000-4fff [size=4K] [16-bit]
Memory behind bridge: a2000000-ae1fffff [size=194M] [32-bit]
Prefetchable memory behind bridge: 6020000000-603bffffff [size=448M] [32-bit]
Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
BridgeCtl: Parity- SERR+ NoISA- VGA- VGA16- MAbort- >Reset- FastB2B-
PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
Capabilities: <access denied>
Kernel driver in use: pcieport

00:0d.0 USB controller [0c03]: Intel Corporation Raptor Lake-P Thunderbolt 4 USB Controller [8086:a71e] (prog-if 30 [XHCI])
Subsystem: Lenovo Raptor Lake-P Thunderbolt 4 USB Controller [17aa:230e]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin ? routed to IRQ 168
IOMMU group: 6
Region 0: Memory at 603d1b0000 (64-bit, non-prefetchable) [size=64K]
Capabilities: <access denied>
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci

00:0d.2 USB controller [0c03]: Intel Corporation Raptor Lake-P Thunderbolt 4 NHI #0 [8086:a73e] (prog-if 40 [USB4 Host Interface])
Subsystem: Lenovo Raptor Lake-P Thunderbolt 4 NHI [17aa:230e]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 16
IOMMU group: 6
Region 0: Memory at 603d140000 (64-bit, non-prefetchable) [size=256K]
Region 2: Memory at 603d1d1000 (64-bit, non-prefetchable) [size=4K]
Capabilities: <access denied>
Kernel driver in use: thunderbolt
Kernel modules: thunderbolt

00:0d.3 USB controller [0c03]: Intel Corporation Raptor Lake-P Thunderbolt 4 NHI #1 [8086:a76d] (prog-if 40 [USB4 Host Interface])
Subsystem: Lenovo Raptor Lake-P Thunderbolt 4 NHI [17aa:230e]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 16
IOMMU group: 6
Region 0: Memory at 603d100000 (64-bit, non-prefetchable) [size=256K]
Region 2: Memory at 603d1d0000 (64-bit, non-prefetchable) [size=4K]
Capabilities: <access denied>
Kernel driver in use: thunderbolt
Kernel modules: thunderbolt

00:14.0 USB controller [0c03]: Intel Corporation Alder Lake PCH USB 3.2 xHCI Host Controller [8086:51ed] (rev 01) (prog-if 30 [XHCI])
Subsystem: Lenovo Alder Lake PCH USB 3.2 xHCI Host Controller [17aa:230e]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 142
IOMMU group: 7
Region 0: Memory at 603d1a0000 (64-bit, non-prefetchable) [size=64K]
Capabilities: <access denied>
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci

00:14.2 RAM memory [0500]: Intel Corporation Alder Lake PCH Shared SRAM [8086:51ef] (rev 01)
Subsystem: Lenovo Alder Lake PCH Shared SRAM [17aa:230e]
Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
IOMMU group: 7
Region 0: Memory at 603d1c8000 (64-bit, non-prefetchable) [disabled] [size=16K]
Region 2: Memory at 603d1cf000 (64-bit, non-prefetchable) [disabled] [size=4K]
Capabilities: <access denied>

00:14.3 Network controller [0280]: Intel Corporation Raptor Lake PCH CNVi WiFi [8086:51f1] (rev 01)
Subsystem: Intel Corporation Raptor Lake PCH CNVi WiFi [8086:0090]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 16
IOMMU group: 8
Region 0: Memory at 603d1c4000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: iwlwifi
Kernel modules: iwlwifi

00:15.0 Serial bus controller [0c80]: Intel Corporation Alder Lake PCH Serial IO I2C Controller #0 [8086:51e8] (rev 01)
Subsystem: Lenovo Alder Lake PCH Serial IO I2C Controller [17aa:230e]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 27
IOMMU group: 9
Region 0: Memory at 4017000000 (64-bit, non-prefetchable) [size=4K]
Capabilities: <access denied>
Kernel driver in use: intel-lpss
Kernel modules: intel_lpss_pci

00:16.0 Communication controller [0780]: Intel Corporation Alder Lake PCH HECI Controller [8086:51e0] (rev 01)
Subsystem: Lenovo Alder Lake PCH HECI Controller [17aa:230e]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 185
IOMMU group: 10
Region 0: Memory at 603d1cd000 (64-bit, non-prefetchable) [size=4K]
Capabilities: <access denied>
Kernel driver in use: mei_me
Kernel modules: mei_me

00:16.3 Serial controller [0700]: Intel Corporation Alder Lake AMT SOL Redirection [8086:51e3] (rev 01) (prog-if 02 [16550])
Subsystem: Lenovo Alder Lake AMT SOL Redirection [17aa:230e]
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Interrupt: pin D routed to IRQ 19
IOMMU group: 10
Region 0: I/O ports at 2060 [size=8]
Region 1: Memory at bc321000 (32-bit, non-prefetchable) [size=4K]
Capabilities: <access denied>
Kernel driver in use: serial

00:1f.0 ISA bridge [0601]: Intel Corporation Raptor Lake LPC/eSPI Controller [8086:519d] (rev 01)
Subsystem: Lenovo Raptor Lake LPC/eSPI Controller [17aa:230e]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
IOMMU group: 11

00:1f.3 Audio device [0403]: Intel Corporation Raptor Lake-P/U/H cAVS [8086:51ca] (rev 01) (prog-if 80)
Subsystem: Lenovo Raptor Lake-P/U/H cAVS [17aa:230e]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 64
Interrupt: pin A routed to IRQ 196
IOMMU group: 11
Region 0: Memory at 603d1c0000 (64-bit, non-prefetchable) [size=16K]
Region 4: Memory at 603d000000 (64-bit, non-prefetchable) [size=1M]
Capabilities: <access denied>
Kernel driver in use: sof-audio-pci-intel-tgl
Kernel modules: snd_hda_intel, snd_soc_avs, snd_sof_pci_intel_tgl

00:1f.4 SMBus [0c05]: Intel Corporation Alder Lake PCH-P SMBus Host Controller [8086:51a3] (rev 01)
Subsystem: Lenovo Alder Lake PCH-P SMBus Host Controller [17aa:230e]
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Interrupt: pin A routed to IRQ 16
IOMMU group: 11
Region 0: Memory at 603d1cc000 (64-bit, non-prefetchable) [size=256]
Region 4: I/O ports at efa0 [size=32]
Kernel driver in use: i801_smbus
Kernel modules: i2c_i801

00:1f.5 Serial bus controller [0c80]: Intel Corporation Alder Lake-P PCH SPI Controller [8086:51a4] (rev 01)
Subsystem: Lenovo Alder Lake-P PCH SPI Controller [17aa:230e]
Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
IOMMU group: 11
Region 0: Memory at a0800000 (32-bit, non-prefetchable) [size=4K]

00:1f.6 Ethernet controller [0200]: Intel Corporation Ethernet Connection (23) I219-LM [8086:0dc5] (rev 01)
Subsystem: Lenovo Ethernet Connection (23) I219-LM [17aa:230e]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 141
IOMMU group: 11
Region 0: Memory at bc300000 (32-bit, non-prefetchable) [size=128K]
Capabilities: <access denied>
Kernel driver in use: e1000e
Kernel modules: e1000e

02:00.0 Non-Volatile memory controller [0108]: KIOXIA Corporation NVMe SSD Controller XG8 [1e0f:0010] (rev 01) (prog-if 02 [NVM Express])
Subsystem: KIOXIA Corporation NVMe SSD Controller XG8 [1e0f:0001]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 16
IOMMU group: 12
Region 0: Memory at bc200000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: nvme
Kernel modules: nvme


** USB devices:
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 30c9:0050 Luxvisions Innotech Limited Integrated RGB Camera
Bus 001 Device 002: ID 27c6:6594 Shenzhen Goodix Technology Co.,Ltd. Goodix USB2.0 MISC
Bus 001 Device 004: ID 8087:0033 Intel Corp. AX211 Bluetooth
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


-- System Information:
Release: 12.6
Codename: bookworm
Architecture: x86_64

Kernel: Linux 6.9.9-rt-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=zh_CN.UTF-8, LC_CTYPE=zh_CN.UTF-8 (charmap=UTF-8), LANGUAGE=zh_CN:zh
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages linux-image-6.9.9-rt-amd64 depends on:
ii initramfs-tools [linux-initramfs-tool] 0.142
ii kmod 30+20221128-1
ii linux-base 4.9

Versions of packages linux-image-6.9.9-rt-amd64 recommends:
ii apparmor 3.0.8-3

Versions of packages linux-image-6.9.9-rt-amd64 suggests:
pn debian-kernel-handbook <none>
ii firmware-linux-free 20200122-2
pn linux-doc-6.9 <none>

Versions of packages linux-image-6.9.9-rt-amd64 is related to:
ii firmware-amd-graphics 20230515-3
ii firmware-atheros 20230515-3
pn firmware-bnx2 <none>
pn firmware-bnx2x <none>
ii firmware-brcm80211 20230515-3
pn firmware-cavium <none>
pn firmware-intel-sound <none>
pn firmware-intelwimax <none>
pn firmware-ipw2x00 <none>
pn firmware-ivtv <none>
ii firmware-iwlwifi 20240610-1
pn firmware-libertas <none>
pn firmware-linux-nonfree <none>
ii firmware-misc-nonfree 20230515-3
pn firmware-myricom <none>
pn firmware-netxen <none>
pn firmware-qlogic <none>
ii firmware-realtek 20230515-3
pn firmware-samsung <none>
pn firmware-siano <none>
pn firmware-ti-connectivity <none>
pn xen-hypervisor <none>

-- no debconf information
xiao sheng wen(肖盛文)
2024-09-23 02:10:01 UTC
Reply
Permalink
I apply this patch on Debian kernel 6.11-1~exp1 (2024-09-19) source code.

uname -a
Linux atzlinux-ce 6.11-rt-amd64 #1 SMP PREEMPT_RT atzlinux 6.11-1~exp1
(2024-09-19) x86_64 GNU/Linux

I get the following errors in dmesg:

[ 7.273690] ucsi_acpi USBC000:00: possible UCSI driver bug 2
[ 7.451822] ucsi_acpi USBC000:00: error -EINVAL: PPM init failed
[ 7.537749] ------------[ cut here ]------------
[ 7.537753] WARNING: CPU: 12 PID: 96 at kernel/workqueue.c:2259
delayed_work_timer_fn+0x63/0x90
[ 7.537763] Modules linked in: rfcomm cmac algif_hash algif_skcipher
af_alg snd_seq_dummy snd_hrtimer snd_seq snd_seq_device bnep btusb
uvcvideo btrtl btintel videobuf2_vmalloc btbcm uvc btmtk
videobuf2_memops videobuf2_v4l2 bluetooth videodev videobuf2_common mc
snd_soc_skl_hda_dsp snd_soc_hdac_hdmi snd_sof_probes
snd_soc_intel_hda_dsp_common binfmt_misc nls_ascii nls_cp437 vfat fat
snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic
snd_hda_scodec_component snd_soc_dmic snd_sof_pci_intel_tgl
snd_sof_pci_intel_cnl snd_sof_intel_hda_generic soundwire_intel
soundwire_generic_allocation soundwire_cadence snd_sof_intel_hda_common
snd_sof_intel_hda_mlink snd_sof_intel_hda snd_sof_pci snd_sof_xtensa_dsp
snd_sof iwlmvm snd_sof_utils intel_uncore_frequency snd_soc_hdac_hda
intel_uncore_frequency_common snd_soc_acpi_intel_match
x86_pkg_temp_thermal intel_powerclamp snd_soc_acpi soundwire_bus
coretemp kvm_intel snd_ctl_led mac80211 snd_soc_avs kvm
snd_soc_hda_codec snd_hda_ext_core snd_soc_core libarc4
[ 7.537811] crct10dif_pclmul snd_compress snd_pcm_dmaengine
ghash_clmulni_intel sha512_ssse3 snd_hda_intel sha256_ssse3 sha1_ssse3
iwlwifi snd_intel_dspcfg snd_intel_sdw_acpi snd_hda_codec aesni_intel
gf128mul snd_hda_core crypto_simd cryptd rapl mei_hdcp mei_pxp mei_wdt
snd_hwdep intel_rapl_msr processor_thermal_device_pci intel_cstate
cfg80211 processor_thermal_device processor_thermal_wt_hint intel_uncore
snd_pcm thinkpad_acpi think_lmi iTCO_wdt processor_thermal_rfim mei_me
firmware_attributes_class intel_pmc_bxt processor_thermal_rapl snd_timer
ucsi_acpi mei iTCO_vendor_support intel_rapl_common nvram typec_ucsi
wmi_bmof watchdog platform_profile processor_thermal_wt_req pcspkr
processor_thermal_power_floor snd igen6_edac processor_thermal_mbox
typec roles soundcore rfkill ac int3403_thermal joydev
int340x_thermal_zone intel_pmc_core int3400_thermal intel_vsec intel_hid
pmt_telemetry acpi_thermal_rel sparse_keymap acpi_tad pmt_class acpi_pad
evdev serio_raw dm_mod loop configfs efi_pstore efivarfs ip_tables
[ 7.537861] x_tables autofs4 ext4 crc16 mbcache jbd2 crc32c_generic
i915 drm_buddy i2c_algo_bit drm_display_helper cec hid_multitouch
rc_core hid_generic xhci_pci xhci_hcd ttm i2c_hid_acpi i2c_hid usbcore
drm_kms_helper hid intel_lpss_pci video nvme intel_lpss crc32_pclmul
i2c_i801 thunderbolt psmouse drm nvme_core e1000e crc32c_intel idma64
usb_common i2c_smbus fan button battery wmi
[ 7.537887] CPU: 12 UID: 0 PID: 96 Comm: ktimers/12 Not tainted
6.11-rt-amd64 #1 atzlinux 6.11-1~exp1
[ 7.537891] Hardware name: LENOVO 21HD0078CD/21HD0078CD, BIOS
N3QET47W (1.47 ) 07/18/2024
[ 7.537893] RIP: 0010:delayed_work_timer_fn+0x63/0x90
[ 7.537898] Code: 65 48 8b 3d 3f ad b4 77 65 8b 05 40 ad b4 77 8b 97
00 0d 00 00 25 00 00 ff 00 81 e2 00 01 00 00 09 d0 75 06 f6 47 2c 20 75
0b <0f> 0b 5b 5d 41 5c c3 cc cc cc cc e8 fd 76 00 00 48 85 c0 74 eb 48
[ 7.537900] RSP: 0018:ffffbb900046bc98 EFLAGS: 00010006
[ 7.537903] RAX: 0000000000000100 RBX: ffff9a6182053000 RCX:
ffff9a64cf7a35c0
[ 7.537904] RDX: 0000000000000100 RSI: ffffffff884eab80 RDI:
ffff9a6181130000
[ 7.537906] RBP: 0000000000002000 R08: ffff9a64cf7a3610 R09:
ffff9a64cf7a3658
[ 7.537907] R10: 0000000000000002 R11: 0000000000000001 R12:
ffff9a6183bfa900
[ 7.537908] R13: dead000000000122 R14: ffffffff884eab80 R15:
ffff9a6183bfa920
[ 7.537910] FS: 0000000000000000(0000) GS:ffff9a64cf600000(0000)
knlGS:0000000000000000
[ 7.537912] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 7.537913] CR2: 0000561c94ed4000 CR3: 000000041d62c000 CR4:
0000000000f50ef0
[ 7.537915] PKRU: 55555554
[ 7.537916] Call Trace:
[ 7.537918] <TASK>
[ 7.537919] ? delayed_work_timer_fn+0x63/0x90
[ 7.537923] ? __warn.cold+0x93/0xed
[ 7.537926] ? delayed_work_timer_fn+0x63/0x90
[ 7.537933] ? report_bug+0xff/0x140
[ 7.537937] ? handle_bug+0x3c/0x80
[ 7.537942] ? exc_invalid_op+0x17/0x70
[ 7.537945] ? asm_exc_invalid_op+0x1a/0x20
[ 7.537947] ? __pfx_delayed_work_timer_fn+0x10/0x10
[ 7.537951] ? __pfx_delayed_work_timer_fn+0x10/0x10
[ 7.537955] ? delayed_work_timer_fn+0x63/0x90
[ 7.537958] ? __pfx_delayed_work_timer_fn+0x10/0x10
[ 7.537961] call_timer_fn+0x27/0x120
[ 7.537965] __run_timers+0x18d/0x300
[ 7.537969] timer_expire_remote+0x51/0x80
[ 7.537973] tmigr_handle_remote+0x3cc/0x470
[ 7.537979] handle_softirqs.isra.0+0xb5/0x230
[ 7.537982] ? __pfx_smpboot_thread_fn+0x10/0x10
[ 7.537986] run_timersd+0x3e/0x80
[ 7.537988] smpboot_thread_fn+0xda/0x1d0
[ 7.537992] kthread+0xcf/0x100
[ 7.537995] ? __pfx_kthread+0x10/0x10
[ 7.537997] ret_from_fork+0x31/0x50
[ 7.538000] ? __pfx_kthread+0x10/0x10
[ 7.538001] ret_from_fork_asm+0x1a/0x30
[ 7.538006] </TASK>
[ 7.538007] ---[ end trace 0000000000000000 ]---

The whole dmesg is:
https://linux-hardware.org/?probe=28057f9ed2&log=dmesg

My notebook hardware info is:
https://linux-hardware.org/?probe=28057f9ed2

If need do more test, please tell me.

Thanks!
notify_hwp_interrupt() is called via sysvec_thermal() ->
smp_thermal_vector() -> intel_thermal_interrupt() in hard irq context.
For this reason it must not use a simple spin_lock that sleeps with
PREEMPT_RT enabled. So convert it to a raw spinlock.
Link: https://bugs.debian.org/1076483
---
Hello,
this is deep in x86 land where I have *very* little experience and
knowledge. Is sysvec_thermal() (defined in arch/x86/kernel/irq.c) really
running in hard irq context? The stacktrace in the Debian bug report
suggests that.
So please double check my reasoning before applying this patch.
Thanks
Uwe
drivers/cpufreq/intel_pstate.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c
index aaea9a39eced..b0018f371ea3 100644
--- a/drivers/cpufreq/intel_pstate.c
+++ b/drivers/cpufreq/intel_pstate.c
@@ -1845,7 +1845,7 @@ static void intel_pstate_notify_work(struct work_struct *work)
wrmsrl_on_cpu(cpudata->cpu, MSR_HWP_STATUS, 0);
}
-static DEFINE_SPINLOCK(hwp_notify_lock);
+static DEFINE_RAW_SPINLOCK(hwp_notify_lock);
static cpumask_t hwp_intr_enable_mask;
#define HWP_GUARANTEED_PERF_CHANGE_STATUS BIT(0)
@@ -1868,7 +1868,7 @@ void notify_hwp_interrupt(void)
if (!(value & status_mask))
return;
- spin_lock_irqsave(&hwp_notify_lock, flags);
+ raw_spin_lock_irqsave(&hwp_notify_lock, flags);
if (!cpumask_test_cpu(this_cpu, &hwp_intr_enable_mask))
goto ack_intr;
@@ -1876,13 +1876,13 @@ void notify_hwp_interrupt(void)
schedule_delayed_work(&all_cpu_data[this_cpu]->hwp_notify_work,
msecs_to_jiffies(10));
- spin_unlock_irqrestore(&hwp_notify_lock, flags);
+ raw_spin_unlock_irqrestore(&hwp_notify_lock, flags);
return;
wrmsrl_safe(MSR_HWP_STATUS, 0);
- spin_unlock_irqrestore(&hwp_notify_lock, flags);
+ raw_spin_unlock_irqrestore(&hwp_notify_lock, flags);
}
static void intel_pstate_disable_hwp_interrupt(struct cpudata *cpudata)
@@ -1895,9 +1895,9 @@ static void intel_pstate_disable_hwp_interrupt(struct cpudata *cpudata)
/* wrmsrl_on_cpu has to be outside spinlock as this can result in IPC */
wrmsrl_on_cpu(cpudata->cpu, MSR_HWP_INTERRUPT, 0x00);
- spin_lock_irq(&hwp_notify_lock);
+ raw_spin_lock_irq(&hwp_notify_lock);
cancel_work = cpumask_test_and_clear_cpu(cpudata->cpu, &hwp_intr_enable_mask);
- spin_unlock_irq(&hwp_notify_lock);
+ raw_spin_unlock_irq(&hwp_notify_lock);
if (cancel_work)
cancel_delayed_work_sync(&cpudata->hwp_notify_work);
@@ -1912,10 +1912,10 @@ static void intel_pstate_enable_hwp_interrupt(struct cpudata *cpudata)
if (boot_cpu_has(X86_FEATURE_HWP_NOTIFY)) {
u64 interrupt_mask = HWP_GUARANTEED_PERF_CHANGE_REQ;
- spin_lock_irq(&hwp_notify_lock);
+ raw_spin_lock_irq(&hwp_notify_lock);
INIT_DELAYED_WORK(&cpudata->hwp_notify_work, intel_pstate_notify_work);
cpumask_set_cpu(cpudata->cpu, &hwp_intr_enable_mask);
- spin_unlock_irq(&hwp_notify_lock);
+ raw_spin_unlock_irq(&hwp_notify_lock);
if (cpu_feature_enabled(X86_FEATURE_HWP_HIGHEST_PERF_CHANGE))
interrupt_mask |= HWP_HIGHEST_PERF_CHANGE_REQ;
base-commit: 3621a2c9142bd490af0666c0c02d52d60ce0d2a5
--
肖盛文 xiao sheng wen
Debian QA page:
https://qa.debian.org/developer.php?login=atzlinux%40sina.com
Debian salsa: https://salsa.debian.org/atzlinux-guest
GnuPG Public Key: 0x00186602339240CB
Uwe Kleine-König
2024-09-26 08:00:01 UTC
Reply
Permalink
Hello,
Post by xiao sheng wen(肖盛文)
I apply this patch on Debian kernel 6.11-1~exp1 (2024-09-19) source code.
uname -a
Linux atzlinux-ce 6.11-rt-amd64 #1 SMP PREEMPT_RT atzlinux 6.11-1~exp1
(2024-09-19) x86_64 GNU/Linux
[    7.273690] ucsi_acpi USBC000:00: possible UCSI driver bug 2
[    7.451822] ucsi_acpi USBC000:00: error -EINVAL: PPM init failed
[    7.537749] ------------[ cut here ]------------
[    7.537753] WARNING: CPU: 12 PID: 96 at kernel/workqueue.c:2259
delayed_work_timer_fn+0x63/0x90
[    7.537763] Modules linked in: rfcomm cmac algif_hash algif_skcipher
af_alg snd_seq_dummy snd_hrtimer snd_seq snd_seq_device bnep btusb
uvcvideo btrtl btintel videobuf2_vmalloc btbcm uvc btmtk
videobuf2_memops videobuf2_v4l2 bluetooth videodev videobuf2_common mc
snd_soc_skl_hda_dsp snd_soc_hdac_hdmi snd_sof_probes
snd_soc_intel_hda_dsp_common binfmt_misc nls_ascii nls_cp437 vfat fat
snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic
snd_hda_scodec_component snd_soc_dmic snd_sof_pci_intel_tgl
snd_sof_pci_intel_cnl snd_sof_intel_hda_generic soundwire_intel
soundwire_generic_allocation soundwire_cadence snd_sof_intel_hda_common
snd_sof_intel_hda_mlink snd_sof_intel_hda snd_sof_pci snd_sof_xtensa_dsp
snd_sof iwlmvm snd_sof_utils intel_uncore_frequency snd_soc_hdac_hda
intel_uncore_frequency_common snd_soc_acpi_intel_match
x86_pkg_temp_thermal intel_powerclamp snd_soc_acpi soundwire_bus
coretemp kvm_intel snd_ctl_led mac80211 snd_soc_avs kvm
snd_soc_hda_codec snd_hda_ext_core snd_soc_core libarc4
[    7.537811]  crct10dif_pclmul snd_compress snd_pcm_dmaengine
ghash_clmulni_intel sha512_ssse3 snd_hda_intel sha256_ssse3 sha1_ssse3
iwlwifi snd_intel_dspcfg snd_intel_sdw_acpi snd_hda_codec aesni_intel
gf128mul snd_hda_core crypto_simd cryptd rapl mei_hdcp mei_pxp mei_wdt
snd_hwdep intel_rapl_msr processor_thermal_device_pci intel_cstate
cfg80211 processor_thermal_device processor_thermal_wt_hint intel_uncore
snd_pcm thinkpad_acpi think_lmi iTCO_wdt processor_thermal_rfim mei_me
firmware_attributes_class intel_pmc_bxt processor_thermal_rapl snd_timer
ucsi_acpi mei iTCO_vendor_support intel_rapl_common nvram typec_ucsi
wmi_bmof watchdog platform_profile processor_thermal_wt_req pcspkr
processor_thermal_power_floor snd igen6_edac processor_thermal_mbox
typec roles soundcore rfkill ac int3403_thermal joydev
int340x_thermal_zone intel_pmc_core int3400_thermal intel_vsec intel_hid
pmt_telemetry acpi_thermal_rel sparse_keymap acpi_tad pmt_class acpi_pad
evdev serio_raw dm_mod loop configfs efi_pstore efivarfs ip_tables
[    7.537861]  x_tables autofs4 ext4 crc16 mbcache jbd2 crc32c_generic
i915 drm_buddy i2c_algo_bit drm_display_helper cec hid_multitouch
rc_core hid_generic xhci_pci xhci_hcd ttm i2c_hid_acpi i2c_hid usbcore
drm_kms_helper hid intel_lpss_pci video nvme intel_lpss crc32_pclmul
i2c_i801 thunderbolt psmouse drm nvme_core e1000e crc32c_intel idma64
usb_common i2c_smbus fan button battery wmi
[    7.537887] CPU: 12 UID: 0 PID: 96 Comm: ktimers/12 Not tainted 6.11-
rt-amd64 #1  atzlinux 6.11-1~exp1
[    7.537891] Hardware name: LENOVO 21HD0078CD/21HD0078CD, BIOS
N3QET47W (1.47 ) 07/18/2024
[    7.537893] RIP: 0010:delayed_work_timer_fn+0x63/0x90
[    7.537898] Code: 65 48 8b 3d 3f ad b4 77 65 8b 05 40 ad b4 77 8b 97
00 0d 00 00 25 00 00 ff 00 81 e2 00 01 00 00 09 d0 75 06 f6 47 2c 20 75
0b <0f> 0b 5b 5d 41 5c c3 cc cc cc cc e8 fd 76 00 00 48 85 c0 74 eb 48
[    7.537900] RSP: 0018:ffffbb900046bc98 EFLAGS: 00010006
ffff9a64cf7a35c0
ffff9a6181130000
ffff9a64cf7a3658
ffff9a6183bfa900
ffff9a6183bfa920
[    7.537910] FS:  0000000000000000(0000) GS:ffff9a64cf600000(0000)
knlGS:0000000000000000
[    7.537912] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
0000000000f50ef0
[    7.537915] PKRU: 55555554
[    7.537918]  <TASK>
[    7.537919]  ? delayed_work_timer_fn+0x63/0x90
[    7.537923]  ? __warn.cold+0x93/0xed
[    7.537926]  ? delayed_work_timer_fn+0x63/0x90
[    7.537933]  ? report_bug+0xff/0x140
[    7.537937]  ? handle_bug+0x3c/0x80
[    7.537942]  ? exc_invalid_op+0x17/0x70
[    7.537945]  ? asm_exc_invalid_op+0x1a/0x20
[    7.537947]  ? __pfx_delayed_work_timer_fn+0x10/0x10
[    7.537951]  ? __pfx_delayed_work_timer_fn+0x10/0x10
[    7.537955]  ? delayed_work_timer_fn+0x63/0x90
[    7.537958]  ? __pfx_delayed_work_timer_fn+0x10/0x10
[    7.537961]  call_timer_fn+0x27/0x120
[    7.537965]  __run_timers+0x18d/0x300
[    7.537969]  timer_expire_remote+0x51/0x80
[    7.537973]  tmigr_handle_remote+0x3cc/0x470
[    7.537979]  handle_softirqs.isra.0+0xb5/0x230
[    7.537982]  ? __pfx_smpboot_thread_fn+0x10/0x10
[    7.537986]  run_timersd+0x3e/0x80
[    7.537988]  smpboot_thread_fn+0xda/0x1d0
[    7.537992]  kthread+0xcf/0x100
[    7.537995]  ? __pfx_kthread+0x10/0x10
[    7.537997]  ret_from_fork+0x31/0x50
[    7.538000]  ? __pfx_kthread+0x10/0x10
[    7.538001]  ret_from_fork_asm+0x1a/0x30
[    7.538006]  </TASK>
[    7.538007] ---[ end trace 0000000000000000 ]---
https://linux-hardware.org/?probe=28057f9ed2&log=dmesg
On a first glance this looks like an unrelated issue to me. Could you
test with CONFIG_X86_INTEL_PSTATE=n? (If doesn't matter if you do this
with my patch applied or not, without CONFIG_X86_INTEL_PSTATE the driver
isn't build.)

Best regards
Uwe
xiao sheng wen(肖盛文)
2024-09-27 10:00:01 UTC
Reply
Permalink
Hello,
Hello,
Post by xiao sheng wen(肖盛文)
I apply this patch on Debian kernel 6.11-1~exp1 (2024-09-19) source code.
uname -a
Linux atzlinux-ce 6.11-rt-amd64 #1 SMP PREEMPT_RT atzlinux 6.11-1~exp1
(2024-09-19) x86_64 GNU/Linux
[    7.273690] ucsi_acpi USBC000:00: possible UCSI driver bug 2
[    7.451822] ucsi_acpi USBC000:00: error -EINVAL: PPM init failed
[    7.537749] ------------[ cut here ]------------
[    7.537753] WARNING: CPU: 12 PID: 96 at kernel/workqueue.c:2259
delayed_work_timer_fn+0x63/0x90
[    7.537763] Modules linked in: rfcomm cmac algif_hash
algif_skcipher af_alg snd_seq_dummy snd_hrtimer snd_seq snd_seq_device
bnep btusb uvcvideo btrtl btintel videobuf2_vmalloc btbcm uvc btmtk
videobuf2_memops videobuf2_v4l2 bluetooth videodev videobuf2_common mc
snd_soc_skl_hda_dsp snd_soc_hdac_hdmi snd_sof_probes
snd_soc_intel_hda_dsp_common binfmt_misc nls_ascii nls_cp437 vfat fat
snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic
snd_hda_scodec_component snd_soc_dmic snd_sof_pci_intel_tgl
snd_sof_pci_intel_cnl snd_sof_intel_hda_generic soundwire_intel
soundwire_generic_allocation soundwire_cadence
snd_sof_intel_hda_common snd_sof_intel_hda_mlink snd_sof_intel_hda
snd_sof_pci snd_sof_xtensa_dsp snd_sof iwlmvm snd_sof_utils
intel_uncore_frequency snd_soc_hdac_hda intel_uncore_frequency_common
snd_soc_acpi_intel_match x86_pkg_temp_thermal intel_powerclamp
snd_soc_acpi soundwire_bus coretemp kvm_intel snd_ctl_led mac80211
snd_soc_avs kvm snd_soc_hda_codec snd_hda_ext_core snd_soc_core libarc4
[    7.537811]  crct10dif_pclmul snd_compress snd_pcm_dmaengine
ghash_clmulni_intel sha512_ssse3 snd_hda_intel sha256_ssse3 sha1_ssse3
iwlwifi snd_intel_dspcfg snd_intel_sdw_acpi snd_hda_codec aesni_intel
gf128mul snd_hda_core crypto_simd cryptd rapl mei_hdcp mei_pxp mei_wdt
snd_hwdep intel_rapl_msr processor_thermal_device_pci intel_cstate
cfg80211 processor_thermal_device processor_thermal_wt_hint
intel_uncore snd_pcm thinkpad_acpi think_lmi iTCO_wdt
processor_thermal_rfim mei_me firmware_attributes_class intel_pmc_bxt
processor_thermal_rapl snd_timer ucsi_acpi mei iTCO_vendor_support
intel_rapl_common nvram typec_ucsi wmi_bmof watchdog platform_profile
processor_thermal_wt_req pcspkr processor_thermal_power_floor snd
igen6_edac processor_thermal_mbox typec roles soundcore rfkill ac
int3403_thermal joydev int340x_thermal_zone intel_pmc_core
int3400_thermal intel_vsec intel_hid pmt_telemetry acpi_thermal_rel
sparse_keymap acpi_tad pmt_class acpi_pad evdev serio_raw dm_mod loop
configfs efi_pstore efivarfs ip_tables
[    7.537861]  x_tables autofs4 ext4 crc16 mbcache jbd2
crc32c_generic i915 drm_buddy i2c_algo_bit drm_display_helper cec
hid_multitouch rc_core hid_generic xhci_pci xhci_hcd ttm i2c_hid_acpi
i2c_hid usbcore drm_kms_helper hid intel_lpss_pci video nvme
intel_lpss crc32_pclmul i2c_i801 thunderbolt psmouse drm nvme_core
e1000e crc32c_intel idma64 usb_common i2c_smbus fan button battery wmi
[    7.537887] CPU: 12 UID: 0 PID: 96 Comm: ktimers/12 Not tainted
6.11- rt-amd64 #1  atzlinux 6.11-1~exp1
[    7.537891] Hardware name: LENOVO 21HD0078CD/21HD0078CD, BIOS
N3QET47W (1.47 ) 07/18/2024
[    7.537893] RIP: 0010:delayed_work_timer_fn+0x63/0x90
[    7.537898] Code: 65 48 8b 3d 3f ad b4 77 65 8b 05 40 ad b4 77 8b
97 00 0d 00 00 25 00 00 ff 00 81 e2 00 01 00 00 09 d0 75 06 f6 47 2c
20 75 0b <0f> 0b 5b 5d 41 5c c3 cc cc cc cc e8 fd 76 00 00 48 85 c0 74
eb 48
[    7.537900] RSP: 0018:ffffbb900046bc98 EFLAGS: 00010006
ffff9a64cf7a35c0
ffff9a6181130000
ffff9a64cf7a3658
ffff9a6183bfa900
ffff9a6183bfa920
[    7.537910] FS:  0000000000000000(0000) GS:ffff9a64cf600000(0000)
knlGS:0000000000000000
[    7.537912] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
0000000000f50ef0
[    7.537915] PKRU: 55555554
[    7.537918]  <TASK>
[    7.537919]  ? delayed_work_timer_fn+0x63/0x90
[    7.537923]  ? __warn.cold+0x93/0xed
[    7.537926]  ? delayed_work_timer_fn+0x63/0x90
[    7.537933]  ? report_bug+0xff/0x140
[    7.537937]  ? handle_bug+0x3c/0x80
[    7.537942]  ? exc_invalid_op+0x17/0x70
[    7.537945]  ? asm_exc_invalid_op+0x1a/0x20
[    7.537947]  ? __pfx_delayed_work_timer_fn+0x10/0x10
[    7.537951]  ? __pfx_delayed_work_timer_fn+0x10/0x10
[    7.537955]  ? delayed_work_timer_fn+0x63/0x90
[    7.537958]  ? __pfx_delayed_work_timer_fn+0x10/0x10
[    7.537961]  call_timer_fn+0x27/0x120
[    7.537965]  __run_timers+0x18d/0x300
[    7.537969]  timer_expire_remote+0x51/0x80
[    7.537973]  tmigr_handle_remote+0x3cc/0x470
[    7.537979]  handle_softirqs.isra.0+0xb5/0x230
[    7.537982]  ? __pfx_smpboot_thread_fn+0x10/0x10
[    7.537986]  run_timersd+0x3e/0x80
[    7.537988]  smpboot_thread_fn+0xda/0x1d0
[    7.537992]  kthread+0xcf/0x100
[    7.537995]  ? __pfx_kthread+0x10/0x10
[    7.537997]  ret_from_fork+0x31/0x50
[    7.538000]  ? __pfx_kthread+0x10/0x10
[    7.538001]  ret_from_fork_asm+0x1a/0x30
[    7.538006]  </TASK>
[    7.538007] ---[ end trace 0000000000000000 ]---
https://linux-hardware.org/?probe=28057f9ed2&log=dmesg
On a first glance this looks like an unrelated issue to me. Could you
test with CONFIG_X86_INTEL_PSTATE=n? (If doesn't matter if you do this
with my patch applied or not, without CONFIG_X86_INTEL_PSTATE the driver
isn't build.)
Best regards
Uwe
Yes, this WARNING is unrelated issue to your patch.It come from kernel
[ktimers], so I don't need do test with CONFIG_X86_INTEL_PSTATE=n.

I apply your patch on Debian kernel 6.10.11-1 (2024-09-22) source code.

uname -a
Linux atzlinux-ce 6.10.11-rt-amd64 #1 SMP PREEMPT_RT atzlinux 6.10.11-1
(2024-09-22) x86_64 GNU/Linux

There is not any errors in dmesg now, work perfect!
IMHO, this patch fix this bug in kernel 6.10.11-1.


Thanks!

--
肖盛文 xiao sheng wen
Debian QA page:
https://qa.debian.org/developer.php?login=atzlinux%40sina.com
Debian salsa: https://salsa.debian.org/atzlinux-guest
GnuPG Public Key: 0x00186602339240CB

Loading...