Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resume issues on M1 Studio #263

Open
permezel opened this issue Jan 5, 2025 · 1 comment
Open

Resume issues on M1 Studio #263

permezel opened this issue Jan 5, 2025 · 1 comment

Comments

@permezel
Copy link

permezel commented Jan 5, 2025

My keyboard is attached thru a StarTech.com KVM switch. After suspend, it is ignored. I must use the power button to resume.

%  lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 001 Device 003: ID 09ea:0130 Generic Virtual HUB
Bus 001 Device 004: ID 413c:3010 Dell Computer Corp. Optical Wheel Mouse
Bus 001 Device 005: ID 05ac:0204 Apple, Inc. Apple Extended USB Keyboard
Bus 001 Device 006: ID 09eb:0131 IM Networks, Inc. Virtual HID
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

In addition, the network interface becomes non-functional. i have to do

sudo ifconfig end0 down; sudo ifconfig end0 up

to recover.

I have the 10Gb NIC.

Here is a recent suspend/resume:

[82110.012963] usb 5-1: USB disconnect, device number 2
[82110.035514] xhci-hcd xhci-hcd.1.auto: remove, state 4
[82110.035521] usb usb6: USB disconnect, device number 1
[82110.035712] xhci-hcd xhci-hcd.1.auto: USB bus 6 deregistered
[82110.035717] xhci-hcd xhci-hcd.1.auto: remove, state 1
[82110.035720] usb usb5: USB disconnect, device number 1
[82110.104805] xhci-hcd xhci-hcd.1.auto: USB bus 5 deregistered
[82164.161969] PM: suspend entry (s2idle)
[82164.177033] Filesystems sync: 0.015 seconds
[82164.185761] Freezing user space processes
[82164.187207] Freezing user space processes completed (elapsed 0.001 seconds)
[82164.187210] OOM killer disabled.
[82164.187210] Freezing remaining freezable tasks
[82164.188000] Freezing remaining freezable tasks completed (elapsed 0.000 seconds)
[82164.188002] printk: Suspending console(s) (use no_console_suspend to debug)
[82164.195703] apple-dcp 38bc00000.dcp: RTKit: syslog message: PPipeDCP_H13P.cpp:10490: set_run_mode_safe: deferring: 4 -> 1

[82164.195726] apple-dcp 38bc00000.dcp: RTKit: syslog message: PPipeDCP_H13P.cpp:10395: virtual IOMFBStatus IOMFB::UPPipeDCP_H13P::ready_for_run_mode_change(IOMFB::AppleRegisterStream *): initiating deferred run mod
[82164.195736] apple-dcp 38bc00000.dcp: RTKit: syslog message: UPTSQManager.cpp:150: IOMFBStatus IOMFB::UPTSQManager::power_down_M3(IOMFB::AppleRegisterStream *, UPTSQManager::ModeChangeWaiter *): request mode ch
[82164.213689] apple-dcp 38bc00000.dcp: RTKit: syslog message: UPTSQManager.cpp:162: IOMFBStatus IOMFB::UPTSQManager::power_down_M3(IOMFB::AppleRegisterStream *, UPTSQManager::ModeChangeWaiter *): disabling M3
[82164.214054] apple-dcp 38bc00000.dcp: RTKit: syslog message: PPipeDCP_H13P.cpp:10468: set_run_mode_safe: no need to defer: 1 -> 0

[82164.262373] apple-dcp 38bc00000.dcp: RTKit: syslog message: nifiedPipeline.cpp:1356: set_device_enabled_gated: current state: 1, requested state: 0

[82164.263525] apple-dcp 38bc00000.dcp: dcp_poweroff() done
[82165.263734] nvme-apple 2393cc0000.nvme: RTKit: syslog message: cmd.c:8125: NVMe shutdown start seg->lba: 0, seg->size: 0
[82165.406603] nvme-apple 2393cc0000.nvme: RTKit: syslog message: cmd.c:8153: seg->lba 0 saveCtx 1 took 142 ms - clog 7698830
[82165.453623] set 0 ps to pstate 1
[82165.453640] set 1 ps to pstate 7
[82165.455028] macsmc-rtkit 290400000.smc: RTKit: syslog message: apComms.cpp:354: SMC HID Event: 01 01 01
[82165.455142] macsmc-hid macsmc-hid: Button wakeup
[82165.456784] set 0 ps to pstate 7
[82165.456816] set 1 ps to pstate 9
[82165.476232] ------------[ cut here ]------------
[82165.476247] WARNING: CPU: 13 PID: 408046 at drivers/iommu/apple-dart.c:1324 apple_dart_irq+0x74/0x7c [apple_dart]
[82165.476269] Modules linked in: rpcsec_gss_krb5 auth_rpcgss sctp ip6_udp_tunnel udp_tunnel snd_seq_dummy snd_hrtimer snd_seq snd_seq_device 8021q garp mrp des_generic libdes md4 brcmfmac_wcc snd_soc_macaudio joydev brcmfmac brcmutil hci_bcm4377 bluetooth ecdh_generic cfg80211 atlantic ecc ptp rfkill ofpart snd_soc_cs42l84 snd_soc_tas2764 spi_nor appledrm macsmc_hwmon macsmc_hid macsmc_reboot macsmc_power apple_dcp snd_soc_apple_mca mux_core apple_sio apple_admac drm_dma_helper virt_dma apple_mfi_fastcharge apple_soc_cpufreq clk_apple_nco xt_conntrack nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 ip6t_rpfilter ipt_rpfilter xt_pkttype xt_LOG nf_log_syslog nft_compat nf_tables uinput loop tun tap macvlan bridge stp llc fuse nfnetlink ip_tables dm_crypt usbhid xhci_plat_hcd xhci_pci xhci_hcd sdhci_pci cqhci sdhci mmc_core tps6598x nvmem_spmi_mfd rtc_macsmc gpio_macsmc simple_mfd_spmi regmap_spmi nvme_apple apple_sart pcie_apple pci_host_common macsmc_rtkit i2c_pasemi_platform spi_apple i2c_pasemi_core macsmc
[82165.476398]  nvmem_apple_efuses spmi_apple_controller mfd_core pinctrl_apple_gpio dwc3 phy_apple_atc udc_core typec apple_dart btrfs xor xor_neon raid6_pq
[82165.476423] CPU: 13 UID: 0 PID: 408046 Comm: systemd-sleep Tainted: G S      W          6.12.4-asahi #1-NixOS
[82165.476433] Tainted: [S]=CPU_OUT_OF_SPEC, [W]=WARN
[82165.476435] Hardware name: Apple Mac Studio (M1 Ultra, 2022) (DT)
[82165.476439] pstate: 014000c9 (nzcv daIF +PAN -UAO -TCO +DIT -SSBS BTYPE=--)
[82165.476445] pc : apple_dart_irq+0x74/0x7c [apple_dart]
[82165.476451] lr : apple_dart_irq+0x24/0x7c [apple_dart]
[82165.476455] sp : ffff800081847ed0
[82165.476458] x29: ffff800081847ed0 x28: ffff0007ac1bda80 x27: 0000000000000000
[82165.476466] x26: ffff8000800101e0 x25: 00000000000004fd x24: ffff800081721000
[82165.476473] x23: ffff00000b45f400 x22: 0000000000000038 x21: 0000000000000000
[82165.476478] x20: 0000000000000038 x19: ffff000011920080 x18: 0000000000000000
[82165.476484] x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000000
[82165.476489] x14: 0000000000000000 x13: 0000000000000000 x12: 0000000000000000
[82165.476494] x11: 0000000000000000 x10: 0000000000000000 x9 : 0000000000000000
[82165.476499] x8 : 0000000000000000 x7 : 0000000000000000 x6 : 0000000000000000
[82165.476504] x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000000
[82165.476509] x2 : 0000000000000000 x1 : 0000000000000000 x0 : 00000000fffffff3
[82165.476514] Call trace:
[82165.476516]  apple_dart_irq+0x74/0x7c [apple_dart]
[82165.476521]  __handle_irq_event_percpu+0x48/0x168
[82165.476530]  handle_irq_event+0x4c/0xc0
[82165.476535]  handle_fasteoi_irq+0xbc/0x280
[82165.476542]  generic_handle_domain_irq+0x2c/0x54
[82165.476552]  aic_handle_irq+0xd8/0x180
[82165.476556]  call_on_irq_stack+0x24/0x5c
[82165.476565]  do_interrupt_handler+0xe4/0xf4
[82165.476571]  el1_interrupt+0x34/0xb4
[82165.476583]  el1h_64_irq_handler+0x18/0x3c
[82165.476594]  el1h_64_irq+0x64/0x68
[82165.476597]  preempt_count_sub+0x30/0x100
[82165.476606]  _raw_spin_unlock_irqrestore+0x1c/0x64
[82165.476616]  resume_irqs+0xf0/0x160
[82165.476626]  resume_device_irqs+0x14/0x34
[82165.476629]  dpm_resume_noirq+0x14/0x30
[82165.476640]  suspend_enter+0x288/0x320
[82165.476645]  suspend_devices_and_enter+0x170/0x20c
[82165.476650]  enter_state+0x204/0x25c
[82165.476656]  pm_suspend+0x64/0x94
[82165.476661]  state_store+0x80/0x12c
[82165.476665]  kobj_attr_store+0x18/0x60
[82165.476673]  sysfs_kf_write+0x44/0x8c
[82165.476684]  kernfs_fop_write_iter+0x138/0x220
[82165.476692]  vfs_write+0x24c/0x380
[82165.476700]  ksys_write+0x70/0x120
[82165.476707]  __arm64_sys_write+0x1c/0x40
[82165.476715]  invoke_syscall.constprop.0+0x50/0x120
[82165.476725]  do_el0_svc+0x40/0x100
[82165.476732]  el0_svc+0x34/0x174
[82165.476741]  el0t_64_sync_handler+0x140/0x14c
[82165.476752]  el0t_64_sync+0x190/0x194
[82165.476755] ---[ end trace 0000000000000000 ]---
[82165.476762] apple_dart_t8020_irq: 9 callbacks suppressed
[82165.476767] apple-dart 583008000.iommu: translation fault: status:0x81000404 stream:1 code:0x404 (unknown) at 0xb1810000
[82165.484480] nvme-apple 2393cc0000.nvme: RTKit: Initializing (protocol version 12)
[82165.543470] nvme-apple 2393cc0000.nvme: RTKit: syslog message: apcie.c:954: power up done[0]: PMU=Ocarina, PWR=0
[82165.543484] nvme-apple 2393cc0000.nvme: RTKit: syslog message: apcie.c:954: power up done[1]: PMU=Undefined, PWR=0
[82165.543492] nvme-apple 2393cc0000.nvme: RTKit: syslog message: apcie_legacy.c:456: APCIe 1 is configured as unused.
[82165.557835] nvme-apple 2393cc0000.nvme: RTKit: syslog message: cmd.c:6417:  boot mode normal
[82165.730661] macsmc-rtkit 290400000.smc: RTKit: syslog message: apComms.cpp:354: SMC HID Event: 01 01 00
[82165.989526] xhci-hcd xhci-hcd.0.auto: xHC error in resume, USBSTS 0x401, Reinit
[82165.989536] usb usb3: root hub lost power or was reset
[82165.989541] usb usb4: root hub lost power or was reset
[82166.075747] apple-dcp 38bc00000.dcp: dcp_poweron() starting
[82166.076110] apple-dcp 38bc00000.dcp: RTKit: syslog message: FramebufferDCP.cpp:5931: IOMFBParameter_adaptive_sync Req minRR = 0x0, mediaTargetRate = 0x0, Fractional Rate = 0

[82166.076307] apple-dcp 38bc00000.dcp: RTKit: syslog message: nifiedPipeline.cpp:1356: set_device_enabled_gated: current state: 0, requested state: 1

@permezel
Copy link
Author

permezel commented Jan 5, 2025

Realised I should report this elsewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant