我有 Ubuntu 16.10(虽然在 16.04 上也发生了同样的情况)和 Windows 10 的双启动。前段时间我注意到我的kern.log文件变得非常大(10GB 或更多),所以我决定检查它。同样的错误似乎每隔一秒或更短时间重复一次:
Dec 19 17:31:01 andrew kernel: [ 99.027473] pcieport 0000:00:1c.5: PCIe Bus Error: severity=Corrected, type=Physical Layer, id=00e5(Receiver ID)
Dec 19 17:31:01 andrew kernel: [ 99.027474] pcieport 0000:00:1c.5: device [8086:9d15] error status/mask=00000001/00002000
Dec 19 17:31:01 andrew kernel: [ 99.027475] pcieport 0000:00:1c.5: [ 0] Receiver Error
Dec 19 17:31:01 andrew kernel: [ 99.027479] pcieport 0000:00:1c.5: AER: Corrected error received: id=00e5
Dec 19 17:31:01 andrew kernel: [ 99.027826] pcieport 0000:00:1c.5: can't find device …Run Code Online (Sandbox Code Playgroud) 有没有办法找出以太网接口的 PCI 总线编号,反之亦然。我正在寻找编写一个 Bash/Python 脚本,它给出了一些类似的东西
pci_address = some_function(eth0)
pci_address 在哪里sys:bus:slot:function。这两个元素如何相互关联?
由于我的kern.log和syslog文件越来越大,我将主题条目添加到以下行中/etc/default/grub:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash reboot=efi,pci pci=nomsi,noaer"
Run Code Online (Sandbox Code Playgroud)
但我真的不明白我做了什么。这有什么缺点吗?
在装有 Ubuntu 18.04 的笔记本电脑上,/var/log/syslog每秒大约 5 次获取以下四个消息的新块:
Aug 29 19:17:17 my_hostname systemd-udevd[336]: Process 'hid2hci --method=dell --devpath=/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.2/3-1.2:1.0' failed with exit code 1.
Aug 29 19:17:17 my_hostname upowerd[4116]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.2/3-1.2:1.0
Aug 29 19:17:17 my_hostname systemd-udevd[336]: Process 'hid2hci --method=dell --devpath=/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.2/3-1.2:1.0' failed with exit code 1.
Aug 29 19:17:17 my_hostname upowerd[4116]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.2/3-1.2:1.0
Run Code Online (Sandbox Code Playgroud)
他们正在填满日志分区。我没有在任何 USB 端口插入任何东西。对应的PCI设备为:
$ lspci | grep 00:1a.0
00:1a.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03)
Run Code Online (Sandbox Code Playgroud)
这些消息的原因是什么?我应该如何纠正这种情况?
我试图在虚拟机中运行 Windows,同时让 VM 直接传递到 GPU 以获得更好的性能。
我有一个集成的英特尔 GPU(我将把这个用于主机)和一个 Nvidia GTX980(我想要这个用于 VM)。我使用 Elementary OS 0.3.2 Freya 64 位。
我已遵循本指南,但现在卡在第 2 步。我无法将 Nvidia gpu 列入黑名单。
首先我做 lspci -nn | grep NVIDIA
这导致以下输出
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation Device [10de:13c0] (rev a1)
01:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:0fbb] (rev a1)
Run Code Online (Sandbox Code Playgroud)
接下来,我将此行添加到/etc/initramfs-tools/modules文件中。
pci_stub ids=10de:13c0,10de:0fbb
Run Code Online (Sandbox Code Playgroud)
然后我重新加载使用update-initramfs -u然后重新启动。
在我运行时重新启动后,dmesg | grep pci-stub我得到以下输出:
[ 2.029626] pci-stub: add 10DE:13C0 sub=FFFFFFFF:FFFFFFFF cls=00000000/00000000
[ 2.029630] pci-stub: add 10DE:0FBB …Run Code Online (Sandbox Code Playgroud) 我的电脑无法检测到我的 nVidia GPU (GTX650-DC)(操作系统是 Ubuntu 14.04)。我搜索了相关讨论(Ubuntu 14.04无法检测nvidia显卡(甚至检测不到卡的型号)),其中可以通过命令“sudo lshw -C display”获取nvidia GPU信息。然而,我的电脑上显示的信息如下,似乎从未检测到我的nvidia GPU。有人也遇到过这种情况吗?任何建议将不胜感激!
输出lshw -C display *-display :
:~$ sudo lshw -C display *-display
description: VGA compatible controller
product: Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 06
width: 64 bits
clock: 33MHz
capabilities: msi pm vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
resources: irq:45 memory:f7800000-f7bfffff memory:e0000000-efffffff ioport:f000(size=64)
Run Code Online (Sandbox Code Playgroud) 我刚刚安装了 Ubuntu Server 20.04,并尝试让 GPU Passthrough 正常工作,但我似乎无法使用以前有效的方法启用 VFIO:
/etc/initramfs-tools/modules:
vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd
vhost-net
Run Code Online (Sandbox Code Playgroud)
/etc/default/grub:
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash iommu=1 amd_iommu=on vfio_pci.ids=10de:1b81,10de:10f0 vfio_iommu_type1.allow_unsafe_interrupts=1"
GRUB_CMDLINE_LINUX=
Run Code Online (Sandbox Code Playgroud)
但内核中似乎没有启用VFIO。
~$ lsmod | grep kvm
kvm_amd 98304 0
kvm 663552 1 kvm_amd
ccp 86016 13 kvm_amd
~$ lsmod | grep vfio
~$
Run Code Online (Sandbox Code Playgroud)
除非我可以确认 VFIO 已启用,否则我无法将 GPU 的驱动程序绑定到 VFIO,对吗?
编辑:我之前在 Arch 下进行了大约一年的直通,一切都工作得很好。所以这显然是 Ubuntu 的事情。我在 ASROck x399 Taichi 上使用 Thredripper 1950X。
Edit2:我加载了一些进展vfio_mdev。现在它可以代替调节器吗vfio?还是我还需要加载 …
我需要一个适用于 Ubuntu 12.04 的 PCI 无线适配器。我在网上环顾四周,但很多信息已经过时或令人困惑。有人可以指点我在 Newegg 或 Amazon 上使用他们知道在 Ubuntu 12.04 上运行良好的无线 PCI 适配器吗?我真的很感激。
我最近买了新的台式机。除了我的(有点过时)无线 PCI 卡 Realtek 8185 之外,一切都在 Ubuntu 12.10 64 位上完美运行。所以我准备买新的。
请您推荐一个 PCI 卡(或至少是芯片组),它可以在新的 Ubuntu 中正常工作而不会出现故障(无需包装 Windows、驱动程序等...)。网上查到的资料好像太不一致了,想听听经验。
今晚我在我的笔记本电脑上全新安装了Xubuntu 15.04,一台 Acer Aspire TimelineX 4820TG。我之前运行的是 14.04 LTS,一切都很好。我没有很多东西可以保存,所以我完全卸载并重新安装,以便拥有一个更干净的系统。
不幸的是,自从第一次启动以来,我遇到了周期性的冻结。冻结每 6-10 秒发生一次,持续约 1 秒。在冻结鼠标和键盘没有响应,所以它看起来所有的系统。这很烦人。
此外,每次发生冻结时,我都能听到风扇加速的声音。系统在关机时挂起(我不得不长按电源按钮)。
我注意到在每次冻结期间都会/var/log/kern.log打印这些确切的行:
[ 159.876643] snd_hda_intel 0000:01:00.1: Disabling via VGA-switcheroo
[ 160.097085] snd_hda_intel 0000:01:00.1: Cannot lock devices!
[ 160.844851] i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
[ 160.844866] pci 0000:00:1e.0: PCI bridge to [bus 04]
[ 160.844874] pci 0000:00:1e.0: bridge window [io 0x3000-0x3fff]
[ 160.844884] pci 0000:00:1e.0: bridge window [mem 0xd0000000-0xd01fffff]
[ 160.844891] pci 0000:00:1e.0: …Run Code Online (Sandbox Code Playgroud)