System start stuck on acpi_ec0

Hello, hope I'm posting in the right forum section... I started having a problem with booting the laptop and I'm not sure what is the reason. I'm happy to perform any debugging needed. What happens is that I start the laptop and it gets stuck during the boot. The system freezes, nothing happens and I can't even restart it. Only hard power off helps. Here is some info, please feel free to ask for more, thank you!

Hardware: Lenovo ThinkPad T470
OS: FreeBSD 13.1-RELEASE-p6, amd64, no custom kernel

kld_list="i915kms acpi_video" (in rc.conf)
kern.vty=vt (in /boot/loader.conf, otherwise it's standard values from the installation)

Code:
Copyright (c) 1992-2021 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
    The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 13.1-RELEASE-p6 GENERIC amd64
FreeBSD clang version 13.0.0 (git@github.com:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a303)
VT(efifb): resolution 1366x768
CPU: Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz (2500.00-MHz K8-class CPU)
  Origin="GenuineIntel"  Id=0x406e3  Family=0x6  Model=0x4e  Stepping=3
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0x7ffafbff<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,TSCDLT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND>
  AMD Features=0x2c100800<SYSCALL,NX,Page1GB,RDTSCP,LM>
  AMD Features2=0x121<LAHF,ABM,Prefetch>
  Structured Extended Features=0x29c6fbf<FSGSBASE,TSCADJ,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,NFPUSG,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PROCTRACE>
  XSAVE Features=0xf<XSAVEOPT,XSAVEC,XINUSE,XSAVES>
  VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID
  TSC: P-state invariant, performance statistics
real memory  = 17179869184 (16384 MB)
avail memory = 16462675968 (15700 MB)
Event timer "LAPIC" quality 600
ACPI APIC Table: <LENOVO TP-N1Q  >
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
FreeBSD/SMP: 1 package(s) x 2 core(s) x 2 hardware threads
random: registering fast source Intel Secure Key RNG
random: fast provider: "Intel Secure Key RNG"
random: unblocking device.
ioapic0 <Version 2.0> irqs 0-119
Launching APs: 1 2 3
random: entropy device external interface
kbd1 at kbdmux0
efirtc0: <EFI Realtime Clock>
efirtc0: registered as a time-of-day clock, resolution 1.000000s
smbios0: <System Management BIOS> at iomem 0x7a6b6000-0x7a6b601e
smbios0: Version: 3.0, BCD Revision: 3.0
aesni0: <AES-CBC,AES-CCM,AES-GCM,AES-ICM,AES-XTS>
acpi0: <LENOVO TP-N1Q>
acpi_ec0: <Embedded Controller: GPE 0x16, ECDT> port 0x62,0x66 on acpi0

When I manage to boot the system successfully (after several times), then the next line is

Code:
acpi0: Power Button (fixed)

I wonder if it's something with the hardware, like the power button acting up? I hope it's just a software issue and not hardware one...
 
Try verbose boot ( boot -v from loader prompt), it could be stuck on something else and acpi messages are possibly just last *successful* operation.
 
Please see the attached photos, I wish I could scroll up, but I have no scroll lock ;-) Also, interestingly, I restarted in "safe mode" + "verbose mode" and then it worked. But I didn't wait the usual 1 minute before I booted up the computer, so it could be that too. This definitely happens when the computer starts from the cold boot (after one hour, or so).
 

Attachments

  • photo_2023-02-16_20-23-09.jpg
    photo_2023-02-16_20-23-09.jpg
    116.2 KB · Views: 183
  • photo_2023-02-16_20-23-15.jpg
    photo_2023-02-16_20-23-15.jpg
    126.5 KB · Views: 189
can you completely disable ACPI at the UEFI/BIOS?
Maybe this laptop has yet another "special" implementation (usually borked GPEs and/or ASL) that needs some special treatment...

If it boots without ACPI you might want to read through section 13.13 of the Handbook to learn how to debug ACPI and maybe override the default ASL.
 
Could be that, but it never happened before, so I wonder if it's really that. Because I've been running FreeBSD on this laptop for a year (before I switched to Linux and then back) and it always worked well. It's just that yesterday it started getting stuck often (but not always).
 
Could be that, but it never happened before, so I wonder if it's really that. Because I've been running FreeBSD on this laptop for a year (before I switched to Linux and then back) and it always worked well.
Ok, then you can ignore my previous post. My T470 did not work with FreeBSD-12.x, too.
 
Back
Top