服务器关闭挂起(当 oss/lynxtwo 驱动程序无法正确加载时)

服务器关闭挂起(当 oss/lynxtwo 驱动程序无法正确加载时)

我已在服务器上重新安装了 Ubuntu 22.04.2,主要用于通过 OSS 驱动程序 (v4) 和 LynxTwo 卡播放音频。它运行了几天,但后来重启/关机开始挂起(必须手动关机)。当我重新启动时,oss 驱动程序不会加载声音设备。为了使其工作,我必须多次重启并在关闭服务器之前从服务器上移除音频插孔。请注意,当它挂起时,控制台显示正在关闭或正在重启,但音频设备 (DAC) 仍指示它已锁定到 Ubuntu 服务器。如能提供任何帮助,我将不胜感激

以下是启动过程中 oss 驱动程序无法正常加载时内核消息的最后一部分:

Jun 17 02:08:35 vortexbox kernel: [   37.436868] Hardware name:  /DG41MJ, BIOS MJG4110H.86A.0006.2009.1223.1155 12/23/2009
Jun 17 02:08:35 vortexbox kernel: [   37.436902] RIP: 0010:init_lynx_hal+0x24/0x3f0 [lynxtwo]
Jun 17 02:08:35 vortexbox kernel: [   37.436946] Code: 00 00 00 00 00 90 f3 0f 1e fa 41 55 66 0f ef c0 41 54 55 53 48 89 fb 48 81 ec 28 01 00 00 48 c7 47 18 00 00 00 00 48 8b 7f 10 <0f> 29 04 24 0f 29 44 24 10 0f 29 44 24 20 48 c7 44 24 30 00 00 00
Jun 17 02:08:35 vortexbox kernel: [   37.437023] RSP: 0018:ffffbecf009a7838 EFLAGS: 00010292
Jun 17 02:08:35 vortexbox kernel: [   37.437049] RAX: 0000000000000000 RBX: ffffbecf00945010 RCX: ffff991f4393ef88
Jun 17 02:08:35 vortexbox kernel: [   37.437081] RDX: 0000000000000000 RSI: ffff991f4393ee00 RDI: ffffbecf00955000
Jun 17 02:08:35 vortexbox kernel: [   37.437113] RBP: ffffbecf00945010 R08: 0000000000000073 R09: 0000000000000000
Jun 17 02:08:35 vortexbox kernel: [   37.437146] R10: 0000000000000196 R11: ffffffffffffffff R12: 0000000000000000
Jun 17 02:08:35 vortexbox kernel: [   37.437177] R13: ffffbecf00945060 R14: ffff991f41add0d0 R15: ffff991f54e98368
Jun 17 02:08:35 vortexbox kernel: [   37.437210] FS:  00007f3c02e23c40(0000) GS:ffff991f7c680000(0000) knlGS:0000000000000000
Jun 17 02:08:35 vortexbox kernel: [   37.437247] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Jun 17 02:08:35 vortexbox kernel: [   37.437274] CR2: 00007f75cbb2f560 CR3: 000000000f518000 CR4: 00000000000406e0
Jun 17 02:08:35 vortexbox kernel: [   37.437306] Call Trace:
Jun 17 02:08:35 vortexbox kernel: [   37.437322]  <TASK>
Jun 17 02:08:35 vortexbox kernel: [   37.437335]  ? mutex_lock+0x13/0x50
Jun 17 02:08:35 vortexbox kernel: [   37.437359]  ? __setup_irq+0x3fd/0x780
Jun 17 02:08:35 vortexbox kernel: [   37.437383]  ? kmem_cache_alloc_trace+0x19e/0x2e0
Jun 17 02:08:35 vortexbox kernel: [   37.437409]  ? request_threaded_irq+0x112/0x180
Jun 17 02:08:35 vortexbox kernel: [   37.437432]  ? uninit_lynx_audio+0x130/0x130 [lynxtwo]
Jun 17 02:08:35 vortexbox kernel: [   37.437470]  ? oss_register_interrupts+0xb0/0x130 [osscore]
Jun 17 02:08:35 vortexbox kernel: [   37.437524]  ? lynxtwo_attach+0x255/0x4b0 [lynxtwo]
Jun 17 02:08:35 vortexbox kernel: [   37.437557]  ? pci_enable_device_flags+0x104/0x170
Jun 17 02:08:35 vortexbox kernel: [   37.437585]  ? oss_cdev_compat_ioctl+0x20/0x20 [osscore]
Jun 17 02:08:35 vortexbox kernel: [   37.437625]  ? osspci_probe+0x99/0x150 [lynxtwo]
Jun 17 02:08:35 vortexbox kernel: [   37.437659]  ? local_pci_probe+0x4b/0x90
Jun 17 02:08:35 vortexbox kernel: [   37.437682]  ? pci_device_probe+0x119/0x1f0
Jun 17 02:08:35 vortexbox kernel: [   37.437704]  ? really_probe+0x222/0x420
Jun 17 02:08:35 vortexbox kernel: [   37.437727]  ? __driver_probe_device+0x119/0x190
Jun 17 02:08:35 vortexbox kernel: [   37.437752]  ? driver_probe_device+0x23/0xc0
Jun 17 02:08:35 vortexbox kernel: [   37.437777]  ? __driver_attach+0xf7/0x1f0
Jun 17 02:08:35 vortexbox kernel: [   37.437799]  ? __device_attach_driver+0x140/0x140
Jun 17 02:08:35 vortexbox kernel: [   37.437825]  ? bus_for_each_dev+0x7f/0xd0
Jun 17 02:08:35 vortexbox kernel: [   37.437848]  ? driver_attach+0x1e/0x30
Jun 17 02:08:35 vortexbox kernel: [   37.437869]  ? bus_add_driver+0x148/0x220
Jun 17 02:08:35 vortexbox kernel: [   37.437891]  ? vunmap_range_noflush+0x3d5/0x470
Jun 17 02:08:35 vortexbox kernel: [   37.437917]  ? driver_register+0x95/0x100
Jun 17 02:08:35 vortexbox kernel: [   37.437939]  ? 0xffffffffc0e59000
Jun 17 02:08:35 vortexbox kernel: [   37.437957]  ? __pci_register_driver+0x68/0x70
Jun 17 02:08:35 vortexbox kernel: [   37.437982]  ? pcidrv_init+0x23/0x1000 [lynxtwo]
Jun 17 02:08:35 vortexbox kernel: [   37.438015]  ? do_one_initcall+0x49/0x1e0
Jun 17 02:08:35 vortexbox kernel: [   37.438038]  ? kmem_cache_alloc_trace+0x19e/0x2e0
Jun 17 02:08:35 vortexbox kernel: [   37.438063]  ? do_init_module+0x52/0x260
Jun 17 02:08:35 vortexbox kernel: [   37.438085]  ? load_module+0xb2b/0xbc0
Jun 17 02:08:35 vortexbox kernel: [   37.438107]  ? __do_sys_finit_module+0xbf/0x120
Jun 17 02:08:35 vortexbox kernel: [   37.438131]  ? __x64_sys_finit_module+0x18/0x20
Jun 17 02:08:35 vortexbox kernel: [   37.438155]  ? do_syscall_64+0x5c/0xc0
Jun 17 02:08:35 vortexbox kernel: [   37.438179]  ? exit_to_user_mode_prepare+0x37/0xb0
Jun 17 02:08:35 vortexbox kernel: [   37.438206]  ? syscall_exit_to_user_mode+0x27/0x50
Jun 17 02:08:35 vortexbox kernel: [   37.438232]  ? __x64_sys_mmap+0x33/0x50
Jun 17 02:08:35 vortexbox kernel: [   37.438253]  ? do_syscall_64+0x69/0xc0
Jun 17 02:08:35 vortexbox kernel: [   37.438275]  ? do_syscall_64+0x69/0xc0
Jun 17 02:08:35 vortexbox kernel: [   37.438296]  ? do_user_addr_fault+0x1e7/0x670
Jun 17 02:08:35 vortexbox kernel: [   37.438320]  ? exit_to_user_mode_prepare+0x37/0xb0
Jun 17 02:08:35 vortexbox kernel: [   37.438346]  ? irqentry_exit_to_user_mode+0x9/0x20
Jun 17 02:08:35 vortexbox kernel: [   37.438373]  ? irqentry_exit+0x1d/0x30
Jun 17 02:08:35 vortexbox kernel: [   37.438394]  ? exc_page_fault+0x89/0x170
Jun 17 02:08:35 vortexbox kernel: [   37.438416]  ? entry_SYSCALL_64_after_hwframe+0x61/0xcb
Jun 17 02:08:35 vortexbox kernel: [   37.438443]  </TASK>
Jun 17 02:08:35 vortexbox kernel: [   37.438457] Modules linked in: lynxtwo(OE+) osscore(OE) binfmt_misc coretemp serio_raw at24 mac_hid sch_fq_codel dm_multipath scsi_dh_rdac scsi_dh_emc scsi_dh_alua pstore_blk msr efi_pstore ramoops pstore_zone reed_solomon ip_tables x_tables autofs4 btrfs blake2b_generic zstd_compress raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid1 raid0 multipath linear gpio_ich i915 i2c_algo_bit ttm drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops cec rc_core psmouse i2c_i801 pata_acpi i2c_smbus lpc_ich r8169 drm realtek video
Jun 17 02:08:35 vortexbox kernel: [   37.440507] ---[ end trace 8df845ec2de9027e ]---
Jun 17 02:08:35 vortexbox kernel: [   37.442386] RIP: 0010:init_lynx_hal+0x24/0x3f0 [lynxtwo]
Jun 17 02:08:35 vortexbox kernel: [   37.444143] Code: 00 00 00 00 00 90 f3 0f 1e fa 41 55 66 0f ef c0 41 54 55 53 48 89 fb 48 81 ec 28 01 00 00 48 c7 47 18 00 00 00 00 48 8b 7f 10 <0f> 29 04 24 0f 29 44 24 10 0f 29 44 24 20 48 c7 44 24 30 00 00 00
Jun 17 02:08:35 vortexbox kernel: [   37.446006] RSP: 0018:ffffbecf009a7838 EFLAGS: 00010292
Jun 17 02:08:35 vortexbox kernel: [   37.447865] RAX: 0000000000000000 RBX: ffffbecf00945010 RCX: ffff991f4393ef88
Jun 17 02:08:35 vortexbox kernel: [   37.449731] RDX: 0000000000000000 RSI: ffff991f4393ee00 RDI: ffffbecf00955000
Jun 17 02:08:35 vortexbox kernel: [   37.451666] RBP: ffffbecf00945010 R08: 0000000000000073 R09: 0000000000000000
Jun 17 02:08:35 vortexbox kernel: [   37.453508] R10: 0000000000000196 R11: ffffffffffffffff R12: 0000000000000000
Jun 17 02:08:35 vortexbox kernel: [   37.455299] R13: ffffbecf00945060 R14: ffff991f41add0d0 R15: ffff991f54e98368
Jun 17 02:08:35 vortexbox kernel: [   37.456959] FS:  00007f3c02e23c40(0000) GS:ffff991f7c680000(0000) knlGS:0000000000000000
Jun 17 02:08:35 vortexbox kernel: [   37.458638] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Jun 17 02:08:35 vortexbox kernel: [   37.460312] CR2: 00007f75cbb2f560 CR3: 000000000f518000 CR4: 00000000000406e0
Jun 17 02:10:52 vortexbox kernel: [   62.998214] loop5: detected capacity change from 0 to 8

答案1

当驱动程序崩溃时,99% 的时间系统都无法正常重启。不幸的是,您遇到了驱动程序或硬件错误,因此您无能为力。(崩溃似乎发生在 HAL(硬件抽象层)初始化阶段,表明存在硬件问题)。

您可能应该关闭机器,而不是软重启,因为显然驱动程序崩溃后硬件没有正确重置。如果它正常工作了一段时间而您没有升级,我会尽可能尝试使用同一型号的另一张卡来解决潜在的硬件问题。

答案2

仅作为更新,OSS 和 Lynxtwo 驱动程序每次都能正常加载。只有 Lynx 卡偶尔无法识别音频 DAC 设备。我注意到,如果我在重新启动之前移除 LAN 电缆,驱动程序可以正常加载,并且音频 DAC 可以识别(大多数情况下)。这是我目前的解决方法,但很烦人,因为我必须移除 LAN 电缆,然后再将其挂上。有没有办法在 oss/Lynx 驱动程序成功加载后强制触发网络驱动程序加载?谢谢

相关内容