> From: Stuart Henderson <s...@spacehopper.org>
> Date: Wed, 28 Aug 2024 23:21:50 +0100
> 
> I've not run into this again yet (with a few reboots).

Well, the issue is probably real.  We have no code to "quiesce" the
drm drivers upon reboot/shutdown, so if you hit the backlight buttons
at the wrong moment, or if X is slow shutting down, you might hit
this.  Needs some thinking...

> -- 
>   Sent from a phone, apologies for poor formatting.
> 
> On 27 August 2024 23:46:46 Stuart Henderson <s...@spacehopper.org> wrote:
> 
>  'Apple MacBook Pro (14-inch, M2 Pro, 2023)', running recent -current.
>  Not running X. I hit this after running halt -p:
> 
>  panic: kernel diagnostic assertion "!cold" failed: file
>  "/usr/src/sys/dev/pci/drm/include/linux/completion.h", line 89
> 
>  Transcribed, maybe typos:
> 
>  TID *328025, PID 16963, UID 0, PRFLAGS 0x3, PFLAGS 0, CPU 0K, COMMAND
>  halt
> 
>  db_enter at panic
>  panic at assert
>  panic at drm_atomic_helper_swap_state+0x57c
>  commit_tail at drm_atomic_helper_commit+0x1d4
>  drm_atomic_helper_commit at drm_atomic_commit+0xa4
>  drm_atomic_commit at drm_client_modeset_commit_atomic+0x158
>  drm_client_modeset_commit_atomic at
>  drm_client_modeset_commit_locked+0x5c
> 
>  After restart/fsck I tried halt -p again and it succeeded.
> 
>  OpenBSD 7.6-beta (GENERIC.MP) #160: Mon Aug 26 05:36:05 MDT 2024
>      dera...@arm64.openbsd.org:/usr/src/sys/arch/arm64/compile/GENERIC.MP
>  real mem  = 16312172544 (15556MB)
>  avail mem = 15672647680 (14946MB)
>  random: good seed from bootblocks
>  mainbus0 at root: Apple MacBook Pro (14-inch, M2 Pro, 2023)
>  efi0 at mainbus0: UEFI 2.10
>  efi0: Das U-Boot rev 0x20240100
>  cpu0 at mainbus0 mpidr 0: Apple Blizzard Pro r1p0
>  cpu0: 128KB 64b/line 4-way L1 PIPT I-cache, 64KB 64b/line 8-way L1
>  D-cache
>  cpu0: 4096KB 128b/line 16-way L2 cache
>  cpu0:
>  
> TLBIOS+IRANGE,TS+AXFLAG,FHM,DP,SHA3,RDM,Atomic,CRC32,SHA2+SHA512,SHA1,AES+PMULL,I8MM,BF16,SPECRES,SB,FRINTTS,GPI,LRCPC+LDAPUR,FCMA,JSCVT,API+PAC,DPB+DCCVADP,ECV,SpecSEI,PAN+ATS1E1,LO,HPDS,VH,IDS,AT,CSV3,CSV2,DIT,AdvSIMD+HP,FP+HP,BT,SSBS+MSR
>  
>  cpu1 at mainbus0 mpidr 1: Apple Blizzard Pro r1p0
>  cpu1: 128KB 64b/line 4-way L1 PIPT I-cache, 64KB 64b/line 8-way L1
>  D-cache
>  cpu1: 4096KB 128b/line 16-way L2 cache
>  cpu2 at mainbus0 mpidr 2: Apple Blizzard Pro r1p0
>  cpu2: 128KB 64b/line 4-way L1 PIPT I-cache, 64KB 64b/line 8-way L1
>  D-cache
>  cpu2: 4096KB 128b/line 16-way L2 cache
>  cpu3 at mainbus0 mpidr 3: Apple Blizzard Pro r1p0
>  cpu3: 128KB 64b/line 4-way L1 PIPT I-cache, 64KB 64b/line 8-way L1
>  D-cache
>  cpu3: 4096KB 128b/line 16-way L2 cache
>  cpu4 at mainbus0 mpidr 10100: Apple Avalanche Pro r1p0
>  cpu4: 192KB 64b/line 6-way L1 PIPT I-cache, 128KB 64b/line 8-way L1
>  D-cache
>  cpu4: 16384KB 128b/line 16-way L2 cache
>  cpu5 at mainbus0 mpidr 10101: Apple Avalanche Pro r1p0
>  cpu5: 192KB 64b/line 6-way L1 PIPT I-cache, 128KB 64b/line 8-way L1
>  D-cache
>  cpu5: 16384KB 128b/line 16-way L2 cache
>  cpu6 at mainbus0 mpidr 10102: Apple Avalanche Pro r1p0
>  cpu6: 192KB 64b/line 6-way L1 PIPT I-cache, 128KB 64b/line 8-way L1
>  D-cache
>  cpu6: 16384KB 128b/line 16-way L2 cache
>  cpu7 at mainbus0 mpidr 10103: Apple Avalanche Pro r1p0
>  cpu7: 192KB 64b/line 6-way L1 PIPT I-cache, 128KB 64b/line 8-way L1
>  D-cache
>  cpu7: 16384KB 128b/line 16-way L2 cache
>  cpu8 at mainbus0 mpidr 10200: Apple Avalanche Pro r1p0
>  cpu8: 192KB 64b/line 6-way L1 PIPT I-cache, 128KB 64b/line 8-way L1
>  D-cache
>  cpu8: 16384KB 128b/line 16-way L2 cache
>  cpu9 at mainbus0 mpidr 10201: Apple Avalanche Pro r1p0
>  cpu9: 192KB 64b/line 6-way L1 PIPT I-cache, 128KB 64b/line 8-way L1
>  D-cache
>  cpu9: 16384KB 128b/line 16-way L2 cache
>  cpu10 at mainbus0 mpidr 10202: Apple Avalanche Pro r1p0
>  cpu10: 192KB 64b/line 6-way L1 PIPT I-cache, 128KB 64b/line 8-way L1
>  D-cache
>  cpu10: 16384KB 128b/line 16-way L2 cache
>  cpu11 at mainbus0 mpidr 10203: Apple Avalanche Pro r1p0
>  cpu11: 192KB 64b/line 6-way L1 PIPT I-cache, 128KB 64b/line 8-way L1
>  D-cache
>  cpu11: 16384KB 128b/line 16-way L2 cache
>  "asc-firmware" at mainbus0 not configured
>  "asc-firmware" at mainbus0 not configured
>  "framebuffer" at mainbus0 not configured
>  "asc-firmware" at mainbus0 not configured
>  "asc-firmware" at mainbus0 not configured
>  "region157" at mainbus0 not configured
>  "region95" at mainbus0 not configured
>  "region94" at mainbus0 not configured
>  "region57" at mainbus0 not configured
>  "dcp_data" at mainbus0 not configured
>  "asc-firmware" at mainbus0 not configured
>  "uat-handoff" at mainbus0 not configured
>  "uat-pagetables" at mainbus0 not configured
>  "uat-ttbs" at mainbus0 not configured
>  "isp-heap" at mainbus0 not configured
>  apm0 at mainbus0
>  "opp-table-0" at mainbus0 not configured
>  "opp-table-1" at mainbus0 not configured
>  "opp-table-gpu" at mainbus0 not configured
>  "opp-table-gpu-cs" at mainbus0 not configured
>  "opp-table-gpu-afr" at mainbus0 not configured
>  "pmu-e" at mainbus0 not configured
>  "pmu-p" at mainbus0 not configured
>  agtimer0 at mainbus0: 24000 kHz
>  "clock-ref" at mainbus0 not configured
>  "clock-200m" at mainbus0 not configured
>  "clock-disp0" at mainbus0 not configured
>  "clock-dispext0" at mainbus0 not configured
>  "clock-dispext0_die1" at mainbus0 not configured
>  "clock-dispext1" at mainbus0 not configured
>  "clock-dispext1_die1" at mainbus0 not configured
>  "clock-ref-nco" at mainbus0 not configured
>  simplebus0 at mainbus0: "soc"
>  aplpmgr0 at simplebus0
>  aplpmgr1 at simplebus0
>  aplpmgr2 at simplebus0
>  aplpmgr3 at simplebus0
>  aplintc0 at simplebus0 nirq 1961 ndie 1
>  apldog0 at simplebus0
>  aplmbox0 at simplebus0
>  aplpinctrl0 at simplebus0
>  aplmbox1 at simplebus0
>  apldart0 at simplebus0 rev 2.0: 42 bits, bypass
>  apldart1 at simplebus0 rev 2.0: 42 bits, bypass
>  apldart2 at simplebus0 rev 2.0: 42 bits, bypass
>  apldart3 at simplebus0 rev 2.0: 42 bits, bypass
>  apldart4 at simplebus0 rev 2.0: 42 bits, locked
>  apldart5 at simplebus0 rev 2.0: 42 bits, locked
>  aplmbox2 at simplebus0
>  apldart6 at simplebus0 rev 2.0: 42 bits, bypass
>  aplmbox3 at simplebus0
>  apldart7 at simplebus0 rev 2.0: 42 bits, bypass
>  apldart8 at simplebus0 rev 2.0: 42 bits, bypass
>  apldart9 at simplebus0 rev 2.0: 42 bits, locked
>  apldart10 at simplebus0 rev 2.0: 42 bits, locked
>  aplmbox4 at simplebus0
>  aplpinctrl1 at simplebus0
>  aplefuse0 at simplebus0
>  aplpinctrl2 at simplebus0
>  aplpinctrl3 at simplebus0
>  apldart11 at simplebus0 rev 2.0: 42 bits, bypass
>  apldart12 at simplebus0 rev 2.0: 42 bits, bypass
>  apldart13 at simplebus0 rev 2.0: 42 bits, bypass
>  apldart14 at simplebus0 rev 2.0: 42 bits, bypass
>  apldart15 at simplebus0 rev 2.0: 42 bits, bypass
>  apldart16 at simplebus0 rev 2.0: 42 bits, bypass
>  aplmbox5 at simplebus0
>  aplnco0 at simplebus0
>  "power-management" at simplebus0 not configured
>  aplspmi0 at simplebus0
>  aplpmu0 at aplspmi0 sid 0xb
>  aplsmc0 at simplebus0
>  aplrtk0 at simplebus0
>  apldc0 at simplebus0: "fifo"
>  apldchidev0 at apldc0
>  apldckbd0 at apldchidev0: 8 variable keys, 6 key codes
>  wskbd0 at apldckbd0: console keyboard
>  "isp" at simplebus0 not configured
>  apldcp0 at simplebus0
>  apldrm0 at simplebus0
>  drm0 at apldrm0
>  aplpwm0 at simplebus0
>  apliic0 at simplebus0
>  iic0 at apliic0
>  tipd0 at iic0 addr 0x38
>  tipd1 at iic0 addr 0x3f
>  tipd2 at iic0 addr 0x3b
>  tipd3 at iic0 addr 0x3a
>  apliic1 at simplebus0
>  iic1 at apliic1
>  sncodec0 at iic1 addr 0x3a
>  sncodec1 at iic1 addr 0x38
>  sncodec2 at iic1 addr 0x39
>  apliic2 at simplebus0
>  iic2 at apliic2
>  "cirrus,cs42l84" at iic2 addr 0x4b not configured
>  apliic3 at simplebus0
>  iic3 at apliic3
>  sncodec3 at iic3 addr 0x3d
>  sncodec4 at iic3 addr 0x3b
>  sncodec5 at iic3 addr 0x3c
>  aplspi0 at simplebus0
>  exuart0 at simplebus0
>  apldma0 at simplebus0
>  aplmca0 at simplebus0
>  "gpu" at simplebus0 not configured
>  aplpcie0 at simplebus0
>  pci0 at aplpcie0
>  ppb0 at pci0 dev 0 function 0 "Apple M1 PCIe" rev 0x01
>  pci1 at ppb0 bus 1
>  "Broadcom BCM4388" rev 0x04 at pci1 dev 0 function 0 not configured
>  vendor "Broadcom", unknown product 0x5f72 (class network subclass
>  miscellaneous, rev 0x04) at pci1 dev 0 function 1 not configured
>  ppb1 at pci0 dev 1 function 0 "Apple M1 PCIe" rev 0x01
>  pci2 at ppb1 bus 2
>  "Genesys Logic GL9755" rev 0x01 at pci2 dev 0 function 0 not configured
>  aplcpu0 at simplebus0
>  aplcpu1 at simplebus0
>  aplcpu2 at simplebus0
>  apldcp1 at simplebus0
>  xhci0 at simplebus0, xHCI 1.10
>  usb0 at xhci0: USB revision 3.0
>  uhub0 at usb0 configuration 1 interface 0 "Generic xHCI root hub" rev
>  3.00/1.00 addr 1
>  "phy" at simplebus0 not configured
>  xhci1 at simplebus0, xHCI 1.10
>  usb1 at xhci1: USB revision 3.0
>  uhub1 at usb1 configuration 1 interface 0 "Generic xHCI root hub" rev
>  3.00/1.00 addr 1
>  "phy" at simplebus0 not configured
>  xhci2 at simplebus0, xHCI 1.10
>  usb2 at xhci2: USB revision 3.0
>  uhub2 at usb2 configuration 1 interface 0 "Generic xHCI root hub" rev
>  3.00/1.00 addr 1
>  "phy" at simplebus0 not configured
>  "phy" at simplebus0 not configured
>  "mux" at simplebus0 not configured
>  aplsart0 at simplebus0
>  aplns0 at simplebus0
>  nvme0 at aplns0: NVMe 1.1
>  nvme0: APPLE SSD AP1024Z, firmware 373.120., serial 0ba01ee360e42835
>  scsibus0 at nvme0: 2 targets, initiator 0
>  sd0 at scsibus0 targ 1 lun 0: <NVMe, APPLE SSD AP1024, 373.>
>  sd0: 954204MB, 4096 bytes/sector, 244276265 sectors
>  pwmleds0 at mainbus0
>  "fixed-regulator-sn012776-sdz" at mainbus0 not configured
>  aplaudio0 at mainbus0
>  audio0 at aplaudio0
>  uhub3 at uhub1 port 1 configuration 1 interface 0 "GenesysLogic USB2.1
>  Hub" rev 2.10/6.56 addr 2
>  uhub3: device problem, disabling port 3
>  uhub4 at uhub3 port 4 configuration 1 interface 0 "Genesys Logic USB2.0
>  Hub" rev 2.00/61.90 addr 3
>  axen0 at uhub4 port 1 configuration 1 interface 0 "ASIX AX88179A" rev
>  2.10/2.00 addr 4
>  axen0: AX88179A, address 68:da:73:ac:8a:e1
>  ukphy0 at axen0 phy 3: Generic IEEE 802.3u media interface, rev. 1: OUI
>  0x00070b, model 0x0006
>  ugen0 at uhub4 port 4 "Fresco Logic, Inc Generic Billboard Device" rev
>  2.01/1.00 addr 5
>  vscsi0 at root
>  scsibus1 at vscsi0: 256 targets
>  softraid0 at root
>  scsibus2 at softraid0: 256 targets
>  softraid0: sd1 was not shutdown properly
>  sd1 at scsibus2 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006>
>  sd1: 566288MB, 4096 bytes/sector, 144969901 sectors
>  root on sd1a (9e09d4e24b7229ed.a) swap on sd1b dump on sd1b
>  WARNING: / was not properly unmounted
>  umass0 at uhub3 port 3 configuration 1 interface 0 "Generic USB3.0 Card
>  Reader" rev 2.10/15.35 addr 6
>  umass0: using SCSI over Bulk-Only
>  scsibus3 at umass0: 2 targets, initiator 0
>  sd2 at scsibus3 targ 1 lun 0: <Generic, MassStorageClass, 1536>
>  removable
>  apldchidev0: unhandled iface 1
>  apldchidev0: unhandled iface 1
>  apldcms0 at apldchidev0
>  wsmouse0 at apldcms0 mux 0
>  drm:pid0:iomfb_poweron_v13_3 *ERROR* dcp_poweron() starting
>  apldrm0: 3024x1890, 32bpp
>  wsdisplay0 at apldrm0 mux 1: console (std, vt100 emulation), using
>  wskbd0
>  wsdisplay0: screen 1-5 added (std, vt100 emulation)
>  "framebuffer" at mainbus0 not configured
>  sd3 at scsibus3 targ 1 lun 1: <Generic, MassStorageClass, 1536>
>  removable

Reply via email to